$('#ays_pb_close_sound_1').get(0).play(); setTimeout(function () { $(document).find('.ays-pb-modal_1').css('display', 'none'); ays_flag = true; var audio = $('#ays_pb_close_sound_1').get(0); audio.pause(); audio.currentTime = 0; clearInterval(timer_pb_1); }, ays_pb_animation_close_speed); } } } $(document).find('.ays-pb-modal-close_1').one('click', function () { $(document).find('.av_pop_modals_1').css('pointer-events', 'none'); $(document).find('.ays-pb-modal_1').attr('class', 'ays-pb-modal ays-pb-modal_1 ' + ays_pb_effectOut_1); $(this).parents('.ays-pb-modals').find('iframe').each(function () { var key = /https:\/\/www.youtube.com/; var src = $(this).attr('src'); $(this).attr('src', $(this).attr('src')); }); $(this).parents('.ays-pb-modals').find('video.wp-video-shortcode').each(function () { if (typeof $(this).get(0) != 'undefined') { if (!$(this).get(0).paused) { $(this).get(0).pause(); } } }); $(this).parents('.ays-pb-modals').find('audio.wp-audio-shortcode').each(function () { if (typeof $(this).get(0) != 'undefined') { if (!$(this).get(0).paused) { $(this).get(0).pause(); } } }); setTimeout(function () { $(document).find('.ays-pb-modal_1').css('display', 'none'); ays_flag = true; }, ays_pb_animation_close_speed); $(document).find('#ays-pb-screen-shade_1').css({ 'opacity': '0', 'display': 'none' }); clearInterval(timer_pb_1); }); var ays_pb_flag = true; $(document).on('keydown', function (event) { if ('1' && ays_pb_flag) { if (event.keyCode == 27) { $(document).find('.ays-pb-modal-close_1').trigger('click'); ays_pb_flag = false; if ('off' === 'on' && typeof sound_src !== 'undefined') { var audio = $('#ays_pb_sound_1').get(0); audio.pause(); audio.currentTime = 0; clearInterval(timer_pb_1); } if ('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on') { if ('1' !== 0) { $('#ays_pb_close_sound_1').get(0).play(); setTimeout(function () { $(document).find('.ays-pb-modal_1').css('display', 'none'); var audio = $('#ays_pb_close_sound_1').get(0); audio.pause(); audio.currentTime = 0; clearInterval(timer_pb_1); }, ays_pb_animation_close_speed); } } } } }); }, 1000); if ('clickSelector' != 'both') { if ('1' && 'On' == 'On') { $(document).find('#ays-pb-screen-shade_1').on('click', function () { var pb_parent_div = $(this).find('.ays-pb-modals'); var pb_div = $(this).parents('.ays-pb-modals').find('.ays-pb-modal_1'); if (!pb_parent_div.is(pb_div) && pb_parent_div.has(pb_div).length === 0) { $(document).find('.ays-pb-modal-close_1').click(); if ('off' === 'on' && typeof sound_src !== 'undefined') { var audio = $('#ays_pb_sound_1').get(0); audio.pause(); audio.currentTime = 0; clearInterval(timer_pb_1); } if ('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on') { if ('1' !== 0) { $('#ays_pb_close_sound_1').get(0).play(); setTimeout(function () { $(document).find('.ays-pb-modal_1').css('display', 'none'); var audio = $('#ays_pb_close_sound_1').get(0); audio.pause(); audio.currentTime = 0; }, ays_pb_animation_close_speed); } } } }); } } else { if ('1' && 'On' == 'On') { $(document).find('.av_pop_modals_1').on('click', function (e) { var pb_parent_div = $(this); var pb_div = $(this).find('.ays-pb-modal_1'); if (!pb_div.is(e.target) && pb_div.has(e.target).length === 0) { $(document).find('.ays-pb-modal-close_1').click(); if ('off' === 'on' && typeof sound_src !== 'undefined') { var audio = $('#ays_pb_sound_1').get(0); audio.pause(); audio.currentTime = 0; clearInterval(timer_pb_1); } if ('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on') { if ('1' !== 0) { $('#ays_pb_close_sound_1').get(0).play(); setTimeout(function () { $(document).find('.ays-pb-modal_1').css('display', 'none'); var audio = $('#ays_pb_close_sound_1').get(0); audio.pause(); audio.currentTime = 0; clearInterval(timer_pb_1); }, ays_pb_animation_close_speed); } } } }); } } } else { $(document).find('.ays_pb_timer_1').css('display', 'none'); $(document).find('.ays-pb-modal_1').css({ 'animation-duration': ays_pb_animation_close_seconds + 's' }); $(document).find('.ays-pb-modal-close_1').one('click', function () { let ays_pb_effectOut_1 = $(document).find('#ays_pb_modal_animate_out_1').val(); $(document).find('.av_pop_modals_1').css('pointer-events', 'none'); $(document).find('.ays-pb-modal_1').attr('class', 'ays-pb-modal ays-pb-modal_1 ' + ays_pb_effectOut_1); $(this).parents('.ays-pb-modals').find('iframe').each(function () { var key = /https:\/\/www.youtube.com/; var src = $(this).attr('src'); $(this).attr('src', $(this).attr('src')); }); $(this).parents('.ays-pb-modals').find('video.wp-video-shortcode').each(function () { if (typeof $(this).get(0) != 'undefined') { if (!$(this).get(0).paused) { $(this).get(0).pause(); } } }); $(this).parents('.ays-pb-modals').find('audio.wp-audio-shortcode').each(function () { if (typeof $(this).get(0) != 'undefined') { if (!$(this).get(0).paused) { $(this).get(0).pause(); } } }); setTimeout(function () { $(document).find('.ays-pb-modal_1').css('display', 'none'); $(document).find('.av_pop_modals_1').css('display', 'none'); ays_flag = true; }, ays_pb_animation_close_speed); $(document).find('#ays-pb-screen-shade_1').css({ 'opacity': '0', 'display': 'none' }); }); } } if ('') { $(document).find('body').removeClass('pb_enable_scroll'); $(document).find('body').addClass('pb_disable_scroll'); $(document).find('html').removeClass('pb_enable_scroll'); $(document).find('html').addClass('pb_disable_scroll'); jQuery(document).on('click', '.ays-pb-modal-close_1', function () { $(document).find('body').removeClass('pb_disable_scroll'); $(document).find('body').addClass('pb_enable_scroll'); $(document).find('html').removeClass('pb_disable_scroll'); $(document).find('html').addClass('pb_enable_scroll'); }); } if ('On' != 'On') { $(document).find('#ays-pb-screen-shade_1').css({ 'opacity': '0', 'display': 'none !important', 'pointer-events': 'none' }); $(document).find('.ays-pb-modal_1').css('pointer-events', 'auto'); $(document).find('.av_pop_modals_1').css('pointer-events', 'none'); }; if (0 != 0 && 'off' != 'on') { $(document).find('.ays-pb-modal-close_1').css({ 'display': 'none' }); setTimeout(function () { $(document).find('.ays-pb-modal-close_1').css({ 'display': 'block' }); }, 0); }; } if (0 == 0) { if ('1' && 'On' == 'On') { $(document).find('.av_pop_modals_1').on('click', function (e) { var pb_parent = $(this); var pb_div = $(this).find('.ays-pb-modal_1'); if (!pb_div.is(e.target) && pb_div.has(e.target).length === 0) { $(document).find('.ays-pb-modal-close_1').click(); } }); } var ays_pb_flag = true; $(document).on('keydown', function (event) { if ('1' && ays_pb_flag) { if (event.keyCode == 27) { $(document).find('.ays-pb-modal-close_1').trigger('click'); ays_pb_flag = false; } } }); } }); if ('On' != 'On') { $(document).find('#ays-pb-screen-shade_1').css({ 'opacity': '0', 'display': 'none !important', 'pointer-events': 'none' }); $(document).find('.ays-pb-modal_1').css('pointer-events', 'auto'); $(document).find('.av_pop_modals_1').css('pointer-events', 'none'); }; if ('clickSelector' != 'both') { if ($(document).find('.ays-pb-modals video').hasClass('wp-video-shortcode')) { var videoWidth = $(document).find('.ays-pb-modals video.wp-video-shortcode').attr('width'); var videoHeight = $(document).find('.ays-pb-modals video.wp-video-shortcode').attr('height'); setTimeout(function () { $(document).find('.ays-pb-modals .wp-video').removeAttr('style'); $(document).find('.ays-pb-modals .mejs-container').removeAttr('style'); $(document).find('.ays-pb-modals video.wp-video-shortcode').removeAttr('style'); $(document).find('.ays-pb-modals .wp-video').css({ 'width': '100%' }); $(document).find('.ays-pb-modals .mejs-container').css({ 'width': '100%', 'height': videoHeight + 'px' }); $(document).find('.ays-pb-modals video.wp-video-shortcode').css({ 'width': '100%', 'height': videoHeight + 'px' }); }, 1000); } if ($(document).find('.ays-pb-modals iframe').attr('style') != '') { setTimeout(function () { $(document).find('.ays-pb-modals iframe').removeAttr('style'); }, 500); } } }); })(jQuery);

Request A Quote







Have any questions? Email: vitas@auroraglobalfashion.com

This will close in 0 seconds