-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
46 lines (42 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Unix Timestamp Conveter</title>
<link rel="stylesheet" href="css/style.css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#333333">
<meta name="theme-color" content="#FFFFFF">
</head>
<body>
<div class="current">
<p>The <span id="current-time-stopped">current</span> Unix time <span id="current-time-is">is</span>:</p>
<h4 id="current-time"></h4>
<noscript>Unix Timestamp Converter requires Javascript to run.</noscript>
</div>
<div class="converters">
<div class="convert">
<h2>Convert from a Unix timestamp</h2>
<input type="text" id="convert-from">
<p id="convert-from-output"></p>
<p id="convert-from-output-tz"></p>
</div>
<div class="convert">
<h2>Convert to a Unix timestamp</h2>
<input type="datetime-local" step="1" id="convert-to">
<p id="convert-to-output"></p>
<h2>Parse <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse">Date</a> string</h2>
<input type="text" id="parse-date">
<p id="parse-output"></p>
<p id="parse-output-unix"></p>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>