This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 1.62 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Simple Javascript Calendar</title>
<script src="webxdc.js"></script>
<link href="calendar.css" rel="stylesheet" />
<script async src="calendar.js"></script>
</head>
<body>
<div id="cal-wrap" class="block">
<!-- (A) PERIOD SELECTOR -->
<div id="cal-date">
<button id="prevMonth">❮</button>
<h1 id="date"></h1>
<button id="nxtMonth">❯</button>
</div>
<!-- (B) CALENDAR -->
<div id="cal-container"></div>
<!-- (D) EVENTS PER DAY -->
<div id="eventsDay">
<h1 id="evt-date" class="block"></h1>
<div id="evt-cards"></div>
<p id="alert">⚠️ You cannot submit an empty event!</p>
<textarea id="evt-details" class="block" placeholder="Add a new event..."></textarea>
<!-- <select id="evtColor">
<option value="#FAD02C" selected>Yellow</option>
<option value="#333652">Blue</option>
<option value="#c74646">Red</option>
<option value="#00cc00">Green</option>
</select> -->
<div class="block">
<label for="color">Choose a color for your event:</label>
<input type="color" value="#FAD02C" id="evtColor" name="color">
</div>
<button class="eventBtn" id="evt-save">Save</button>
<button class="eventBtn" id="evt-close">Close</button>
</div>
<div id="dateSel">
<div class="block">
<select id="cal-mth"></select>
<select id="cal-yr"></select>
</div>
<button class="eventBtn" id="okDate">OK</button>
<button class="eventBtn" id="cancelDate">Cancel</button>
</div>
</div>
</body>
</html>