-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav-test.html
123 lines (96 loc) · 3.14 KB
/
nav-test.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
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- The viewport meta tag is important for correct responsive behavior on mobile devices. -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NASA · National Aeronautics and Space Administration</title>
<!-- Do not edit the normalize.css file. More info: https://github.com/necolas/normalize.css/ -->
<link href="css/normalize.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/layout3.css" rel="stylesheet">
<script src="dist/bundle.js"></script>
<!-- <script src="js/nav.js"></script> -->
<script src="js/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".navOne").click(function(){
$(".revealOne").toggle();
$(".revealTwo").hide();
$(".revealThree").hide();
$(".revealFour").hide();
});
});
$(document).ready(function(){
$(".navTwo").click(function(){
$(".revealTwo").toggle();
$(".revealOne").hide();
$(".revealThree").hide();
$(".revealFour").hide();
});
});
$(document).ready(function(){
$(".navThree").click(function(){
$(".revealThree").toggle();
$(".revealOne").hide();
$(".revealTwo").hide();
$(".revealFour").hide();
});
});
$(document).ready(function(){
$(".navFour").click(function(){
$(".revealFour").toggle();
$(".revealOne").hide();
$(".revealTwo").hide();
$(".revealThree").hide();
});
});
</script>
</head>
<body>
<div class="content">
<!-- Full-width images with number and caption text -->
<div class="section fade">
<div class="numbertext">1 / 3</div>
<img src="img/17-04341_agu_meeting2017_binarykbo-4_5mb_duotone.png" style="width:100%">
<div class="text">Caption Text</div>
</div>
<div class="section fade">
<div class="numbertext">2 / 3</div>
<img src="img/edu_solar_system_large_0_duotone.png" style="width:100%">
<div class="text">Caption Two</div>
</div>
<div class="section fade">
<div class="numbertext">3 / 3</div>
<img src="img/kbo_comparison_parker_duotone.png" style="width:100%">
<div class="text">Caption Three</div>
</div>
<!-- Next and previous buttons -->
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">→</a>
</div>
</div>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("section");
// var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slideIndex-1].style.display = "block";
// dots[slideIndex-1].className += " active";
}
</script>
</body>
</html>