-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
97 lines (95 loc) · 2.51 KB
/
demo.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
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Immoral Demo Page</title>
<!-- Load local jQuery. This can be overridden with a ?jquery=___ param. -->
<script src="../libs/jquery-loader.js"></script>
<!-- Load local lib and tests. -->
<script src="../src/jquery.immoral.js"></script>
<style type="text/css">
* {
margin: 0;
padding: 0;
font-size: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
font: 300 100%/1.5 Ubuntu, sans-serif;
background-color: #f9f9f9;
color: #444;
padding: 24px;
}
h1 {
font-size: 36px;
font-size: 2.25rem;
line-height: 1.3333333;
font-weight: 300;
}
a {
color: #005880;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$('#modal-1').immoral({
modalStyle: {
'width': '980px',
'height': '90%',
'margin': '0 auto',
'background': 'white',
}
});
$('#modal-2').immoral({
modalStyle: {
'width': '980px',
'height': '90%',
'margin': '0 auto',
'background': 'white',
}
});
$('#modal-3').immoral({
content: '<p>Some custom html.</p>',
modalStyle: {
'width': '980px',
'height': '90%',
'margin': '0 auto',
'background': 'white',
}
});
$('#modal-4').immoral({
content: '<p>The effin\' override.</p>',
modalStyle: {
'width': '980px',
'height': '90%',
'margin': '0 auto',
'background': 'white',
}
});
});
</script>
</head>
<body>
<header role="banner">
<h1>Immoral</h1>
</header>
<section role="main">
<p>This will open a <a id="modal-1" href="http://localhost/" rel="modal">modal</a>.</p>
<p>This will open another <a id="modal-2" href="#test-modal" rel="modal">modal</a>.</p>
<p>And this will open will be yet another <a id="modal-3" href="#" rel="modal">modal</a>.</p>
<p>And this is damned override <a id="modal-4" href="http://localhost/" rel="modal">modal</a>.</p>
</section>
<footer role="contentinfo">
<p>A spunky clean flexible no-forced-design modal library.</p>
</footer>
<div id="test-modal" style="display: none;">
<p>Some testing data for a modal.</p>
</div>
</body>
</html>