forked from mikkosio/1800_202230_DTC09
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasklist.html
More file actions
160 lines (137 loc) · 7.11 KB
/
tasklist.html
File metadata and controls
160 lines (137 loc) · 7.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Inter-Task-Tivity</title>
<meta name="comp1800 template" content="My 1800 App">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!------------------------------------------>
<!-- Bootstrap Library CSS JS CDN go here -->
<!------------------------------------------>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<!-------------------------------------------------------->
<!-- Firebase 8 Library related CSS, JS, JQuery go here -->
<!-------------------------------------------------------->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/ui/4.8.1/firebase-ui-auth.js"></script>
<link type="text/css" rel="stylesheet"
href="https://www.gstatic.com/firebasejs/ui/4.8.1/firebase-ui-auth.css" />
<!-------------------------------------------->
<!-- Other libraries and styles of your own -->
<!-------------------------------------------->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="./styles/style.css">
<style>
p {
margin: 0;
}
label {
cursor: pointer;
}
a {
text-decoration: none;
color: black;
}
a:hover {
text-decoration: none;
color: white;
}
a:visited {
text-decoration: none;
}
</style>
</head>
<body>
<!------------------------------>
<!-- Your HTML Layout go here -->
<!------------------------------>
<!--Nav Bar-->
<nav id="navbarplaceholder"></nav>
<!--Task Reminder Cards-->
<div class="container">
<h2 id="listname" style="margin: 35px auto; margin-bottom: 0px;">My Tasks</h2>
<!-- Here is container for cards -->
<div class="container">
<div id="hikeCardGroup" class="row row-cols-auto">
</div>
</div>
</div>
<div class="container2" style="display: flex; justify-content: center; margin-top: 50px;">
<div class="center" style="width: 75%">
<div id="taskList" class="list-group w-auto">
</div>
<a href="./taskaddition.html"><button type="button" class="btn btn-outline-dark" id="addTaskBtn">Add
New Task</button></a>
</div>
</div>
<!-- Template for tasks -->
<template id="taskItemTemplate">
<div class="taskItem">
<label class="list-group-item d-flex gap-3">
<input class="form-check-input flex-shrink-0" type="checkbox" value="" style="font-size: 1.375em;"
data-toggle="modal" data-target="deleteTask" onclick="deleteTaskModal()">
<div class="modal fade" id="deleteTask" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Task Complete?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"
onclick="closeModal()">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Completed this task?
</div>
<div class="modal-footer">
<p><strong class="task-title" style="display: none;">tasktitle</strong>
<button type="button" class="btn btn-secondary" onclick="closeModal()"
data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary"
onclick="closeModal(), deleteTask()">Confirm Task</button>
</div>
</div>
</div>
</div>
<span class="pt-1 form-checked-content">
<span class="urgentBtn"></span></p>
<p><strong class="task-title" style></strong>
</span></p>
<div><small><b>Deadline: </b>
<p class="date-deadline" style="display: inline-block;">November 13, 2022 </p>
<p><b>Time Left: </b><span class="time-deadline">22:03</span> <span
class="time-deadline"></span>
<p>
<p><b>Task Description:</b></p>
<p class="task-description" style="display: inline-block;">Lorem ipsum dolor sit amet
consectetur adipisicing elit.
Maiores minus facere excepturi a accusamus ducimus porro architecto aspernatur molestias
labore.</p>
</p>
</small></div>
</span>
</label>
</div>
</template>
<!--Footer-->
<footer id="footerplaceholder"></footer>
<!---------------------------------------------->
<!-- Your own JavaScript functions go here -->
<!---------------------------------------------->
<!-- Link to scripts of your own -->
<script src="./scripts/skeleton.js"></script>
<script src="./scripts/firebaseAPI_TEAM09.js"></script>
<script src="./scripts/populatetask.js"></script>
<script src="./scripts/tasklist.js"></script>
<script src="./scripts/main.js"></script>
</body>
</html>