-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
102 lines (93 loc) · 4.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calendar</title>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<header class="header">
<div class="weekControls">
<i id="prevWeekBtn" class="fas fa-angle-double-left"></i>
<span id="weekDisplay">
<span id="weekStartDisplay"></span>
‒
<span id="weekEndDisplay"></span>
</span>
<i id="nextWeekBtn" class="fas fa-angle-double-right"></i>
</div>
<h1>Calendar</h1>
<div class="generalControls">
<i id="addButton" class="fas fa-plus"></i>
<i id="trashButton" class="fas fa-trash-alt"></i>
</div>
</header>
<section id="calendar">
<div class="dayTime">
</div>
<div data-name="Monday" data-dayIndex = "0" class="day">
</div>
<div data-name="Tuesday" data-dayIndex = "1" class="day">
</div>
<div data-name="Wednesday" data-dayIndex = "2" class="day">
</div>
<div data-name="Thursday" data-dayIndex = "3" class="day">
</div>
<div data-name="Friday" data-dayIndex = "4" class="day">
</div>
<div data-name="Saturday" data-dayIndex = "5" class="day">
</div>
<div data-name="Sunday" data-dayIndex = "6" class="day">
</div>
</section>
<form id="eventModal">
<h2 id="modalTitle">
</h2>
<label class="descriptor" for="title">Title</label>
<div>
<input required type="text" id="eventTitle" name="title" class="shortInput"></input>
</div>
<label class="descriptor" for="date">Date</label>
<div>
<input required type="date" id="eventDate" name="date" class="shortInput"></input>
</div>
<label class="descriptor" for="time">Time</label>
<div>
<input required type="time" id="eventStart" name="time" class="shortInput"></input>
‒<input required type="time" id="eventEnd" name="time" class="shortInput"></input>
</div>
<label for="description">
Description
</label>
<div>
<textarea id="eventDescription" name="description">
</textarea>
</div>
<label for="color">
Color
</label>
<div id="colors">
<input type="button" name="color" value="" class="color color-red" data-color = "red"></input>
<input type="button" name="color" value="" class="color color-blue" data-color = "blue"></input>
<input type="button" name="color" value="" class="color color-green" data-color = "green"></input>
<input type="button" name="color" value="" class="color color-orange" data-color = "orange"></input>
</div>
<div id="eventControls">
<input type="submit" value="Submit" class="button" id="submitButton">
<input type="button" value="Cancel" class="button" id="cancelButton">
<input type="button" value="Copy" class="button" id="copyButton">
<input type="button" value="Delete" class="button" id="deleteButton">
</div>
<div id="errors">
</div>
</form>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="main.js" type="module"></script>
</body>
</html>