-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
49 lines (37 loc) · 918 Bytes
/
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
function ham() {
let hamburg = document.getElementById("hamburg")
let cross = document.getElementById("cross")
let navBar = document.getElementById("nav-bar")
hamburg.classList.toggle("not-active")
cross.classList.toggle("active")
navBar.classList.toggle("nav-active")
}
function dark() {
let moon = document.getElementById("moon")
let sun = document.getElementById("sun")
moon.classList.toggle("not-active")
sun.classList.toggle("active")
document.body.classList.toggle("dark-mode")
}
$('.owl-carousel').owlCarousel({
autoplayHoverPause: true,
loop: true,
autoplay: true,
autoplayTimeout: 2000,
stagePadding: 18,
nav: true,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
768: {
items: 3
},
1024: {
items: 4
}
}
})