PageSourceSearch

https://readitquik.com/_static/??-eJyFzDEOwjAMheEL4VphoGVAnKUkbuuo…/7XQ9x4T52Kh3ktP/IsjzBO4zXcpnvIX9ZcQ1I=

js readitquik.com collected 2026-09-25 19:12:04 UTC 16,384 bytes, 166 lines download raw bytes

1!function(){"use strict";var e,n={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},d:function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},t=jQuery,o=n.n(t),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n="sub-menu-open",t="show-sub-menu",s="show-panel",a="panel-open",i=function(e,s){s&&e.find("".concat(s," .sub-menu-icon")).on("click",function(e){e.preventDefault(),e.stopPropagation();var s=o()(this),a=s.closest(".menu-item"),i=s.parent().next(".sub-menu, .mega-menu");s.hasClass(n)?(i.stop(!0).slideUp(450).removeClass(t),s.removeClass(n)):(a.siblings(".menu-item-has-children, .menu-item-has-mega-menu").find(".sub-menu, .mega-menu").stop(!0).slideUp(450).removeClass(t),a.siblings().find(".sub-menu-icon").removeClass(n),i.stop(!0).slideDown(450).addClass(t),s.addClass(n))})},r=function(e){var n=e.find(".mobile-panel-wrapper.panel-classic");if(n.length){var t=o()("body").width(),s=n.parent().offset().left;n.css({left:"".concat(-s,"px"),width:"".concat(t,"px")})}},l=function(e){var n=o()("body").width();e.find(".primary-menu .mega-menu").each(function(){var t=o()(this),s=t.parent().offset().left;t.parents().hasClass("menu-item-has-children")||e.hasClass("nav-vertical")||(t.hasClass("mega-menu-width-full")||t.hasClass("mega-menu-width-container"))&&t.css({left:"".concat(-s,"px"),width:"".concat(n,"px")})})},c=function(){var e=0,n=o()(".rstb-header .rstb-sticky");n.length&&(e+=n.outerHeight()||0);var t=o()("#wpadminbar");return t.length&&t.is(":visible")&&(e+=t.outerHeight()||0),e},u=function(e,n){e.find(".primary-menu .menu-item, .mobile-menu .menu-item").removeClass("current-menu-item current-menu-parent");var t=e.find('.primary-menu a[href$="'.concat(n,'"]')).first();if(t.length){var o=t.closest(".menu-item"),s=o.closest(".sub-menu, .mega-menu").closest(".menu-item");o.addClass("current-menu-item"),s.length&&s.addClass("current-menu-parent")}var a=e.find('.mobile-menu a[href$="'.concat(n,'"]')).first();if(a.length){var i=a.closest(".menu-item"),r=i.closest(".sub-menu, .mega-menu").closest(".menu-item");i.addClass("current-menu-item"),r.length&&r.addClass("current-menu-parent")}},f=function(e){var n=c(),t=o()(window).scrollTop()+n+10,s=e.find('.primary-menu a[href*="#"], .mobile-menu a[href*="#"]'),a=null,i=1/0;if(s.each(function(){var e=o()(this).attr("href");if(e&&"#"!==e&&-1!==e.indexOf("#")){var n=e.includes("#")?e.substring(e.indexOf("#")):"";if(n&&"#"!==n){var s=o()(n);if(s.length){var r=s.offset().top,l=r+s.outerHeight();if(t>=r&&t<l){var c=Math.abs(t-r);c<i&&(i=c,a=n)}}}}}),a){var r=e.find('.primary-menu a[href$="'.concat(a,'"]')).first(),l=e.find('.mobile-menu a[href$="'.concat(a,'"]')).first();(!r.closest(".menu-item").hasClass("current-menu-item")||!l.closest(".menu-item").hasClass("current-menu-item"))&&u(e,a)}},m=function(e){var n=e.find(".menu-toggler"),t=e.find(".mobile-panel-wrapper.panel-classic"),i=e.find(".mobile-panel-wrapper.panel-offcanvas");t.length&&t.is(":visible")&&t.slideUp(350),i.length&&i.hasClass(s)&&i.removeClass(s),n.removeClass(a),o()("html").removeAttr("data-nav-menu").css({scrollbarGutter:""}),o()("html, body").css({overflow:""})},d=o()(e).find(".rstb-nav-menu");d.length&&d.each(function(){var e,n=o()(this);(function(e){var n=e.find(".menu-toggler"),t=e.find(".mobile-panel-wrapper.panel-classic"),i=e.find(".mobile-panel-wrapper.panel-offcanvas"),r=e.find(".mobile-panel-overly"),l=e.find(".mobile-panel-close"),c=function(){o()("html").removeAttr("data-nav-menu").css({scrollbarGutter:""}),o()("html, body").css({overflow:""})},u=function(){"open"===o()("html").attr("data-nav-menu")?c():(o()("html").attr("data-nav-menu","open").css({scrollbarGutter:"stable"}),o()("html, body").css({overflow:"hidden"}))};n.on("click",function(){o()(this).toggleClass(a),t.length&&t.slideToggle(350),i.length&&i.toggleClass(s),u()}),r.length&&r.on("click",function(){i.removeClass(s),n.removeClass(a),c()}),l.length&&l.on("click",function(){i.removeClass(s),n.removeClass(a),c()}),o()(document).on("click",function(e){var o=t.find(".mobile-panel-content");!t.is(":visible")||o.is(e.target)||0!==o.has(e.target).length||n.is(e.target)||0!==n.has(e.target).length||(t.slideUp(350),n.removeClass(a),u())}),o()(document).on("keydown",function(e){"Escape"===e.key&&(t.slideUp(350),i.removeClass(s),n.removeClass(a),c())})})(n),i(n,".mobile-menu"),r(n),l(n),(e=n).hasClass("nav-vertical")&&i(e,".primary-menu"),function(e){var n=e.find('.primary-menu a[href*="#"]'),t=e.find('.mobile-menu a[href*="#"]');n.add(t).on("click",function(n){var t=o()(this).attr("href");if(t&&"#"!==t&&-1!==t.indexOf("#")){var s=t.includes("#")?t.substring(t.indexOf("#")):"";if(s&&"#"!==s){var a=o()(s);if(a.length){n.preventDefault(),o()("html").css({scrollBehavior:"auto"});var i=c();o()("html, body").animate({scrollTop:a.offset().top-i},800,function(){o()("html").css({scrollBehavior:""})}),m(e),history.pushState?history.pushState(null,null,s):window.location.hash=s,u(e,s)}}}});var s=0,a=!1;o()(window).on("scroll",function(){a||(window.requestAnimationFrame(function(){var n=Date.now();n-s>
1=300&&(f(e),s=n),a=!1}),a=!0)}),f(e)}(n),o()(window).on("resize",function(){r(n),l(n)})})},a=function(e,n){e.find(".rstb-offcanvas-wrap").each(function(e,t){var o=n(t),s=o.find(".offcanvas-toggle"),a=o.find(".offcanvas-overly"),i=o.find(".offcanvas-close"),r=o.find(".rstb-offcanvas-panel"),l="show-offcanvas",c=function(){r.removeClass(l),n("html").css({scrollbarGutter:""}),n("html, body").css({overflow:""})};s.on("click",function(e){e.preventDefault(),r.hasClass(l)?c():(r.addClass(l),n("html").css({scrollbarGutter:"stable"}),n("html, body").css({overflow:"hidden"}))}),a.on("click",c),i.on("click",c),n(document).on("keydown",function(e){"Escape"===e.key&&c()})})},i=function(e,n){e.find(".rstb-mini-search").each(function(){var e=n(this),t=e.find(".search-btn"),o=e.find(".search-form-area"),s="search-open";t.on("click",function(e){t.toggleClass(s),o.toggleClass(s)}),n(document).on("keydown",function(e){27===e.keyCode&&(t.removeClass(s),o.removeClass(s))}),n(document).on("click",function(e){!o.is(":visible")||o.is(e.target)||0!==o.has(e.target).length||t.is(e.target)||0!==t.has(e.target).length||(t.removeClass(s),o.removeClass(s))})})},r=function(e,n){e.find(".rstb-mini-cart").each(function(){var e=n(this),t=e.data("panel"),o=e.find(".rstb-cart-url"),s=e.find(".rstb-cart-panel"),a=e.find(".cart-panel-close"),i=e.find(".cart-panel-overly"),r=e.find(".rstb-cart-count"),l=e.data("auto-open"),c="show-panel";if(t&&(o.on("click",function(e){e.preventDefault(),s.toggleClass(c)}),i.on("click",function(e){s.removeClass(c)}),a.on("click",function(e){s.removeClass(c)}),n(document).on("keydown",function(e){27===e.keyCode&&s.removeClass(c)}),l)){var u=parseInt(r.text(),10)||0;n(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){var n=parseInt(e.find(".rstb-cart-count").text(),10)||0;n>u&&s.addClass(c),u=n})}})};(e=jQuery)(function(){(function(){var e=o()(".rstb-template-popup");if(e.length){var n=o()("body");n.hasClass("single-rstb_templates")||n.hasClass("elementor-editor-active")||e.each(function(){var e=o()(this),n=e.data("settings");if(n){var t=n.id,s=n.reset_on_update?n.modified:"v1",a="rstb_popup_".concat(t,"_").concat(s),i=n.show_frequency||"every-time",r=parseInt(n.limit_display||0,10),l=parseInt(n.repeat_interval||0,10),c=!!function(e){var n="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===n.length)return n.pop().split(";").shift()}(a),u="".concat(a,"_count"),f=parseInt(localStorage.getItem(u)||"0",10);if(!(r>0&&f>=r)){var m=!0;if("per-session"===i?sessionStorage.getItem(a)&&(m=!1):"x-hours"===i&&c&&(m=!1),m){var d=function(){e.addClass("show-popup"),o()("body").css("overflow","hidden"),"per-session"===i?sessionStorage.setItem(a,"1"):"x-hours"===i&&l>0&&function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o="";if(t>0){var s=new Date;s.setTime(s.getTime()+60*t*60*1e3),o="; expires="+s.toUTCString()}document.cookie="".concat(e,"=").concat(n||"").concat(o,"; path=/")}(a,"1",l),r>0&&localStorage.setItem(u,f+1)},h=function(){e.hasClass("always-on")||(e.removeClass("show-popup"),o()("body").css("overflow",""))};e.find(".popup-close, .popup-overly").on("click",h);var v=n.trigger||{};if(v.on_load){var p=1e3*(v.load_delay||0);setTimeout(d,p)}if(v.on_scroll){var g=(v.scroll_amount||50)/100*(o()(document).height()-o()(window).height());o()(window).on("scroll.popupScroll",function(){o()(window).scrollTop()>=g&&(o()(window).off("scroll.popupScroll"),d())})}if(v.on_element&&v.element_selector){var b=o()(v.element_selector);if(b.length){var w=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(d(),w.disconnect())})});w.observe(b[0])}}v.on_click&&v.click_selector&&o()(document).on("click",v.click_selector,function(e){e.preventDefault(),d()}),o()(document).on("keydown",function(e){"Escape"===e.key&&h()})}}}})}})(),s(),function(){var e=o()(".rstb-header .e-con, .rstb-header .elementor-section");if(e.length){var n=0;o()(window).on("scroll",function(){var t=o()(window).scrollTop();e.each(function(e,s){var a=o()(s),i=a.outerHeight()+20;a.hasClass("rstb-sticky")&&(t>i?a.addClass("is-sticky"):a.removeClass("is-sticky")),a.hasClass("rstb-sticky-up")&&(t<=n&&t>i?a.addClass("is-sticky"):a.removeClass("is-sticky"))}),n=t})}}()}),e(window).on("elementor/frontend/init",function(){var n={"rstb-mini-search.default":i,"rstb-offcanvas.default":a,"rstb-mini-cart.default":r};e.each(n,function(e,n){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,n)})}),e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/rstb-nav-menu.default",function(e){window.elementorFrontend.isEditMode()&&s(e)})})}();;
2!function(){"use strict";var e={487:function(){var e,o;(e=jQuery)(window).on("load",function(){var o=e(".nerio-preloader");o.length&&o.delay(10).fadeOut(300)}),function(){var o=e(window),t=e(document),r=e("#rs-scroll-to-top");if(r.length){var n=!1;o.on("scroll",function(){n||(window.requestAnimationFrame(s),n=!0)}),o.on("load resize",s),r.on("click",function(o){o.preventDefault(),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:0,behavior:"smooth"}):e("html, body").animate({scrollTop:0},500)}),s()}function s(){var e=o.scrollTop(),s=t.height()-o.height(),a=s>0?e/s:0,i=parseFloat(r.data("max"))||100,l=r.data("unit")||"%",c=a*i;"true"===String(r.data("reverse"))&&(c=i-c),c=Math.max(0,Math.min(c,i)),r[0].style.setProperty("--rs-page-scroll-progress",c+l),e>150?r.is(":visible")||r.fadeIn(200):r.is(":visible")&&r.fadeOut(200),n=!1}}(),(o=e("#rs_scheme_toggler")).length&&o.on("click",function(){var o=e("body");o.hasClass("scheme-dark")?o.removeClass("scheme-dark").addClass("scheme-light"):o.removeClass("scheme-light").addClass("scheme-dark"),o.addClass("scheme-switching"),setTimeout(function(){o.removeClass("scheme-switching")},300)})},560:function(e,o,t){t.r(o)},715:function(e,o,t){t.r(o)}},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}};return e[r](s,s.exports,t),s.exports}t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},t(715),t(560),t(487)}();;
3/**
4 * Nerio Child - Custom JavaScript
5 *
6 * Enqueued via nerio_child_enqueue_styles() in functions.php.
7 * Add custom front-end behaviour for the Nerio Child theme below.
8 */
9( function () {
10	'use strict';
11
12	document.addEventListener( 'DOMContentLoaded', function () {
13		initWhitepaperForm();
14		initExternalArchiveLinks();
15	} );
16
17	/**
18	 * `unbounce-page` campaign cards can be rendered by more than one Fancy
19	 * Post Grid Pro widget (the Site Builder "Archive Posts" widget, the
20	 * classic "Post Grid" widget's card-style.php template, etc.) - all of
21	 * them just call get_permalink()/the_permalink(), which now always
22	 * resolves `unbounce-page` posts to an external campaign.readitquik.com
23	 * URL (see Website_Functionality\Module\UnbouncePageDisplay::unbounce_permalink).
24	 * Rather than chase every widget's markup (which is paid-plugin code -
25	 * a hardcoded fix there would vanish on the next plugin update), this
26	 * targets that known destination domain directly, so it keeps working
27	 * regardless of which widget/template renders the card.
28	 */
29	function initExternalArchiveLinks() {
30		var links = document.querySelectorAll( 'a[href*="campaign.readitquik.com"]' );
31
32		Array.prototype.forEach.call( links, function ( link ) {
33			if ( 'campaign.readitquik.com' === link.hostname ) {
34				link.setAttribute( 'target', '_blank' );
35				link.setAttribute( 'rel', 'noopener noreferrer' );
36			}
37		} );
38	}
39
40	/**
41	 * Wires up the AJAX submission for the `[whitepaper_form]` shortcode
42	 * (see themes/nerio-child/whitepaper-form.php and
43	 * Website_Functionality\Module\WhitepaperFormHandler). The markup's
44	 * `onsubmit="return false;"` blocks the native submit and its inline
45	 * `checkFields()` script already disables #whitepapersubmitBtn until
46	 * every required field is filled and the opt-in box is checked; this
47	 * only needs to perform the actual request once that gate is open.
48	 *
49	 * WhitepaperFormHandler::handle() reads every value (including `id`)
50	 * via `filter_input( INPUT_GET, ... )`, so the request must be a GET
51	 * with the data in the query string rather than a POST body.
52	 */
53	function initWhitepaperForm() {
54		var form = document.getElementById( 'whitepaper-form' );
55
56		if ( ! form ) {
57			return;
58		}
59
60		form.addEventListener( 'submit', function ( event ) {
61			event.preventDefault();
62			submitWhitepaperForm( form );
63		} );
64	}
65
66	function submitWhitepaperForm( form ) {
67		var submitBtn = document.getElementById( 'whitepapersubmitBtn' );
68		var output    = form.querySelector( '.form__output' );
69
70		if ( 'true' === form.dataset.submitted ) {
71			return;
72		}
73
74		form.dataset.submitted = 'true';
75
76		if ( submitBtn ) {
77			submitBtn.disabled = true;
78		}
79
80		if ( output ) {
81			output.textContent = '';
82			output.classList.remove( 'error', 'success' );
83		}
84
85		var params = new URLSearchParams();
86
87		Array.prototype.forEach.call( form.querySelectorAll( 'input[name]' ), function ( input ) {
88			if ( 'checkbox' === input.type ) {
89				if ( input.checked ) {
90					params.append( input.name, input.value || '1' );
91				}
92			} else {
93				params.append( input.name, input.value );
94			}
95		} );
96
97		params.append( 'id', form.getAttribute( 'data-whitepaper-id' ) || '' );
98
99		var requestUrl = form.getAttribute( 'action' );
100		requestUrl += ( -1 === requestUrl.indexOf( '?' ) ? '?' : '&' ) + params.toString();
101
102		fetch( requestUrl, { credentials: 'same-origin' } )
103			.then( function ( response ) {
104				return response.json();
105			} )
106			.then( function ( response ) {
107				handleWhitepaperFormResponse( form, response );
108			} )
109			.catch( function () {
110				resetWhitepaperFormAfterFailure( form );
111
112				if ( output ) {
113					output.textContent = 'Something went wrong. Please, check all fields and try again';
114					output.classList.add( 'error' );
115				}
116			} );
117	}
118
119	function handleWhitepaperFormResponse( form, response ) {
120		var output = form.querySelector( '.form__output' );
121
122		if ( response && response.success ) {
123			if ( response.data.url ) {
124				window.open( response.data.url );
125			}
126
127			if ( output ) {
128				output.textContent = response.data.thankYouMessage || '';
129				output.classList.add( 'success' );
130			}
131
132			var fieldset = form.querySelector( 'fieldset' );
133			var button   = form.querySelector( 'button' );
134
135			if ( fieldset ) {
136				fieldset.style.display = 'none';
137			}
138
139			if ( button ) {
140				button.style.display = 'none';
141			}
142
143			if ( response.data.redirectURL ) {
144				window.location = response.data.redirectURL;
145			}
146		} else {
147			resetWhitepaperFormAfterFailure( form );
148
149			if ( output ) {
150				output.textContent = 'Something went wrong. Please, check all fields and try again';
151				output.classList.add( 'error' );
152			}
153		}
154	}
155
156	function resetWhitepaperFormAfterFailure( form ) {
157		var submitBtn = document.getElementById( 'whitepapersubmitBtn' );
158
159		form.dataset.submitted = 'false';
160
161		if ( submitBtn ) {
162			submitBtn.disabled = false;
163		}
164	}
165} )();
166;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.