forked from mhayes/jquery-raptorize
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (41 loc) · 1.17 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Toasty.js</title>
<!-- jQuery: Grab Google CDN jQuery. fall back to local if necessary -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="jquery-2.2.4.min.js"><\/script>')</script>
<!-- The toasty file -->
<script src="toasty.js"></script>
<!-- For the button version -->
<script type="text/javascript">
$(window).load(function() {
$('.button').toasty();
});
</script>
<!-- For the Konami Code version -->
<script type="text/javascript">
$(window).load(function() {
$('.button').toasty({
'enterOn' : 'konami-code'
});
});
</script>
<!-- For the Timer version -->
<!-- <script type="text/javascript">
$(window).load(function() {
$('.button').toasty({
'enterOn' : 'timer',
'delayTime' : 2000
});
});
</script>
-->
</head>
<body>
<h1>Get over here!</h1>
<p><a href="#" class="button">Click me</a> to activate toasty.js.</p>
<p>You can also use the Konami-Code (on your keyboard type ↑ ↑ ↓ ↓ ← → ← → B A)</p>
</body>
</html>