-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
63 lines (61 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>jquery.dialogsheet Demo</title>
<link rel="stylesheet" type="text/css" href="bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="jquery.dialogsheet.css"/>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.dialogsheet.js"></script>
<style type="text/css">
body {
margin: 50px 10px 10px;
}
</style>
<script type="text/javascript">
$(function() {
var $dialog1 = $('#dialog1');
$dialog1.bind('willShowDialogSheet', function(evt) {
// alert('willShowDialogSheet');
});
$dialog1.bind('didShowDialogSheet', function(evt) {
// alert('didShowDialogSheet');
});
$dialog1.bind('willHideDialogSheet', function(evt) {
// alert('willHideDialogSheet');
});
$dialog1.bind('didHideDialogSheet', function(evt) {
// alert('didHideDialogSheet');
});
});
</script>
</head>
<body>
<div class="topbar">
<div class="fill">
<div class="container">
<a class="brand" href="#">jquery.dialogsheet</a>
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<form action="" class="pull-right">
<input class="input-small" type="text" placeholder="Username">
<input class="input-small" type="password" placeholder="Password">
<button class="btn" type="submit">Sign in</button>
</form>
</div>
</div>
</div>
<a class="btn dialog-sheet" href="#dialog1">Open Dialog Sheet</a>
<div class="dialog-sheet" id="dialog1">
<p>This is a Dialog Sheet!</p>
<div class="actions">
<a class="btn dismiss" href="#">Cancel</a>
<a class="btn dismiss primary" href="#">Ok</a>
</div>
</div>
</body>
</html>