-
Notifications
You must be signed in to change notification settings - Fork 0
/
final.js
97 lines (72 loc) · 2.04 KB
/
final.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
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
function bigImg(x) {
x.style.height = "400px";
x.style.width = "400px";
}
function normalImg(x) {
x.style.height = "300px";
x.style.width = "300px";
}
function openNav() {
document.getElementById("mySidenav").style.width = "200px";
document.getElementById("main").style.marginLeft = "200px";
document.body.style.backgroundColor = "rgb(102, 163, 255)";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft = "0";
document.body.style.backgroundColor = "white";
}
$(document).ready(function() {
openNav()
var myIndex = 0;
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides2");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {
myIndex = 1
}
x[myIndex - 1].style.display = "block";
setTimeout(carousel, 2000);
}
carousel();
});
$(document).ready(function() {
openNav()
var myIndex2 = 0;
function carousel2() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex2++;
if (myIndex2 > x.length) {
myIndex2 = 1
}
x[myIndex2 - 1].style.display = "block";
setTimeout(carousel2, 2000);
}
carousel2();
});
$(document).ready(function() {
openNav()
var myIndex3 = 0;
function carousel3() {
var i;
var x = document.getElementsByClassName("mySlides3");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex3++;
if (myIndex3 > x.length) {
myIndex3 = 1
}
x[myIndex3 - 1].style.display = "block";
setTimeout(carousel3, 2000);
}
carousel3();
});