jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));jQuery(document).ready((function() {
var e = !1;
void 0 !== eztoc_smooth_local.JumpJsLinks && 1 === parseInt(eztoc_smooth_local.JumpJsLinks) && (e = !0), document.querySelectorAll(".ez-toc-link").forEach((e => {
e = e.replaceWith(e.cloneNode(!0))
})), document.querySelectorAll(".ez-toc-section").forEach((e => {
e.setAttribute("ez-toc-data-id", "#" + decodeURI(e.getAttribute("id")))
})), jQuery("a.ez-toc-link").click((function() {
let dhref = jQuery(this).attr("data-href");
let ahref = jQuery(this).attr("href");
if(1 === parseInt(eztoc_smooth_local.add_request_uri)){
if(jQuery(this).attr("data-href")){
let dsplit = jQuery(this).attr("data-href").split("#");
if(dsplit && dsplit.length > 1){
dhref = `#${dsplit[1]}`;
}
}
if(jQuery(this).attr("href")){
let asplit = jQuery(this).attr("href").split("#");
if(asplit && asplit.length > 1){
ahref = `#${asplit[1]}`;
}
}
}
let t = e ? dhref : ahref,
o = jQuery("#wpadminbar"),
c = jQuery("header"),
r = 0;
if (parseInt(eztoc_smooth_local.scroll_offset) > 30 && (r = parseInt(eztoc_smooth_local.scroll_offset)), o.length && (r += o.height()), (c.length && "fixed" == c.css("position") || "sticky" == c.css("position")) && (r += c.height()), jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').length > 0 && (r = jQuery('[ez-toc-data-id="' + decodeURI(t) + '"]').offset().top - r), jQuery("html, body").animate({
scrollTop: r
}, 500), e) return !1
}))
}));
');
var elements = {
top: jQuery('#jabvfcr_selector-top'),
left: jQuery('#jabvfcr_selector-left'),
right: jQuery('#jabvfcr_selector-right'),
bottom: jQuery('#jabvfcr_selector-bottom')
};
jQuery(document).mousemove(function(event) {
if (!jabvfcr_inspectorEnabled) {
return;
}
if(event.target.id.indexOf('jabvfcr_selector') !== -1 || event.target.tagName === 'BODY' || event.target.tagName === 'HTML') return;
var $target = jQuery(event.target);
targetOffset = $target[0].getBoundingClientRect(),
targetHeight = targetOffset.height,
targetWidth = targetOffset.width;
elements.top.css({
left: (targetOffset.left - 4),
top: (targetOffset.top - 4),
width: (targetWidth + 5)
});
elements.bottom.css({
top: (targetOffset.top + targetHeight + 1),
left: (targetOffset.left - 3),
width: (targetWidth + 4)
});
elements.left.css({
left: (targetOffset.left - 5),
top: (targetOffset.top - 4),
height: (targetHeight + 8)
});
elements.right.css({
left: (targetOffset.left + targetWidth + 1),
top: (targetOffset.top - 4),
height: (targetHeight + 8)
});
var selector = mySimmer(event.target);
if (selector) {
parent.jabvfcr_updateCurrentSelector(selector)
}
});
jQuery('a').click(function(e){
e.preventDefault();
});
document.addEventListener('click', function(e) {
if (!jabvfcr_inspectorEnabled) {
return;
}
e = e || window.event;
var target = e.target || e.srcElement;
if (jQuery(target).is("a")) {
e.preventDefault();
}
var selector = mySimmer(target);
if (selector) {
jabvfcr_updateSelector(selector);
}
}, false);
})();