golden hour
/home/godaofbq/hardchambers.com/wp-content/plugins/essential-addons-elementor/src/js/view
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
127 B
Del
OK
adv-google-map.js
17.84 KB
Del
OK
advanced-menu.js
11.31 KB
Del
OK
advanced-search.js
14.73 KB
Del
OK
ajax-post-search.js
1.14 KB
Del
OK
content-timeline.js
7.93 KB
Del
OK
counter.js
789 B
Del
OK
data-table.js
510 B
Del
OK
dynamic-filter-gallery.js
1.56 KB
Del
OK
fancy-chart.js
1.02 KB
Del
OK
flip-carousel.js
1.58 KB
Del
OK
image-hotspots.js
3.03 KB
Del
OK
image-scroller.js
1.08 KB
Del
OK
img-comparison.js
2 KB
Del
OK
instagram-gallery.js
4.21 KB
Del
OK
interactive-cards.js
1.42 KB
Del
OK
learn-dash-course-list.js
3.03 KB
Del
OK
lightbox.js
6.26 KB
Del
OK
login-register.js
23.57 KB
Del
OK
logo-carousel.js
7.83 KB
Del
OK
mailchimp.js
2.59 KB
Del
OK
multicolumn-pricing-table.js
1.62 KB
Del
OK
offcanvas.js
376 B
Del
OK
one-page-navigation.js
4.67 KB
Del
OK
post-carousel.js
7 KB
Del
OK
post-list.js
6.54 KB
Del
OK
progress-bar.js
468 B
Del
OK
section-parallax.js
8.5 KB
Del
OK
section-particles.js
4.75 KB
Del
OK
smooth-animation.js
23.66 KB
Del
OK
sphere-photo-viewer.js
967 B
Del
OK
stacked-cards.js
9.16 KB
Del
OK
team-member-carousel.js
5.7 KB
Del
OK
testimonial-slider.js
7.41 KB
Del
OK
toggle.js
3.18 KB
Del
OK
twitter-feed-carousel.js
7.66 KB
Del
OK
woo-account-dashboard.js
2.21 KB
Del
OK
woo-checkout-pro.js
17.02 KB
Del
OK
woo-cross-sells.js
1.9 KB
Del
OK
woo-product-slider.js
5.99 KB
Del
OK
Edit: lightbox.js
var LightBox = function ($scope, $) { var $lightBox = $scope.find(".eael-lightbox-wrapper").eq(0), $main_class = $lightBox.data("main-class") !== undefined ? $lightBox.data("main-class") : "", $popup_layout = $lightBox.data("popup-layout") !== undefined ? $lightBox.data("popup-layout") : "", $close_button = $lightBox.data("close_button") === "yes" ? true : false, $effect = $lightBox.data("effect") !== undefined ? $lightBox.data("effect") : "", $type = $lightBox.data("type") !== undefined ? $lightBox.data("type") : "", $iframe_class = $lightBox.data("iframe-class") !== undefined ? $lightBox.data("iframe-class") : "", $src = $lightBox.data("src") !== undefined ? $lightBox.data("src") : "", $trigger_element = $lightBox.data("trigger-element") !== undefined ? $lightBox.data("trigger-element") : "", $delay = $lightBox.data("delay") != "" ? $lightBox.data("delay") : 0, $trigger = $lightBox.data("trigger") !== undefined ? $lightBox.data("trigger") : "", $popup_id = $lightBox.data("lightbox-id") !== undefined ? $lightBox.data("lightbox-id") : "", $display_after = $lightBox.data("display-after") !== undefined ? $lightBox.data("display-after") : "", $esc_exit = $lightBox.data("esc_exit") === "yes" ? true : false, $click_exit = $lightBox.data("click_exit") === "yes" ? true : false; $main_class += " " + $popup_layout + " " + $effect; if ("eael-lightbox-popup-fullscreen" == $popup_layout) { var win_height = $(window).height() - 20; $(".eael-lightbox-container.content-type-image-now").css({ "max-height": win_height + "px", "margin-top": "10px", }); } if ("eael_lightbox_trigger_exit_intent" == $trigger) { var flag = true, mouseY = 0, topValue = 0; if ($display_after === 0) { $.removeCookie($popup_id, { path: "/" }); } window.addEventListener( "mouseout", function (e) { mouseY = e.clientY; if (mouseY < topValue && !$.cookie($popup_id)) { $.magnificPopup.open({ items: { src: $src, //ID of inline element }, iframe: { markup: '<div class="' + $iframe_class + '">' + '<div class="modal-popup-window-inner">' + '<div class="mfp-iframe-scaler">' + '<div class="mfp-close"></div>' + '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + "</div>" + "</div>" + "</div>", }, type: $type, showCloseBtn: $close_button, enableEscapeKey: $esc_exit, closeOnBgClick: $click_exit, removalDelay: 500, //Delaying the removal in order to fit in the animation of the popup mainClass: $main_class, callbacks: { open: () => { $('body').addClass('eael-lightbox-popup-open'); }, close: () => { $('body').removeClass('eael-lightbox-popup-open'); }, } }); eael.hooks.doAction("ea-lightbox-triggered", $src); $(document).trigger('eael-lightbox-open', ); if ($display_after > 0) { $.cookie($popup_id, $display_after, { expires: $display_after, path: "/", }); } else { $.removeCookie($popup_id); } } }, false ); } else if ("eael_lightbox_trigger_pageload" == $trigger) { if ($display_after === 0) { $.removeCookie($popup_id, { path: "/" }); } if (!$.cookie($popup_id)) { setTimeout(function () { $.magnificPopup.open({ items: { src: $src, }, iframe: { markup: '<div class="' + $iframe_class + '">' + '<div class="modal-popup-window-inner">' + '<div class="mfp-iframe-scaler">' + '<div class="mfp-close"></div>' + '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + "</div>" + "</div>" + "</div>", }, type: $type, showCloseBtn: $close_button, enableEscapeKey: $esc_exit, closeOnBgClick: $click_exit, mainClass: $main_class, callbacks: { open: () => { $('body').addClass('eael-lightbox-popup-open'); }, close: () => { $('body').removeClass('eael-lightbox-popup-open'); }, } }); eael.hooks.doAction("ea-lightbox-triggered", $src); $(document).trigger('eael-lightbox-open', ); if ($display_after > 0) { $.cookie($popup_id, $display_after, { expires: $display_after, path: "/", }); } else { $.removeCookie($popup_id); } }, $delay); } } else { if (typeof $trigger_element === "undefined" || $trigger_element === "") { $trigger_element = ".eael-modal-popup-link"; } $scope.on('keydown', $trigger_element, function (e) { if (e.which === 13 || e.which === 32) { $(this).trigger('click'); } }); $($trigger_element).magnificPopup({ image: { markup: '<div class="' + $iframe_class + '">' + '<div class="modal-popup-window-inner">' + '<div class="mfp-figure">' + '<div class="mfp-close"></div>' + '<div class="mfp-img"></div>' + '<div class="mfp-bottom-bar">' + '<div class="mfp-title"></div>' + '<div class="mfp-counter"></div>' + "</div>" + "</div>" + "</div>" + "</div>", }, iframe: { markup: '<div class="' + $iframe_class + '">' + '<div class="modal-popup-window-inner">' + '<div class="mfp-iframe-scaler">' + '<div class="mfp-close"></div>' + '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + "</div>" + "</div>" + "</div>", }, items: { src: $src, type: $type, }, removalDelay: $effect === 'animated ' ? 0 : 500, showCloseBtn: $close_button, enableEscapeKey: $esc_exit, closeOnBgClick: $click_exit, mainClass: $main_class, callbacks: { open: () => { $('body').addClass('eael-lightbox-popup-open'); eael.hooks.doAction("ea-lightbox-triggered", $src); $(document).trigger('eael-lightbox-open', ); }, close: () => { $('body').removeClass('eael-lightbox-popup-open'); }, }, type:'inline', }); } $.extend(true, $.magnificPopup.defaults, { tClose: "Close", }); }; jQuery(window).on("elementor/frontend/init", function () { if (eael.elementStatusCheck('eaelLightboxLoad')) { return false; } elementorFrontend.hooks.addAction("frontend/element_ready/eael-lightbox.default", LightBox); });
Save