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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Choose a Site</title>
|
7 |
+
<style>
|
8 |
+
/* Основные стили */
|
9 |
+
:root {
|
10 |
+
--background-light: #ffffff;
|
11 |
+
--background-dark: #000000;
|
12 |
+
--text-light: #111827;
|
13 |
+
--text-dark: #f3f4f6;
|
14 |
+
--primary-color: #000000;
|
15 |
+
--primary-hover: #333333;
|
16 |
+
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
17 |
+
--border-radius: 8px;
|
18 |
+
}
|
19 |
+
|
20 |
+
body {
|
21 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
22 |
+
background-color: var(--background-light);
|
23 |
+
color: var(--text-light);
|
24 |
+
margin: 0;
|
25 |
+
padding: 20px;
|
26 |
+
display: flex;
|
27 |
+
flex-direction: column;
|
28 |
+
align-items: center;
|
29 |
+
justify-content: center;
|
30 |
+
min-height: 100vh;
|
31 |
+
transition: background 0.3s ease, color 0.3s ease;
|
32 |
+
}
|
33 |
+
|
34 |
+
body.dark-mode {
|
35 |
+
background-color: var(--background-dark);
|
36 |
+
color: var(--text-dark);
|
37 |
+
}
|
38 |
+
|
39 |
+
.sites-list {
|
40 |
+
margin-top: 24px;
|
41 |
+
background: white;
|
42 |
+
padding: 20px;
|
43 |
+
border-radius: var(--border-radius);
|
44 |
+
box-shadow: var(--shadow);
|
45 |
+
width: 100%;
|
46 |
+
max-width: 500px;
|
47 |
+
transition: background 0.3s ease, transform 0.3s ease;
|
48 |
+
}
|
49 |
+
|
50 |
+
body.dark-mode .sites-list {
|
51 |
+
background: #111111;
|
52 |
+
}
|
53 |
+
|
54 |
+
.sites-list h3 {
|
55 |
+
margin: 0 0 16px 0;
|
56 |
+
font-size: 18px;
|
57 |
+
font-weight: 600;
|
58 |
+
color: inherit;
|
59 |
+
}
|
60 |
+
|
61 |
+
#sitesList {
|
62 |
+
display: flex;
|
63 |
+
flex-direction: column;
|
64 |
+
gap: 8px;
|
65 |
+
}
|
66 |
+
|
67 |
+
#sitesList div {
|
68 |
+
background: #f3f4f6;
|
69 |
+
padding: 12px;
|
70 |
+
border-radius: var(--border-radius);
|
71 |
+
font-size: 14px;
|
72 |
+
color: inherit;
|
73 |
+
transition: background 0.3s ease, transform 0.2s ease;
|
74 |
+
cursor: pointer;
|
75 |
+
display: flex;
|
76 |
+
justify-content: space-between;
|
77 |
+
align-items: center;
|
78 |
+
}
|
79 |
+
|
80 |
+
body.dark-mode #sitesList div {
|
81 |
+
background: #1a1a1a;
|
82 |
+
}
|
83 |
+
|
84 |
+
#sitesList div:hover {
|
85 |
+
background: #e5e7eb;
|
86 |
+
transform: translateX(5px);
|
87 |
+
}
|
88 |
+
|
89 |
+
body.dark-mode #sitesList div:hover {
|
90 |
+
background: #2d2d2d;
|
91 |
+
}
|
92 |
+
|
93 |
+
.loader {
|
94 |
+
border: 4px solid #f3f3f3;
|
95 |
+
border-top: 4px solid var(--primary-color);
|
96 |
+
border-radius: 50%;
|
97 |
+
width: 30px;
|
98 |
+
height: 30px;
|
99 |
+
animation: spin 1s linear infinite;
|
100 |
+
display: none;
|
101 |
+
margin: 20px auto;
|
102 |
+
}
|
103 |
+
|
104 |
+
@keyframes spin {
|
105 |
+
0% { transform: rotate(0deg); }
|
106 |
+
100% { transform: rotate(360deg); }
|
107 |
+
}
|
108 |
+
|
109 |
+
.theme-toggle {
|
110 |
+
position: fixed;
|
111 |
+
top: 20px;
|
112 |
+
right: 20px;
|
113 |
+
background: var(--primary-color);
|
114 |
+
color: white;
|
115 |
+
border: none;
|
116 |
+
padding: 10px 15px;
|
117 |
+
border-radius: var(--border-radius);
|
118 |
+
cursor: pointer;
|
119 |
+
transition: background 0.3s ease, transform 0.2s ease;
|
120 |
+
}
|
121 |
+
|
122 |
+
.theme-toggle:hover {
|
123 |
+
background: var(--primary-hover);
|
124 |
+
transform: scale(1.1);
|
125 |
+
}
|
126 |
+
|
127 |
+
.exit-button {
|
128 |
+
position: fixed;
|
129 |
+
top: 20px;
|
130 |
+
left: 20px;
|
131 |
+
background: var(--primary-color);
|
132 |
+
color: white;
|
133 |
+
border: none;
|
134 |
+
padding: 10px 15px;
|
135 |
+
border-radius: var(--border-radius);
|
136 |
+
cursor: pointer;
|
137 |
+
transition: background 0.3s ease, transform 0.2s ease;
|
138 |
+
display: none; /* Скрыта по умолчанию */
|
139 |
+
}
|
140 |
+
|
141 |
+
.exit-button:hover {
|
142 |
+
background: var(--primary-hover);
|
143 |
+
transform: scale(1.1);
|
144 |
+
}
|
145 |
+
|
146 |
+
.translate-button {
|
147 |
+
position: fixed;
|
148 |
+
top: 60px;
|
149 |
+
left: 20px;
|
150 |
+
background: var(--primary-color);
|
151 |
+
color: white;
|
152 |
+
border: none;
|
153 |
+
padding: 10px 15px;
|
154 |
+
border-radius: var(--border-radius);
|
155 |
+
cursor: pointer;
|
156 |
+
transition: background 0.3s ease, transform 0.2s ease;
|
157 |
+
display: none; /* Скрыта по умолчанию */
|
158 |
+
}
|
159 |
+
|
160 |
+
.translate-button:hover {
|
161 |
+
background: var(--primary-hover);
|
162 |
+
transform: scale(1.1);
|
163 |
+
}
|
164 |
+
|
165 |
+
.pagination {
|
166 |
+
display: flex;
|
167 |
+
justify-content: center;
|
168 |
+
gap: 10px;
|
169 |
+
margin-top: 20px;
|
170 |
+
}
|
171 |
+
|
172 |
+
.pagination button {
|
173 |
+
background: var(--primary-color);
|
174 |
+
color: white;
|
175 |
+
border: none;
|
176 |
+
padding: 8px 12px;
|
177 |
+
border-radius: var(--border-radius);
|
178 |
+
cursor: pointer;
|
179 |
+
transition: background 0.3s ease, transform 0.2s ease;
|
180 |
+
}
|
181 |
+
|
182 |
+
.pagination button:hover {
|
183 |
+
background: var(--primary-hover);
|
184 |
+
transform: scale(1.1);
|
185 |
+
}
|
186 |
+
|
187 |
+
.pagination button:disabled {
|
188 |
+
background: #cccccc;
|
189 |
+
cursor: not-allowed;
|
190 |
+
}
|
191 |
+
|
192 |
+
/* Анимация появления */
|
193 |
+
@keyframes fadeIn {
|
194 |
+
from { opacity: 0; transform: translateY(-10px); }
|
195 |
+
to { opacity: 1; transform: translateY(0); }
|
196 |
+
}
|
197 |
+
|
198 |
+
.sites-list, .theme-toggle, .exit-button, .translate-button, .pagination {
|
199 |
+
animation: fadeIn 0.5s ease-out;
|
200 |
+
}
|
201 |
+
</style>
|
202 |
+
</head>
|
203 |
+
<body>
|
204 |
+
<button class="theme-toggle" onclick="toggleTheme()">🌙</button>
|
205 |
+
<button class="exit-button" onclick="exitSite()">Exit</button>
|
206 |
+
<button class="translate-button" onclick="toggleLanguage()">Перевести на русский</button>
|
207 |
+
|
208 |
+
<div class="sites-list">
|
209 |
+
<h3>Available Sites:</h3>
|
210 |
+
<div id="sitesList"></div>
|
211 |
+
<div class="pagination">
|
212 |
+
<button id="prevPage" disabled>Назад</button>
|
213 |
+
<button id="nextPage">Вперед</button>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
|
217 |
+
<!-- Лоадер -->
|
218 |
+
<div class="loader" id="loader"></div>
|
219 |
+
|
220 |
+
<script>
|
221 |
+
const websims = [
|
222 |
+
"https://fluxai.pro/fast-flux",
|
223 |
+
"https://aivideogenerator.me/ru",
|
224 |
+
"https://airesumebuilder.me/ru",
|
225 |
+
"https://www.ninjaed.com/",
|
226 |
+
"https://essay.art/",
|
227 |
+
"https://deepnostalgia.ai/",
|
228 |
+
"https://aicoloringpages.net/",
|
229 |
+
"https://ailovemusic.net/",
|
230 |
+
"https://onionai.so/",
|
231 |
+
"https://www.yeschat.ai/ru/features/text-to-image-ai",
|
232 |
+
"https://slea.ai/ru",
|
233 |
+
"https://pngmaker.ai/ru",
|
234 |
+
"https://www.ai-portraits.org/ru",
|
235 |
+
"https://remaker.ai/",
|
236 |
+
"https://math.now/ru?utm_source=www.yeschat.ai"
|
237 |
+
];
|
238 |
+
|
239 |
+
const itemsPerPage = 6; // Количество сайтов на одной странице
|
240 |
+
let currentPage = 1; // Текущая страница
|
241 |
+
|
242 |
+
function goToSite(site) {
|
243 |
+
showLoader();
|
244 |
+
setTimeout(() => {
|
245 |
+
window.location.href = site;
|
246 |
+
// Показываем кнопку "Exit" после перехода
|
247 |
+
localStorage.setItem('showExitButton', 'true');
|
248 |
+
|
249 |
+
// Показываем кнопку перевода, если выбран сайт https://essay.art/
|
250 |
+
if (site === "https://essay.art/") {
|
251 |
+
localStorage.setItem('showTranslateButton', 'true');
|
252 |
+
}
|
253 |
+
}, 1000); // Имитация загрузки
|
254 |
+
}
|
255 |
+
|
256 |
+
function exitSite() {
|
257 |
+
showLoader();
|
258 |
+
setTimeout(() => {
|
259 |
+
window.location.href = "https://your-main-site.com"; // Замените на URL вашего главного сайта
|
260 |
+
}, 1000); // Имитация загрузки
|
261 |
+
}
|
262 |
+
|
263 |
+
function toggleLanguage() {
|
264 |
+
const translateButton = document.querySelector('.translate-button');
|
265 |
+
if (translateButton.textContent === "Перевести на русский") {
|
266 |
+
translateButton.textContent = "Translate to English";
|
267 |
+
// Здесь можно добавить логику для перевода страницы
|
268 |
+
} else {
|
269 |
+
translateButton.textContent = "Перевести на русский";
|
270 |
+
// Здесь можно добавить логику для перевода страницы
|
271 |
+
}
|
272 |
+
}
|
273 |
+
|
274 |
+
function showLoader() {
|
275 |
+
document.getElementById('loader').style.display = 'block';
|
276 |
+
}
|
277 |
+
|
278 |
+
function toggleTheme() {
|
279 |
+
document.body.classList.toggle('dark-mode');
|
280 |
+
const themeToggle = document.querySelector('.theme-toggle');
|
281 |
+
themeToggle.textContent = document.body.classList.contains('dark-mode') ? '☀️' : '🌙';
|
282 |
+
}
|
283 |
+
|
284 |
+
// Функция для отображения сайтов на текущей странице
|
285 |
+
function displaySites(page) {
|
286 |
+
const sitesList = document.getElementById('sitesList');
|
287 |
+
sitesList.innerHTML = ''; // Очищаем список
|
288 |
+
|
289 |
+
const startIndex = (page - 1) * itemsPerPage;
|
290 |
+
const endIndex = startIndex + itemsPerPage;
|
291 |
+
const sitesToShow = websims.slice(startIndex, endIndex);
|
292 |
+
|
293 |
+
sitesToShow.forEach(site => {
|
294 |
+
const siteElement = document.createElement('div');
|
295 |
+
siteElement.textContent = site;
|
296 |
+
siteElement.addEventListener('click', () => goToSite(site));
|
297 |
+
sitesList.appendChild(siteElement);
|
298 |
+
});
|
299 |
+
|
300 |
+
// Обновляем состояние кнопок пагинации
|
301 |
+
document.getElementById('prevPage').disabled = page === 1;
|
302 |
+
document.getElementById('nextPage').disabled = endIndex >= websims.length;
|
303 |
+
}
|
304 |
+
|
305 |
+
// Переход на предыдущую страницу
|
306 |
+
document.getElementById('prevPage').addEventListener('click', () => {
|
307 |
+
if (currentPage > 1) {
|
308 |
+
currentPage--;
|
309 |
+
displaySites(currentPage);
|
310 |
+
}
|
311 |
+
});
|
312 |
+
|
313 |
+
// Переход на следующую страницу
|
314 |
+
document.getElementById('nextPage').addEventListener('click', () => {
|
315 |
+
if (currentPage * itemsPerPage < websims.length) {
|
316 |
+
currentPage++;
|
317 |
+
displaySites(currentPage);
|
318 |
+
}
|
319 |
+
});
|
320 |
+
|
321 |
+
// Проверяем, нужно ли показать кнопку "Exit" или "Translate"
|
322 |
+
if (localStorage.getItem('showExitButton') === 'true') {
|
323 |
+
document.querySelector('.exit-button').style.display = 'block';
|
324 |
+
localStorage.removeItem('showExitButton'); // Сбрасываем флаг после показа
|
325 |
+
}
|
326 |
+
|
327 |
+
if (localStorage.getItem('showTranslateButton') === 'true') {
|
328 |
+
document.querySelector('.translate-button').style.display = 'block';
|
329 |
+
localStorage.removeItem('showTranslateButton'); // Сбрасываем флаг после показа
|
330 |
+
}
|
331 |
+
|
332 |
+
// Инициализация: отображаем первую страницу
|
333 |
+
displaySites(currentPage);
|
334 |
+
</script>
|
335 |
+
</body>
|
336 |
+
</html>
|