-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaylist.html
More file actions
512 lines (423 loc) · 19.7 KB
/
playlist.html
File metadata and controls
512 lines (423 loc) · 19.7 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
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./CSS/playlist.css">
<link rel="stylesheet" href="./CSS/resrc.css">
<link rel="icon" href="./favicon.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Jura:wght@600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css" rel="stylesheet">
<title>Level 1</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans|Open+Sans|Pacifico|Source+Code+Pro');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
#allcomments {
margin: 1em 0 4em 1em;
padding: 1%;
border: solid 1px gray;
border-radius: 3px;
box-shadow: 2px 2px 2px silver;
background-color: #F6F9FC;
}
ul#pastcomments {
list-style-type: none;
}
ul#pastcomments li:before {
font-family: FontAwesome;
content: "\f086";
font-size: 24pt;
color: gray;
margin-left: -42px;
padding-right: 10px;
position: relative;
top: 8px;
}
ul#pastcomments li {
margin: 0 0 2em 0;
padding: 10px;
}
ul#pastcomments li span {
font-size: 80%;
color: gray;
font-style: italic;
}
.contu .container {
background-color: #f6f9fc;
color: gray;
}
</style>
</head>
<body>
<div class="header">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand " href="#">
<div class="title">Abacus</div>
<div class="pick-up-line">
<p>Journey Starts Here</p>
</div>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item ">
<a class="nav-link" href="./index.html">Home </a>
</li>
<li class="nav-item">
<a class="nav-link" href="./ourprograms.html">Our Programs</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./cpfaq.html">CP FAQ</a>
</li>
</li>
<li class="nav-item">
<a class="nav-link " href="./achievements.html">Achivements</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./noticeboard.html">Notice Board</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./codebook.html">Code Book</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./mentors.html">Meet the Team</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<div class="container play">
<div class="embed-responsive embed-responsive-16by9">
<iframe width="560" height="315"
src="https://www.youtube-nocookie.com/embed/videoseries?list=PLcgg4mu-TN23hFW9RUM4aREQDcDvkoKce&controls"
frameborder="1" allowfullscreen></iframe>
</div>
</div>
<div class="container-fluid ">
<h2>Study Materials</h2>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 1 resources</h5>
</div>
<div class="panel">
<p>Almost everything about vector <ul>
<li><a href="https://pastebin.com/Uh9CjY5Y" target="_blank">STL Vector Codes</a> </li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 2 resources</h5>
</div>
<div class="panel">
<p>Some built in functions & Problem Discussion <ul>
<li><a href="https://codeforces.com/problemset/problem/381/A" target="_blank">Problem 1</a></li>
<li><a href="https://leetcode.com/problems/peak-index-in-a-mountain-array/" target="_blank">Problem 2</a></li>
<li><a href="https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence/"
target="_blank">Problem 3</a></li>
<li><a
href="https://www.hackerearth.com/practice/data-structures/trees/binary-search-tree/practice-problems/algorithm/distinct-count/submissions/"
target="_blank">Problem 4</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 3 resources</h5>
</div>
<div class="panel">
<p> Almost everything about STL String
<ul>
<li><a href="https://pastebin.com/x18NfqLp" target="_blank">STL String Codes</a></li>
</ul>
</p>
<p> Self Practice
<ul>
<li><a href="https://codeforces.com/problemset/problem/118/A" target="_blank">Problem 1</a></li>
<li><a href="https://www.hackerearth.com/problem/algorithm/the-palindrome-2/description/" target="_blank">Problem 2</a></li>
<li><a href="https://codeforces.com/contest/112/problem/A" target="_blank">Problem 3</a></li>
<li><a href="https://codeforces.com/contest/78/problem/A" target="_blank">Problem 4</a></li>
<li><a href="https://www.hackerearth.com/problem/algorithm/lexogeek-e6450fb7/description/" target="_blank">Problem 5</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 4 resources</h5>
</div>
<div class="panel">
<p>Some built in functions & Practice problems
<ul><li><a href="" target="_blank"> Full code of String </a></li></ul>
</p>
<p>Class Tasks
<ul>
<li><a href="https://codeforces.com/problemset/problem/118/A" target="_blank">Problem 1</a></li>
<li><a href="https://www.hackerearth.com/problem/algorithm/the-palindrome-2/description/" target="_blank">Problem 2</a></li>
<li><a href="https://codeforces.com/contest/112/problem/A" target="_blank">Problem 3</a></li>
<li><a href="https://codeforces.com/contest/78/problem/A" target="_blank">Problem 4</a></li>
<li><a href="https://www.hackerearth.com/problem/algorithm/lexogeek-e6450fb7/description/" target="_blank">Problem 5</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 5 resources</h5>
</div>
<div class="panel">
<p>Almost everything about STL Pair with practice problems
<ul>
<li><a href="https://pastebin.com/jUBm08tq" target="_blank">STL Pair Codes</a></li>
</ul>
</p>
<p>Discussed problems
<ul>
<li><a href="https://codeforces.com/contest/44/problem/A" target="_blank">Problem 1</a></li>
<li><a href="https://practice.geeksforgeeks.org/problems/count-distinct-pairs-with-difference-k/0" target="_blank">Problem 2</a></li>
<li><a href="https://codeforces.com/problemset/problem/166/A" target="_blank">Problem 3</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 6 resources</h5>
</div>
<div class="panel">
<p> Almost everything about STL Map with practice problems : Part-1
<ul>
<li><a href="https://practice.geeksforgeeks.org/problems/find-the-frequency/1" target="_blank">Problem 1</a></li>
<li><a href="https://practice.geeksforgeeks.org/problems/twice-counter4236/1" target="_blank">Problem 2</a></li>
<li><a href="https://practice.geeksforgeeks.org/problems/word-with-maximum-frequency/0" target="_blank">Problem 3</a></li>
<li><a href="https://atcoder.jp/contests/arc087/tasks/arc087_a" target="_blank">Problem 4</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 7 resources</h5>
</div>
<div class="panel">
<p> STL Map & practice problem Part - 2
<ul>
<li><a href="https://codeforces.com/contest/855/problem/A" target="_blank">Problem 1</a></li>
<li><a href="https://codeforces.com/contest/4/problem/C" target="_blank">Problem 2</a></li>
<li><a href="https://codeforces.com/contest/918/problem/B" target="_blank">Problem 3</a></li>
<li><a href="https://www.spoj.com/problems/RPLD/" target="_blank">Problem 4</a></li>
<li><a href="https://codeforces.com/contest/903/problem/C" target="_blank">Problem 5</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 8 resources</h5>
</div>
<div class="panel">
<p> Almost everything about STL Set
<ul><li><a href="https://pastebin.com/d1SFD8TK" target="_blank">STL Set Codes</a></li></ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 9 resources</h5>
</div>
<div class="panel">
<p> STL Set Practice problems
<ul>
<li><a href="https://www.hackerrank.com/challenges/cpp-sets/problem" target="_blank">Problem 1</a></li>
<li><a href="https://practice.geeksforgeeks.org/problems/c-stl-set-6-set/1" target="_blank">Problem 2</a></li>
<li><a href="https://practice.geeksforgeeks.org/problems/set-operations/1" target="_blank">Problem 3</a></li>
<li><a href="https://codeforces.com/problemset/problem/469/A" target="_blank">Problem 4</a></li>
<li><a href="https://leetcode.com/problems/contains-duplicate/" target="_blank">Problem 5</a></li>
<li><a href="https://codeforces.com/problemset/problem/22/A" target="_blank">Problem 6</a></li>
</ul>
</p>
</div>
<div class="accordion">
<div class="icon"><i class="fa fa-plus" aria-hidden="true" style="padding: 7px 0 0 7px;"></i> </div>
<h5>Class 10 resources</h5>
</div>
<div class="panel">
<p>STL Multiset and practice problem
<ul><li><a href="https://practice.geeksforgeeks.org/problems/multiset-operations/1" target="_blank">Problem 1</a></li></ul>
</p>
</div>
</div>
<!-- <div id="allcomments"> -->
<div class="contu">
<div class="container mt-5 pt-5 writeus">
<div class="row d-flex justify-content-center">
<div class="col-lg-8 bg-dark px-5 rounded z-depth-5 mt-5">
<div class="row">
<div class="card-header bg-dark mt-4">
<h1 class="text-white">Write Us</h1>
<div class="col-sm-12 border border-bottom border-primary"></div>
</div>
<p class="text-white ml-3">We would love to hear your thoughts, concerns or problem with anything so we can
improve!</p>
</div>
<div class="row">
<div class="col-md-5 border-right">
<form id="newcomment">
<div class="col-md-12">
<div class="md-form form-group">
<input type="text" id="tbName" name="name" class="form-control text-white" required="">
<label for="tbName">Name</label>
</div>
</div>
<div class="col-md-12">
<div class="md-form form-group">
<input type="email" id="email" name="email" class="form-control text-white" required="">
<label for="email">E-mail</label>
</div>
</div>
<div class="col-md-12 pt-2">
<div class="form-check">
<input type="checkbox" id="check" name="check" class="form-check-input" required="">
<label for="check" class="form-check-label text-white">I am not a Robot</label>
</div>
</div>
</div>
<div class="col-md-7 mt-2">
<div class="md-form">
<textarea type="text" id="txComment" name="message" rows="4" class="form-control md-textarea text-white"
required=""></textarea>
<label for="txComment">Your Message</label>
<button type="submit" id="btnSubmitComment" class="btn btn-primary btn-block">Send Message</button>
<!-- <input type="submit" id="btnSubmitComment" value="Submit Comment"> -->
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="container">
<div id="allcomments">
<h3>Comments</h3>
<!-- We will show past comments in the list below-->
<ul id="pastcomments"></ul>
</div>
</div>
</div>
<footer>
<div id="footer-area">
<div class="container foot-cont">
<div class="row">
<div class="col-md-4 col-sm-12">
<div class="single-footer">
<h1>Abacus Academy</h1>
<div class="social-media">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="single-footer">
<h3>Support</h3>
<ul class="link-area">
<li><a href="#"> <i class="fa fa-long-arrow-right"></i> Product Page </a></li>
<li><a href="#"> <i class="fa fa-long-arrow-right"></i> Privacy </a></li>
<li><a href="#"> <i class="fa fa-long-arrow-right"></i> Policies </a></li>
<li><a href="#"> <i class="fa fa-long-arrow-right"></i> Carrers </a></li>
</ul>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="single-footer">
<h3>Contact Us</h3>
<ul class="link-area">
<li><a href="#"> <i class="fa fa-phone"></i> 01832198319 </a></li>
<li><a href="#"> <i class="fa fa-envelope"></i> yourname@gmail.com </a></li>
<li><a href="#"> <i class="fa fa-map"></i> Mirpur 12,Avenue-2,Road-15 </a></li>
<li><a href="#"> <i class="fa fa-globe"></i> www.abacusacademy.com</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container foot-cont">
<div class="row">
<div class="col-md-12">
<div class="copyright-area text-center">
<p>© 2019 All Rights Reserved Abacus Academy</p>
</div>
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js">
</script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>
<script src="./js/resrc.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
<script src="https://www.gstatic.com/firebasejs/5.0.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.1/firebase-database.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyBA8kVCcxyapeagkGDyrqAl4GHHl6vz9M0",
authDomain: "new1-569b6.firebaseapp.com",
databaseURL: "https://new1-569b6.firebaseio.com",
projectId: "new1-569b6",
storageBucket: "new1-569b6.appspot.com",
messagingSenderId: "609373049757",
appId: "1:609373049757:web:4ba94bfc07fda257a31574"
};
firebase.initializeApp(firebaseConfig);
const rootRef = firebase.database().ref();
const commentsRef = rootRef.child('comments');
document.getElementById("btnSubmitComment").addEventListener("click", function () {
var newcomment = document.getElementById('txComment').value.replace(/\n/g, "<br>");
var newPostRef = commentsRef.push();
newPostRef.set({
name: document.getElementById('tbName').value.trim(),
comment: newcomment.trim(),
frompage: location.pathname,
when: firebase.database.ServerValue.TIMESTAMP
});
});
function showpastcomments() {
var showat = document.getElementById('pastcomments');
var commentsRef = firebase.database().ref('comments/').orderByChild('frompage').equalTo(location.pathname);
commentsRef.once('value', function (snapshot) {
snapshot.forEach(function (itemSnapshot) {
var itemData = itemSnapshot.val();
var comment = itemData.comment;
var name = itemData.name;
var when = new Date(itemData.when).toLocaleDateString("en-us");
showat.innerHTML += "<li>" + comment + "<span> -- " + name + " (" + when +
")</span></li>";
})
})
}
showpastcomments()
</script>
</body>
</html>