-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (127 loc) · 6.9 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
138
139
140
141
<!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">
<meta name="author" content="Semanur Bilada">
<title>wTime | what TIME is it?</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap" rel="stylesheet">
<script src="https://unpkg.com/scrollreveal"></script><!-- scrollreveal library -->
</head>
<body>
<header id="start">
<div class="container">
<div class="logo">
<a href="index.html">
<ion-icon name="time-outline"></ion-icon>
wTime
</a>
</div>
<nav>
<ul>
<li><a href="index.html" class="active">HOME</a></li>
<li><a href="#clocks">CLOCKS</a></li>
<li><a href="#footer">INFO</a></li>
<li><a href="#about-us">ABOUT US</a></li>
</ul>
<div class="search-bar">
<input id="searchbar" type="text" name="search"
autocomplete="off"
placeholder="CITY / COUNTRY"
value="CITY / COUNTRY"
onfocus="this.value=''"
onkeyup="search();"
>
</div>
</nav>
</div>
</header>
<div class="list" id="list">
<li class="city-country" onclick="setTime('singapore')">Singapore</li>
<li class="city-country" onclick="setTime('rome')">Rome / Italy</li>
<li class="city-country" onclick="setTime('oslo')">Oslo / Norway</li>
<li class="city-country" onclick="setTime('seoul')">Seoul / Korea</li>
<li class="city-country" onclick="setTime('tokyo');">Tokyo / Japan</li>
<li class="city-country" onclick="setTime('paris')">Paris / France</li>
<li class="city-country" onclick="setTime('moscow')">Moscow / Russia</li>
<li class="city-country" onclick="setTime('brazilia')">Brazilia / Brazil</li>
<li class="city-country" onclick="setTime('toronto')">Toronto / Canada</li>
<li class="city-country" onclick="setTime('istanbul');">Istanbul / Turkiye</li>
<li class="city-country" onclick="setTime('london');">London / United Kingdom</li>
<li class="city-country" onclick="setTime('amsterdam')">Amsterdam / Netherlands</li>
<li class="city-country" onclick="setTime('new_york')">New York / United States</li>
<li class="city-country" onclick="setTime('dubai')">Dubai / United Arab Emirates</li>
<li class="city-country" onclick="setTime('cape_town')">Cape Town / South Africa</li>
<li class="city-country" onclick="setTime('los_angeles')">Los Angeles / United States</li>
</div>
<main class="home" id="home">
<div class="container">
<div class="info">
<h1 id="exact-time">Your exact time, now;</h1>
<div class="current-times">
<span class="date" id="date"></span>
<div class="digital-clock" id="digital"></div>
</div>
</div>
<div class="analog-clock">
<div class="current-clock">
<div class="current-clock-face">
<div class="stick hour-stick"></div>
<div class="stick min-stick"></div>
<div class="stick second-stick"></div>
</div>
</div>
<div><h4>Analog Clock => Current Time!</h4></div>
</div>
</div>
</main>
<section class="box" id="clocks">
<button class="box-item move1" type="button" onclick="setTime('london');">LONDON</button>
<button class="box-item move2" type="button" onclick="setTime('paris');">PARIS</button>
<button class="box-item move3" type="button" onclick="setTime('dubai');">DUBAI</button>
<button class="box-item move4" type="button" onclick="setTime('new_york');">NEW YORK</button>
<button class="box-item move5" type="button" onclick="setTime('seoul');">SEOUL</button>
<button class="box-item move6" type="button" onclick="setTime('istanbul');">ISTANBUL</button>
<button class="box-item move7" type="button" onclick="setTime('tokyo');">TOKYO</button>
<button class="box-item move8" type="button" onclick="setTime('singapore');">SINGAPORE</button>
<button class="box-item move9" type="button" onclick="setTime('oslo');">OSLO</button>
<button class="box-item move10" type="button" onclick="setTime('amsterdam');">AMSTERDAM</button>
<button class="box-item move11" type="button" onclick="setTime('rome');">ROME</button>
<button class="box-item move12" type="button" onclick="setTime('brazilia');">BRAZILIA</button>
<button class="box-item move13" type="button" onclick="setTime('los_angeles');">LOS ANGELES</button>
<button class="box-item move14" type="button" onclick="setTime('cape_town');">CAPE TOWN</button>
<button class="box-item move15" type="button" onclick="setTime('toronto');">TORONTO</button>
<button class="box-item move16" type="button" onclick="setTime('moscow');">MOSCOW</button>
<button class="box-item move17" type="button" id="go-back" onclick="setTime();" >Go Back to Current Time!</button>
</section>
<footer id="footer">
<div class="container">
<div class="content">
<div class="footer-logo f-move0">
<a href="#start"><ion-icon name="time-outline"></ion-icon>wTime</a>
</div>
<p class="f-move1">GMT - Universal Reference</p>
<p class="f-move2">Offset - Difference from the Reference</p>
<p class="f-move3">UTC - Better Alternative to GMT</p>
<p class="f-move4" id="about-us">This website using HTML, CSS and JS => <em><a
href="https://github.com/semanurbilada/wTime-school-project"
target="_blank">Source code link here, Click!</a></em>
</p>
</div>
<div class="copyright">
<li><i>Copyright © 2022 - wTime<br>All rights reserved.</i></li>
</div>
</div>
</footer>
<!--Js-->
<script src="./src/js/index.js"></script><!--current time-->
<script src="./src/js/search-bar.js"></script><!--search bar-->
<script src="./src/js/scrollReveal.js"></script><!--scrollreveal-->
<script src="./src/js/clocks.js"></script><!--different timezones-->
<!--ionicons-->
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>