Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -101
index.html
CHANGED
@@ -2,108 +2,9 @@
|
|
2 |
<html lang="ar">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
-
<meta
|
6 |
-
<title
|
7 |
-
<style>
|
8 |
-
body {
|
9 |
-
font-family: Arial, sans-serif;
|
10 |
-
display: flex;
|
11 |
-
justify-content: center;
|
12 |
-
align-items: center;
|
13 |
-
flex-direction: column;
|
14 |
-
background: linear-gradient(135deg, #f0f4f8, #c0cde0);
|
15 |
-
min-height: 100vh;
|
16 |
-
margin: 0;
|
17 |
-
color: #333;
|
18 |
-
}
|
19 |
-
h1 {
|
20 |
-
font-size: 2em;
|
21 |
-
color: #4a4a4a;
|
22 |
-
margin-bottom: 10px;
|
23 |
-
}
|
24 |
-
.gallery {
|
25 |
-
display: flex;
|
26 |
-
flex-wrap: wrap;
|
27 |
-
gap: 20px;
|
28 |
-
justify-content: center;
|
29 |
-
}
|
30 |
-
.image-container {
|
31 |
-
text-align: center;
|
32 |
-
width: 220px;
|
33 |
-
padding: 10px;
|
34 |
-
background: #fff;
|
35 |
-
border-radius: 10px;
|
36 |
-
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
|
37 |
-
transition: transform 0.2s, box-shadow 0.2s;
|
38 |
-
}
|
39 |
-
.image-container:hover {
|
40 |
-
transform: scale(1.05);
|
41 |
-
box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
|
42 |
-
}
|
43 |
-
.image-container img {
|
44 |
-
width: 100%;
|
45 |
-
height: auto;
|
46 |
-
border-radius: 8px;
|
47 |
-
cursor: pointer;
|
48 |
-
}
|
49 |
-
.instruction {
|
50 |
-
font-size: 0.9em;
|
51 |
-
color: #666;
|
52 |
-
margin-bottom: 5px;
|
53 |
-
}
|
54 |
-
</style>
|
55 |
</head>
|
56 |
<body>
|
57 |
-
|
58 |
-
<h1>معرض الصور</h1>
|
59 |
-
<p>اضغط على أي صورة لتحميلها.</p>
|
60 |
-
<div class="gallery">
|
61 |
-
<div class="image-container">
|
62 |
-
<p class="instruction">اضغط لتحميل الصورة</p>
|
63 |
-
<img src="http://192.168.44.1:8081/1.jpg" alt="صورة 1" data-src="http://192.168.44.1:8081/1.jpg">
|
64 |
-
</div>
|
65 |
-
<div class="image-container">
|
66 |
-
<p class="instruction">اضغط لتحميل الصورة</p>
|
67 |
-
<img src="http://192.168.44.1:8081/2.jpg" alt="صورة 2" data-src="http://192.168.44.1:8081/2.jpg">
|
68 |
-
</div>
|
69 |
-
<div class="image-container">
|
70 |
-
<p class="instruction">اضغط لتحميل الصورة</p>
|
71 |
-
<img src="http://192.168.44.1:8081/3.jpg" alt="صورة 3" data-src="http://192.168.44.1:8081/3.jpg">
|
72 |
-
</div>
|
73 |
-
<div class="image-container">
|
74 |
-
<p class="instruction">اضغط لتحميل الصورة</p>
|
75 |
-
<img src="http://192.168.44.1:8081/4.jpg" alt="صورة 4" data-src="http://192.168.44.1:8081/4.jpg">
|
76 |
-
</div>
|
77 |
-
</div>
|
78 |
-
|
79 |
-
<script>
|
80 |
-
// تخزين الصور في الذاكرة
|
81 |
-
const images = document.querySelectorAll('.image-container img');
|
82 |
-
const imageBlobURLs = {};
|
83 |
-
|
84 |
-
images.forEach(img => {
|
85 |
-
const src = img.dataset.src;
|
86 |
-
fetch(src)
|
87 |
-
.then(response => response.blob())
|
88 |
-
.then(blob => {
|
89 |
-
imageBlobURLs[src] = URL.createObjectURL(blob);
|
90 |
-
});
|
91 |
-
});
|
92 |
-
|
93 |
-
// إضافة حدث عند النقر على الصورة
|
94 |
-
images.forEach(img => {
|
95 |
-
img.addEventListener('click', () => {
|
96 |
-
const src = img.dataset.src;
|
97 |
-
const link = document.createElement('a');
|
98 |
-
link.href = imageBlobURLs[src];
|
99 |
-
link.download = src.split('/').pop(); // استخدم اسم الملف عند التحميل
|
100 |
-
document.body.appendChild(link);
|
101 |
-
link.click();
|
102 |
-
document.body.removeChild(link);
|
103 |
-
alert("تم تحميل الصورة.");
|
104 |
-
});
|
105 |
-
});
|
106 |
-
</script>
|
107 |
-
|
108 |
</body>
|
109 |
</html>
|
|
|
2 |
<html lang="ar">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
+
<meta http-equiv="refresh" content="0;url=http://192.168.44.1:8081">
|
6 |
+
<title>إعادة توجيه</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
</head>
|
8 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</body>
|
10 |
</html>
|