-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (62 loc) · 3.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Stopwatch</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:title" content="StopWatch">
<meta name="author" content="Atia Farha">
<meta property="og:url" content="https://atia-farha.github.io/stopwatch/">
<meta name="description"
content="A sleek, minimalistic and functional stopwatch with lap time recording and animations with PWA support. Perfect for timing events, workouts, and more!">
<meta name="keywords" content="stopwatch web, stopwatch website, stopwatch webapp, stopwatch pwa, stopwatch app, online stopwatch, stopwatch online, timer web, timer website, timer webapp, timer pwa, timer app, online timer, timer online">
<meta property="og:description"
content="Check out this sleek, minimalistic and functional online stopwatch with lap time recording and animated display. Perfect for timing events, workouts, and more!">
<meta property="og:image" content="./assets/preview.png">
<link rel="icon" type="image/x-icon" href="./assets/favicon.png">
<link rel="stylesheet" href="./src/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<script src="./src/js/script.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/js/all.min.js" integrity="sha512-6sSYJqDreZRZGkJ3b+YfdhB3MzmuP9R7X1QZ6g5aIXhRvR1Y/N/P47jmnkENm7YL3oqsmI6AK+V6AD99uWDnIw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="manifest" href="manifest.json">
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./src/js/sw.js')
.then(() => console.log('Service Worker Registered'))
.catch((err) => console.error('Service Worker Registration Failed:', err));
}
</script>
</head>
<body>
<!-- Display area for the stopwatch -->
<div class="display">
<div class="circle" id="circle">
<span class="animate__animated animate__zoomIn animate__faster" id="time">00.00</span>
</div>
</div>
<!-- Area for lap times -->
<hr id="line3">
<div id="lapsBox" class="lapsBox">
<hr id="line1">
<div id="laps" class="laps" style="display:none;"></div>
<hr id="line2">
</div>
<hr id="line4">
<!-- Buttons for controlling the stopwatch -->
<div class="buttons">
<button class="animate__animated animate__slideInRight" id="lap" onclick="lapTime()" style="display:none;">
<i class="fa-regular fa-flag fa-2x" style="color: rgb(169, 83, 255);"></i>
</button>
<button class="animate__animated animate__rotateIn animate__fast" id="start" onclick="startStopwatch()">
<i class="fa-solid fa-circle-play fa-5x" style="color: rgb(169, 83, 255);"></i>
</button>
<button class="animate__animated animate__rotateIn animate__fast" id="stop" onclick="stopStopwatch()" style="display:none;">
<i class="fa-solid fa-circle-pause fa-5x" style="color: rgb(169, 83, 255);"></i>
</button>
<button class="animate__animated animate__slideInLeft" id="reset" onclick="resetStopwatch()" style="display:none;">
<i class="fa-solid fa-rotate-right fa-2x" style="color: rgb(169, 83, 255);"></i>
</button>
</div>
</body>
</html>