-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (117 loc) · 5.49 KB
/
Copy pathindex.html
File metadata and controls
128 lines (117 loc) · 5.49 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="./static/css/ness.css" />
<link rel="stylesheet" href="./static/css/app.css" />
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
</head>
<body>
<h1>Date Time formatter</h1>
<main>
<div class="explanation-container">
<p>
Type a date time format an see how to write it in multiple languages.
</p>
<p>
There is plenty of options to format the date and time.
View some of them <span id="show-date-formats" class="nes-text is-primary">here</span>.
</p>
<p>
This page uses Momment Js <a href="https://momentjs.com/" target="_blank">=></a> to provide the date time format in multiple culture formats.
</p>
</div>
</main>
<section id="format-container">
<div id="format-wrapper">
<input id="format" class="nes-input" tabindex="1" autofocus placeholder="MMMM Do YYYY, h:mm:ss"></input>
</div>
</section>
<section id="moment-cultures-container">
</section>
<div class='dialog-component close-dialog' id='dialog-backgorund'></div>
<dialog class="nes-dialog is-rounded dialog-component" id="date-formats-dialog">
<form method="dialog">
<p class="tittle">Usefull date time formats</p>
<div>
<p>Year</p>
<ul class="nes-list is-circle">
<li>
<span class="usefull-format">YYYY</span> four digit year
</li>
<li>
<span class="usefull-format">YY</span> two digit year
</li>
<li>
<span class="usefull-format">Y</span> year
</li>
</ul>
</div>
<div>
<p>Month</p>
<ul>
<li>
<span class="usefull-format">M</span>, <span class="usefull-format">MM</span> month number
</li>
<li>
<span class="usefull-format">MMM</span> month shortened form
</li>
<li>
<span class="usefull-format">MMMM</span> month name
</li>
</ul>
</div>
<div>
<p>Day</p>
<ul>
<li>
<span class="usefull-format">D</span>, <span class="usefull-format">DD</span> day of month
</li>
<li>
<span class="usefull-format">Do</span> day with ordinal
</li>
<li>
<span class="usefull-format">ddd</span>, <span class="usefull-format">dddd</span> day name (Mon ... Monday)
</li>
<li>
<span class="usefull-format">e</span> day of week
</li>
<li>
<span class="usefull-format">DDD</span>, <span class="usefull-format">DDDD</span> day of year
</li>
</ul>
</div>
<div>
<p>Others</p>
<ul>
<li>
<span class="usefull-format">w</span>, <span class="usefull-format">ww</span> week of year
</li>
<li>
<span class="usefull-format">X</span> Unix timestamp
</li>
<li>
<span class="usefull-format">DDD</span>, <span class="usefull-format">DDDD</span> day of year
</li>
</ul>
</div>
<menu class="dialog-menu">
<button id="close-date-formats-dialog" class="nes-btn close-dialog is-small">OK</button>
</menu>
</form>
</dialog>
<section>
<p>This website is styled using ness.css <a href="https://nostalgic-css.github.io/NES.css/" target="_blank">=></a>. Being retro and freak is FUN! </p>
</section>
<footer>
<div>
<p>Feel free to contribute, or fork me at Github:</p>
<a target="_blank" href="https://github.com/mpeix/datetimeformatter" class="nes-octocat animate"></a>
</div>
</footer>
<button id="go-up" type="button" class="nes-btn is-error scroll-btn active"><span><</span></button>
<script type="text/javascript" src="./static/js/noModule/moment.js"></script>
<script type="module" src="./static/js/app.js"></script>
<script type="text/javascript" src="./static/js/noModule/texblock.min.js"></script>
</body>
</html>