-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeClub.html
More file actions
37 lines (34 loc) · 952 Bytes
/
CodeClub.html
File metadata and controls
37 lines (34 loc) · 952 Bytes
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
<!-- Redirection Counter -->
<script type="text/javascript">
var count = 10; // Timer
var redirect = "/"; // Target URL
function countDown() {
var timer = document.getElementById("timer"); // Timer ID
if (count > 0) {
count--;
timer.innerHTML = "Taking you to today's lesson in <br>" + count + " seconds."; // Timer Message
setTimeout("countDown()", 1000);
} else {
window.location.href = "https://classroom.microbit.org/join?id=45599&password=JS4BM74U";
}
}
</script>
<html>
<head>
<style>
body {
font-family: 'Comic Sans MS', cursive; font-size: 30px;
}
</style>
</head>
<body>
<img src="https://raw.githubusercontent.com/darraghomalley/tutorials/refs/heads/master/LetsGo.png" alt="alternative text" style="position: relative;" />
<span style="position: absolute; top: 40px; left: 410px;">
<p id="timer">
<script type="text/javascript">
countDown();
</script>
</p>
</span>
</body>
</html>