-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex-start.js
More file actions
32 lines (26 loc) · 833 Bytes
/
Copy pathindex-start.js
File metadata and controls
32 lines (26 loc) · 833 Bytes
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
var today = new Date();
var date = today.getFullYear();
$(".version").on("click", function() {
alert("This is copyrighted website and first version was Uploaded on year 2020.");
});
var $sideBar = $('#side-Bar');
var $win = $(window);
$win.on("scroll", function() {
console.log($win.scrollTop());
if ($win.scrollTop() >= 2900) {
$('#side-Bar-exams').addClass("opacity1");
} else {
$('#side-Bar-exams').removeClass("opacity1");
}
if ($win.scrollTop() >= 7755) {
$('#side-Bar-advanced').addClass("opacity1");
} else {
$('#side-Bar-advanced').removeClass("opacity1");
}
$('.side-bar').addClass("speed");
});
$(".dropdownIcon").click(function() {
$("ul.dropdownmenu2").slideToggle("medium");
$("ul.dropdownmenu2").toggleClass("dis");
return false;
});