We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051d0e9 commit 430b974Copy full SHA for 430b974
index.html
@@ -443,18 +443,18 @@ <h4>Tell your friends about NWoC</h4>
443
var handler = function(event) {
444
document.querySelector('.nwoc-slogan').removeChild(snackbarContainer);
445
};
446
- for(var i = 0; i < 10; i ++){
447
- setTimeout(function() {
+
+ window.addEventListener('load', function() {
448
'use strict';
449
var data = {
450
message: 'Registrations are now open.',
451
timeout: 10000000,
452
actionHandler: handler,
453
actionText: 'Close'
454
455
- snackbarContainer.MaterialSnackbar.showSnackbar(data);
456
- }, 2000);
457
- }
+ setTimeout(function(){snackbarContainer.MaterialSnackbar.showSnackbar(data)}, 1000);
+ });
458
}());
459
</script>
460
</html>
0 commit comments