-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (191 loc) · 10.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<base href="https://eonasdan.github.io/js-native-date-enhancements/"/>
<meta charset="UTF-8">
<meta name="description" content="Native JS Date Enhancements">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Native JS Date Enhacements</title>
<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="site.webmanifest">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta class="metaTitle" name="title" content="Native JS Date Enhancements"/>
<meta class="metaDescription" name="description" content="Native JS Date Enhancements"/>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="article"/>
<meta class="metaUrl" property="og:url" content="https://eonasdan.github.io/js-native-date-enhancements/"/>
<meta class="metaTitle" property="og:title" content="Native JS Date Enhancements"/>
<meta class="metaDescription" property="og:description" content="Native JS Date Enhancements"/>
<meta class="metaImage" property="og:image" content=""/>
<meta class="metaPublishedTime" property="article:published_time" content=""/>
<meta class="metaModifiedTime" property="article:modified_time" content=""/>
<meta class="metaTag" property="article:tag" content=""/>
<meta property="article:author" content="Jonathan Peterson"/>
<meta property="article:section" content="Technology"/>
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image"/>
<meta property="twitter:site" content="@eonasdan"/>
<meta property="twitter:creator" content="@eonasdan"/>
<meta class="metaUrl" property="twitter:url" content="https://eonasdan.github.io/js-native-date-enhancements/"/>
<meta class="metaTitle" property="twitter:title" content=""/>
<meta class="metaDescription" property="twitter:description" content="Native JS Date Enhancements"/>
<meta class="metaImage" property="twitter:image" content=""/>
<link rel="stylesheet" href="css/style.min.css"/>
<script src="index.js" type="module"></script>
</head>
<body>
<!-- ##### Header Area Start ##### -->
<header class="header-area">
<!-- Top Header Area -->
<div class="top-header-area">
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-md-6">
</div>
<div class="col-12 col-md-6">
<div class="top-meta-data d-flex align-items-center justify-content-end" style="padding-top:.5rem">
<!-- Top Social Info -->
<div class="top-social-info">
<a href="http://twitter.eonasdan.com/" target="_blank" rel="noopener"
title="Find me on Twitter"><i class="fab fa-twitter"></i></a>
<a href="http://github.eonasdan.com/" target="_blank" rel="noopener"
title="Find me on GitHub"><i class="fab fa-github"></i></a>
<a href="http://twitch.eonasdan.com/" target="_blank" rel="noopener"
title="Find me on Twitch"><i class="fab fa-twitch"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Navbar Area -->
<div class="vizew-main-menu" id="sticker">
<div class="classy-nav-container breakpoint-off">
<div class="container">
<!-- Menu -->
<nav class="classy-navbar justify-content-between" id="vizewNav">
<!-- Nav brand -->
<span class="nav-brand text-white" style="max-width: inherit;">Native JS Date Enhacements</span>
</nav>
</div>
</div>
</div>
</header>
<!-- ##### Header Area End ##### -->
<div id="mainContent">
<section class="post-details-area mb-80">
<div id="post-container" class="container">
<div class="row justify-content-center">
<div class="col-12 col-lg-8 col-xl-7">
<p>
I created a small (3k) date library that extends the native javascript date object. This is much
smaller
verus moment.js and — if you consider the plugins you would need to accomplish this in
day.js
— smaller verus day.js.
<br/><br/>
You can get the code on <a href="https://github.com/Eonasdan/js-native-date-enhancements"
target="_blank" rel="noopener">github</a> and play with the code on
<a
href="https://stackblitz.com/edit/native-date-functions" target="_blank"
rel="noopener">stackblitz</a>.
</p>
<hr/>
<div id="app"></div>
</div>
<!-- Sidebar Widget -->
<div class="col-12 col-md-6 col-lg-4 col-xl-3">
<div class="sidebar-area">
<!-- ***** Single Widget ***** -->
<!-- <div class="single-widget share-post-widget mb-50">
<p>Share This Post</p>
<a href="#" class="facebook" target="_blank"><i class="fab fa-facebook" aria-hidden="true"></i> Facebook</a>
<a href="#" class="twitter" target="_blank"><i class="fab fa-twitter" aria-hidden="true"></i> Twitter</a>
<a href="#" class="linkedin" target="_blank"><i class="fab fa-linkedin" aria-hidden="true"></i> LinkedIn</a>
</div>-->
<!-- ***** Single Widget ***** -->
<div class="single-widget p-0 author-widget">
<div class="p-4">
<img class="author-avatar" src="https://github.com/eonasdan.png" alt="" width="120"
height="120"/>
<span class="author-name">Jonathan Peterson (Eonasdan)</span>
<div class="author-social-info">
<a href="http://twitter.eonasdan.com/" target="_blank" rel="noopener"
title="Find me on Twitter"><i class="fab fa-twitter"></i></a>
<a href="http://github.eonasdan.com/" target="_blank" rel="noopener"
title="Find me on GitHub"><i class="fab fa-github"></i></a>
<a href="http://twitch.eonasdan.com/" target="_blank" rel="noopener"
title="Find me on Twitch"><i class="fab fa-twitch"></i></a>
</div>
<p>11+ years of web development experience on the Microsoft tech stack creating both
internal enterprise applications and public facing websites.</p>
</div>
</div>
<script async type="text/javascript"
src="//cdn.carbonads.com/carbon.js?serve=CESDVK3I&placement=eonasdancom"
id="_carbonads_js"></script>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- ##### Footer Area Start ##### -->
<footer class="footer-area">
<!-- Copywrite Area -->
<div class="copywrite-area">
<div class="container">
<div class="row align-items-center">
<!-- Copywrite Text -->
<div class="col-12 col-sm-6">
<p class="copywrite-text">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©2020
All rights reserved | This template is made with <i class="fa fa-heart-o"
aria-hidden="true"></i> by <a
href="https://colorlib.com" target="_blank" rel="noopener">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
</div>
<div class="col-12 col-sm-6">
</div>
</div>
</div>
</div>
</footer>
<!-- ##### Footer Area End ##### -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/regular.min.js"
integrity="sha512-jR9mIF29jOBsgismrZaiPV9H/VNWOpnILyA4MPEPgJFadfbWT0mQ5MnxCMd+JCYdoTuB2n1SkI00XkELU4ETmg=="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/brands.min.js"
integrity="sha512-vefaKmSAX3XohXhN50vLfnK12TPIO+4uRpHjXVkX726CqbicEiAQGRzsMTE+EpLkBk4noUcUYu6AQ5af2vfRLA=="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/fontawesome.min.js"
integrity="sha512-KCwrxBJebca0PPOaHELfqGtqkUlFUCuqCnmtydvBSTnJrBirJ55hRG5xcP4R9Rdx9Fz9IF3Yw6Rx40uhuAHR8Q=="
crossorigin="anonymous"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/prism.min.js"
integrity="sha512-YBk7HhgDZvBxmtOfUdvX0z8IH2d10Hp3aEygaMNhtF8fSOvBZ16D/1bXZTJV6ndk/L/DlXxYStP8jrF77v2MIg=="
crossorigin="anonymous"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/components/prism-javascript.min.js"
integrity="sha512-I4ZWqUpk7wqHcm7Gkv7k4IdgrDUTlGm1a7xeqyduqZLWeoGOn2E9us4XNBEDGclpk+6d1CmqIHYwmoyyL59zeA=="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism-tomorrow.min.css"
integrity="sha512-vswe+cgvic/XBoF1OcM/TeJ2FW0OofqAVdCZiEYkd6dwGXthvkSFWOoGGJgS2CW70VK5dQM5Oh+7ne47s74VTg=="
crossorigin="anonymous"/>
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>
<script defer>
kofiWidgetOverlay.draw('eonasdan', {
'type': 'floating-chat',
'floating-chat.donateButton.text': 'Support me',
'floating-chat.donateButton.background-color': '#323842',
'floating-chat.donateButton.text-color': '#fff'
});
</script>
<link rel="stylesheet" href="css/carbon.css"/>
<!--<script src="https://khan.github.io/tota11y/dist/tota11y.min.js"></script>-->
</body>
</html>