-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworld_time.html
172 lines (148 loc) · 6.79 KB
/
world_time.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="google-analytics">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>World time</title>
<meta name="description" content="World time - Website with math and IT tools">
<meta name="keywords" content="Tools, Narzędzia, World time">
<meta name="author" content="Bartek L">
<link rel="stylesheet" href="/tools/css/style.css">
<link rel="stylesheet" href="/tools/css/modules/bootstrap.min.css">
<link rel="stylesheet" href="/tools/css/modules/bootstrap-icons/bootstrap-icons.min.css">
<script src="/tools/js/theme.js"></script>
<link rel="manifest" href="/tools/manifest.json">
<link rel="shortcut icon" href="/tools/img/icons/icon.ico">
<link rel="apple-touch-icon" href="/tools/img/icons/icon_x192.png">
<!-- Standard browsers -->
<meta name="theme-color" content="#0d6efd"/>
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#0d6efd">
<meta name="google-site-verification">
</head>
<body class="px-3 pt-2">
<div class="top-bar">
<div class="float-start top-bar-buttons">
<button class="top-bar-button" onclick="window.location.reload()">
<i class="bi bi-arrow-clockwise"></i>
</button>
<a class="top-bar-button" href="/tools/">
<i class="bi bi-house"></i>
</a>
<button class="top-bar-button" id="top-bar-share">
<i class="bi bi-share-fill"></i>
</button>
</div>
<div class="input-group top-bar-search-group">
<span class="input-group-text top-bar-search-text"><i class="bi bi-search"></i></span>
<input type="text" class="form-control top-bar-search" placeholder="Search">
</div>
</div>
<h1 class="text-light-emphasis h2 text-center">
<a href="/tools/" class="home-link">
<span text-id="0">Tools</span>
<i class="bi bi-tools"></i>
</a>
</h1>
<h2 class="h3">
<i class="bi bi-clock"></i>
<span text-id="226">World time</span>
</h2>
<div id="tool-loading">
<div class="d-flex justify-content-center">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
<div id="tool-page" class="d-none">
<!-- <div class="mb-2">
<div class="form-check">
<input class="form-check-input" type="radio" id="current-time" name="time-type" value="current-time" checked>
<label class="form-check-label" for="current-time" text-id="227">Current time</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="select-time" name="time-type" value="select-time">
<div class="input-group">
<input type="datetime-local" class="form-control" id="custom-input-time" step="1">
<select id="custom-time-timezone" class="form-select"></select>
</div>
</div>
</div> -->
<div>
<div class="mb-5">
<div class="fs-4" text-id="228">Local time</div>
<input type="text" class="form-control my-1" id="local-timezone" readonly>
<div class="fs-1" id="local-time"></div>
<div class="fs-3" id="local-date"></div>
</div>
<div class="mb-5">
<div class="fs-4" text-id="229">Universal time</div>
<input type="text" class="form-control my-1" id="utc-timezone" readonly value="UTC">
<div class="fs-1" id="utc-time"></div>
<div class="fs-3" id="utc-date"></div>
</div>
<div>
<div class="fs-4" text-id="230">Other timezone</div>
<select type="text" class="form-select mt-1 mb-2" id="custom-timezone-country"></select>
<select type="text" class="form-select mt-2 mb-1" id="custom-timezone"></select>
<div class="fs-1" id="custom-time"></div>
<div class="fs-3" id="custom-date"></div>
</div>
</div>
</div>
<button class="btn btn-primary py-2 dropdown-toggle d-flex align-items-center position-fixed bottom-0 end-0 m-2" id="theme-button" type="button" data-bs-toggle="dropdown" data-bs-target="theme-dropdown">
</button>
<ul class="dropdown-menu dropdown-menu-end shadow" id="theme-dropdown">
<li>
<button type="button" class="dropdown-item d-flex align-items-center theme-button" theme-value="auto">
<i class="bi bi-circle-half me-2 opacity-75"></i>
Auto
<i class="bi bi-check2 ms-auto d-none"></i>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center theme-button" theme-value="light">
<i class="bi bi-sun-fill me-2 opacity-75"></i>
<span text-id="248">Light</span>
<i class="bi bi-check2 ms-auto d-none"></i>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center theme-button" theme-value="dark">
<i class="bi bi-moon-stars-fill me-2 opacity-75"></i>
<span text-id="249">Dark</span>
<i class="bi bi-check2 ms-auto d-none"></i>
</button>
</li>
</ul>
<div id="cookies-info"></div>
<script src="/tools/js/topbar.js"></script>
<script src="/tools/js/translate.js"></script>
<script src="/tools/js/error.js"></script>
<script src="/tools/js/modules/bootstrap.bundle.min.js"></script>
<script src="/tools/js/modules/moment.js"></script>
<script src="/tools/js/modules/csv.js"></script>
<script src="/tools/js/world_time.js"></script>
<script>
var reg;
// Register the service worker
if ('serviceWorker' in navigator) {
// Wait for the 'load' event to not block other work
window.addEventListener('load', async () => {
// Try to register the service worker.
try {
reg = await navigator.serviceWorker.register('/tools/sw.js');
console.log('Service worker registered! 😎', reg);
} catch (err) {
console.log('😥 Service worker registration failed: ', err);
}
});
}
</script>
</body>
</html>