-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (45 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Raptorize Kit 2.0 Examples</title>
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous">
</script>
<script src="js/jquery.raptorize.2.0.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#open-cage-click').raptorize({
enterOn: 'click'
});
$('#open-cage-code').raptorize({
enterOn: 'konami-code'
});
if (window.location.href.indexOf('startTimerOnPageLoad=true') !== -1) {
$('body').raptorize({
enterOn: 'timer',
delayTime: 3000
});
}
});
</script>
</head>
<body>
<h1>Raptorize Kit 2.0 Examples</h1>
The raptor can be triggered in three different ways.
<h2>Click</h2>
Attach to any element and trigger on click: <button id="open-cage-click">Unleash Raptor</button>
<h2>Timer</h2>
<div id="open-cage-timer">Add a timer with a delay. For instance, wait 5 seconds after page load.</div>
<h2>Konami Code</h2>
<div id="open-cage-code">Press the following keys in sequence: ↑ ↑ ↓ ↓ ← → ← → B A</div>
<h2>Timer</h2>
Add a timer with a delay:
<form name="timerForm" method="GET" action="" style="display: inline;">
<input type="hidden" name="startTimerOnPageLoad" value="true" />
<button type="submit">Reload Page With Timer (3 sec)</button>
</form>
</body>
</html>