-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
103 lines (82 loc) · 3.31 KB
/
popup.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
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>Magic Date Helper Chrome Extension</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="normalize.css" />
</head>
<body>
<div class="mdh__title">Magic Date Helper</div>
<div class="mdh__container">
<div class="mdh-panel">
<div class="mdh-panel__heading">
Right now, it's...
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">UTC</div>
<div id="mdh-now-utc" class="mdh-cell mdh-cell--value"></div>
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">Local</div>
<div id="mdh-now-local" class="mdh-cell mdh-cell--value"></div>
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">ISO</div>
<div id="mdh-now-iso" class="mdh-cell mdh-cell--value"></div>
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">Timestamp (ms)</div>
<div id="mdh-now-milli" class="mdh-cell mdh-cell--value"></div>
</div>
</div>
<div class="mdh-panel">
<form id="mdh-form" class="mdh-form">
<div class="mdh-panel__heading">Let's convert...</div>
<div class="mdh-row__container">
<input id="mdh-input" type="text" class="mdh-input" autofocus />
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">Adjust</div>
<select name="mdh-delta-operator" id="mdh-delta-operator" class="mdh-select">
<option value="add">Add</option>
<option value="subtract">Subtract</option>
</select>
<input
id="mdh-delta-value"
type="number"
step="1"
class="mdh-input mdh-input--adjust"
value="0"
/>
<select name="mdh-delta-units" id="mdh-delta-units" class="mdh-select">
<option value="minutes">Minutes</option>
<option value="hours" selected>Hours</option>
<option value="days">Days</option>
<option value="weeks">Weeks</option>
</select>
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">Choose a format</div>
<div class="mdh-cell mdh-cell--buttons">
<button id="mdh-to-utc" class="mdh-button" type="button">UTC</button>
<button id="mdh-to-local" class="mdh-button" type="submit">Local</button>
<button id="mdh-to-iso" class="mdh-button" type="button">ISO</button>
<button id="mdh-to-milli" class="mdh-button" type="button">Timestamp</button>
</div>
</div>
<div class="mdh-row__container">
<div class="mdh-cell mdh-cell--label">Result</div>
<div id="mdh-converted" class="mdh-cell--value"></div>
</div>
</form>
</div>
</div>
<script src="moment.min.js"></script>
<script src="popup.js"></script>
</body>
</html>