-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
47 lines (32 loc) · 1.26 KB
/
Copy pathscript.js
File metadata and controls
47 lines (32 loc) · 1.26 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
let isMac = false;
let isWindows = false;
let isLinux = false;
$().ready(()=>{
$('#open-burger').click(() =>{
if($("#burger-checkbox").is(":not(:checked)")){
$("#mobile-header").css("background-color", "white");
$("#mobile-header").css("color", "rgba(0,0,0,0.9)");
$(".headerImg").css("filter", "invert(1)")
}
else if($("#burger-checkbox").is(":checked")){
$("#mobile-header").css("background-color", "initial");
$("#mobile-header").css("color", "white");
$(".headerImg").css("filter", "invert(0)")
}
});
isMac = navigator.platform.toUpperCase().indexOf('MAC')!==-1;
isWindows = navigator.platform.toUpperCase().indexOf('WIN')!==-1;
isLinux = navigator.platform.toUpperCase().indexOf('LINUX')!==-1;
});
$(()=>{
$("#left").click(()=>{
let heads = $("#heads").children();
let middle = heads.length/2;
var el = $(heads[Math.floor(middle)]),
newone = el.clone(true);
el.before(newone);
$("." + el.attr("class") + ":last").remove();
$(heads[Math.floor(middle)]).toggleClass("slide-bottom");
$(heads[Math.floor(middle)]).toggleClass("slide-top");
});
})