PageSourceSearch

https://thoughtswordsaction.com/_static/??-eJyNj8sOgyAQRX+olNq0sZu…/6Vr7qgt2c5tTJuTLGQbayf8O76/v7qb89H9wfqXIl+

js thoughtswordsaction.com collected 2026-10-02 06:50:54 UTC 19,005 bytes, 263 lines download raw bytes

1(()=>{const e=document.querySelectorAll(".coblocks-animate");if("IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add(e.target.dataset.coblocksAnimation),t.unobserve(e.target))}))}),{threshold:[.15]});e.forEach((e=>{t.observe(e)}))}else e.forEach((e=>{e.classList.remove("coblocks-animate"),delete e.dataset.coblocksAnimation}))})();;
2jQuery(document).ready(function($) {
3
4    if (!afLiveSearch.enabled) return;
5
6    let timer;
7    const resultsBox = $('#af-live-search-results');
8    const searchInput = $('input[type="search"]');
9
10    let items = [];
11    let index = -1;
12
13    function resetNavigation() {
14        items = resultsBox.find('[role="option"]');
15        index = -1;
16        items.attr('aria-selected', 'false');
17    }
18
19    searchInput.on('keyup', function (e) {
20
21        // Keyboard navigation
22        if (e.key === 'ArrowDown' && items.length) {
23            index = (index + 1) % items.length;
24            items.attr('aria-selected', 'false')
25                .eq(index).attr('aria-selected', 'true').focus();
26            return;
27        }
28
29        if (e.key === 'ArrowUp' && items.length) {
30            index = (index - 1 + items.length) % items.length;
31            items.attr('aria-selected', 'false')
32                .eq(index).attr('aria-selected', 'true').focus();
33            return;
34        }
35
36        if (e.key === 'Enter' && index >= 0) {
37            window.location = items.eq(index).find('a').attr('href');
38            return;
39        }
40
41        // Regular typing
42        const query = $(this).val().trim();
43        clearTimeout(timer);
44
45        timer = setTimeout(function() {
46
47            if (query.length < 2) {
48                resultsBox.html('').attr('aria-expanded', 'false');
49                return;
50            }
51
52            $.ajax({
53                url: afLiveSearch.ajax_url,
54                type: 'POST',
55                data: {
56                    action: 'reviewnews_live_search',
57                    s: query,
58                    nonce: afLiveSearch.nonce,
59                    limit: afLiveSearch.results_count
60                },
61                beforeSend: function () {
62                    resultsBox
63                        .html('<div class="loading" role="status">' + afLiveSearch.searching_text + '</div>')
64                        .attr('aria-expanded', 'true');
65                },
66                success: function (response) {
67                    resultsBox.html(response).attr('aria-expanded', 'true');
68                    resetNavigation();
69                }
70            });
71
72        }, 300);
73    });
74
75    // Close when clicking outside
76    $(document).on('click', function(e){
77        if (!$(e.target).closest('.af-search-wrap').length) {
78            resultsBox.html('').attr('aria-expanded', 'false');
79        }
80    });
81});
82;
83/**
84 * File navigation.js.
85 *
86 * Handles toggling the navigation menu for small screens and enables TAB key
87 * navigation support for dropdown menus.
88 */
89( function() {
90	var container, button, menu, links, i, len;
91
92	container = document.getElementById( 'site-navigation' );
93	if ( ! container ) {
94		return;
95	}
96
97	button = container.getElementsByTagName( 'button' )[0];
98	if ( 'undefined' === typeof button ) {
99		return;
100	}
101
102	menu = container.getElementsByTagName( 'ul' )[0];
103
104	// Hide menu toggle button if menu is empty and return early.
105	if ( 'undefined' === typeof menu ) {
106		button.style.display = 'none';
107		return;
108	}
109
110	menu.setAttribute( 'aria-expanded', 'false' );
111	if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
112		menu.className += ' nav-menu';
113	}
114
115	button.onclick = function() {
116		if ( -1 !== container.className.indexOf( 'toggled' ) ) {
117			container.className = container.className.replace( ' toggled', '' );
118			button.setAttribute( 'aria-expanded', 'false' );
119			menu.setAttribute( 'aria-expanded', 'false' );
120		} else {
121			container.className += ' toggled';
122			button.setAttribute( 'aria-expanded', 'true' );
123			menu.setAttribute( 'aria-expanded', 'true' );
124		}
125	};
126
127	// Get all the link elements within the menu.
128	links    = menu.getElementsByTagName( 'a' );
129
130	// Each time a menu link is focused or blurred, toggle focus.
131	for ( i = 0, len = links.length; i < len; i++ ) {
132		links[i].addEventListener( 'focus', toggleFocus, true );
133		links[i].addEventListener( 'blur', toggleFocus, true );
134	}
135
136	/**
137	 * Sets or removes .focus class on an element.
138	 */
139	function toggleFocus() {
140		var self = this;
141
142		// Move up through the ancestors of the current link until we hit .nav-menu.
143		while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
144
145			// On li elements toggle the class .focus.
146			if ( 'li' === self.tagName.toLowerCase() ) {
147				if ( -1 !== self.className.indexOf( 'focus' ) ) {
148					self.className = self.className.replace( ' focus', '' );
149				} else {
150					self.className += ' focus';
151				}
152			}
153
154			self = self.parentElement;
155		}
156	}
157
158	/**
159	 * Toggles `focus` class to allow submenu access on tablets.
160	 */
161	( function( container ) {
162		var touchStartFn, i,
163			parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' );
164
165		if ( 'ontouchstart' in window ) {
166			touchStartFn = function( e ) {
167				var menuItem = this.parentNode, i;
168
169				if ( ! menuItem.classList.contains( 'focus' ) ) {
170					e.preventDefault();
171					for ( i = 0; i < menuItem.parentNode.children.length; ++i ) {
172						if ( menuItem === menuItem.parentNode.children[i] ) {
173							continue;
174						}
175						menuItem.parentNode.children[i].classList.remove( 'focus' );
176					}
177					menuItem.classList.add( 'focus' );
178				} else {
179					menuItem.classList.remove( 'focus' );
180				}
181			};
182
183			for ( i = 0; i < parentLink.length; ++i ) {
184				parentLink[i].addEventListener( 'touchstart', touchStartFn, false );
185			}
186		}
187	}( container ) );
188} )();
189;
190/**
191 * File skip-link-focus-fix.js.
192 *
193 * Helps with accessibility for keyboard only users.
194 *
195 * Learn more: https://git.io/vWdr2
196 */
197( function() {
198	var isIe = /(trident|msie)/i.test( navigator.userAgent );
199
200	if ( isIe && document.getElementById && window.addEventListener ) {
201		window.addEventListener( 'hashchange', function() {
202			var id = location.hash.substring( 1 ),
203				element;
204
205			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
206				return;
207			}
208
209			element = document.getElementById( id );
210
211			if ( element ) {
212				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
213					element.tabIndex = -1;
214				}
215
216				element.focus();
217			}
218		}, false );
219	}
220} )();
221;
222!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=71)}({71:function(e,t){!function(e){"use strict";var t=window.AFTHRAMPES_JS||{};t.mobileMenu={init:function(){if(this.toggleMenu(),this.menuMobile(),this.menuArrow(),e(".aft-mobile-navigation").length){var i=document.querySelector(".aft-mobile-navigation");i&&t.trapFocus(i)}},toggleMenu:function(){e("#masthead").on("click",".toggle-menu",(function(t){t.preventDefault();var i=e(".main-navigation .menu .menu-mobile");"block"==i.css("display")?i.slideUp("300"):i.slideDown("300"),e(".ham").toggleClass("exit")})),e("#masthead .main-navigation ").on("click",".menu-mobile a button",(function(t){t.preventDefault();var i=e(this),n=i.closest("li");if(n.find("> .children").length)var o=n.find("> .children");else o=n.find("> .sub-menu");return"none"==o.css("display")?(o.slideDown("300"),i.addClass("active")):(o.slideUp("300"),i.removeClass("active")),!1}))},menuMobile:function(){if(e(".main-navigation .menu > ul").length){var i=e(".main-navigation .menu > ul"),n=i.closest(".main-navigation").data("epointbreak");if(void 0===n&&(n=991),n>=window.innerWidth?(i.addClass("menu-mobile").removeClass("menu-desktop"),e(".main-navigation .toggle-menu").css("display","block"),e(".main-navigation").addClass("aft-mobile-navigation")):(i.addClass("menu-desktop").removeClass("menu-mobile").css("display",""),e(".main-navigation .toggle-menu").css("display",""),e(".main-navigation").removeClass("aft-mobile-navigation")),e(".aft-mobile-navigation").length){var o=document.querySelector(".aft-mobile-navigation");o&&t.trapFocus(o)}}},menuArrow:function(){e("#masthead .main-navigation div.menu > ul").length&&(e("#masthead .main-navigation div.menu > ul .sub-menu").parent("li").find("> a").append('<button class="fa fa-angle-down">'),e("#masthead .main-navigation div.menu > ul .children").parent("li").find("> a").append('<button class="fa fa-angle-down">'))}},t.trapFocus=function(e){var t=e.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])"),i=t[0],n=t[t.length-1];e.addEventListener("keydown",(function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===i&&(n.focus(),e.preventDefault()):document.activeElement===n&&(i.focus(),e.preventDefault()))}))},t.Search=function(){e(".af-search-click").on("click",(function(){e("#af-search-wrap").toggleClass("af-search-toggle")}))},t.Offcanvas=function(){e("#sidr").addClass("aft-mobile-off-canvas");var i=document.querySelector(".aft-mobile-off-canvas");i&&t.trapFocus(i),e(".offcanvas-nav").sidr({speed:300,side:"left",displace:!1}
222),e(".sidr-class-sidr-button-close").on("click",(function(){e.sidr("close","sidr")}))},t.show_hide_scroll_top=function(){e(window).scrollTop()>e(window).height()/2?e("#scroll-up").fadeIn(300):e("#scroll-up").fadeOut(300)},t.scroll_up=function(){e("#scroll-up").on("click",(function(){return e("html, body").animate({scrollTop:0},800),!1}))},t.searchReveal=function(){jQuery(".search-overlay .search-icon").on("click",(function(e){if(e.preventDefault(),jQuery(this).parent().toggleClass("reveal-search"),jQuery(".reveal-search").length){var i=document.querySelector(".reveal-search");i&&t.trapFocus(i)}})),jQuery("body").on("click",(function(e){if(jQuery(".search-overlay").hasClass("reveal-search")){var t=jQuery(".search-overlay");t.is(e.target)||0!==t.has(e.target).length||t.removeClass("reveal-search")}}))},t.SliderAsNavFor=function(){return e(".banner-single-slider-1-wrap").hasClass("no-thumbnails")?null:".af-banner-slider-thumbnail"},t.RtlCheck=function(){return!!e("body").hasClass("rtl")},t.SlickSliderControls=function(t,i){var n=e(t).parents(".reviewnews-widget").attr("id");return console.log(n),e(n).find(i)},t.checkThumbOption=function(){return!!e(".hasthumbslide").hasClass("side")&&".af-post-slider-thumbnail"},t.CopyLink=function(){e(".aft-copy-to-clipboard").on("click",(function(){const t=e(this),i=window.location.href,n=document.createElement("textarea");n.value=i,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),e(".aft-copy-toast").remove();const o=t.attr("data-copy-msg")||"Link copied!",a=e('<div class="aft-copy-toast" aria-live="polite"></div>').text(o);e("body").append(a);const l=t.offset();l?a.css({top:l.top-35,left:l.left,position:"absolute",display:"none"}):a.css({position:"fixed",top:"20px",left:"50%",transform:"translateX(-50%)",display:"none"}),a.fadeIn(200).delay(1200).fadeOut(600,(function(){e(this).remove()}))})),e(".aft-copy-to-clipboard").on("keydown",(function(t){"Enter"===t.key&&e(this).trigger("click")}))},t.SlickBannerCarousel=function(){e(".af-banner-carousel-1").not(".slick-initialized").slick({autoplay:!0,autoplaySpeed:1e4,infinite:!0,nextArrow:'<button type="button" class="slide-icon slide-next icon-right fas fa-angle-right" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-left fas fa-angle-left" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(".af-main-navcontrols"),rtl:t.RtlCheck()})},t.SlickTrendingVerticalCarousel=function(){e(".aft-4-trending-posts-2 .banner-vertical-slider-2").not(".slick-initialized").slick({slidesToShow:4,slidesToScroll:1,autoplaySpeed:8e3,autoplay:!0,infinite:!0,loop:!0,vertical:!0,verticalSwiping:!0,dots:!1,nextArrow:'<button type="button" class="slide-icon slide-next icon-up fas fa-angle-up" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-down fas fa-angle-down" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(".af-trending-navcontrols-2"),responsive:[{breakpoint:1025,settings:{slidesToShow:2,slidesToScroll:1,vertical:!1,verticalSwiping:!1,draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1,rtl:t.RtlCheck()}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,vertical:!1,verticalSwiping:!1,rtl:t.RtlCheck()}}]}),e(".aft-4-trending-posts .banner-vertical-slider").not(".slick-initialized").slick({slidesToShow:4,slidesToScroll:1,autoplaySpeed:12e3,autoplay:!0,infinite:!0,loop:!0,vertical:!0,verticalSwiping:!0,dots:!1,nextArrow:'<button type="button" class="slide-icon slide-next icon-up fas fa-angle-up" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-down fas fa-angle-down" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(".af-trending-navcontrols"),responsive:[{breakpoint:1025,settings:{slidesToShow:2,slidesToScroll:1,vertical:!1,verticalSwiping:!1,draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1,rtl:t.RtlCheck()}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,vertical:!1,verticalSwiping:!1,rtl:t.RtlCheck()}}]})},t.SlickWidgetPostSlider=function(){e(".af-widget-post-slider").each((function(){e(this).not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:1e4,infinite:!0,nextArrow:'<button type="button" class="slide-icon slide-next icon-right fas fa-angle-right" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-left fas fa-angle-left" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(this).parents(".reviewnews-widget").find(".af-widget-post-slider-navcontrols"),rtl:t.RtlCheck()})}))},t.SlickWidgetTrendingVerticalCarousel=function(){e(".body.full-width-content #primary .af-trending-widget-carousel").each((function(){e(this).not(".slick-initialized").slick({slidesToShow:3,slidesToScroll:1,autoplay:!0,infinite:!0,loop:!0,dots:!1,nextArrow:'<button type="button" class="slide-icon slide-next icon-right fas fa-angle-right" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-left fas fa-angle-left" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(this).parents(".reviewnews-widget").find(".af-widget-trending-carousel-navcontrols"),rtl:t.RtlCheck(),responsive:[{breakpoint:1025,settings:{slidesToShow:2,draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1}},{breakpoint:600,settings:{slidesToShow:1,draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1}}]})})),e("#primary .af-trending-widget-carousel").each((function(){e(this).not(".slick-initialized").slick({slidesToShow:2,slidesToScroll:1,autoplay:!0,infinite:!0,loop:!0,dots:!1,nextArrow:'<button type="button" class="slide-icon slide-next icon-right fas fa-angle-right" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-left fas fa-angle-left" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(this).parents(".reviewnews-widget").find(".af-widget-trending-carousel-navcontrols"),rtl:t.RtlCheck(),responsive:[{breakpoint:600,settings:{slidesToShow:1,draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1}}]})})),e(".af-trending-widget-carousel").each((function(){e(this).not(".slick-initialized").slick({slidesToShow:3,slidesToScroll:1,autoplay:!0,infinite:!0,loop:!0,vertical:!0,verticalSwiping:!0,dots:!1,nextArrow:'<button type="button" class="slide-icon slide-next icon-up fas fa-angle-up" aria-label="Next slide" tabindex="0"></button>',prevArrow:'<button type="button" class="slide-icon slide-prev icon-down fas fa-angle-down" aria-label="Previous slide" tabindex="0"></button>',appendArrows:e(this).parents(".reviewnews-widget").find(".af-widget-trending-carousel-navcontrols"),responsive:[{breakpoint:1025,settings:{slidesToShow:2,slidesToScroll:1,vertical:!1,verticalSwiping:!1,draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1,rtl:t.RtlCheck()}},{breakpoint:600,settings:{draggable:!1,swipeToSlide:!1,touchMove:!1,swipe:!1}}]})}))},t.CurrentTimeRunner=function(){var e=document.getElementById("topbar-time");if(e){setInterval((function(){var t,i;t=new Date,i=AFlocalizedTime.format,e.innerHTML=t.toLocaleTimeString(i)}),100)}},e(document).ready((function(){t.mobileMenu.init(),t.Offcanvas(),t.scroll_up(),t.SlickBannerCarousel(),t.SlickWidgetPostSlider(),t.SlickTrendingVerticalCarousel(),t.SlickWidgetTrendingVerticalCarousel()})),e(window).on("scroll",(function(){t.show_hide_scroll_top()})),e(window).on("load",(function(){t.CurrentTimeRunner(),t.searchReveal(),t.CopyLink(),t.Search()})),e(window).on("resize",(function(){t.mobileMenu.menuMobile()}
222))}(jQuery)}});;
223(function ($) {
224    "use strict";
225    var AFTHRAMPES_JS = window.AFTHRAMPES_JS || {};
226
227    // Function to preload and apply background images
228    AFTHRAMPES_JS.DataBackground = function () {
229        $(".data-bg").each(function () {
230            var $this = $(this);
231            var background = $this.data("background");
232
233            if (background) {
234                // Preload the background image first
235                var img = new Image();
236                img.src = background;
237                
238                // When the image is loaded, apply it as the background
239                img.onload = function () {
240                    $this.css("background-image", "url(" + background + ")");
241                    $this.addClass("data-bg-loaded");
242                };
243            }
244        });
245    };
246
247    // Preloader function to hide preloader after page load
248    AFTHRAMPES_JS.Preloader = function () {
249        $(window).on('load', function () {
250            $('#af-preloader').fadeOut('slow', function () {
251                $('#loader-wrapper').fadeOut();
252            });
253        });
254    };
255
256    // Document ready
257    $(document).ready(function () {
258        AFTHRAMPES_JS.DataBackground();
259        AFTHRAMPES_JS.Preloader();
260    });
261
262})(jQuery);
263;

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.