-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (71 loc) · 3.18 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>U Green Houston</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/cover/">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="css/cover.css" rel="stylesheet">
</head>
<body class="text-center">
<!-- add any number of images -->
<div id="slideshow">
<img src="images/bgpic1.png" alt="Slideshow Image 1" class="active" />
<img src="images/bgpic2.png" alt="Slideshow Image 2" style="display: none;"/>
<img src="images/bgpic3.png" alt="Slideshow Image 3" style="display: none;"/>
<img src="images/bgpic4.png" alt="Slideshow Image 4" style="display: none;"/>
<img src="images/bgpic5.png" alt="Slideshow Image 5" style="display: none;"/>
<!-- <div class="overlay"></div> -->
</div>
<!-- <div class = "bgimg-1"> -->
<div>
<main role="main" class="inner cover" style="z-index: 15;">
<img src='icon/logo-no-bg.png' style="margin:auto; width:500px; top:0; left:0; display:block">
<p class="lead">For A Walk In The Park.</p>
<p class="lead">
<a href="javascript:;" onclick="toDataVizPage()" class="btn btn-lg btn-secondary">Learn More</a>
</p>
</main>
<footer class="mastfoot mt-auto">
<div class="inner">
<p><i>Developed by Zhijie Zhou</i></p>
<small>A final project for Open Source GIS for the Web, Spring 2021</small>
</div>
</footer>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
<script>
function slideSwitch() {
var $active = $('#slideshow IMG.active');
console.log($active)
if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
// use this to pull the images in the order they appear in the markup
var $next = $active.next().is("img") ? $active.next()
: $('#slideshow IMG:first');
$active.addClass('last-active').hide();
$next.show()
.css({opacity: 0.3})
.addClass('active')
.animate({opacity: 1}, 900, function() {
$active.removeClass('active last-active');
});
}
$(function() {
setInterval( "slideSwitch()", 4400 );
});
function toDataVizPage(){
self.location="dataViz.html";
}
</script>
</body>
</html>