-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathjs-calendar.html
137 lines (127 loc) · 5.32 KB
/
js-calendar.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
<!DOCTYPE html>
<html>
<head>
<!-- TITLE, DESC, CHARSET, VIEWPORT -->
<title>Offline JS Calendar</title>
<meta charset="utf-8">
<meta name="description" content="Offline Javascript Calendar App">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.5">
<!-- WEB APP & ICONS -->
<link rel="icon" href="assets/favicon.png" type="image/png">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="white">
<link rel="apple-touch-icon" href="assets/icon-512.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="JS Calendar">
<meta name="msapplication-TileImage" content="assets/icon-512.png">
<meta name="msapplication-TileColor" content="#ffffff">
<!-- WEB APP MANIFEST -->
<!-- https://web.dev/add-manifest/ -->
<link rel="manifest" href="CB-manifest.json">
<!-- CSS + JS -->
<link rel="stylesheet" href="assets/js-calendar.css">
<script defer src="assets/sql-wasm.js"></script>
<script defer src="assets/js-calendar-db.js"></script>
<script defer src="assets/js-calendar.js"></script>
</head>
<body>
<!-- (A) HEADER -->
<div id="calHead">
<div id="calPeriod">
<button id="calToday" type="button" class="icon-pushpin"></button>
<button id="calBack" type="button" class="icon-circle-left"></button>
<select id="calMonth"></select>
<input id="calYear" type="number">
<button id="calNext" type="button" class="icon-circle-right"></button>
</div>
<button id="calAdd" type="button" class="icon-plus"></button>
</div>
<!-- (B) CALENDAR WRAPPER -->
<div id="calWrap">
<div id="calDays"></div>
<div id="calBody"></div>
</div>
<!-- (C) EVENT FORM -->
<dialog id="calForm"><form method="dialog">
<div id="evtCX" class="icon-cross"></div>
<h2 class="evt100">CALENDAR EVENT</h2>
<div class="evt50">
<label>Start</label>
<input id="evtStart" type="datetime-local" required>
</div>
<div class="evt50">
<label>End</label>
<input id="evtEnd" type="datetime-local" required>
</div>
<div class="evt50">
<label>Text Color</label>
<input id="evtColor" type="color" value="#000000" required>
</div>
<div class="evt50">
<label>Background Color</label>
<input id="evtBG" type="color" value="#ffdbdb" required>
</div>
<div class="evt100">
<label>Event</label>
<input id="evtTxt" type="text" autocomplete="off" required>
</div>
<div class="evt100">
<input type="hidden" id="evtID">
<button type="button" id="evtDel" class="icon-bin2"></button>
<button type="submit" id="evtSave" class="icon-checkmark"></button>
</div>
</form></dialog>
<!-- (X) ABOUT -->
<div id="aboutFoot" onclick="about.show()">
ABOUT JS CALENDAR PWA
</div>
<dialog id="aboutWrap"><div id="aboutPop">
<div id="aboutCX" class="icon-cross" onclick="about.close()"></div>
<img src="assets/head-pwa-calendar.webp" id="aboutHead">
<!-- (X1) LINKS -->
<h3 class="aboutTitle">
<i class="ico-sm icon-sphere"></i> LINKS & DOCUMENTATION
</h3>
<div class="aboutSection"><ul>
<li><a href="https://code-boxx.com/javascript-calendar-pwa/" target="_blank">JS Calendar PWA Official Webpage</a></li>
<li><a href="https://github.com/code-boxx/Javascript-Calendar-PWA" target="_blank">JS Calendar PWA GitHub</a></li>
</ul></div>
<!-- (X2) SUPPORT -->
<h3 class="aboutTitle">
<i class="ico-sm icon-heart"></i> SUPPORT
</h3>
<div class="aboutSection">
<a href="https://www.paypal.com/paypalme/wstoh/5" class="aboutBtn" target="_blank">
<i class="ico-sm icon-mug"></i> Buy me a coffee
</a>
<a href="https://payhip.com/codeboxx" class="aboutBtn" target="_blank">
<i class="ico-sm icon-cart"></i> Code Boxx Store
</a>
<a href="https://github.com/sponsors/code-boxx" class="aboutBtn" target="_blank">
<i class="ico-sm icon-heart"></i> GitHub Sponsor
</a>
</div>
<!-- (X3) SOCIALS -->
<h3 class="aboutTitle">
<i class="ico-sm icon-smile2"></i> SOCIALS
</h3>
<div class="aboutSection"><ul>
<li><a href="https://code-boxx.com/" target="_blank">Code Boxx</a></li>
<li><a href="https://www.youtube.com/c/CodeBoxx" target="_blank">YouTube</a></li>
<li><a href="https://www.pinterest.com/codeboxx/" target="_blank">Pinterest</a></li>
<li><a href="https://github.com/code-boxx/" target="_blank">GitHub</a></li>
<li><a href="https://codepen.io/code-boxx" target="_blank">CodePen</a></li>
<li><a href="https://dev.to/codeboxx" target="_blank">DEV</a></li>
</ul></div>
<!-- (F) CREDITS -->
<h3 class="aboutTitle">
<i class="ico-sm icon-hammer"></i> CREDITS / BUILT WITH
</h3>
<div class="aboutSection"><ul>
<li><a href="https://icomoon.io/" target="_blank">IcoMoon</a></li>
<li><a href="https://github.com/sql-js" target="_blank">SQL.JS</a></li>
</ul></div>
</div></dialog>
</body>
</html>