-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
48 lines (41 loc) · 1.17 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>bootstrap-modal-confirm example</title>
<!-- start: CSS -->
<link href="http://apps.bdimg.com/libs/bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">
<!-- end: CSS -->
<!-- start: jQuery -->
<script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
<!-- end: jQuery -->
<style type="text/css">
.example {position:relative; top:50px; text-align:center;}
</style>
</head>
<body>
<div class="example">
<h1>get a confirm dialog box</h1>
<button type="button" class="btn btn-large btn-primary">Click me</button>
</div>
<!-- start: JavaScript-->
<script src="http://apps.bdimg.com/libs/bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="bootstrap-modal-confirm.js"></script>
<!-- end: JavaScript-->
<script type="text/javascript">
$('.example > button').click(function(){
$.Modal({
title: "example title",
content: "example content here",
btnCancel: "No",
btnOk: "Yes"
})
.do(function(){
$('.example > h1').text('You clicked Yes');
}, function(){
$('.example > h1').text('You clicked No');
});
});
</script>
</body>
</html>