-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
118 lines (108 loc) · 5.42 KB
/
index.html
File metadata and controls
118 lines (108 loc) · 5.42 KB
1
2
3
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Break Timer</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #1a1a1a;
color: white;
}
.timer {
font-size: 5rem;
font-weight: 700;
letter-spacing: -2px;
}
@media (max-width: 768px) {
.timer {
font-size: 5rem;
}
}
.text-center {
border: 1px solid #fff;
padding-left: 50px;
padding-right: 50px;
padding-top: 20px;
padding-bottom: 20px;
border-radius: 10px;
}
.name {
transform: translateY(230px) translateX(-250px);
}
</style>
</head>
<body>
<div class="min-h-screen flex flex-col md:flex-row">
<!-- Timer Section -->
<div class="flex-1 flex items-center justify-center flex-col p-8 border-b md:border-b-0 md:border-r border-gray-700">
<div class="text-center">
<div class="text-gray-400 mt-2" style="color: #fff; font-weight: bold;"> Remaining Break Time: </div>
<div class="timer" id="countdown">10:00</div>
</div>
<h1 class="name" style="font-weight: bold;">Sardor alibekov</h1>
</div>
<!-- Instructions Section -->
<div class="flex-1 p-8 flex items-center">
<div class="max-w-lg mx-auto">
<h1 class="text-2xl font-bold mb-4" style="font-size: 40px;">Take a Break: Do Not <br> <br> Close Your Device</h1>
<p class="text-lg mb-6">After the break, a Resume Testing Now button will appear and you will start the next section.</p>
<div class=" p-6 rounded-lg">
<h2 class="text-xl mb-4">Follow the rules during the break:</h2>
<ul class="space-y-3">
<li class="flex">
<span class="mr-2">1.</span>
<span>Do not disturb students who are still testing.</span>
</li>
<li class="flex">
<span class="mr-2">2.</span>
<span>Do not exit the app or close your laptop.</span>
</li>
<li class="flex">
<span class="mr-2">3.</span>
<span>Do not access phones, smartwatches, textbooks, notes, or the internet.</span>
</li>
<li class="flex">
<span class="mr-2">4.</span>
<span>Do not eat or drink near any testing device.</span>
</li>
<li class="flex">
<span class="mr-2">5.</span>
<span>Do not speak in the test room: outside the test room, do not discuss the exam with anyone.</span>
</li>
</ul>
</div>
<div id="resumeButton" class="mt-8 hidden">
<button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded-lg transition-all w-full">
Resume Testing Now
</button>
</div>
</div>
</div>
</div>
<script>
// Set the countdown time (10 minutes)
let timeLeft = 10 * 60; // in seconds
const countdownEl = document.getElementById('countdown');
const resumeButton = document.getElementById('resumeButton');
function updateCountdown() {
const minutes = Math.floor(timeLeft / 60);
let seconds = timeLeft % 60;
seconds = seconds < 10 ? '0' + seconds : seconds;
countdownEl.innerHTML = `${minutes}:${seconds}`;
if (timeLeft <= 0) {
clearInterval(timer);
countdownEl.innerHTML = '00:00';
resumeButton.classList.remove('hidden');
} else {
timeLeft--;
}
}
// Update the countdown every second
updateCountdown();
const timer = setInterval(updateCountdown, 1000);
</script>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'968d7a165636c068',t:'MTc1NDEzNjY3Ny4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
</html>