Skip to content

Commit

Permalink
Update v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelodolza committed Jul 11, 2017
1 parent d0efc4f commit 04251e7
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/css/iziToast.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/css/iziToast.min.css

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/js/iziToast.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/
Expand Down Expand Up @@ -329,6 +329,8 @@
var percentage = ((progressBar.hideEta - (progressBar.currentTime)) / progressBar.maxHideTime) * 100;
$elem.style.width = percentage + '%';

timerTimeout = setTimeout(progressBar.updateProgress, 10);

if(Math.round(percentage) < 0 || typeof toast != 'object'){
clearTimeout(timerTimeout);
callback.apply();
Expand All @@ -341,7 +343,7 @@
if (settings.timeout > 0) {
progressBar.maxHideTime = parseFloat(settings.timeout);
progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;
timerTimeout = setInterval(progressBar.updateProgress, 10);
progressBar.updateProgress();
}
};

Expand Down
7 changes: 6 additions & 1 deletion dist/js/iziToast.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/css/animations.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/css/layouts.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/
Expand Down
4 changes: 1 addition & 3 deletions src/css/style.styl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/


$font-family = 'Lato', arial
$animation-time1 = 0.7s
$animation-time2 = 0.85s
$animation-time3 = 1s


@import 'toast'
@import 'themes'
@import 'layouts'
Expand Down
2 changes: 1 addition & 1 deletion src/css/themes.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/css/toast.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iziToast | v1.1.2
* iziToast | v1.1.3
* http://izitoast.marcelodolce.com
* by Marcelo Dolce.
*/
Expand Down

0 comments on commit 04251e7

Please sign in to comment.