-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoDoList.html
More file actions
201 lines (161 loc) · 7.91 KB
/
toDoList.html
File metadata and controls
201 lines (161 loc) · 7.91 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" integrity="sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=" crossorigin="anonymous" />
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="./sharedstyles.css">
<title>ToDo List</title>
</head>
<body>
<!-- Toppbaren med hjemknapp -->
<!-- Menylinje -->
<div class="overview">
<div>
<div class="split">
<a href="index.html" class="homeBtn"><i class="fa fa-home"></i></a>
<h1>
<span id="project_output"></span>
</h1>
</div>
<button onclick="openPopup('new_task_popup')" class="btn">Add task</button>
</div>
<div>
<p>Members</p>
<div id="members" class="members"></div>
<button onclick="openPopup('popup_member_main')" class="btn">Add member</button>
</div>
<div>
<p>Priority</p>
<div class="priority">
<p><span class="high"></span>High</p>
<p><span class="medium"></span>Medium</p>
<p><span class="low"></span>Low</p>
</div>
<div></div>
</div>
</div>
<!-- Task Board -->
<div class="theBoard">
<p style="text-align: center;">To do</p>
<p style="text-align: center;border-left: 1px solid;border-right: 1px solid;">In progress</p>
<p style="text-align: center;">Done</p>
<div id="toDo" class="tasks" ondragover="onDragOver(event)" ondrop="onDrop(event)">
</div>
<div id="inProgress" class="tasks" style="border-left: 1px solid;border-right: 1px solid;" ondragover="onDragOver(event)" ondrop="onDrop(event)">
</div>
<div id="done" class="tasks" ondragover="onDragOver(event)" ondrop="onDrop(event)">
</div>
</div>
<!--Add new member popup-->
<div id="popup_member_main" class="popup">
<div class="popupInner">
<a onclick="closePopup('popup_member_main')" href="#" class="close"></a>
<form onsubmit="createMember(event)">
<div class="form__group">
<input type="text" id="memberNameInput" class="form__field" placeholder="Member name">
<label for="memberNameInput" class="form__label">Member name</label>
</div>
<div class="button-wrapper">
<input class="popupBtn" type="submit" value="Create" onclick="closePopup('popup_member_main')" />
</div>
</form>
</div>
</div>
<!--Add new task popup-->
<div id="new_task_popup" class="popup">
<div class="popupInner">
<a onclick="closePopup('new_task_popup')" href="#" class="close"></a>
<form onsubmit="createTask(event)">
<div class="form__group">
<input type="text" id="taskName" class="form__field" placeholder="Task name" required>
<label for="taskName" class="form__label">Task name</label>
</div>
<div class="form__group">
<label class="form__label">Task Owner:</label>
<select name="memberList" id="member">
</select>
</div>
<div class="form__group">
<input type="date" id="date" class="form__field" placeholder="Due date">
<label for="date" class="form__label">Due date</label>
</div>
<div class="form__group">
<textarea id="description" class="form__field" placeholder="Your description" rows="3"></textarea>
<label for="description" class="form__label">Description</label>
</div>
<p>Choose priority for task:</p>
<div>
<input id="color" type="color" list="presetColors">
<datalist id="presetColors">
<option selected>#f95335</option>
<option>#FCAF38</option>
<option>#50A3A4</option>
</datalist>
</div>
<div class="button-wrapper">
<input class="popupBtn" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<!-- Edit task popup-->
<div id="edit_task_popup" class="popup">
<div class="popupInner">
<a onclick="closePopup('edit_task_popup')" href="#" class="close"></a>
<form onsubmit="saveEditTask(event)">
<div class="split">
<div class="taskInfo">
<div class="form__group">
<input type="text" id="saved_task_name" class="form__field" placeholder="Task name">
<label for="saved_task_name" class="form__label">Task name</label>
</div>
<div class="form__group">
<label class="form__label">Task Owner:</label>
<select name="memberList" id="saved_member">
</select>
</div>
<div class="form__group">
<input type="date" id="saved_date" class="form__field" placeholder="Due date">
<label for="saved_date" class="form__label">Due date</label>
</div>
<div>
<input id="saved_color" type="color" list="presetColors">
<datalist id="presetColors">
<option>#f95335</option>
<option>#FCAF38</option>
<option>#50A3A4</option>
</datalist>
</div>
<div class="form__group">
<textarea id="saved_description" class="form__field" placeholder="Your description" rows="3"></textarea>
<label for="saved_description" class="form__label">Description</label>
</div>
<div class="button-wrapper">
<input class="popupBtn" type="button" value="Delete" onclick="deleteTask()" />
<input class="popupBtn" type="submit" value="Save" onclick="closePopup('edit_task_popup')" />
</div>
</div>
<div class="updates">
<div class="form__group">
<textarea id="update" class="form__field" placeholder="Write an update" rows="3"></textarea>
<label for="update" class="form__label">Updates</label>
</div>
<div class="button-wrapper">
<input class="popupBtn" type="button" value="Comment" onclick="saveNewUpdate()" />
</div>
<div id="updates_output">
</div>
</div>
</div>
</form>
</div>
</div>
<script src="./mainpage.js"></script>
<script src="./newTask.js"></script>
<script src="./editTask.js"></script>
<script src="./newMember.js"></script>
</body>
</html>