-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (68 loc) · 2.3 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
<!DOCTYPE html>
<html>
<head>
<title>TotalModal Example</title>
<meta name="author" content="Wael Al-Sallami">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.totalmodal.js" type="text/javascript"></script>
<link rel="stylesheet" href="jquery.totalmodal.css" type="text/css" media="screen">
<script type="text/javascript">
$(function() {
$('.confirm-one-button').click(function(){
$.modal({
'message': "This is a Confirmation box!",
'buttons': {
'OK': {
'class' : 'blue',
'action': function(){
$('.clicked').text('You clicked the OK button!');
}
}
}
});
return false;
});
$('.confirm-two-buttons').click(function(){
$.modal({
'message': "This is a Confirmation box!",
'buttons': {
'OK': {
'class' : 'blue',
'action': function(){
$('.clicked').text('You clicked the OK button!');
}
},
'Cancel': {
'class' : 'gray',
'action': function(){
$('.clicked').text('You clicked the Cancel button!');
}
}
}
});
return false;
});
$('.notify-timeout').click(function(){
$.modal({
'message': "This is a Notification box! Click anywhere to hide it or wait for the timeout!",
'min_time': 5000,
'char_time': 75
});
});
$('.notify-no-timeout').click(function(){
$.modal({ 'message': "This is a Notification box! Click anywhere to hide it!" });
});
});
</script>
</head>
<body>
<h1>Examples:</h1>
<a class='confirm-one-button' href="#">Confirmation Box</a> with one button.
<br>
<a class='confirm-two-buttons' href="#">Confirmation Box</a> with two buttons.
<p class="clicked" style="color:red"></p>
<a class='notify-timeout' href="#">Notification Box</a> with timeout.
<br>
<a class='notify-no-timeout' href="#">Notification Box</a> without timeout.
</body>
</html>