-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
137 lines (128 loc) · 5.19 KB
/
index.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/image/favicon.ico" type="image/x-icon">
<title>Timer and StopWatch</title>
<!-- Custome css file -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- ================================ TIME ===================================== -->
<div class="header">
<h1>CodeClause Project</h1>
<span>Digital clock with Timer and StopWatch</span>
</div>
<div class="outer_wrapper">
<p class="type">clock</p>
<div class="Container ">
<div class="clock_style">
<div class="wrapper">
<div class="clock">
<div class="hour">
<p class="number" id="hour">02</p>
<p class="text">Hours</p>
</div>
<p class="colon">:</p>
<div class="Min">
<p class="number" id="mint">16</p>
<p class="text">Minutes</p>
</div>
<p class="colon">:</p>
<div class="Sec">
<p class="number" id="second">20</p>
<p class="text">Second</p>
</div>
<p class="colon">:</p>
<div class="ampm">
<p class="number" id="ampm">AM</p>
<p class=" text" id="other_ampm">PM</p>
</div>
</div>
</div>
<div id="btns">
<button class="btn timer_btn">Timer</button>
<button class="btn stopWatch_btn">StopWatch</button>
</div>
</div>
</div>
<!-- ================================ STOPWATCH ====================================== -->
<div class="Container stop_watch hidden">
<!-- <p class="type">StopWatch</p> -->
<div class="stopWatch">
<span class="digits" id="hr">00</span>
<span class="text">Hr</span>
<span class="digits" id="min">00</span>
<span class="text">Min</span>
<span class="digits" id="sec">00</span>
<span class="text">Sec</span>
<span class="digit" id="count">
00</span>
</div>
<div class="laps">
<!-- <div class="lap active">
<p>lap 1</p>
<p>00:00</p>
</div>
<div class="lap">
<p>lap 1</p>
<p>00:00</p>
</div> -->
</div>
<div id="btns">
<button class="btn" id="start">
Start</button>
<button class="btn hidden" id="lap">
lap</button>
<button class="btn" id="reset">
Reset</button>
<button class="btn back_btn" id="Back">
Back</button>
</div>
</div>
<!-- ================================ timer =================================== -->
<div class="Container timer_ hidden">
<!-- <p class="type">Timer</p> -->
<div class="timer_style">
<div class="wrapper">
<div class="clock">
<div class="hour">
<p class="number" id="time_hour">00</p>
<p class="text">Hours</p>
</div>
<p class="colon">:</p>
<div class="Min">
<p class="number" id="time_mint">00</p>
<p class="text">Minutes</p>
</div>
<p class="colon">:</p>
<div class="Sec">
<p class="number" id="time_second">00</p>
<p class="text">Second</p>
</div>
<div class="miliSec">
<p class="number" id="time_MiliSecond">00</p>
<p class="text">miliSecond</p>
</div>
</div>
</div>
<div id="btns">
<button class="btn start_timer" id="start">
Start</button>
<button class="btn stop_timer hidden" id="stop">
Stop</button>
<button class="btn reset_timer" id="reset">
Reset</button>
<button class="btn back_btn" id="Back">
Back</button>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<!-- Custome js file -->
<script src="js/main.js"></script>
</body>
</html>