-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimer.html
85 lines (67 loc) · 1.37 KB
/
Timer.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Little Hands Daycare</title>
<link rel="stylesheet" type="text/css" href="Logo2.css">
</head>
<body>
<div id="Titlecont">
<div id="Picture">
<img src="LogoPicture.png" width=60 height=60>
</div>
<div id="Title">
<h1>Little Hands Daycare</h1>
</div>
<div id="Motto">
<p> "It takes a village to raise a child" </p>
</div>
</div>
<div id="Button">
<a href="Computer SciencesWE.html">
<button type="button">
Home
</button>
</a>
<a href="About Us.html">
<button type="button">
About
</button>
</a>
<a href="Timer.html">
<button type="button">
Timer
</button>
</a>
<a href="Register.html">
<button type="button">
Register
</button>
</a>
<a href="Schedule.html">
<button type="button">
Events
</button>
</a>
</div>
<h3 style="text-align: center;">A 10 second timer will appear below.</h3>
<p id="display"></p>
<script>
var timerVar=setInterval(function(){myTimer()},1000);
var counter=10;
function myTimer()
{
if (counter >= 0)
{
document.getElementById("display").innerHTML=counter;
counter = counter-1;
}
else
{
clearInterval(timerVar);
}
}
</script>
</div>
</body>
</html>