Last active
September 11, 2017 21:17
-
-
Save seredniy/b950585b65b948ff81d2397d73a9e4a4 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
//Показываем окошко, если пользователь еще не видел ее | |
function func() { | |
if (!localStorage.getItem("dshow")) { | |
$('.makepopuap').click(); | |
} | |
} | |
setTimeout(func, 1000); | |
// Если кликнули по закрытию - ставим метку и окно уже не показываем | |
$('#otpusk ').on('click', '.scf-close', function(event) { | |
localStorage.setItem("dshow", "1"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment