-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
312 lines (289 loc) · 12.8 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="UNIX Calendar">
<meta name="keywords" content="Date,time,UNIX,calendar,gregorian,new era,timestamp,unix epoch">
<!-- Site Properties -->
<title>UNIX Calendar</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/reset.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/site.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/container.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/grid.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/header.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/image.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/menu.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/divider.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/dropdown.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/segment.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/button.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/list.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/icon.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/sidebar.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/transition.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/statistic.css">
<link rel="stylesheet" type="text/css" href="./styles.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/visibility.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/sidebar.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/components/transition.js"></script>
<script src="./scripts.js"></script>
</head>
<body>
<a href="https://github.com/bzick/unix-calendar"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 1000" src="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"></a>
<!-- Following Menu -->
<div class="ui large top fixed hidden menu">
<div class="ui container">
<a class="item" href="#calendar">UNIX Calendar</a>
<a class="item" href="#about">What is it?</a>
<a class="item" href="#counter">Overflow counters</a>
<a class="item" href="#converter">Calendar converter</a>
</div>
</div>
<!-- Sidebar Menu -->
<div class="ui vertical inverted sidebar menu">
<a class="active item" href="#calendar">UNIX Calendar</a>
<a class="item" href="#about">What is it?</a>
<a class="item" href="#counter">Overflow counters</a>
<a class="item" href="#converter">Calendar converter</a>
</div>
<!-- Page Contents -->
<div class="pusher">
<div class="ui inverted vertical calendar center aligned segment dark-background">
<div class="ui container">
<div class="ui large secondary inverted pointing menu">
<a class="toc item">
<i class="sidebar icon"></i>
</a>
<a class="item" href="#calendar">UNIX Calendar</a>
<a class="item" href="#about">What is it?</a>
<a class="item" href="#counter">Overflow counters</a>
<a class="item" href="#converter">Calendar converter</a>
<!--div class="right item">
<a class="ui inverted button">Log in</a>
<a class="ui inverted button">Sign Up</a>
</div-->
</div>
</div>
<div class="ui text container">
<a name="calendar" ></a>
<h1 class="ui inverted">
UNIX Calendar
</h1>
<div class="ui five statistics inverted header clock">
<div class="statistic">
<div class="label">
Hour
</div>
<div class="value" id="hour">
00
</div>
<div class="label" id="timezone">
--
</div>
</div>
<div class="statistic">
<div class="label">
</div>
<div class="value">
:
</div>
</div>
<div class="statistic">
<div class="label">
Min
</div>
<div class="value" id="min">
00
</div>
</div>
<div class="statistic">
<div class="label">
</div>
<div class="value">
:
</div>
</div>
<div class="statistic">
<div class="label">
Sec
</div>
<div class="value" id="sec">
00
</div>
</div>
</div>
<div class="ui three statistics inverted center aligned">
<div class="ui huge statistic">
<div class="label">
Day
</div>
<div class="value" id="date">
00
</div>
<div class="label" id="weekday">
--
</div>
</div>
<div class="ui huge statistic">
<div class="label">
Month
</div>
<div class="value" id="month-no">
---
</div>
<div class="label" id="month">
---
</div>
</div>
<div class="ui huge teal inverted statistic">
<div class="label">
Year
</div>
<div class="value" id="year">
00
</div>
<div class="label" id="era">
new era
</div>
</div>
</div>
<div class="ui three statistics inverted center aligned header">
<div class="ui small statistic centered">
<div class="label">
Time stamp
</div>
<div class="value" id="timestamp">
0000000000
</div>
<div class="label">
seconds
</div>
</div>
</div>
</div>
</div>
<!-- about -->
<div class="ui vertical about stripe segment">
<a name="about" ></a>
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column">
<h3 class="ui header">Что это?</h3>
<p>Это UNIX календарь на основе григорианского календаря, с началом летоисчисления от начала отсчета UNIX-времени (от 1 января 1970 года по гринвичу).</p>
<h3 class="ui header">Зачем это?</h3>
<p>С появлением UNIX систем и его UNIX-времени началась новая кибернетическая эра, уже без которой человечество не сможет полноценно существовать и развиваться. Каждый кто работал с вычислительной техникой, включая телефоны, не осознавая это, работали в системах, которые ведут отсчет UNIX-времени. Так же отсчет ведется относительно точного некоторого события и является религиозно независимым.</p>
</div>
<div class="six wide right floated column">
<h3 class="ui header">Только год?</h3>
<p>Да, календарь меняет только год отсчета.</p>
<h3 class="ui header">Кто поддерживает?</h3>
<p>Это just-for-fun проект. Тем не менее в этом календаре есть смысл и будет прекрасно если он приживется. Вопросы и предложения пишите <a href="https://github.com/bzick/unix-calendar/issues">тут</a>.</p>
</div>
</div>
</div>
</div>
<!-- .about -->
<!-- critical -->
<div class="ui inverted vertical counters stripe segment dark-background">
<a name="counter"></a>
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column">
<h3 class="ui inverted">Предел счетчиков</h3>
<p>Штамп времени ведется целочисленными счетчиками. Как правило, это 4-х байтовое знаковое число (int), 4-х байтовое беззнаковое число (unsigned int), 8-и байтовое знаковое число (long), 8-х байтовое беззнаковое число (unsigned long). И проблемы будут если счетчик достигнет своего верхнего предела.</p>
<p></p>
</div>
<div class="seven wide right floated column">
<h3 class="ui inverted">До окончания <code>int</code></h3>
<div class="ui tiny horizontal statistic inverted">
<div class="value int years">
--
</div>
<div class="label">
лет
</div>
<div class="value int days">
--
</div>
<div class="label">
дней
</div>
<div class="value int clock">
--:--:--
</div>
</div>
<h3 class="ui inverted">До окончания <code>unsigned int</code></h3>
<div class="ui tiny horizontal statistic inverted">
<div class="value uint years">
--
</div>
<div class="label">
лет
</div>
<div class="value uint days">
--
</div>
<div class="label">
дней
</div>
<div class="value uint clock">
--:--:--
</div>
</div>
<h3 class="ui inverted">До окончания <code>long</code></h3>
<div class="ui tiny horizontal statistic inverted">
<div class="value long years">
--
</div>
<div class="label">
лет
</div>
</div>
<h3 class="ui inverted">До окончания <code>unsigned long</code></h3>
<div class="ui tiny horizontal statistic inverted">
<div class="value ulong years">
--
</div>
<div class="label">
лет
</div>
</div>
</div>
</div>
</div>
</div>
<!-- .critical -->
</div>
<script type="text/javascript">initCalendar();</script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter47862953 = new Ya.Metrika({
id:47862953,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
</body>
</html>