Skip to content

Commit

Permalink
version 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
5um17 committed Apr 5, 2018
1 parent f33b059 commit 2a154f0
Show file tree
Hide file tree
Showing 6 changed files with 634 additions and 300 deletions.
904 changes: 619 additions & 285 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Call the constructor anywhere in your custom js or head only once.
modernAlert();
```
## Usage
##### Alert
### Alert
Call basic alert
```javascript
alert('Alert Message');
Expand All @@ -38,7 +38,7 @@ function callback_function(valueFromAlert, time) {
}
}
```
##### Confirm
### Confirm
Call basic Confirm
```javascript
confirm('Confirm Message', 'Confirm title', callback_function);
Expand Down Expand Up @@ -66,7 +66,7 @@ function callback_function(valueFromConfirm, extra_var) {
}
```

##### Prompt
### Prompt
Call the simple prompt
```javascript
prompt('Prompt Message', 'Prompt title', callback_function);
Expand Down Expand Up @@ -144,7 +144,7 @@ modernAlert({
});

```
#### Changing buttons label
### Changing buttons label

Change buttons label for all functions
```javascript
Expand All @@ -159,4 +159,4 @@ alert('Confirm Message', 'Confirm title', null, null, {ok : 'textForOkButton', c
confirm('Confirm Message', 'Confirm title', callback_function, null, {ok : 'textForOkButton', cancel : 'textForCancelButton'});
```

```modernAlert()``` return internal object.
```modernAlert()``` return internal object.
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ul.link-list li { background: none repeat scroll 0 0 #b0e0e6; display: inline-block; }
ul.link-list a { color: #000000; text-decoration: none; padding: 10px; display: inline-block; }
</style>
<script type="text/javascript" src="modernAlert.js"></script>
<script type="text/javascript" src="modernAlert.min.js"></script>
<script type="text/javascript">
modernAlert();
function modernAlertCallback(input) {
Expand Down
8 changes: 4 additions & 4 deletions example/modernAlert.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modernAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* By default native functions are replaced with modernAlert functions but this can be turned off in the constructor.
*
* @author Sumit Singh
* @version 1.1
* @version 1.2
**/
(function (){
this.modernAlert = function () {
Expand Down
Loading

0 comments on commit 2a154f0

Please sign in to comment.