| Server IP : 123.56.80.60 / Your IP : 216.73.216.78 Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586 User : SYSTEM ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/site/20241224/spunner/wp-content/plugins/astra-sites/inc/lib/bsf-quick-links/ |
Upload File : |
(function ($) {
/**
* BSFQuickLinks
*
* @since 1.0.0
*/
BSFQuickLinks = {
/**
* Initializes Events.
*
* @since 1.0.0
* @method init
*/
init: function () {
this._bind();
},
/**
* Binds events for the BSF Quick Links
*
* @since 1.0.0
* @access private
* @method _bind
*/
_bind: function () {
$(document).on("click", ".bsf-quick-link", BSFQuickLinks._toggle);
$(document).on("click", BSFQuickLinks._onClickOutside);
$(document).on("click", BSFQuickLinks._movePopUpToTop);
$(document).ready(BSFQuickLinks._movePopUpToTop);
},
_movePopUpToTop: function (e) {
if ($('.single-site-footer').length) {
$(".bsf-quick-link").css("bottom", "80px");
$(".bsf-quick-link-items-wrap").css("bottom", "11em");
} else {
$(".bsf-quick-link").css("bottom", "40px");
$(".bsf-quick-link-items-wrap").css("bottom", "8em");
}
if ($('.astra-sites-result-preview').length && !$('.astra-sites-result-preview').is(':empty')) {
$(".bsf-quick-link").css("z-index", "-10");
} else {
$(".bsf-quick-link").css("z-index", "10");
}
},
_onClickOutside: function (e) {
if ($(e.target).closest('.bsf-quick-link-wrap').length === 0) {
$('.bsf-quick-link-items-wrap').removeClass('show-popup');
}
},
_toggle: function (event) {
event.preventDefault();
var wrap = $('.bsf-quick-link-items-wrap');
wrap.removeClass('hide-wrapper');
if (wrap.hasClass('show-popup')) {
wrap.removeClass('show-popup');
} else {
wrap.addClass('show-popup');
}
var logoWrapper = $('.bsf-quick-link');
if (logoWrapper.hasClass('show')) {
logoWrapper.removeClass('show');
} else {
logoWrapper.addClass('show');
}
}
};
$(function () {
BSFQuickLinks.init();
});
})(jQuery);