-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
137 lines (118 loc) · 5.22 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 name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlipClock</title>
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="manifest" href="assets/site.webmanifest">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="css/styles.css">
<script src="js/script.js" defer></script>
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" /> -->
<script src="https://kit.fontawesome.com/20b8503bc7.js" crossorigin="anonymous"></script>
</head>
<body>
<audio id="flipSound" preload="auto">
<source src="assets/flip-sound1.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<div class="loader-wrapper">
<span class="loader"></span>
</div>
<script>
window.addEventListener("load", function () {
setTimeout(function () {
var loaderWrapper = document.querySelector(".loader-wrapper");
loaderWrapper.style.transition = "opacity 0.1s"; // Optional: Add a CSS transition for a fade-out effect
loaderWrapper.style.opacity = "0";
loaderWrapper.remove()
// Set opacity to 0 to fade out
}, 1000); // 500 milliseconds (0.5 seconds) delay
});
</script>
<div class="wrapper">
<div class="fas fa-bars btn" id="nav-btn"></div>
<div class="fas fa-sun btn" id="lightMode-icon"></div>
<div class="seconds-btn btn"><i class="fa-solid fa-stopwatch-20"></i></div>
<div class="ampm-btn btn">24</div>
<nav class="sidebar">
<div class="title">FlipClock</div>
<ul class="list-items">
<li>
<a href="#" data-clock-type="clock"><i class="fa-solid fa-clock"></i>Clock</a>
</li>
<li>
<a href="html/about.html" data-clock-type="about"><i class="fa-solid fa-question"></i>About</a>
</li>
<div class="icons">
<a href="https://imvbh.github.io/Portfolio/"><i class="fa-solid fa-address-card"></i></a>
<a href="https://github.com/imvbh/"><i class="fab fa-github"></i></a>
<a href="https://instagram.com/imvbh/"><i class="fab fa-instagram"></i></a>
<a href="https://www.linkedin.com/in/imvbh/"><i class="fab fa-linkedin-in"></i></a>
</div>
<div class="credits">
<p>Made with ❤️ by imvbh</p>
</div>
</ul>
</nav>
</div>
<section class="container" id="dynamic-content">
<div class="clock" id="clock-content">
<div class="container-segment">
<div class="headings">
<p></p>
<div class="flip-card left" hours-tens>
<div class="top">0</div>
<div class="bottom">0</div>
</div>
<div class="flip-card right" hours-units>
<div class="top">0</div>
<div class="bottom">0</div>
</div>
</div>
</div>
<div class="colon">
:
</div>
<div class="container-segment">
<div class="headings">
<p></p>
<div class="flip-card left" minutes-tens>
<div class="top">0</div>
<div class="bottom">0</div>
</div>
<div class="flip-card right" minutes-units>
<div class="top">0</div>
<div class="bottom">0</div>
</div>
</div>
</div>
<div class="container-segment last ">
<div class="ampm">
<div class="flip-card card-ampm" am-pm>
<div class="top ">AM</div>
<div class="bottom ">AM</div>
</div>
</div>
<div class="headings seconds-segment" id="seconds-segment">
<p></p>
<div class="flip-card left" seconds-tens>
<div class="top">0</div>
<div class="bottom">0</div>
</div>
<div class="flip-card right" seconds-units>
<div class="top">0</div>
<div class="bottom">0</div>
</div>
</div>
</div>
</div>
<div id="date">
<p>Wednesday, 23 Aug</p>
</div>
</section>
</body>
</html>