-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
64 lines (52 loc) · 1.87 KB
/
script.js
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
"use strict";
$(document).ready(function () {
var inittrue = true;
var profile = document.querySelector("#pp").src;
console.log(profile);
$(".navigation_trigger").on("click", function () {
$(".navigation_top").toggleClass("open");
$(".contact_chip").fadeToggle("fast");
});
$(".navigation_top .navigation li").on("click", function (event) {
// $(".navigation_top .navigation li").not(this).removeClass("active");
//$(this).addClass("active");
});
$(".navigation_top .navigation li").on("click", function(e){
setTimeout(function(){
$(".navigation_top").removeClass("open");
$(".contact_chip").fadeToggle("fast");
}, 80)
})
$(".corner_button, .corner_exit").on("click", function () {
if (inittrue) {
$(".navigation_top, .landing, main, footer").fadeToggle(0);
$(".corner_codepen").fadeToggle();
// $(".blurrer").removeClass("toggleblur");
inittrue = false;
} else {
$(".navigation_top, .landing, main, footer").fadeToggle(0);
$(".corner_codepen").fadeToggle();
// $(".blurrer").addClass("toggleblur");
inittrue = true;
};
});
$(window).on("scroll", function (event) {
// fader();
});
function fader() {
if (document.body.scrollTop > 1 || document.documentElement.scrollTop > 1) {
$(".navigation_wrapper").css("height", "60px");
// $(".navigation_trigger").css("top", "0px");
// $(".navigation_top").css("padding-top", "0px");
} else {
// $(".navigation_wrapper").css("height", "100px");
//$(".navigation_trigger").css("top", "20px");
//$(".navigation_top").css("padding-top", "35px");
};
if (document.body.scrollTop > 60 || document.documentElement.scrollTop > 60) {
//document.querySelector(".blurrer").style.position = "absolute";
} else {
document.querySelector(".blurrer").style.position = "fixed";
}
}
})