-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
93 lines (76 loc) · 3.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo Bootstrap BB Alerts (MackRais)</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/mr.bootstrap.bb.alert.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/mr.bootstrap.bb.alert.js"></script>
</head>
<body>
<div class="container">
<h1 class="text-center">Demo Bootstrap BB Alerts (MackRais)</h1>
<div class="row">
<div class="col-md-6">
<div class="input-group">
<span class="input-group-addon">Start show time</span>
<input type="text" class="form-control" id="startShowTime" value="0">
</div>
</div>
<div class="col-md-6">
<div class="input-group">
<span class="input-group-addon">End show time</span>
<input type="text" class="form-control" id="endShowTime" value="5">
</div>
</div>
<hr>
<div class="col-md-12">
<div class="form-group text-center">
<button class="btn btn-success" onclick="MsgSuccess('Hello world!',
!isNaN($('#endShowTime').val()) ? $('#endShowTime').val() *1000 : 5000,
!isNaN($('#startShowTime').val()) ? $('#startShowTime').val() *1000 : 0 )"
>Alert
success
</button>
<button class="btn btn-danger" onclick="MsgError('Hello world!',
!isNaN($('#endShowTime').val()) ? $('#endShowTime').val() *1000 : 5000,
!isNaN($('#startShowTime').val()) ? $('#startShowTime').val() *1000 : 0 )"
>Alert
Error
</button>
<button class="btn btn-warning" onclick="MsgWarning('Hello world!',
!isNaN($('#endShowTime').val()) ? $('#endShowTime').val() *1000 : 5000,
!isNaN($('#startShowTime').val()) ? $('#startShowTime').val() *1000 : 0 )"
>Alert
warning
</button>
<button class="btn btn-info" onclick="MsgInfo('Hello world!',
!isNaN($('#endShowTime').val()) ? $('#endShowTime').val() *1000 : 5000,
!isNaN($('#startShowTime').val()) ? $('#startShowTime').val() *1000 : 0 )"
>Alert
Info
</button>
</div>
<div class="col-md-12">
<h3 class="text-center">How use</h3>
</div>
<div class="col-md-12 text-center">
<script> <br/>
<code>
MsgSuccess('Hello world!',5000,0) <br/>
MsgError('Hello world!',5000,0)<br/>
MsgWarning('Hello world!',5000,0)<br/>
MsgInfo('Hello world!',5000,0)<br/>
</code>
</script>
<br/>
Where 5000 - it`s time when hide<br/>
0 - it`s time when show
</div>
</div>
</div>
</div>
</body>
</html>