- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
Latest commit
98 lines (84 loc) · 3.9 KB
/
Copy pathindex.html
File metadata and controls
98 lines (84 loc) · 3.9 KB
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
98
<!DOCTYPE html>
<html>
<head>
<metacharset="utf-8">
<metahttp-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<metaname="description" content="">
<styletype="text/css">
.custom-msgBox {
padding:8px35px8px14px;
text-shadow:01px0rgba(255,255,255,0.5);
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
-moz-box-shadow:10px10px5pxrgba(0,0,0,0.4);
-webkit-box-shadow:10px10px5pxrgba(0,0,0,0.4);
box-shadow:10px10px5pxrgba(0,0,0,0.4);
background-color:#F5FFFF;
color: blue;
border:1px solid red;
position: relative;
width:80%;
max-width:500px;
margin:0 auto;
}
</style>
</head>
<body>
Fade Out
<p>
<buttonid="show-info-message">Info Message</button>
<buttonid="show-warning-message">Warning Message</button>
<buttonid="show-success-message">Success Message</button>
<buttonid="show-error-message">Error Message</button>
<buttonid="show-custom-message">Custom Style Message</button>
<p>
No Fade
<p>
<buttonid="show-info-message-2">Info Message</button>
<buttonid="show-warning-message-2">Warning Message</button>
<buttonid="show-success-message-2">Success Message</button>
<buttonid="show-error-message-2">Error Message</button>
<buttonid="show-custom-message-2">Custom Style Message</button>
<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery||document.write('<script src="jquery.min.js"><\/script>')</script>
<scriptsrc="jquery.rustaMsgBox.js"></script>
<scripttype="text/javascript">
$(document).ready(function(){
/* Basic */
$('#show-info-message').on('click',function(){
$.rustaMsgBox({"content" : "hi I'm the rusta message box"});
});
$('#show-warning-message').on('click',function(){
$.rustaMsgBox({'mode' : 'warning'});
});
$('#show-success-message').on('click',function(){
$.rustaMsgBox({'mode' : 'success'});
});
$('#show-error-message').on('click',function(){
$.rustaMsgBox({'mode' : 'error'});
});
$('#show-custom-message').on('click',function(){
$.rustaMsgBox({'customClass' : 'custom-msgBox'});
});
/* No Fade */
$('#show-info-message-2').on('click',function(){
$.rustaMsgBox({'mode' : 'info','fadeOut': false});
});
$('#show-warning-message-2').on('click',function(){
$.rustaMsgBox({'mode' : 'warning','fadeOut': false});
});
$('#show-success-message-2').on('click',function(){
$.rustaMsgBox({'mode' : 'success','fadeOut': false});
});
$('#show-error-message-2').on('click',function(){
$.rustaMsgBox({'mode' : 'error','fadeOut': false});
});
$('#show-custom-message-2').on('click',function(){
$.rustaMsgBox({'customClass' : 'custom-msgBox','fadeOut': false});
});
});// end document.ready
</script>
</body>
</html>