-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
48 lines (44 loc) · 1.05 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
<html>
<head>
<meta charset="utf-8">
<title>Flurry Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
background: darkblue;
color: white;
font-family: sans-serif;
}
main {
margin: 0 auto;
max-width: 80%;
}
.flurry-container {
min-height: 600px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery.flurry.js"></script>
<script>
$( document ).ready( function() {
$('body').flurry();
$('.toggle-snow').on('click', function(event) {
event.preventDefault();
try {
$('body').flurry('destroy');
}
catch(err) {
$('body').flurry();
}
});
});
</script>
</head>
<body>
<main>
<h1>Flurry Example</h1>
<p>Let it snow!</p>
<p><button class="toggle-snow">Toggle Snow</button></p>
</main>
</body>
</html>