1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 " />
5+ < meta name ="viewport " content ="width=device-width,initial-scale=1 " />
6+ < title > Countdown Timer</ title >
7+ < link rel ="stylesheet " href ="countdown.css " />
8+ </ head >
9+ < body >
10+ < header >
11+ < h1 > ⏱ Countdown Timer</ h1 >
12+ < p > Set a target date/time and watch the live countdown.</ p >
13+ </ header >
14+
15+ < main class ="countdown-container ">
16+ < div class ="controls ">
17+ < label for ="targetInput "> Target date & time</ label >
18+ < input type ="datetime-local " id ="targetInput " />
19+
20+ < div class ="buttons ">
21+ < button id ="startBtn " class ="btn "> Start</ button >
22+ < button id ="pauseBtn " class ="btn " disabled > Pause</ button >
23+ < button id ="resetBtn " class ="btn " disabled > Reset</ button >
24+ </ div >
25+
26+ < div class ="presets ">
27+ < button class ="preset " data-days ="1 "> +1 day</ button >
28+ < button class ="preset " data-days ="7 "> +7 days</ button >
29+ < button class ="preset " data-minutes ="5 "> +5 minutes</ button >
30+ </ div >
31+ </ div >
32+
33+ < div class ="display " id ="display ">
34+ < div class ="time-part ">
35+ < span id ="days "> --</ span >
36+ < small > Days</ small >
37+ </ div >
38+ < div class ="time-part ">
39+ < span id ="hours "> --</ span >
40+ < small > Hours</ small >
41+ </ div >
42+ < div class ="time-part ">
43+ < span id ="minutes "> --</ span >
44+ < small > Minutes</ small >
45+ </ div >
46+ < div class ="time-part ">
47+ < span id ="seconds "> --</ span >
48+ < small > Seconds</ small >
49+ </ div >
50+ </ div >
51+
52+ < div class ="message " id ="message "> No countdown running</ div >
53+ </ main >
54+
55+ < footer >
56+ < p > < a href ="../index.html "> ⬅ Back to Tools</ a > </ p >
57+ </ footer >
58+
59+ < script src ="countdown.js "> </ script >
60+ </ body >
61+ </ html >
0 commit comments