-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (92 loc) · 2.07 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
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
<!DOCTYPE html>
<html>
<head>
<title>Epoch Converter</title>
<meta charset="utf-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<style>
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
appearance: textfield;
-moz-appearance: textfield;
}
#main {
width: 360px;
margin-bottom: 20px;
}
.lable {
margin-bottom: 5px;
font-weight: bold;
font-size: 0.9375em;
}
input,
input:focus,
input:hover {
outline: none;
border: 2px solid;
border-radius: 3px;
font-size: 0.85em;
padding: 5px;
width: 100%;
}
.human-date {
margin-top: 10px;
}
.date {
font-size: 0.875em;
}
#time-now,
#time-unix {
/* font-weight: bold; */
font-size: 0.875em;
margin-left: 5px;
}
.time-now {
margin-bottom: 5px;
}
.time-unix {
margin-bottom: 5px;
}
.my-gif {
width: 32px;
height: 32px;
margin-left: 5px;
}
</style>
<body>
<div class="container mt-3" id="main">
<div class="container time-now">
<span class="lable">Local Now: </span>
<span id="time-now">loading ...</span>
<img src="img/programming.gif" alt="my gif" class="my-gif">
</div>
<div class="container time-unix">
<span class="lable">Unix: </span>
<span id="time-unix">...</span>
</div>
<div class="container">
<div class="lable" for="timestamp">Timestamp</div>
<input type="number" name="timestamp" id="epc-timestamp">
</div>
<div class="container human-date">
<div class="lable" for="human-date">Human Date</div>
<div>
<span class="lable">GMT:</span>
<span class="date" id="epc-gmt-date">...</span>
</div>
<div>
<span class="lable">Local:</span>
<span class="date" id="epc-local-date">...</span>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="main.js"></script>
</html>