forked from KevinNovak/Time-Zone-Picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (72 loc) · 3.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Time Zone Picker</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="./styles/timezone-picker-custom.css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="col">
<h1 class="mt-3">Time Zone Picker</h1>
<label for="auto-detected-time-zone"
><b>Auto-Detected Time Zone</b>:
<span id="auto-detected-time-zone">Unknown</span></label
>
<br />
<label for="selected-time-zone"><b>Selected Time Zone</b></label>
<div class="input-group mb-3">
<input
readonly
id="selected-time-zone"
type="text"
class="form-control"
value="None"
/>
<div class="input-group-append">
<button
id="selected-time-zone-copy-btn"
class="btn btn-outline-secondary"
type="button"
>
<svg
class="bi bi-files"
width="1em"
height="1em"
viewBox="0 0 16 16"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M3 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H3z"
></path>
<path
d="M5 0h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1H3a2 2 0 0 1 2-2z"
></path>
</svg>
Copy
</button>
</div>
</div>
<label for="hovered-time-zone"
><b>Hovered Time Zone</b>: <span id="hovered-time-zone">None</span></label
>
</div>
</div>
</div>
<div id="map"></div>
<script src="./scripts/polyfills.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.26.0/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.31/moment-timezone.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/timezone-picker.min.js"></script>
<script src="./scripts/timezone-picker-custom.js"></script>
</body>
</html>