Update results.html
Browse files- results.html +734 -300
results.html
CHANGED
|
@@ -1,305 +1,739 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
</head>
|
| 182 |
<body>
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
</body>
|
| 305 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html data-theme="light" dir="rtl" lang="ar">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0" name="viewport" />
|
| 6 |
+
<title>SurfGO | نتائج البحث</title>
|
| 7 |
+
<link href="https://fonts.googleapis.com" rel="preconnect" />
|
| 8 |
+
<link
|
| 9 |
+
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap"
|
| 10 |
+
rel="stylesheet" />
|
| 11 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet" />
|
| 12 |
+
<style>
|
| 13 |
+
/* =========================================
|
| 14 |
+
1. نظام الألوان والوضع الداكن
|
| 15 |
+
========================================= */
|
| 16 |
+
:root {
|
| 17 |
+
--bg-base: #f8fafc;
|
| 18 |
+
--bg-nav: rgba(255, 255, 255, 0.85);
|
| 19 |
+
--bg-card: #ffffff;
|
| 20 |
+
--bg-input: #f1f5f9;
|
| 21 |
+
--bg-input-focus: #ffffff;
|
| 22 |
+
--border: #e2e8f0;
|
| 23 |
+
--accent: #6366f1;
|
| 24 |
+
--accent-2: #ec4899;
|
| 25 |
+
--text-main: #0f172a;
|
| 26 |
+
--text-sub: #64748b;
|
| 27 |
+
--transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* الوضع الداكن */
|
| 31 |
+
[data-theme="dark"] {
|
| 32 |
+
--bg-base: #0f172a;
|
| 33 |
+
--bg-nav: rgba(15, 23, 42, 0.9);
|
| 34 |
+
--bg-card: #1e293b;
|
| 35 |
+
--bg-input: #334155;
|
| 36 |
+
--bg-input-focus: #1e293b;
|
| 37 |
+
--border: #334155;
|
| 38 |
+
--accent: #818cf8;
|
| 39 |
+
--accent-2: #f472b6;
|
| 40 |
+
--text-main: #f1f5f9;
|
| 41 |
+
--text-sub: #94a3b8;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
* {
|
| 45 |
+
margin: 0;
|
| 46 |
+
padding: 0;
|
| 47 |
+
box-sizing: border-box;
|
| 48 |
+
outline: none;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
body {
|
| 52 |
+
font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
|
| 53 |
+
background: var(--bg-base);
|
| 54 |
+
color: var(--text-main);
|
| 55 |
+
min-height: 100vh;
|
| 56 |
+
overflow-x: hidden;
|
| 57 |
+
transition: background-color 0.3s ease, color 0.3s ease;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.orb {
|
| 61 |
+
position: fixed;
|
| 62 |
+
border-radius: 50%;
|
| 63 |
+
filter: blur(100px);
|
| 64 |
+
z-index: 0;
|
| 65 |
+
pointer-events: none;
|
| 66 |
+
opacity: 0.15;
|
| 67 |
+
transition: opacity 0.3s;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.orb-1 {
|
| 71 |
+
top: -10%;
|
| 72 |
+
left: -10%;
|
| 73 |
+
width: 50vw;
|
| 74 |
+
height: 50vw;
|
| 75 |
+
background: var(--accent);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.orb-2 {
|
| 79 |
+
bottom: -10%;
|
| 80 |
+
right: -10%;
|
| 81 |
+
width: 40vw;
|
| 82 |
+
height: 40vw;
|
| 83 |
+
background: var(--accent-2);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.navbar {
|
| 87 |
+
position: fixed;
|
| 88 |
+
top: 16px;
|
| 89 |
+
left: 50%;
|
| 90 |
+
transform: translateX(-50%);
|
| 91 |
+
width: 95%;
|
| 92 |
+
max-width: 1300px;
|
| 93 |
+
height: auto;
|
| 94 |
+
min-height: 72px;
|
| 95 |
+
background: var(--bg-nav);
|
| 96 |
+
backdrop-filter: blur(24px);
|
| 97 |
+
border: 1px solid var(--border);
|
| 98 |
+
border-radius: 20px;
|
| 99 |
+
display: flex;
|
| 100 |
+
flex-wrap: wrap;
|
| 101 |
+
align-items: center;
|
| 102 |
+
justify-content: space-between;
|
| 103 |
+
padding: 10px 20px;
|
| 104 |
+
z-index: 1000;
|
| 105 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
|
| 106 |
+
gap: 15px;
|
| 107 |
+
transition: background 0.3s, border-color 0.3s;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.brand {
|
| 111 |
+
font-weight: 700;
|
| 112 |
+
font-size: 22px;
|
| 113 |
+
text-decoration: none;
|
| 114 |
+
color: var(--text-main);
|
| 115 |
+
display: flex;
|
| 116 |
+
align-items: center;
|
| 117 |
+
gap: 10px;
|
| 118 |
+
�� }
|
| 119 |
+
|
| 120 |
+
.brand-icon {
|
| 121 |
+
width: 38px;
|
| 122 |
+
height: 38px;
|
| 123 |
+
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
| 124 |
+
border-radius: 11px;
|
| 125 |
+
display: flex;
|
| 126 |
+
align-items: center;
|
| 127 |
+
justify-content: center;
|
| 128 |
+
color: #fff;
|
| 129 |
+
flex-shrink: 0;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
.search-container {
|
| 133 |
+
flex: 1;
|
| 134 |
+
max-width: 600px;
|
| 135 |
+
width: 100%;
|
| 136 |
+
margin: 0;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.search-bar {
|
| 140 |
+
display: flex;
|
| 141 |
+
align-items: center;
|
| 142 |
+
background: var(--bg-input);
|
| 143 |
+
border: 1px solid var(--border);
|
| 144 |
+
border-radius: 100px;
|
| 145 |
+
padding: 4px;
|
| 146 |
+
transition: var(--transition), background-color 0.3s;
|
| 147 |
+
width: 100%;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.search-bar:focus-within {
|
| 151 |
+
border-color: var(--accent);
|
| 152 |
+
background: var(--bg-input-focus);
|
| 153 |
+
box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
.search-bar input {
|
| 157 |
+
flex: 1;
|
| 158 |
+
background: transparent;
|
| 159 |
+
border: none;
|
| 160 |
+
padding: 10px 18px;
|
| 161 |
+
color: var(--text-main);
|
| 162 |
+
font-size: 15px;
|
| 163 |
+
width: 100%;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.search-bar input::placeholder {
|
| 167 |
+
color: var(--text-sub);
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
/* زر تبديل السمة */
|
| 171 |
+
#theme-toggle {
|
| 172 |
+
background: none;
|
| 173 |
+
border: none;
|
| 174 |
+
color: var(--text-main);
|
| 175 |
+
cursor: pointer;
|
| 176 |
+
padding: 5px;
|
| 177 |
+
font-size: 20px;
|
| 178 |
+
width: 40px;
|
| 179 |
+
height: 40px;
|
| 180 |
+
border-radius: 50%;
|
| 181 |
+
display: flex;
|
| 182 |
+
align-items: center;
|
| 183 |
+
justify-content: center;
|
| 184 |
+
transition: background 0.3s, color 0.3s;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
#theme-toggle:hover {
|
| 188 |
+
background: var(--border);
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
.tabs-bar {
|
| 192 |
+
position: fixed;
|
| 193 |
+
top: 105px;
|
| 194 |
+
left: 50%;
|
| 195 |
+
transform: translateX(-50%);
|
| 196 |
+
width: 95%;
|
| 197 |
+
max-width: 1300px;
|
| 198 |
+
display: flex;
|
| 199 |
+
gap: 8px;
|
| 200 |
+
z-index: 999;
|
| 201 |
+
overflow-x: auto;
|
| 202 |
+
padding-bottom: 5px;
|
| 203 |
+
scrollbar-width: none;
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
.tabs-bar::-webkit-scrollbar {
|
| 207 |
+
display: none;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.tab-pill {
|
| 211 |
+
padding: 8px 16px;
|
| 212 |
+
border-radius: 100px;
|
| 213 |
+
background: var(--bg-card);
|
| 214 |
+
border: 1px solid var(--border);
|
| 215 |
+
color: var(--text-sub);
|
| 216 |
+
font-size: 13px;
|
| 217 |
+
cursor: pointer;
|
| 218 |
+
transition: 0.3s;
|
| 219 |
+
display: flex;
|
| 220 |
+
align-items: center;
|
| 221 |
+
gap: 6px;
|
| 222 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
|
| 223 |
+
white-space: nowrap;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
.tab-pill.active {
|
| 227 |
+
background: var(--accent);
|
| 228 |
+
color: #fff;
|
| 229 |
+
border-color: var(--accent);
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
.page-wrapper {
|
| 233 |
+
max-width: 1300px;
|
| 234 |
+
margin: 180px auto 50px;
|
| 235 |
+
padding: 0 16px;
|
| 236 |
+
display: flex;
|
| 237 |
+
flex-direction: column;
|
| 238 |
+
gap: 30px;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.results-area {
|
| 242 |
+
min-width: 0;
|
| 243 |
+
width: 100%;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.gsc-control-cse {
|
| 247 |
+
background: transparent !important;
|
| 248 |
+
border: none !important;
|
| 249 |
+
padding: 0 !important;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
.gsc-result {
|
| 253 |
+
background: var(--bg-card) !important;
|
| 254 |
+
border: 1px solid var(--border) !important;
|
| 255 |
+
border-radius: 16px !important;
|
| 256 |
+
padding: 16px !important;
|
| 257 |
+
margin-bottom: 15px !important;
|
| 258 |
+
transition: var(--transition) !important;
|
| 259 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
@media (min-width: 768px) {
|
| 263 |
+
.gsc-result {
|
| 264 |
+
padding: 22px !important;
|
| 265 |
+
}
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.gsc-result:hover {
|
| 269 |
+
border-color: var(--accent) !important;
|
| 270 |
+
transform: translateX(-5px) !important;
|
| 271 |
+
background: var(--bg-input) !important;
|
| 272 |
+
box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08) !important;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
.gs-title,
|
| 276 |
+
.gs-title * {
|
| 277 |
+
color: var(--accent) !important;
|
| 278 |
+
text-decoration: none !important;
|
| 279 |
+
font-size: 16px !important;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
@media (min-width: 768px) {
|
| 283 |
+
.gs-title,
|
| 284 |
+
.gs-title * {
|
| 285 |
+
font-size: 18px !important;
|
| 286 |
+
}
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.gs-snippet {
|
| 290 |
+
color: var(--text-sub) !important;
|
| 291 |
+
line-height: 1.6 !important;
|
| 292 |
+
font-size: 14px !important;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
.gsc-adBlock,
|
| 296 |
+
.gsc-branding,
|
| 297 |
+
.gsc-search-box,
|
| 298 |
+
.gcsc-branding,
|
| 299 |
+
.gsc-branding-text,
|
| 300 |
+
.gsc-branding-img,
|
| 301 |
+
.gsc-branding-img-noclear,
|
| 302 |
+
.gs-watermark,
|
| 303 |
+
.gsc-results-branding,
|
| 304 |
+
.gcsc-find-more-on-google,
|
| 305 |
+
.gcsc-find-more-on-google-root,
|
| 306 |
+
.gsc-result-info,
|
| 307 |
+
.gsc-orderby,
|
| 308 |
+
.gsc-selected-option-container,
|
| 309 |
+
.gsc-thumbnail-inside,
|
| 310 |
+
.gsc-tabsArea,
|
| 311 |
+
.gsc-tabsAreaInvisible,
|
| 312 |
+
.gsc-refinementHeader,
|
| 313 |
+
.gsc-refinementBlock {
|
| 314 |
+
display: none !important;
|
| 315 |
+
visibility: hidden !important;
|
| 316 |
+
opacity: 0 !important;
|
| 317 |
+
height: 0 !important;
|
| 318 |
+
width: 0 !important;
|
| 319 |
+
margin: 0 !important;
|
| 320 |
+
padding: 0 !important;
|
| 321 |
+
pointer-events: none !important;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
.gsc-above-wrapper-area {
|
| 325 |
+
border: none !important;
|
| 326 |
+
padding: 0 !important;
|
| 327 |
+
margin: 0 !important;
|
| 328 |
+
height: 0 !important;
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.sidebar {
|
| 332 |
+
width: 100%;
|
| 333 |
+
order: 2;
|
| 334 |
+
margin-top: 20px;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.widget {
|
| 338 |
+
background: var(--bg-card);
|
| 339 |
+
border: 1px solid var(--border);
|
| 340 |
+
border-radius: 20px;
|
| 341 |
+
padding: 20px;
|
| 342 |
+
text-align: center;
|
| 343 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
.ai-avatar {
|
| 347 |
+
width: 60px;
|
| 348 |
+
height: 60px;
|
| 349 |
+
border-radius: 50%;
|
| 350 |
+
background: var(--bg-base);
|
| 351 |
+
border: 2px solid var(--accent);
|
| 352 |
+
padding: 5px;
|
| 353 |
+
margin-bottom: 15px;
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
.btn-ai {
|
| 357 |
+
display: block;
|
| 358 |
+
margin-top: 15px;
|
| 359 |
+
padding: 12px;
|
| 360 |
+
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
| 361 |
+
color: #fff;
|
| 362 |
+
border-radius: 12px;
|
| 363 |
+
text-decoration: none;
|
| 364 |
+
font-weight: 600;
|
| 365 |
+
font-size: 14px;
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
@media (min-width: 768px) {
|
| 369 |
+
.navbar {
|
| 370 |
+
flex-wrap: nowrap;
|
| 371 |
+
padding: 0 20px;
|
| 372 |
+
height: 72px;
|
| 373 |
+
gap: 0;
|
| 374 |
+
}
|
| 375 |
+
.search-container {
|
| 376 |
+
margin: 0 24px;
|
| 377 |
+
}
|
| 378 |
+
.tabs-bar {
|
| 379 |
+
top: 105px;
|
| 380 |
+
overflow-x: visible;
|
| 381 |
+
padding-bottom: 0;
|
| 382 |
+
justify-content: flex-start;
|
| 383 |
+
}
|
| 384 |
+
.tab-pill {
|
| 385 |
+
padding: 8px 20px;
|
| 386 |
+
font-size: 13px;
|
| 387 |
+
gap: 8px;
|
| 388 |
+
}
|
| 389 |
+
.page-wrapper {
|
| 390 |
+
margin: 180px auto 50px;
|
| 391 |
+
grid-template-columns: 1fr 300px;
|
| 392 |
+
display: grid;
|
| 393 |
+
}
|
| 394 |
+
.sidebar {
|
| 395 |
+
order: unset;
|
| 396 |
+
margin-top: 0;
|
| 397 |
+
}
|
| 398 |
+
}
|
| 399 |
+
|
| 400 |
+
@media (max-width: 767px) {
|
| 401 |
+
.navbar {
|
| 402 |
+
top: 10px;
|
| 403 |
+
border-radius: 16px;
|
| 404 |
+
padding: 12px 16px;
|
| 405 |
+
}
|
| 406 |
+
.brand {
|
| 407 |
+
font-size: 18px;
|
| 408 |
+
}
|
| 409 |
+
.brand-icon {
|
| 410 |
+
width: 32px;
|
| 411 |
+
height: 32px;
|
| 412 |
+
border-radius: 8px;
|
| 413 |
+
font-size: 14px;
|
| 414 |
+
}
|
| 415 |
+
.tabs-bar {
|
| 416 |
+
top: 135px;
|
| 417 |
+
}
|
| 418 |
+
.page-wrapper {
|
| 419 |
+
margin-top: 190px;
|
| 420 |
+
}
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
.sidebar-toggle {
|
| 424 |
+
display: none;
|
| 425 |
+
width: 100%;
|
| 426 |
+
background: var(--bg-card);
|
| 427 |
+
border: 1px solid var(--border);
|
| 428 |
+
border-radius: 16px;
|
| 429 |
+
padding: 15px;
|
| 430 |
+
text-align: center;
|
| 431 |
+
font-weight: 600;
|
| 432 |
+
color: var(--text-main);
|
| 433 |
+
cursor: pointer;
|
| 434 |
+
margin-bottom: 15px;
|
| 435 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
.sidebar-content {
|
| 439 |
+
display: block;
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
@media (max-width: 767px) {
|
| 443 |
+
.sidebar-toggle {
|
| 444 |
+
display: block;
|
| 445 |
+
}
|
| 446 |
+
.sidebar-content {
|
| 447 |
+
display: none;
|
| 448 |
+
}
|
| 449 |
+
.sidebar-content.active {
|
| 450 |
+
display: block;
|
| 451 |
+
}
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
/* أيقونات المواقع */
|
| 455 |
+
.gs-favicon {
|
| 456 |
+
width: 20px;
|
| 457 |
+
height: 20px;
|
| 458 |
+
vertical-align: middle;
|
| 459 |
+
margin-left: 10px;
|
| 460 |
+
border-radius: 4px;
|
| 461 |
+
display: inline-block;
|
| 462 |
+
flex-shrink: 0;
|
| 463 |
+
object-fit: contain;
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
.gs-title {
|
| 467 |
+
display: flex !important;
|
| 468 |
+
align-items: center;
|
| 469 |
+
flex-wrap: wrap;
|
| 470 |
+
}
|
| 471 |
+
</style>
|
| 472 |
</head>
|
| 473 |
<body>
|
| 474 |
+
<div class="orb orb-1"></div>
|
| 475 |
+
<div class="orb orb-2"></div>
|
| 476 |
+
|
| 477 |
+
<nav class="navbar">
|
| 478 |
+
<a class="brand" href="index.html">
|
| 479 |
+
<div class="brand-icon"><i class="fa-solid fa-bolt"></i></div>
|
| 480 |
+
<span>SurfGO</span>
|
| 481 |
+
</a>
|
| 482 |
+
<div class="search-container">
|
| 483 |
+
<form class="search-bar" id="search-form">
|
| 484 |
+
<input id="main-input" placeholder="ابحث في الويب..." type="text" />
|
| 485 |
+
<button
|
| 486 |
+
style="background:none; border:none; color:var(--accent); cursor:pointer; padding:0 15px;"
|
| 487 |
+
type="submit">
|
| 488 |
+
<i class="fa-solid fa-search"></i>
|
| 489 |
+
</button>
|
| 490 |
+
</form>
|
| 491 |
+
</div>
|
| 492 |
+
<!-- زر تبديل الوضع الداكن/الفاتح -->
|
| 493 |
+
<button id="theme-toggle" aria-label="تغيير السمة">
|
| 494 |
+
<i class="fa-solid fa-moon"></i>
|
| 495 |
+
</button>
|
| 496 |
+
</nav>
|
| 497 |
+
|
| 498 |
+
<div class="tabs-bar">
|
| 499 |
+
<button class="tab-pill active" data-tab="all"><i class="fa-solid fa-globe"></i> الويب</button>
|
| 500 |
+
<button class="tab-pill" data-tab="news"><i class="fa-solid fa-newspaper"></i> أخبار</button>
|
| 501 |
+
<button class="tab-pill" data-tab="images"><i class="fa-solid fa-image"></i> صور</button>
|
| 502 |
+
<button class="tab-pill" data-tab="videos"><i class="fa-solid fa-play"></i> فيديو</button>
|
| 503 |
+
</div>
|
| 504 |
+
|
| 505 |
+
<div class="page-wrapper">
|
| 506 |
+
<main class="results-area">
|
| 507 |
+
<div id="loading-text" style="color:var(--text-sub); margin-bottom:20px; font-size: 14px;">
|
| 508 |
+
جاري استدعاء البيانات من SurfGO...
|
| 509 |
+
</div>
|
| 510 |
+
<div id="results-container"></div>
|
| 511 |
+
</main>
|
| 512 |
+
|
| 513 |
+
<aside class="sidebar">
|
| 514 |
+
<button class="sidebar-toggle" id="sidebarToggle">
|
| 515 |
+
<i class="fa-solid fa-server" style="margin-left: 8px; color: var(--accent);"></i> المحركات النشطة
|
| 516 |
+
<i class="fa-solid fa-chevron-down" style="margin-right: 8px; font-size: 12px;"></i>
|
| 517 |
+
</button>
|
| 518 |
+
<div class="sidebar-content" id="sidebarContent">
|
| 519 |
+
<div class="widget">
|
| 520 |
+
<div class="brand-icon" style="margin: 0 auto 15px auto;">
|
| 521 |
+
<i class="fa-solid fa-server"></i>
|
| 522 |
+
</div>
|
| 523 |
+
<h3 style="font-size: 16px; margin-bottom: 15px;">المحركات النشطة</h3>
|
| 524 |
+
<div style="display: flex; flex-direction: column; gap: 10px; text-align: right;">
|
| 525 |
+
<div
|
| 526 |
+
style="display: flex; align-items: center; justify-content: space-between; background: var(--bg-base); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border);">
|
| 527 |
+
<span style="font-size: 13px;">SurfGO Index</span>
|
| 528 |
+
<div style="display: flex; align-items: center; gap: 5px; color: #10b981; font-size: 11px;">
|
| 529 |
+
�� <span style="width: 6px; height: 6px; background: #10b981; border-radius: 50%;"></span>
|
| 530 |
+
نشط
|
| 531 |
+
</div>
|
| 532 |
+
</div>
|
| 533 |
+
<div
|
| 534 |
+
style="display: flex; align-items: center; justify-content: space-between; background: var(--bg-base); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border);">
|
| 535 |
+
<span style="font-size: 13px;">الأخبار العالمية</span>
|
| 536 |
+
<div style="display: flex; align-items: center; gap: 5px; color: #10b981; font-size: 11px;">
|
| 537 |
+
<span style="width: 6px; height: 6px; background: #10b981; border-radius: 50%;"></span>
|
| 538 |
+
نشط
|
| 539 |
+
</div>
|
| 540 |
+
</div>
|
| 541 |
+
<div
|
| 542 |
+
style="display: flex; align-items: center; justify-content: space-between; background: var(--bg-base); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border);">
|
| 543 |
+
<span style="font-size: 13px;">الوسائط المرئية</span>
|
| 544 |
+
<div style="display: flex; align-items: center; gap: 5px; color: #10b981; font-size: 11px;">
|
| 545 |
+
<span style="width: 6px; height: 6px; background: #10b981; border-radius: 50%;"></span>
|
| 546 |
+
نشط
|
| 547 |
+
</div>
|
| 548 |
+
</div>
|
| 549 |
+
<div
|
| 550 |
+
style="display: flex; align-items: center; justify-content: space-between; background: var(--bg-base); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border);">
|
| 551 |
+
<span style="font-size: 13px;">خدمة الفيديو</span>
|
| 552 |
+
<div style="display: flex; align-items: center; gap: 5px; color: #10b981; font-size: 11px;">
|
| 553 |
+
<span style="width: 6px; height: 6px; background: #10b981; border-radius: 50%;"></span>
|
| 554 |
+
نشط
|
| 555 |
+
</div>
|
| 556 |
+
</div>
|
| 557 |
+
</div>
|
| 558 |
+
<p style="font-size: 11px; color: var(--text-sub); margin-top: 15px;">مدعوم بواسطة AnesNT Core</p>
|
| 559 |
+
</div>
|
| 560 |
+
</div>
|
| 561 |
+
</aside>
|
| 562 |
+
</div>
|
| 563 |
+
|
| 564 |
+
<script>
|
| 565 |
+
(function() {
|
| 566 |
+
// ─────────────────────────────────────
|
| 567 |
+
// إدارة السمة (داكن/فاتح)
|
| 568 |
+
// ─────────────────────────────────────
|
| 569 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 570 |
+
const themeIcon = themeToggle.querySelector('i');
|
| 571 |
+
|
| 572 |
+
function setTheme(theme) {
|
| 573 |
+
document.documentElement.setAttribute('data-theme', theme);
|
| 574 |
+
localStorage.setItem('surfgo-theme', theme);
|
| 575 |
+
if (theme === 'dark') {
|
| 576 |
+
themeIcon.classList.remove('fa-moon');
|
| 577 |
+
themeIcon.classList.add('fa-sun');
|
| 578 |
+
} else {
|
| 579 |
+
themeIcon.classList.remove('fa-sun');
|
| 580 |
+
themeIcon.classList.add('fa-moon');
|
| 581 |
+
}
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
// استعادة السمة المحفوظة أو استخدام الفاتح كإفتراضي
|
| 585 |
+
const savedTheme = localStorage.getItem('surfgo-theme') || 'light';
|
| 586 |
+
setTheme(savedTheme);
|
| 587 |
+
|
| 588 |
+
themeToggle.addEventListener('click', () => {
|
| 589 |
+
const current = document.documentElement.getAttribute('data-theme');
|
| 590 |
+
const next = current === 'dark' ? 'light' : 'dark';
|
| 591 |
+
setTheme(next);
|
| 592 |
+
});
|
| 593 |
+
|
| 594 |
+
// ─────────────────────────────────────
|
| 595 |
+
// محركات البحث والإعدادات الأخرى
|
| 596 |
+
// ─────────────────────────────────────
|
| 597 |
+
const ENGINES = {
|
| 598 |
+
all: '75aa960081baa4f0c',
|
| 599 |
+
news: '35b0f5b6012e94f78',
|
| 600 |
+
images: '23c7fd94975714dd8',
|
| 601 |
+
videos: 'b11f5dceb04784b9f'
|
| 602 |
+
};
|
| 603 |
+
|
| 604 |
+
const params = new URLSearchParams(window.location.search);
|
| 605 |
+
let query = params.get('q');
|
| 606 |
+
let currentTab = params.get('tab') || 'all';
|
| 607 |
+
const inputField = document.getElementById('main-input');
|
| 608 |
+
const resultsContainer = document.getElementById('results-container');
|
| 609 |
+
const loadingText = document.getElementById('loading-text');
|
| 610 |
+
const sidebarToggle = document.getElementById('sidebarToggle');
|
| 611 |
+
const sidebarContent = document.getElementById('sidebarContent');
|
| 612 |
+
|
| 613 |
+
if (sidebarToggle) {
|
| 614 |
+
sidebarToggle.addEventListener('click', () => {
|
| 615 |
+
sidebarContent.classList.toggle('active');
|
| 616 |
+
const icon = sidebarToggle.querySelector('.fa-chevron-down, .fa-chevron-up');
|
| 617 |
+
if (sidebarContent.classList.contains('active')) {
|
| 618 |
+
icon.classList.remove('fa-chevron-down');
|
| 619 |
+
icon.classList.add('fa-chevron-up');
|
| 620 |
+
} else {
|
| 621 |
+
icon.classList.remove('fa-chevron-up');
|
| 622 |
+
icon.classList.add('fa-chevron-down');
|
| 623 |
+
}
|
| 624 |
+
});
|
| 625 |
+
}
|
| 626 |
+
|
| 627 |
+
document.querySelectorAll('.tab-pill').forEach(btn => {
|
| 628 |
+
btn.classList.toggle('active', btn.dataset.tab === currentTab);
|
| 629 |
+
});
|
| 630 |
+
|
| 631 |
+
if (query) {
|
| 632 |
+
inputField.value = query;
|
| 633 |
+
document.title = `${query} - SurfGO`;
|
| 634 |
+
loadSurfEngine(currentTab);
|
| 635 |
+
} else {
|
| 636 |
+
loadingText.textContent = "يرجى إدخال كلمة بحث للبدء.";
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
function loadSurfEngine(tab) {
|
| 640 |
+
const cx = ENGINES[tab];
|
| 641 |
+
resultsContainer.innerHTML = '';
|
| 642 |
+
loadingText.style.display = 'block';
|
| 643 |
+
document.querySelectorAll('.tab-pill').forEach(btn => {
|
| 644 |
+
btn.classList.toggle('active', btn.dataset.tab === tab);
|
| 645 |
+
});
|
| 646 |
+
|
| 647 |
+
const oldScript = document.getElementById('cse-logic');
|
| 648 |
+
if (oldScript) oldScript.remove();
|
| 649 |
+
|
| 650 |
+
const script = document.createElement('script');
|
| 651 |
+
script.id = 'cse-logic';
|
| 652 |
+
script.src = `https://cse.google.com/cse.js?cx=${cx}`;
|
| 653 |
+
script.async = true;
|
| 654 |
+
script.onload = () => {
|
| 655 |
+
const gcseDiv = document.createElement('div');
|
| 656 |
+
gcseDiv.className = 'gcse-searchresults-only';
|
| 657 |
+
gcseDiv.setAttribute('data-query', query);
|
| 658 |
+
resultsContainer.appendChild(gcseDiv);
|
| 659 |
+
setTimeout(() => {
|
| 660 |
+
loadingText.style.display = 'none';
|
| 661 |
+
}, 1000);
|
| 662 |
+
};
|
| 663 |
+
document.head.appendChild(script);
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
document.querySelectorAll('.tab-pill').forEach(btn => {
|
| 667 |
+
btn.addEventListener('click', () => {
|
| 668 |
+
currentTab = btn.dataset.tab;
|
| 669 |
+
const newUrl = `${window.location.pathname}?q=${encodeURIComponent(query || '')}&tab=${currentTab}`;
|
| 670 |
+
window.history.pushState({ path: newUrl }, '', newUrl);
|
| 671 |
+
if (query) loadSurfEngine(currentTab);
|
| 672 |
+
else {
|
| 673 |
+
document.querySelectorAll('.tab-pill').forEach(b => b.classList.toggle('active', b.dataset
|
| 674 |
+
.tab === currentTab));
|
| 675 |
+
}
|
| 676 |
+
});
|
| 677 |
+
});
|
| 678 |
+
|
| 679 |
+
document.getElementById('search-form').addEventListener('submit', (e) => {
|
| 680 |
+
e.preventDefault();
|
| 681 |
+
query = inputField.value;
|
| 682 |
+
if (query) {
|
| 683 |
+
const newUrl = `${window.location.pathname}?q=${encodeURIComponent(query)}&tab=${currentTab}`;
|
| 684 |
+
window.history.pushState({ path: newUrl }, '', newUrl);
|
| 685 |
+
loadSurfEngine(currentTab);
|
| 686 |
+
}
|
| 687 |
+
});
|
| 688 |
+
|
| 689 |
+
// ─────────────────────────────────────
|
| 690 |
+
// المراقب الذكي: إخفاء عناصر غوغل + أيقونات المواقع
|
| 691 |
+
// ─────────────────────────────────────
|
| 692 |
+
const observer = new MutationObserver(() => {
|
| 693 |
+
document.querySelectorAll(
|
| 694 |
+
'.gsc-adBlock, .gcsc-branding, .gsc-result-info, .gsc-tabsArea, .gsc-refinementHeader'
|
| 695 |
+
).forEach(el => el.remove());
|
| 696 |
+
|
| 697 |
+
document.querySelectorAll('.gsc-result').forEach(result => {
|
| 698 |
+
if (result.dataset.faviconAdded) return;
|
| 699 |
+
const link = result.querySelector('a.gs-title');
|
| 700 |
+
if (!link) return;
|
| 701 |
+
|
| 702 |
+
let domain = '';
|
| 703 |
+
try {
|
| 704 |
+
if (link.href) {
|
| 705 |
+
const url = new URL(link.href);
|
| 706 |
+
domain = url.hostname;
|
| 707 |
+
}
|
| 708 |
+
} catch (e) {}
|
| 709 |
+
|
| 710 |
+
const favicon = document.createElement('img');
|
| 711 |
+
favicon.className = 'gs-favicon';
|
| 712 |
+
favicon.alt = 'شعار الموقع';
|
| 713 |
+
favicon.loading = 'lazy';
|
| 714 |
+
|
| 715 |
+
if (domain) {
|
| 716 |
+
favicon.src = `https://www.google.com/s2/favicons?domain=${domain}&sz=32`;
|
| 717 |
+
favicon.onerror = () => {
|
| 718 |
+
favicon.src =
|
| 719 |
+
'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236366f1"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>';
|
| 720 |
+
};
|
| 721 |
+
} else {
|
| 722 |
+
favicon.src =
|
| 723 |
+
'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236366f1"><circle cx="12" cy="12" r="10"/></svg>';
|
| 724 |
+
}
|
| 725 |
+
|
| 726 |
+
if (link.firstChild) {
|
| 727 |
+
link.insertBefore(favicon, link.firstChild);
|
| 728 |
+
} else {
|
| 729 |
+
link.appendChild(favicon);
|
| 730 |
+
}
|
| 731 |
+
result.dataset.faviconAdded = 'true';
|
| 732 |
+
});
|
| 733 |
+
});
|
| 734 |
+
|
| 735 |
+
observer.observe(document.body, { childList: true, subtree: true });
|
| 736 |
+
})();
|
| 737 |
+
</script>
|
| 738 |
</body>
|
| 739 |
+
</html>
|