Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Modal
- $(document).ready(function(e) {
- if ($(window).width() >= '768'){
- $('.js-mobile-download').click(function(e)
- {
- //Fade in delay for the background overlay (control timing here)
- $("#bkgOverlay").delay(4800).fadeIn(400);
- //Fade in delay for the popup (control timing here)
- $("#delayedPopup").delay(5000).fadeIn(400);
- setTimeout(function() {
- $('#popupSlider').slick('slickGoTo', 1 );
- }, 4800);
- //Hide dialouge and background when the user clicks the close button
- $("#btnClose").click(function (e)
- {
- HideDialog();
- e.preventDefault();
- });
- //Controls how the modal popup is closed with the close button
- function HideDialog()
- {
- $("#bkgOverlay").fadeOut(400);
- $("#delayedPopup").fadeOut(300);
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement