Skip to content

Commit 23220af

Browse files
author
Maik Tizziani
committed
adds short description for using with requirejs
1 parent 05f844d commit 23220af

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

README.txt

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
jQuery.msgBox is a plug-in to make smarter displaying messages. Also usage of the plug-in is so easy. You just need to add following files to your page as shown below and the images named 'alert.png', 'confirm.png', 'error.png', 'info.png', 'msgBoxBackGround.png' used by plug-in to 'Images' folder in the root directory.
2-
3-
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
4-
<script src="scripts/jquery.msgBox.js" type="text/javascript"></script>
5-
<link href="styles/msgBoxLight.css" rel="stylesheet" type="text/css">
6-
7-
See how to use at http://dotctor.github.io/jQuery.msgBox/
8-
9-
Currently, this code is **not maintained**.
10-
Alternatives such as bootstrap are recommended.
11-
See http://getbootstrap.com/javascript/#modals for modals in bootstrap.
12-
Nevertheless, we welcome pull requests.
1+
jQuery.msgBox is a plug-in to make smarter displaying messages. Also usage of the plug-in is so easy. You just need to add following files to your page as shown below and the images named 'alert.png', 'confirm.png', 'error.png', 'info.png', 'msgBoxBackGround.png' used by plug-in to 'Images' folder in the root directory.
2+
3+
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
4+
<script src="scripts/jquery.msgBox.js" type="text/javascript"></script>
5+
<link href="styles/msgBoxLight.css" rel="stylesheet" type="text/css">
6+
7+
See how to use at http://dotctor.github.io/jQuery.msgBox/
8+
9+
Currently, this code is **not maintained**.
10+
Alternatives such as bootstrap are recommended.
11+
See http://getbootstrap.com/javascript/#modals for modals in bootstrap.
12+
Nevertheless, we welcome pull requests.
13+
14+
// edit by Maik Tizziani
15+
16+
For using with RequireJS use the file jquery.msgBox.require.js.
17+
18+
You can use it like that:
19+
20+
require(
21+
['jquery', 'path/to/libs/jQuery.msgBox/scripts/jquery.msgBox.require],
22+
function($, msgBox){
23+
msgBox({
24+
// your box settings, see the other samples
25+
});
26+
});

0 commit comments

Comments
 (0)