-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddTask.html
279 lines (252 loc) · 16.9 KB
/
addTask.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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tasks - Office Kothon</title>
<link rel="icon" href="https://img.icons8.com/cotton/2x/communication--v1.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://unpkg.com/microtip/microtip.css" />
<link rel="stylesheet" href="./toaster/toastr.min.css" />
<link rel="stylesheet" href="./clndr/mini-event-calendar.css">
<link rel="stylesheet" href="./css/dashboard.css" />
<link rel="stylesheet" href="./css/month.css">
<link rel="stylesheet" href="./css/week.css">
<link rel="stylesheet" href="./css/datePicker.css">
<link rel="stylesheet" href="./css/addTask.css" />
<script src="./js/theme.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="./toaster/toastr.min.js"></script>
</head>
<body>
<div class="loader"
style="position:fixed;z-index:99;top:0;left:0;width:100%;height:100%;display:flex;background:#101011;justify-content:center;align-items:center">
<img src="https://i.giphy.com/media/fYqaFLAWq7v2oRy4vh/giphy.webp" alt="loader" width="180px" height="180px" />
</div>
<div class="uploader" style="position:fixed;z-index:98;top:0;left:0;width:100%;height:100%;display:flex;background:radial-gradient(circle, rgba(21,51,108,1) 0%, rgba(3,5,50,0.6909138655462185) 86%);;
justify-content:center;align-items:center;">
<!-- <img src="https://purchase.enigmasoftware.com/Resources/Public/images/core/big_loader.gif" alt="loader"> -->
<div class="svgAnimPanel" style="width:30%;height:60%;">
<svg viewBox="0 0 96 96" class="svg-icon icon-cloud">
<path id="icon-cloud_border" fill="#FFFFFF"
d="M47.9 82.3l-0.2-7.5c0-0.1-0.5-4.6 2.3-7.7 1.7-1.9 4.3-2.9 7.6-2.9h17.3c3.8 0 14.1-3.5 14.1-14.7 0-12.9-12.2-13.7-12.7-13.7 -0.5 0-1-0.5-1-1 0-0.1 0.2-5.6-3.3-8.9 -2.1-2-5.2-2.9-9.2-2.5 -0.4 0-0.8-0.2-1-0.6 -0.2-0.4-5.2-10.8-18-10.3 -18 0.7-20.5 17.1-20.8 20.4 0 0.5-0.4 0.9-0.9 0.9C21.5 33.9 7 35.3 7 50c0 8.6 8.1 13.5 12.4 14.2 2.6 0.4 16 0.4 19.4 0.2 2.7-0.2 4.8-1.1 6.2-2.9 3.4-4 2.7-10.9 2.6-11l-0.1-1 2-0.2 0.1 1c0 0.3 0.8 7.8-3.1 12.5 -1.9 2.2-4.4 3.4-7.7 3.6 -3.6 0.2-17.1 0.2-19.9-0.2C13.2 65.1 5 59 5 50c0-14.4 12.7-17.5 16.1-18 1.2-9.7 7.8-20.8 22.6-21.5C56.2 10 62 18.8 63.3 21.3c4.3-0.2 7.7 0.8 10.1 3.2 3.2 3.1 3.8 7.5 3.9 9.5C82.5 34.6 91 38.4 91 49.6c0 12.7-11.8 16.7-16.1 16.7H57.6c-2.7 0-4.7 0.8-6.1 2.2 -2.2 2.5-1.8 6.2-1.8 6.2l0.2 7.6L47.9 82.3z" />
<g>
<circle id="ball2" class="ball" r="3.5" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball3" class="ball" r="3" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball4" class="ball" r="2.5" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball5" class="ball" r="2.2" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball6" class="ball" r="2" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball7" class="ball" r="1.8" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball8" class="ball" r="1.4" cy="87.290741" cx="48.762711" fill="#FF550E" />
<circle id="ball9" class="ball" r="1" cy="87.290741" cx="48.762711" fill="#FF550E" />
</g>
<g>
<polygon id="icon-cloud_arrow_top" class="arrow" fill="#FF550E"
points="41.7 54.2 48.7 47.6 55.7 54.2 54.2 55.6 48.7 50.3 43.2 55.6 " />
<polygon id="icon-cloud_arrow_bottom" class="arrow" fill="#FF550E"
points="55.7 76.8 48.7 83.4 41.7 76.8 43.2 75.4 48.7 80.7 54.2 75.4 " />
</g>
<g>
<path id="icon-cloud_reflection" fill="#12C4E8"
d="m 30.178658,31.155089 c -0.383147,0 -0.766295,-0.306518 -0.766295,-0.766295 0,-0.07663 0,-10.651504 11.417799,-11.494429 0.459777,0 0.766295,0.306518 0.842925,0.689666 0,0.459777 -0.306518,0.766295 -0.689666,0.842925 -9.961838,0.766295 -10.038467,9.57869 -10.038467,9.961838 0,0.383147 -0.306518,0.689665 -0.766296,0.766295 0,0 0,0 0,0 z" />
</g>
</svg>
</div>
</div>
<div class="dashboard-main row m-0 p-0" style="height: -webkit-fill-available">
<div class="dashboard-container row col-md-9 mr-2">
<!-- leftbar container -->
<div class="leftbar py-5">
<a href="./index.html" class="text-center"><img
src="https://img.icons8.com/cotton/2x/communication--v1.png" alt="" height="51px"></a>
<div class="leftbar-icons">
<a href="./dashboard.html" aria-label="Home" data-microtip-position="right" role="tooltip"><i
class="fa fa-home m-0"></i></a>
<a href="./chat.html" aria-label="Chat" data-microtip-position="right" role="tooltip"><i
class="fa fa-comment"></i></a>
<!-- <a href="#" aria-label="Group chat" data-microtip-position="right" role="tooltip"><i
class="fa fa-group"></i></a> -->
<a href="#0" aria-label="Task" data-microtip-position="right" role="tooltip"><i
class="fa fa-edit"></i></a>
<a href="./settings.html" aria-label="Settings" data-microtip-position="right" role="tooltip"><i
class="fa fa-cog"></i></a>
</div>
<a href="./index.html" id="signout" aria-label="Sign out" data-microtip-position="top-right"
role="tooltip"><i class="fa fa-sign-out text-secondary"></i></a>
</div>
<div class="rightbar-div col-md-4">
<h2 class="text-light text-center pt-5 pb-2 mr-2 taskAssign"> Assign Task</h2>
<div class="input-group mb-3">
<input type="text" id="myInput" class="form-control bg-dark shadow-lg border-info text-light"
placeholder="find somebody..." style="border-radius: 2em;">
</div>
<div class="dfeed-bar bg-transparent border-none scrollbar" id="force-overflow"
style="min-height: 73.6vh;"></div>
</div>
<div class="taskForm container mt-5 mb-1 col-md-6 shadow-lg " id="taskformbar">
<form id="taskForm" style="margin: auto;align-items: center;">
<button class="btn d-block float-right" id="closeForm"><i class="fa fa-arrow-left text-secondary"
aria-hidden="true"></i></button>
<h4 class="text-light text-center taskCap">loading..</h4>
<input class="form-control mb-3 mt-3 bg-dark shadow-lg text-light border-info" type="text"
placeholder="add task title" id="taskName" required />
<div class="form-group ">
<div class="d-flex">
<input id="startDate" name="startDate" type="text"
class="form-control bg-dark shadow-lg text-light datePicker border-info"
placeholder="select start date" required />
<input id="startTime" name="startTime" type="time" value="09:00"
class="form-control text-light border-0 " placeholder="select end time" required />
</div>
<div class="d-flex">
<input id="endDate" name="endDate" type="text"
class="form-control bg-dark shadow-lg text-light datePicker border-info"
placeholder="select end date" required />
<input id="endTime" name="endTime" type="time" value="10:00"
class="form-control text-light border-0" placeholder="select end time" required />
</div>
</div>
<textarea id="taskDetails" class="form-control mb-3 bg-dark shadow-lg text-light border-info"
id="exampleFormControlTextarea1" rows="3" placeholder="add task details...."></textarea>
<div class="custom-file mb-3" style="z-index: 0;">
<label class="custom-file-label bg-dark shadow-lg text-secondary border-info "
style="overflow: hidden;" for="customFile" id="fileLabel">Choose file </label>
<input type="file" class="custom-file-inpu" id="customFile" multiple />
</div>
<div class=" priority mb-3 ">
<label class="mr-sm-2 sr-only " for="inlineFormCustomSelect">Preference</label>
<select class="custom-select mr-sm-2 bg-dark shadow-lg text-secondary border-info"
id="inlineFormCustomSelect" required />
<option selected="" class="choose">Select Priority</option>
<option value="easy">Easy</option>
<option value="moderate">Moderate</option>
<option value="hard">Hard</option>
</select>
</div>
<button type="submit"
class="btn btn-secondary submitBtn rounded-pill border-dark shadow-lg mt-3 button">submit</button>
</form>
</div>
<div class=" svg-div col-md-6">
<div class="svg-part typewriter">
<div class="slide shadow-lg"></div>
<div class="paper shadow-lg"></div>
<div class="keyboard shadow-lg"></div>
</div>
<h6 class="clickMsg darkH6" style=" margin-top: 4vh ">click anyone to assign task</h6>
<button id="viewTasksBtn"
class="shadow-lg font-weight-bold rounded-pill btn btn-outline-secondary btn-sm">view tasks</button>
</div>
<div class="taskListDiv container mt-5 mb-1 col-md-6 shadow-lg"
style="background: #2e3035; border-radius: 2em;">
<button class="btn d-block float-right mt-3 mr-2" id="closeLists"><i class="fa fa-times text-secondary"
aria-hidden="true"></i></button>
<div class="mx-3 mt-5 mb-2" id="listHeader">
<div class="d-flex justify-content-between">
<h6 id="taskHeading" class="my-auto text-light d-inline">Your incompleted tasks</h6>
<div class="selection-div row">
<i class="text-right my-auto mr-1 fa fa-filter text-info" aria-hidden="true"></i>
<select
class="my-auto col-md-10 form-control bg-dark d-inline text-light border-0 custom-select-sm"
id="filterTask">
<option value="incompleted" selected="">Incompleted</option>
<option value="completed">Completed</option>
<option value="unapproved">Unapproved Tasks</option>
<option value="deadlineCrossed">Deadline Crossed</option>
<option value="" disabled="">Tasks you've assigned ——</option>
<option value="assignedTasks">Assigned tasks</option>
<option value="tasksApproval">Approve tasks</option>
</select>
</div>
</div>
</div>
<div class="mx-3 cardTile bg-transparent border-none scrollbar" id="scrollbar"
style="min-height: 73.6vh;"></div>
</div>
</div>
<div class="welcome-message col-md-3 mb-2 my-auto" id="welcome">
<div class=" col-md-7 mx-auto mb-3 pt-2" id="userInfoSection">
<img id="userImage" class="col-md-12" style="border-radius: 50%;"
src="https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_640.png" alt="">
<h5 class="text-center mt-3 text-light userName mb-0 mx-auto">Loading...</h5>
<h6 class="text-center mt-1 text-info designation mb-0 mx-auto">Loading...</h6>
</div>
<div class="container row mx-auto mb-3">
<div class=" text-light mx-auto text-center completedTask"><small>Completed: </small><small
id="completedTask" class="text-info font-weight-bold">6</small> </div>
<div class="text-light mx-auto text-center incompletedTask"><small>In-completed: </small><small
id="incompletedTask" class="text-info font-weight-bold">30</small> </div>
<div class="col-md-12"></div>
<div class=" text-light mx-auto text-center deadlineCrossed"><small>Deadline Crossed: </small><small
id="deadlineCrossed" class="text-info font-weight-bold">10</small> </div>
<div class=" text-light mx-auto status text-center"><small>User Status: </small><small id="status"
class="text-info font-weight-bold">good</small> </div>
</div>
<div class="mt-5 mx-auto ">
<div class="col-md-12 pt-4 justify-content-center title text-center mt-4 text-secondary d-flex mx-auto">
<i class="fa fa-bar-chart text-success mx-2" aria-hidden="true"></i>
<h6>Task Stat</h6>
<i class="fa fa-bar-chart text-success mx-2" aria-hidden="true"></i>
</div>
<canvas id="myChart" width="587" height="293" style="display: block;"></canvas>
<!-- <div class="chart-wrapper">
</div> -->
</div>
</div>
</div>
</body>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-analytics.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyAcNk4KaBv11KxfLtYofUq2zBRDsszM2VE",
authDomain: "office-kothon.firebaseapp.com",
databaseURL: "https://office-kothon.firebaseio.com",
projectId: "office-kothon",
storageBucket: "office-kothon.appspot.com",
messagingSenderId: "605346039997",
appId: "1:605346039997:web:350fd046addb6f51860fd4",
measurementId: "G-W822J60VT1"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
//make firebase consts
const auth = firebase.auth();
const storage = firebase.storage();
firebase.auth().onAuthStateChanged(function (user) {
if (!user) {
window.location.replace('./index.html');
}
else {
if (user.displayName.indexOf('isNewUser') !== -1) {
auth.currentUser.updateProfile({
displayName: user.displayName.split("isNewUser")[0],
photoURL: "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_640.png"
})
}
if (user.displayName == 'admin') {
window.location.replace('./admin.html');
}
else if (user.displayName == 'isUnknown') {
window.location.replace('./userNotVerified.html');
}
}
});
const db = firebase.firestore();
//update firebase settings
db.settings({ timestampsInSnapshots: true });
</script>
<script src="./js/jqDatePicker.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@0.7.0/dist/chartjs-plugin-datalabels.js"></script>
<script src="./js/addtask.js"></script>