-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (80 loc) · 2.03 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
86
87
88
89
90
91
92
93
<!doctype html>
<html>
<head>
<title>another-lightbox demo</title>
<!-- You must load jquery -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<!-- another-lightbox js, css -->
<script src="ws-lightbox.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="ws-lightbox.css">
</head>
<body>
<h1>another-lightbox demo</h1>
<h3>view the page source for details</h3>
<script type="text/javascript">
$(document).ready(function(){
$("#youtube-video").click(function(){
var params = {};
params.type = 'youtube';
params.src = 'http://www.youtube.com/embed/PGMQZEIXBMs';
params.height = 400;
params.width = 600;
// Opens the lightbox
anotherLightbox.open(params);
});
});
</script>
<div>
<a id="youtube-video">Click to see a youtube video</a>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#iframe-box").click(function(){
var params = {};
params.type = 'iframe';
params.src = 'http://thelibertarianrepublic.com/';
params.height = 600;
params.width = 1000;
params.overflow_hidden = false;
// Opens the lightbox
anotherLightbox.open(params);
});
});
</script>
<div>
<a id="iframe-box">Click to see an iframe</a>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#dialog-box").click(function(){
var params = {};
params.type = 'dialog';
params.height = 30;
params.width = 400;
params.message = "Thank you for voting, slave.";
// Opens the lightbox
anotherLightbox.open(params);
});
});
</script>
<div>
<a id="dialog-box">Click to see a dialog box</a>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#freestyle-box").click(function(){
var params = {};
params.type = 'freestyle';
params.height = 200;
params.width = 600;
params.html = "<h1>I am html!</h1>";
// Opens the lightbox
anotherLightbox.open(params);
});
});
</script>
<div>
<a id="freestyle-box">Click to see a freestyle (html) box</a>
</div>
</body>
</html>