-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
53 lines (48 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>If you ever need...<3 </title>
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style1.css" />
</head>
<body class="demo-1">
<audio id="song" autoplay>
<source src="m1.mp3" type='audio/mpeg; codecs="mp3"'>
</audio>
<div class="image-preload">
<img src="img/weather/texture-rain-fg.png" />
<img src="img/weather/texture-rain-bg.png" />
<img src="img/weather/texture-drizzle-fg.png" />
<img src="img/weather/texture-drizzle-bg.png" />
</div>
<div class="container">
<div class="slideshow">
<canvas width="1" height="1" id="container" style="position:absolute"></canvas>
<!-- Heavy Rain -->
<div class="slide" id="slide-1" data-weather="rain"></div>
<!-- Drizzle -->
<div class="slide" id="slide-2" data-weather="drizzle"></div>
<nav class="slideshow__nav">
<a class="nav-item" href="#slide-1"><i class="icon icon--drizzle"></i></a>
<a class="nav-item" href="#slide-2"><i class="icon icon--rainy"></i></a>
</nav>
</div>
<p class="nosupport">Sorry, but your browser does not support WebGL!</p>
</div>
<!-- /container -->
<script src="js/index.min.js"></script>
<script src="js/cursor.js"></script>
<script type="text/javascript">
var container = document.querySelector('.container'),
song = document.getElementById('song');
container.addEventListener('click', function(e) {
song.play();
}, false);
</script>
</body>
</html>