-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (51 loc) · 1.76 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
<!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="stylesheet" href="style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.40/moment-timezone-with-data-1970-2030.min.js"></script>
<title>World Clock</title>
</head>
<body>
<div class="container">
<h1>World Clock</h1>
<select id="city" >
<option value="">Select a city</option>
<option value="current">Current timezone 📍</option>
<option value="America/Sao_Paulo">São Paulo </option>
<option value="America/San_Francisco">San Francisco</option>
<option value="Europe/Paris">Paris </option>
<option value="Asia/Tokyo">Tokyo </option>
<option value="Pacific/Honolulu">Honolulu </option>
<option value="Europe/Dublin">Dublin </option>
</select>
<div id="cities">
<div class="city" id="losangeles">
<div>
<h2>Los Angeles </h2>
<div class="date"></div>
</div>
<div class="time"></div>
</div>
<div class="city" id="saopaulo">
<div>
<h2>São Paulo</h2>
<div class="date"></div>
</div>
<div class="time"></div>
</div>
</div>
<footer>
This project was coded by
<span class="name">Maria Medeiros</span>
and is open source on
<a href="https://github.com/mariavmedeiros/world-clock" target="_blank">
GitHub</a
>
</footer>
<script src="script.js"></script>
</body>
</html>