13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
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
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>MessageBox</title>
<style type="text/css">
.x-message-box .ext-mb-download {
    background: url("images/download.gif") no-repeat scroll 6px 0px transparent;
    height: 52px!important;
}
</style>
<link rel="stylesheet" type="text/css" href="../shared/example.css" />
 
    <!-- GC -->
 
<script type="text/javascript" src="../../examples/shared/include-ext.js"></script>
<script type="text/javascript" src="../../examples/shared/options-toolbar.js"></script>
<script type="text/javascript" src="../shared/examples.js"></script>
<script src="msg-box.js"></script>
</head>
<body>
<h1>MessageBox Dialogs</h1>
<p>The example shows how to use the MessageBox class. Some of the buttons have animations, some are normal.</p>
<p>The js is not minified so it is readable. See <a href="msg-box.js">msg-box.js</a>.</p>
 
<p>
    <b>Confirm</b><br />
    Standard Yes/No dialog. &nbsp;
    <button id="mb1">Show</button>
</p>
 
<p>
    <b>Prompt</b><br />
    Standard prompt dialog. &nbsp;
    <button id="mb2">Show</button>
</p>
 
<p>
    <b>Multi-line Prompt</b><br />
    A multi-line prompt dialog. &nbsp;
    <button id="mb3">Show</button>
</p>
 
<p>
    <b>Yes/No/Cancel</b><br />
    Standard Yes/No/Cancel dialog. &nbsp;
    <button id="mb4">Show</button>
</p>
 
<p>
    <b>Progress Dialog</b><br />
    Dialog with measured progress bar. &nbsp;
    <button id="mb6">Show</button>
</p>
 
<p>
    <b>Wait Dialog</b><br />
    Dialog with indefinite progress bar and custom icon (will close after 8 sec). &nbsp;
    <button id="mb7">Show</button>
</p>
 
<p>
    <b>Alert</b><br />
    Standard alert message dialog. &nbsp;
    <button id="mb8">Show</button>
</p>
 
<p>
    <b>Icons</b><br />
    Standard alert with optional icon. &nbsp;
    <select id="icons">
        <option id="error" selected="selected">Error</option>
        <option id="info">Informational</option>
        <option id="question">Question</option>
        <option id="warning">Warning</option>
    </select> &nbsp;
    <button id="mb9">Show</button>
</p>
 
<p>
    <b>Custom button text</b><br />
    MessageBox with custom button text. &nbsp;
    <button id="mb10">Show</button>
</p>
 
</body>
</html>