-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.html
261 lines (246 loc) · 15.5 KB
/
post.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
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Post Feed</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" type="text/css"
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" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/microtip/microtip.css" />
<link rel="stylesheet" type="text/css" href="./toaster/toastr.min.css" />
<link rel="stylesheet" type="text/css" href="./clndr/mini-event-calendar.css">
<link rel="stylesheet" type="text/css" href="./css/month.css">
<link rel="stylesheet" type="text/css" href="./css/week.css">
<link rel="stylesheet" type="text/css" href="./css/datePicker.css">
<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>
<link rel="stylesheet" type="text/css" href="./css/post.css">
</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-1 " style="height: inherit;">
<!-- 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="./admin.html" aria-label="Dashboard" data-microtip-position="right" role="tooltip"><i
class="fa fa-home m-0"></i></a>
<a href="#0" aria-label="Create Post" data-microtip-position="right" role="tooltip"><i
class="fa fa-plus-circle"></i></a>
<!-- <a href="#0" aria-label="Group chat" data-microtip-position="right" role="tooltip"><i
class="fa fa-group"></i></a> -->
<a href="./members.html" aria-label="Users" data-microtip-position="right" role="tooltip"><i
class="fa fa-user-plus"></i></a>
</div>
<a href="#0" 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="row content col-md-10 my-4" id="frame">
<div class="col-md-12 row m-0 hello-bar shadow-lg border border-info">
<div class="profile-card-4 col-md-3 ">
<img id="userImage" class="col-md-12 rounded-circle mb-3" alt=""
src="https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_640.png">
<!-- Modal -->
<div class="form-group file-upload mx-auto">
<input type="file" class="fileUpload" multiple>
<i class="fa fa-upload"></i>
</div>
<div class=" priority mb-2 ">
<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-dark"
id="add_fields_placeholder" required="">
<option selected="" class="choose " value="" disabled="">Post Type</option>
<option value="Meeting">Meeting</option>
<option value="Notice">Notice</option>
<option value="Event">Event</option>
</select>
</div>
<div class=" priority mb-2 ">
<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-dark"
id="selectedPriority" required="">
<option selected="" disabled class="choose" value>Select Priority
</option>
<option value="Low">Low</option>
<option value="Moderate">Moderate</option>
<option value="Hard">Hard</option>
</select>
</div>
<div class="form-group picker">
<input id="startDate" name="startDate" type="text"
class="datePicker form-control bg-dark shadow-lg text-light mb-2 border-dark"
placeholder="select event date" required />
<input id="eventLink" type="text"
class="form-control bg-dark shadow-lg text-light border-dark"
placeholder="Enter event link" required />
</div>
</div>
<form class="taskForm my-3 mb-1 col-md-9 shadow-lg " id="taskformbar">
<div class=" col-md-12 my-auto">
<span class="c-link">clear</span>
<div class="form ">
<label>Title</label>
<input name="name" class="form-control mb-2 bg-dark shadow-lg text-light border-dark"
type="text" id="taskName" required="">
<label>What's on your mind?</label>
<textarea id="taskDetails" rows="6"
class="form-control mb-3 bg-dark shadow-lg text-light border-dark"></textarea>
<input class="form-control shadow-lg btn-secondary " type="submit" id="postSubmit">
</div>
</div>
</form>
</div>
<div class="row col-md-12 m-auto content p-0">
<div class="chart card col-md-6 mx-auto shadow-lg p-0" style="margin-left: -10px !important;">
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<canvas id="myChart" style="margin: auto;display: block;width: 430px;height: 221px;" width="562"
height="276" class="chartjs-render-monitor"></canvas>
</div>
<div class="chart card col-md-6 mx-auto shadow-lg p-0" style="margin-right: -10px !important;">
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<canvas id="myChart1" width="563" height="278" class="chartjs-render-monitor"
style="display: block;width: 430px;height: 223px;margin: auto;"></canvas>
</div>
</div>
</div>
</div>
<div class="rightbar-div col-md-3 ">
<div class="feed-bar scrollbar" id="force-overflow">
<div class="panel-group" id="accordion">
</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 != 'admin') {
window.location.replace('./dashboard.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="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
<script src="./toaster/toastr.min.js"></script>
<script src="./js/jqDatePicker.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="./js/post.js"></script>