Skip to content

Commit 430b974

Browse files
committed
Updated time of snackbar
1 parent 051d0e9 commit 430b974

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,18 +443,18 @@ <h4>Tell your friends about NWoC</h4>
443443
var handler = function(event) {
444444
document.querySelector('.nwoc-slogan').removeChild(snackbarContainer);
445445
};
446-
for(var i = 0; i < 10; i ++){
447-
setTimeout(function() {
446+
447+
window.addEventListener('load', function() {
448448
'use strict';
449449
var data = {
450450
message: 'Registrations are now open.',
451451
timeout: 10000000,
452452
actionHandler: handler,
453453
actionText: 'Close'
454454
};
455-
snackbarContainer.MaterialSnackbar.showSnackbar(data);
456-
}, 2000);
457-
}
455+
setTimeout(function(){snackbarContainer.MaterialSnackbar.showSnackbar(data)}, 1000);
456+
});
457+
458458
}());
459459
</script>
460460
</html>

0 commit comments

Comments
 (0)