Created
June 24, 2020 09:15
-
-
Save muzafferkoluman/594d467fc865cf26ff5ff3a75512c4bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Your code here | |
document.addEventListener('DOMContentLoaded', function(){ | |
// do something | |
var modal = UIkit.modal("#modal-example"); | |
//modal.show(); | |
var hasCookie=localStorage.getItem("isShowed"); | |
//if(!hasCookie){ | |
//delay 5second | |
setTimeout(function(){ | |
modal.show(); | |
localStorage.setItem("isShowed",true); | |
},5000); | |
//} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment