Dotsent commited on
Commit
743c102
·
verified ·
1 Parent(s): 4b3cb4a

Аха 2025 год, - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +490 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Https Huggingface Co Spaces Dotsent Myspace
3
- emoji: 📊
4
- colorFrom: green
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: https-huggingface-co-spaces-dotsent-myspace
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,490 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ru">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Биология - Проверка знаний</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .question-card {
11
+ transition: all 0.3s ease;
12
+ }
13
+ .question-card:hover {
14
+ transform: translateY(-5px);
15
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
16
+ }
17
+ .answer-option {
18
+ transition: all 0.2s ease;
19
+ }
20
+ .answer-option:hover {
21
+ background-color: #f0fdf4;
22
+ }
23
+ .progress-bar {
24
+ transition: width 0.6s ease;
25
+ }
26
+ .fade-in {
27
+ animation: fadeIn 0.5s ease-in;
28
+ }
29
+ @keyframes fadeIn {
30
+ from { opacity: 0; }
31
+ to { opacity: 1; }
32
+ }
33
+ </style>
34
+ </head>
35
+ <body class="bg-gray-50 font-sans">
36
+ <!-- Header -->
37
+ <header class="bg-green-700 text-white shadow-lg">
38
+ <div class="container mx-auto px-4 py-6">
39
+ <div class="flex flex-col md:flex-row justify-between items-center">
40
+ <div class="flex items-center mb-4 md:mb-0">
41
+ <i class="fas fa-microscope text-3xl mr-3"></i>
42
+ <div>
43
+ <h1 class="text-2xl font-bold">Биология - Проверка знаний</h1>
44
+ <p class="text-green-100">Для учащихся и преподавателей</p>
45
+ </div>
46
+ </div>
47
+ <div class="text-center md:text-right">
48
+ <p class="text-green-100"><i class="fas fa-map-marker-alt mr-1"></i> Ташкент, Мирабад, ул. Нукус 25-а</p>
49
+ <p class="text-green-100"><i class="fas fa-phone mr-1"></i> +998 94 032 72 78</p>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </header>
54
+
55
+ <!-- Main Content -->
56
+ <main class="container mx-auto px-4 py-8">
57
+ <!-- Welcome Section -->
58
+ <section class="mb-12 bg-white rounded-xl shadow-md overflow-hidden fade-in">
59
+ <div class="md:flex">
60
+ <div class="md:w-2/3 p-8">
61
+ <h2 class="text-3xl font-bold text-green-800 mb-4">Добро пожаловать!</h2>
62
+ <p class="text-gray-700 mb-6">
63
+ Этот сайт создан для проверки знаний по биологии. Здесь вы найдете тесты и задачи по различным разделам биологии,
64
+ которые помогут вам подготовиться к урокам и экзаменам.
65
+ </p>
66
+ <div class="flex flex-wrap gap-4">
67
+ <button id="startTestBtn" class="bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300">
68
+ <i class="fas fa-play mr-2"></i> Начать тест
69
+ </button>
70
+ <button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300">
71
+ <i class="fas fa-book mr-2"></i> Материалы
72
+ </button>
73
+ </div>
74
+ </div>
75
+ <div class="md:w-1/3 bg-green-100 flex items-center justify-center p-4">
76
+ <img src="https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
77
+ alt="Биология" class="rounded-lg h-full object-cover">
78
+ </div>
79
+ </div>
80
+ </section>
81
+
82
+ <!-- Test Selection -->
83
+ <section id="testSelection" class="mb-12 fade-in">
84
+ <h2 class="text-2xl font-bold text-gray-800 mb-6 border-b pb-2">Выберите раздел для тестирования</h2>
85
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
86
+ <div class="question-card bg-white p-6 rounded-xl shadow-md cursor-pointer hover:shadow-lg">
87
+ <div class="flex items-center mb-4">
88
+ <div class="bg-green-100 p-3 rounded-full mr-4">
89
+ <i class="fas fa-dna text-green-600 text-xl"></i>
90
+ </div>
91
+ <h3 class="text-xl font-semibold text-gray-800">Молекулярная биология</h3>
92
+ </div>
93
+ <p class="text-gray-600 mb-4">Тест по основам молекулярной биологии, ДНК, РНК и белкам.</p>
94
+ <div class="flex justify-between items-center">
95
+ <span class="text-sm text-gray-500">10 вопросов</span>
96
+ <button class="bg-green-100 text-green-700 px-3 py-1 rounded-full text-sm font-medium">Начать</button>
97
+ </div>
98
+ </div>
99
+
100
+ <div class="question-card bg-white p-6 rounded-xl shadow-md cursor-pointer hover:shadow-lg">
101
+ <div class="flex items-center mb-4">
102
+ <div class="bg-blue-100 p-3 rounded-full mr-4">
103
+ <i class="fas fa-leaf text-blue-600 text-xl"></i>
104
+ </div>
105
+ <h3 class="text-xl font-semibold text-gray-800">Ботаника</h3>
106
+ </div>
107
+ <p class="text-gray-600 mb-4">Тест по строению и функциям растительных организмов.</p>
108
+ <div class="flex justify-between items-center">
109
+ <span class="text-sm text-gray-500">15 вопросов</span>
110
+ <button class="bg-blue-100 text-blue-700 px-3 py-1 rounded-full text-sm font-medium">Начать</button>
111
+ </div>
112
+ </div>
113
+
114
+ <div class="question-card bg-white p-6 rounded-xl shadow-md cursor-pointer hover:shadow-lg">
115
+ <div class="flex items-center mb-4">
116
+ <div class="bg-purple-100 p-3 rounded-full mr-4">
117
+ <i class="fas fa-paw text-purple-600 text-xl"></i>
118
+ </div>
119
+ <h3 class="text-xl font-semibold text-gray-800">Зоология</h3>
120
+ </div>
121
+ <p class="text-gray-600 mb-4">Тест по классификации и особенностям животных.</p>
122
+ <div class="flex justify-between items-center">
123
+ <span class="text-sm text-gray-500">12 вопросов</span>
124
+ <button class="bg-purple-100 text-purple-700 px-3 py-1 rounded-full text-sm font-medium">Начать</button>
125
+ </div>
126
+ </div>
127
+
128
+ <div class="question-card bg-white p-6 rounded-xl shadow-md cursor-pointer hover:shadow-lg">
129
+ <div class="flex items-center mb-4">
130
+ <div class="bg-yellow-100 p-3 rounded-full mr-4">
131
+ <i class="fas fa-brain text-yellow-600 text-xl"></i>
132
+ </div>
133
+ <h3 class="text-xl font-semibold text-gray-800">Анатомия человека</h3>
134
+ </div>
135
+ <p class="text-gray-600 mb-4">Тест по строению и функциям органов человека.</p>
136
+ <div class="flex justify-between items-center">
137
+ <span class="text-sm text-gray-500">20 вопросов</span>
138
+ <button class="bg-yellow-100 text-yellow-700 px-3 py-1 rounded-full text-sm font-medium">Начать</button>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="question-card bg-white p-6 rounded-xl shadow-md cursor-pointer hover:shadow-lg">
143
+ <div class="flex items-center mb-4">
144
+ <div class="bg-red-100 p-3 rounded-full mr-4">
145
+ <i class="fas fa-virus text-red-600 text-xl"></i>
146
+ </div>
147
+ <h3 class="text-xl font-semibold text-gray-800">Микробиология</h3>
148
+ </div>
149
+ <p class="text-gray-600 mb-4">Тест по бактериям, вирусам и другим микроорганизмам.</p>
150
+ <div class="flex justify-between items-center">
151
+ <span class="text-sm text-gray-500">8 вопросов</span>
152
+ <button class="bg-red-100 text-red-700 px-3 py-1 rounded-full text-sm font-medium">Начать</button>
153
+ </div>
154
+ </div>
155
+
156
+ <div class="question-card bg-white p-6 rounded-xl shadow-md cursor-pointer hover:shadow-lg">
157
+ <div class="flex items-center mb-4">
158
+ <div class="bg-indigo-100 p-3 rounded-full mr-4">
159
+ <i class="fas fa-seedling text-indigo-600 text-xl"></i>
160
+ </div>
161
+ <h3 class="text-xl font-semibold text-gray-800">Экология</h3>
162
+ </div>
163
+ <p class="text-gray-600 mb-4">Тест по взаимодействию организмов и окружающей среды.</p>
164
+ <div class="flex justify-between items-center">
165
+ <span class="text-sm text-gray-500">10 вопросов</span>
166
+ <button class="bg-indigo-100 text-indigo-700 px-3 py-1 rounded-full text-sm font-medium">Начать</button>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </section>
171
+
172
+ <!-- Test Section (Hidden by default) -->
173
+ <section id="testSection" class="hidden mb-12 fade-in">
174
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
175
+ <!-- Test Header -->
176
+ <div class="bg-green-700 text-white px-6 py-4">
177
+ <div class="flex justify-between items-center">
178
+ <h2 class="text-xl font-bold">Тест: <span id="testTitle">Молекулярная биология</span></h2>
179
+ <div class="flex items-center">
180
+ <span class="mr-2">Вопрос <span id="currentQuestion">1</span> из <span id="totalQuestions">10</span></span>
181
+ <div class="w-24 bg-green-200 rounded-full h-2.5">
182
+ <div id="progressBar" class="progress-bar bg-green-100 h-2.5 rounded-full" style="width: 10%"></div>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ </div>
187
+
188
+ <!-- Question Content -->
189
+ <div class="p-6">
190
+ <div id="questionContainer">
191
+ <h3 class="text-xl font-semibold text-gray-800 mb-6" id="questionText">Как называется процесс синтеза белка на матрице иРНК?</h3>
192
+
193
+ <div class="space-y-3 mb-8">
194
+ <div class="answer-option flex items-center p-4 border border-gray-200 rounded-lg cursor-pointer hover:border-green-300">
195
+ <div class="w-6 h-6 rounded-full border border-gray-300 mr-3 flex items-center justify-center"></div>
196
+ <span>Транскрипция</span>
197
+ </div>
198
+ <div class="answer-option flex items-center p-4 border border-gray-200 rounded-lg cursor-pointer hover:border-green-300">
199
+ <div class="w-6 h-6 rounded-full border border-gray-300 mr-3 flex items-center justify-center"></div>
200
+ <span>Редупликация</span>
201
+ </div>
202
+ <div class="answer-option flex items-center p-4 border border-gray-200 rounded-lg cursor-pointer hover:border-green-300 bg-green-50 border-green-300">
203
+ <div class="w-6 h-6 rounded-full border border-green-500 mr-3 flex items-center justify-center">
204
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
205
+ </div>
206
+ <span class="font-medium">Трансляция</span>
207
+ </div>
208
+ <div class="answer-option flex items-center p-4 border border-gray-200 rounded-lg cursor-pointer hover:border-green-300">
209
+ <div class="w-6 h-6 rounded-full border border-gray-300 mr-3 flex items-center justify-center"></div>
210
+ <span>Репарация</span>
211
+ </div>
212
+ </div>
213
+
214
+ <div class="flex justify-between">
215
+ <button id="prevQuestionBtn" class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-6 rounded-lg transition duration-300 opacity-50 cursor-not-allowed" disabled>
216
+ <i class="fas fa-arrow-left mr-2"></i> Назад
217
+ </button>
218
+ <button id="nextQuestionBtn" class="bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-6 rounded-lg transition duration-300">
219
+ Далее <i class="fas fa-arrow-right ml-2"></i>
220
+ </button>
221
+ </div>
222
+ </div>
223
+
224
+ <div id="resultsContainer" class="hidden text-center py-8">
225
+ <div class="mx-auto w-32 h-32 bg-green-100 rounded-full flex items-center justify-center mb-6">
226
+ <i class="fas fa-trophy text-5xl text-green-600"></i>
227
+ </div>
228
+ <h3 class="text-2xl font-bold text-gray-800 mb-2">Тест завершен!</h3>
229
+ <p class="text-gray-600 mb-6">Ваш результат: <span class="text-green-600 font-bold">8</span> из <span class="font-bold">10</span></p>
230
+ <div class="flex justify-center space-x-4">
231
+ <button id="restartTestBtn" class="bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-6 rounded-lg transition duration-300">
232
+ <i class="fas fa-redo mr-2"></i> Пройти еще раз
233
+ </button>
234
+ <button id="backToTestsBtn" class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-6 rounded-lg transition duration-300">
235
+ <i class="fas fa-list mr-2"></i> Другие тесты
236
+ </button>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ </div>
241
+ </section>
242
+
243
+ <!-- Practice Problems -->
244
+ <section class="mb-12 fade-in">
245
+ <h2 class="text-2xl font-bold text-gray-800 mb-6 border-b pb-2">Практические задачи</h2>
246
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
247
+ <div class="p-6">
248
+ <div class="mb-6">
249
+ <h3 class="text-lg font-semibold text-gray-800 mb-3">Задача 1: Генетика</h3>
250
+ <p class="text-gray-700 mb-4">
251
+ У человека карий цвет глаз (A) доминирует над голубым (a), а способность лучше владеть правой рукой (B)
252
+ доминирует над леворукостью (b). Оба гена находятся в разных хромосомах.
253
+ Каковы возможные генотипы и фенотипы детей от брака гетерозиготных по обоим признакам родителей?
254
+ </p>
255
+ <div class="bg-gray-50 p-4 rounded-lg">
256
+ <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" rows="4" placeholder="Введите ваше решение..."></textarea>
257
+ <button class="mt-2 bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition duration-300">
258
+ Проверить решение
259
+ </button>
260
+ </div>
261
+ </div>
262
+
263
+ <div class="mb-6">
264
+ <h3 class="text-lg font-semibold text-gray-800 mb-3">Задача 2: Физиология растений</h3>
265
+ <p class="text-gray-700 mb-4">
266
+ Опишите, как происходит процесс фотосинтеза в листьях растений. Какие факторы влияют на его интенсивность?
267
+ Какие органеллы клетки участвуют в этом процессе и какова их роль?
268
+ </p>
269
+ <div class="bg-gray-50 p-4 rounded-lg">
270
+ <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" rows="4" placeholder="Введите ваше решение..."></textarea>
271
+ <button class="mt-2 bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition duration-300">
272
+ Проверить решение
273
+ </button>
274
+ </div>
275
+ </div>
276
+
277
+ <div>
278
+ <h3 class="text-lg font-semibold text-gray-800 mb-3">Задача 3: Экология</h3>
279
+ <p class="text-gray-700 mb-4">
280
+ В озере обитают три вида рыб: хищник (щука), всеядная (плотва) и растительноядная (карась).
281
+ Постройте пищевую цепь для этой экосистемы. Что произойдет, если численность щуки резко сократится?
282
+ Какие изменения ожидаются в экосистеме через 5 лет?
283
+ </p>
284
+ <div class="bg-gray-50 p-4 rounded-lg">
285
+ <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" rows="4" placeholder="Введите ваше решение..."></textarea>
286
+ <button class="mt-2 bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition duration-300">
287
+ Проверить решение
288
+ </button>
289
+ </div>
290
+ </div>
291
+ </div>
292
+ </div>
293
+ </section>
294
+ </main>
295
+
296
+ <!-- Footer -->
297
+ <footer class="bg-gray-800 text-white py-8">
298
+ <div class="container mx-auto px-4">
299
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
300
+ <div>
301
+ <h3 class="text-lg font-semibold mb-4">Биология - Проверка знаний</h3>
302
+ <p class="text-gray-300 mb-4">
303
+ Сайт для проверки знаний учащихся по биологии с тестами и практическими задачами.
304
+ </p>
305
+ <div class="flex space-x-4">
306
+ <a href="#" class="text-gray-300 hover:text-white">
307
+ <i class="fab fa-facebook-f"></i>
308
+ </a>
309
+ <a href="#" class="text-gray-300 hover:text-white">
310
+ <i class="fab fa-telegram"></i>
311
+ </a>
312
+ <a href="#" class="text-gray-300 hover:text-white">
313
+ <i class="fab fa-instagram"></i>
314
+ </a>
315
+ </div>
316
+ </div>
317
+
318
+ <div>
319
+ <h3 class="text-lg font-semibold mb-4">Контакты</h3>
320
+ <ul class="space-y-2">
321
+ <li class="flex items-center">
322
+ <i class="fas fa-map-marker-alt mr-2 text-green-400"></i>
323
+ <span>Ташкент, Мирабад, ул. Нукус 25-а</span>
324
+ </li>
325
+ <li class="flex items-center">
326
+ <i class="fas fa-phone mr-2 text-green-400"></i>
327
+ <span>+998 94 032 72 78</span>
328
+ </li>
329
+ <li class="flex items-center">
330
+ <i class="fas fa-envelope mr-2 text-green-400"></i>
331
+ <span>biology_test@example.com</span>
332
+ </li>
333
+ </ul>
334
+ </div>
335
+
336
+ <div>
337
+ <h3 class="text-lg font-semibold mb-4">Быстрые ссылки</h3>
338
+ <ul class="space-y-2">
339
+ <li><a href="#" class="text-gray-300 hover:text-white hover:underline">Главная</a></li>
340
+ <li><a href="#" class="text-gray-300 hover:text-white hover:underline">Тесты</a></li>
341
+ <li><a href="#" class="text-gray-300 hover:text-white hover:underline">Задачи</a></li>
342
+ <li><a href="#" class="text-gray-300 hover:text-white hover:underline">Материалы</a></li>
343
+ <li><a href="#" class="text-gray-300 hover:text-white hover:underline">О нас</a></li>
344
+ </ul>
345
+ </div>
346
+ </div>
347
+
348
+ <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
349
+ <p>&copy; 2025 Биология - Проверка знаний. Все права защищены.</p>
350
+ </div>
351
+ </div>
352
+ </footer>
353
+
354
+ <script>
355
+ // Test functionality
356
+ document.addEventListener('DOMContentLoaded', function() {
357
+ const startTestBtn = document.getElementById('startTestBtn');
358
+ const testSelection = document.getElementById('testSelection');
359
+ const testSection = document.getElementById('testSection');
360
+ const backToTestsBtn = document.getElementById('backToTestsBtn');
361
+ const restartTestBtn = document.getElementById('restartTestBtn');
362
+
363
+ // Sample test data
364
+ const testData = {
365
+ title: "Молекулярная биология",
366
+ questions: [
367
+ {
368
+ text: "Как называется процесс синтеза белка на матрице иРНК?",
369
+ options: ["Транскрипция", "Редупликация", "Трансляция", "Репарация"],
370
+ correct: 2
371
+ },
372
+ {
373
+ text: "Какое азотистое основание не входит в состав ДНК?",
374
+ options: ["Аденин", "Тимин", "Урацил", "Гуанин"],
375
+ correct: 2
376
+ },
377
+ {
378
+ text: "Какой углевод входит в состав ДНК?",
379
+ options: ["Рибоза", "Дезоксирибоза", "Глюкоза", "Фруктоза"],
380
+ correct: 1
381
+ }
382
+ ]
383
+ };
384
+
385
+ let currentQuestionIndex = 0;
386
+ let userAnswers = [];
387
+
388
+ // Start test button click handler
389
+ startTestBtn.addEventListener('click', function() {
390
+ testSelection.classList.add('hidden');
391
+ testSection.classList.remove('hidden');
392
+ loadQuestion(currentQuestionIndex);
393
+ });
394
+
395
+ // Back to tests button click handler
396
+ backToTestsBtn.addEventListener('click', function() {
397
+ testSection.classList.add('hidden');
398
+ testSelection.classList.remove('hidden');
399
+ resetTest();
400
+ });
401
+
402
+ // Restart test button click handler
403
+ restartTestBtn.addEventListener('click', function() {
404
+ resetTest();
405
+ loadQuestion(currentQuestionIndex);
406
+ document.getElementById('questionContainer').classList.remove('hidden');
407
+ document.getElementById('resultsContainer').classList.add('hidden');
408
+ });
409
+
410
+ // Load question function
411
+ function loadQuestion(index) {
412
+ const question = testData.questions[index];
413
+ document.getElementById('questionText').textContent = question.text;
414
+ document.getElementById('currentQuestion').textContent = index + 1;
415
+ document.getElementById('totalQuestions').textContent = testData.questions.length;
416
+ document.getElementById('testTitle').textContent = testData.title;
417
+
418
+ // Update progress bar
419
+ const progress = ((index + 1) / testData.questions.length) * 100;
420
+ document.getElementById('progressBar').style.width = `${progress}%`;
421
+
422
+ // Update options
423
+ const optionsContainer = document.querySelector('.answer-options');
424
+ // In a real app, you would dynamically generate options here
425
+
426
+ // Update navigation buttons
427
+ document.getElementById('prevQuestionBtn').disabled = index === 0;
428
+
429
+ if (index === testData.questions.length - 1) {
430
+ document.getElementById('nextQuestionBtn').textContent = 'Завершить';
431
+ document.getElementById('nextQuestionBtn').innerHTML = 'Завершить <i class="fas fa-check ml-2"></i>';
432
+ } else {
433
+ document.getElementById('nextQuestionBtn').textContent = 'Далее';
434
+ document.getElementById('nextQuestionBtn').innerHTML = 'Далее <i class="fas fa-arrow-right ml-2"></i>';
435
+ }
436
+ }
437
+
438
+ // Reset test function
439
+ function resetTest() {
440
+ currentQuestionIndex = 0;
441
+ userAnswers = [];
442
+ }
443
+
444
+ // Next question button click handler
445
+ document.getElementById('nextQuestionBtn').addEventListener('click', function() {
446
+ // In a real app, you would save the user's answer here
447
+
448
+ if (currentQuestionIndex < testData.questions.length - 1) {
449
+ currentQuestionIndex++;
450
+ loadQuestion(currentQuestionIndex);
451
+ } else {
452
+ // Test completed
453
+ document.getElementById('questionContainer').classList.add('hidden');
454
+ document.getElementById('resultsContainer').classList.remove('hidden');
455
+ }
456
+ });
457
+
458
+ // Previous question button click handler
459
+ document.getElementById('prevQuestionBtn').addEventListener('click', function() {
460
+ if (currentQuestionIndex > 0) {
461
+ currentQuestionIndex--;
462
+ loadQuestion(currentQuestionIndex);
463
+ }
464
+ });
465
+
466
+ // Answer option click handler
467
+ document.querySelectorAll('.answer-option').forEach(option => {
468
+ option.addEventListener('click', function() {
469
+ // Remove selected state from all options
470
+ document.querySelectorAll('.answer-option').forEach(opt => {
471
+ opt.classList.remove('bg-green-50', 'border-green-300');
472
+ opt.querySelector('div').innerHTML = '';
473
+ opt.querySelector('div').classList.add('border-gray-300');
474
+ opt.querySelector('div').classList.remove('border-green-500');
475
+ opt.querySelector('span').classList.remove('font-medium');
476
+ });
477
+
478
+ // Add selected state to clicked option
479
+ this.classList.add('bg-green-50', 'border-green-300');
480
+ const circle = this.querySelector('div');
481
+ circle.innerHTML = '<div class="w-3 h-3 rounded-full bg-green-500"></div>';
482
+ circle.classList.remove('border-gray-300');
483
+ circle.classList.add('border-green-500');
484
+ this.querySelector('span').classList.add('font-medium');
485
+ });
486
+ });
487
+ });
488
+ </script>
489
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Dotsent/https-huggingface-co-spaces-dotsent-myspace" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
490
+ </html>