-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (117 loc) · 5.16 KB
/
index.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<script src="jquery-3.3.1.js"></script>
<script src="jquery.fullPage.js"></script>
<link rel="stylesheet" href="jquery.fullPage.css">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet">
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div style="width: 40%">
<div id="navbar" class="">
<a class="column" href="#sAnc">
<img src="images/tesla/logo.png" id="logo" style="width: 60px; height: 100%; margin: 1%;">
</a>
<a class="column" href="#sAnc">
<img src="images/tesla/text/s_sel.png" id="textS" style="width: 130px; height: 85%; margin-top: 20px;">
</a>
<a class="column" href="#xAnc">
<img src="images/tesla/text/x.png" id="textX" style="width: 130px; height: 85%; margin-top: 20px;">
</a>
<a class="column" href="#3Anc">
<img src="images/tesla/text/3.png" id="text3" style="width: 130px; height: 85%; margin-top: 20px;">
</a>
<a class="column" href="#roadsterAnc">
<img src="images/tesla/text/roadster.png" id="textRoadster"
style="width: 130px; height: 85%; margin-top: 20px;">
</a>
</div>
</div>
<div id="fullpage">
<div class="section" id data-anchor="sAnc">
<div class="slide">
<!--<h4 class="text">Tesla Model S</h4>-->
<img src="images/tesla/offical/s1.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/s2.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/s3.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/s4.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/s5.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/s6.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
</div>
<div class="section" id="x" data-anchor="xAnc">
<div class="slide">
<img src="images/tesla/offical/x1.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/x2.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/x3.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/x4.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
</div>
<div class="section" id="3" data-anchor="3Anc">
<div class="slide">
<img src="images/tesla/offical/31.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/32.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/33.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/34.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
</div>
<div class="section" id="roadster" data-anchor="roadsterAnc">
<div class="slide">
<img src="images/tesla/offical/roadster2.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/roadster3.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/roadster1.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/roadster4.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
<div class="slide">
<img src="images/tesla/offical/roadster5.jpg" style="height: 100%; width: 100%; object-fit: cover">
</div>
</div>
</div>
<script>
$("#fullpage").fullpage({
anchors: ['sAnc', 'xAnc', '3Anc', 'roadsterAnc'],
menu: "#myMenu",
onLeave: function (index, nextIndex, direction) {
const idji = [null, "textS", "textX", "text3", "textRoadster"];
const imena = [null, "images/tesla/text/s.png", "images/tesla/text/x.png", "images/tesla/text/3.png",
"images/tesla/text/roadster.png"];
const imenaSel = [null, "images/tesla/text/s_sel.png", "images/tesla/text/x_sel.png",
"images/tesla/text/3_sel.png", "images/tesla/text/roadster_sel.png"];
$("#" + idji[index]).attr("src", imena[index]);
$("#" + idji[nextIndex]).attr("src", imenaSel[nextIndex]);
}
});
</script>
</body>
</html>