PageSourceSearch

https://bargain-sleuth.com/_static/??-eJyVj8EOgjAQRH/IstEQhIPxU0xp…Xhy76Z7wYKTZutxqQJte9dwOZ7bru7qpmlfmuhrig==

js bargain-sleuth.com collected 2026-10-04 21:32:17 UTC 14,643 bytes, 252 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}))})();;
2/**
3 * File skip-link-focus-fix.js.
4 *
5 * Helps with accessibility for keyboard only users.
6 *
7 * Learn more: https://git.io/vWdr2
8 */
9(function() {
10	var isIe = /(trident|msie)/i.test( navigator.userAgent );
11
12	if ( isIe && document.getElementById && window.addEventListener ) {
13		window.addEventListener( 'hashchange', function() {
14			var id = location.hash.substring( 1 ),
15				element;
16
17			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
18				return;
19			}
20
21			element = document.getElementById( id );
22
23			if ( element ) {
24				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
25					element.tabIndex = -1;
26				}
27
28				element.focus();
29			}
30		}, false );
31	}
32})();
33;
34/**
35 * File navigation.js.
36 *
37 * Handles toggling the navigation menu for small screens and enables TAB key
38 * navigation support for dropdown menus.
39 */
40( function( $ ) {
41
42	var body, menuToggle, siteMenu, siteNavigation;
43
44	function initMainNavigation( container ) {
45
46		// Add dropdown toggle that displays child menu items.
47		var dropdownToggle = $( '<button />', {
48			'class': 'dropdown-toggle',
49			'aria-expanded': false
50		} ).append( $( '<span />', {
51			'class': 'screen-reader-text',
52			text: screenReaderText.expand
53		} ) );
54
55		container.find( '.menu-item-has-children > a' ).after( dropdownToggle );
56
57		// Toggle buttons and submenu items with active children menu items.
58		container.find( '.current-menu-ancestor > button' ).addClass( 'toggled-on' );
59		container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' );
60
61		// Add menu items with submenus to aria-haspopup="true".
62		container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' );
63
64		container.find( '.dropdown-toggle' ).click( function( e ) {
65			var _this            = $( this ),
66				screenReaderSpan = _this.find( '.screen-reader-text' );
67
68			e.preventDefault();
69			_this.toggleClass( 'toggled-on' );
70			_this.next( '.children, .sub-menu' ).toggleClass( 'toggled-on' );
71
72			// jscs:disable
73			_this.attr( 'aria-expanded', _this.attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
74			// jscs:enable
75			screenReaderSpan.text( screenReaderSpan.text() === screenReaderText.expand ? screenReaderText.collapse : screenReaderText.expand );
76		} );
77	}
78	initMainNavigation( $( '#site-navigation' ) );
79
80	siteMenu         = $( '#menu-primary' );
81	siteNavigation   = $( '#site-navigation' );
82	menuToggle       = siteNavigation.find( '.menu-toggle' );
83
84	// Enable menuToggle.
85	( function() {
86
87		// Return early if menuToggle is missing.
88		if ( ! menuToggle.length ) {
89			return;
90		}
91
92		// Add an initial values for the attribute.
93		menuToggle.add( siteNavigation ).attr( 'aria-expanded', 'false' );
94
95		menuToggle.on( 'click.apostrophe', function() {
96			$( this ).add( siteMenu ).add( siteNavigation ).toggleClass( 'toggled-on' );
97
98			// jscs:disable
99			$( this ).add( siteMenu ).add( siteNavigation ).attr( 'aria-expanded', $( this ).add( siteNavigation ).attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
100			// jscs:enable
101		} );
102	} )();
103
104	// Fix sub-menus for touch devices and better focus for hidden submenu items for accessibility.
105	( function() {
106		if ( ! siteNavigation.length || ! siteNavigation.children().length ) {
107			return;
108		}
109
110		// Toggle `focus` class to allow submenu access on tablets.
111		function toggleFocusClassTouchScreen() {
112			if ( window.innerWidth >= 840 ) {
113				$( document.body ).on( 'touchstart.apostrophe', function( e ) {
114					if ( ! $( e.target ).closest( '.main-navigation li' ).length ) {
115						$( '.main-navigation li' ).removeClass( 'focus' );
116					}
117				} );
118				siteNavigation.find( '.menu-item-has-children > a' ).on( 'touchstart.apostrophe', function( e ) {
119					var el = $( this ).parent( 'li' );
120
121					if ( ! el.hasClass( 'focus' ) ) {
122						e.preventDefault();
123						el.toggleClass( 'focus' );
124						el.siblings( '.focus' ).removeClass( 'focus' );
125					}
126				} );
127			} else {
128				siteNavigation.find( '.menu-item-has-children > a' ).unbind( 'touchstart.apostrophe' );
129			}
130		}
131
132		if ( 'ontouchstart' in window ) {
133			$( window ).on( 'resize.apostrophe', toggleFocusClassTouchScreen );
134			toggleFocusClassTouchScreen();
135		}
136
137		siteNavigation.find( 'a' ).on( 'focus.apostrophe blur.apostrophe', function() {
138			$( this ).parents( '.menu-item' ).toggleClass( 'focus' );
139		} );
140	} )();
141
142	// Add the default ARIA attributes for the menu toggle and the navigations.
143	function onResizeARIA() {
144		if ( window.innerWidth < 840 ) {
145			if ( menuToggle.hasClass( 'toggled-on' ) ) {
146				menuToggle.attr( 'aria-expanded', 'true' );
147				siteMenu.attr( 'aria-expanded', 'true' );
148				siteNavigation.attr( 'aria-expanded', 'true' );
149			} else {
150				menuToggle.attr( 'aria-expanded', 'false' );
151				siteMenu.attr( 'aria-expanded', 'false' );
152				siteNavigation.attr( 'aria-expanded', 'false' );
153			}
154		} else {
155			menuToggle.removeAttr( 'aria-expanded' );
156			siteMenu.removeAttr( 'aria-expanded' );
157			siteNavigation.removeAttr( 'aria-expanded' );
158		}
159	}
160
161	$( document ).ready( function() {
162		body = $( document.body );
163
164		$( window )
165			.on( 'load.apostrophe', onResizeARIA )
166			.on( 'resize.apostrophe', onResizeARIA );
167	} );
168
169} )( jQuery );
170;
171/**
172 * apostrophe.js
173 *
174 * Handles the basic JS functionality for our theme.
175 */
176( function($) {
177	/*
178	 * Count the number of images in each row in order to create the proper clearings.
179	 * For the most part, this isn't necessary, but there are certain instances where
180	 * the grid breaks at the wrong spot, making the whole layout look funky.
181	 * To fix that, we're counting where we are in the grid layout based on the space
182	 * each article uses, and adding a clearing class each time we drop to a new row.
183	 */
184	function countGrid() {
185		var $body = $( 'body' );
186		var $container = $( '#main #posts-wrapper' );
187		var $button = $( '.menu-toggle' );
188
189		// Only initiate script if the mobile menu toggle isn't showing and we're on a page that uses the grid.
190		// Return otherwise.
191		if ( ( 0 !== $button.offsetWidth && 0 !== $button.offsetHeight ) &&
192				 ! ( $body.hasClass( 'archive' ) || $body.hasClass( 'blog' ) || $body.hasClass( 'search' ) ) ) {
193			return;
194		}
195
196		var $articles = $container.find( '.hentry' );
197		// This variable is used to count how far across the grid we are.
198		var gridcount = 0;
199		var gridcount_increment;
200
201		$articles.each( function() {
202			// If the article is featured, it takes up two blocks. If not, it takes up one.
203			if ( $( this ).hasClass( 'apostrophe-featured' ) ) {
204				gridcount_increment = 2;
205			} else {
206				gridcount_increment = 1;
207			}
208			// If we're at a newline in the grid, add a class to clear the previous line, and reset the grid count.
209			if ( 3 < gridcount + gridcount_increment ) {
210				gridcount = 0;
211				$( this ).addClass( 'clear' );
212			}
213			gridcount = gridcount + gridcount_increment;
214		} );
215	} // countGrid
216
217	// Set width of h2 elements inside the grid to make sure post titles don't overflow the container, and we're breaking long, one-word titles correctly.
218	function blockWidth() {
219		var $body = $( 'body' );
220		if ( $body.hasClass( 'archive' ) || $body.hasClass( 'blog' ) || $body.hasClass( 'search' ) ) {
221
222			if ( $( window ).innerWidth() > 767 ) {
223				$( '.hentry' ).each( function() {
224					$( this ).find( '.entry-title' ).width( $( this ).width() );
225				} );
226			} else {
227				$( '.hentry' ).each( function() {
228					$( this ).find( '.entry-title' ).attr( 'style', '' );
229				} );
230			}
231		}
232	}
233
234	// Count grid blocks on page load
235	$( document ).on( 'ready', function() {
236		countGrid();
237		blockWidth();
238	});
239
240	// ...and on each subsequent Infinite Scroll load, as well.
241	$( document ).on( 'post-load', function() {
242		countGrid();
243		blockWidth();
244	});
245
246	$( window ).resize( function() {
247		blockWidth();
248	});
249
250} )(jQuery);
251;
252(()=>{var e=[],t=!1,n=2e3,i=[],o=new Promise(e=>{"loading"!==document.readyState?e():window.addEventListener("DOMContentLoaded",()=>e())});function s(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch{return}if(t&&"function"==typeof t.postMessage)try{t.postMessage(JSON.stringify({type:"likesMessage",data:e}),"*")}catch{}}function r(){const t=[];document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach(n=>{if(!(e.indexOf(n.id)>-1)&&d(n)){e.push(n.id);var i,o=/like-(post|comment)-wrapper-(\d+)-(\d+)-(\w+)/.exec(n.id);o&&5===o.length&&(i={blog_id:o[2],width:n.width},"post"===o[1]?i.post_id=o[3]:"comment"===o[1]&&(i.comment_id=o[3]),i.obj_id=o[4],t.push(i))}}),t.length>0&&s({event:"initialBatch",requests:t},window.frames["likes-master"])}function a(){const e=document.querySelector("#likes-other-gravatars");if(e){e.style.display="none",e.setAttribute("aria-hidden","true");const t=e.__resizeHandler;t&&(window.removeEventListener("resize",t),delete e.__resizeHandler)}}function l(){var e;if(!t)return s({event:"queryMasterReady"},window.frames["likes-master"]),void setTimeout(l,500);!function(){for(let e=i.length-1;e>=0;e--){const t=i[e];if(!d(t)){const n=t&&t.parentElement&&t.parentElement.parentElement;n.classList.remove("jetpack-likes-widget-loaded"),n.classList.remove("jetpack-likes-widget-loading"),n.classList.add("jetpack-likes-widget-unloaded");const o=n.querySelector(".likes-widget-placeholder");o&&(o.style.display=""),i.splice(e,1),t.remove()}}}(),function(){if(!g)return;document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach(e=>g.observe(e))}();var n=[...document.querySelectorAll("div.jetpack-likes-widget-unloaded")].filter(e=>d(e));n.length>0&&r();for(var o=0,a=n.length;o<=a-1;o++)(e=n[o].id)&&c(e)}function c(e){if(void 0===e)return;const t=document.querySelector("#"+e);t.querySelectorAll("iframe").forEach(e=>e.remove());const n=t.querySelector(".likes-widget-placeholder");if(n&&n.classList.contains("post-likes-widget-placeholder")){const e=document.createElement("iframe");e.classList.add("post-likes-widget","jetpack-likes-widget"),e.name=t.dataset.name,e.src=t.dataset.src,e.height="55px",e.width="100%",e.frameBorder="0",e.scrolling="no",e.title=t.dataset.title,n.after(e)}if(n.classList.contains("comment-likes-widget-placeholder")){const e=document.createElement("iframe");e.class="comment-likes-widget-frame jetpack-likes-widget-frame",e.name=t.dataset.name,e.src=t.dataset.src,e.height="18px",e.width="100%",e.frameBorder="0",e.scrolling="no",t.querySelector(".comment-like-feedback").after(e),i.push(e)}t.classList.remove("jetpack-likes-widget-unloaded"),t.classList.add("jetpack-likes-widget-loading"),t.querySelector("iframe").addEventListener("load",e=>{t.contains(e.target)&&(s({event:"loadLikeWidget",name:e.target.name,width:e.target.width},window.frames["likes-master"]),n&&(n.style.display="none"),t.classList.remove("jetpack-likes-widget-loading"),t.classList.add("jetpack-likes-widget-loaded"))})}function d(e){const t=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;return t+n>=0&&i<=window.innerHeight+n}window.addEventListener("message",function(e){let n=e&&e.data;if("string"==typeof n)try{n=JSON.parse(n)}catch{return}const i=n&&n.type,l=n&&n.data;if("likesMessage"!==i||void 0===l.event)return;if("https://widgets.wp.com"===e.origin)switch(l.event){case"masterReady":o.then(()=>{t=!0;const e={event:"injectStyles"},n=document.querySelector(".sd-text-color"),i=document.querySelector(".sd-link-color"),o=n&&getComputedStyle(n)||{},a=i&&getComputedStyle(i)||{};document.body.classList.contains("single")&&s({event:"reblogsEnabled"},window.frames["likes-master"]),e.textStyles={color:o.color,fontFamily:o["font-family"],fontSize:o["font-size"],direction:o.direction,fontWeight:o["font-weight"],fontStyle:o["font-style"],textDecoration:o["text-decoration"]},e.linkStyles={color:a.color,fontFamily:a["font-family"],fontSize:a["font-size"],textDecoration:a["text-decoration"],fontWeight:a["font-weight"],fontStyle:a["font-style"]},s(e,window.frames["likes-master"]),r()});break;case"showLikeWidget":case"showCommentLikeWidget":break;case"killCommentLikes":document.querySelectorAll(".jetpack-comment-likes-widget-wrapper").forEach(e
252=>e.remove());break;case"clickReblogFlair":wpcom_reblog&&"function"==typeof wpcom_reblog.toggle_reblog_box_flair&&wpcom_reblog.toggle_reblog_box_flair(l.obj_id);break;case"hideOtherGravatars":a();break;case"showOtherGravatars":{const e=document.querySelector("#likes-other-gravatars");if(!e)break;const t=e.querySelector("ul");e.style.display="none",t.innerHTML="",e.querySelectorAll(".likes-text span").forEach(e=>e.textContent=l.totalLikesLabel),(l.likers||[]).forEach(async(e,n)=>{if("http"!==e.profile_URL.substr(0,4))return;const i=document.createElement("li");t.append(i);const o=encodeURI(e.profile_URL),r=encodeURI(e.avatar_URL);i.innerHTML=`<a href="${o}" rel="nofollow" target="_parent" class="wpl-liker">\n\t\t\t\t\t\t<img src="${r}"\n\t\t\t\t\t\t\talt=""\n\t\t\t\t\t\t\tstyle="width: 28px; height: 28px;" />\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</a>`,i.classList.add(e.css_class),i.querySelector("img").alt=l.avatarAltTitle.replace("%s",e.name),i.querySelector("span").innerText=e.name,n===l.likers.length-1&&i.addEventListener("keydown",e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),a(),s({event:"focusLikesCount",parent:l.parent},window.frames["likes-master"]))})});const n=function(){const t="rtl"===getComputedStyle(e).direction,n=document.querySelector(`*[name='${l.parent}']`),i=n.getBoundingClientRect(),o=n.ownerDocument.defaultView,s=i.top+o.pageYOffset,r=i.left+o.pageXOffset;let a;if(e.style.top=s+l.position.top-1+"px",t){const t=l&&l.likers?Math.min(l.likers.length,5):0;a=r+l.position.left+24*t+4,e.style.transform="translateX(-100%)"}else a=r+l.position.left;e.style.left=a+"px",e.style.left="-9999px",e.style.display="block";const c=e.offsetWidth;a+c>o.innerWidth&&(a=i.right-c),e.style.left=a+"px",e.setAttribute("aria-hidden","false")};n(),e.focus();const i=function(e,t){var n;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,o)},t)}},o=i(n,100);e.__resizeHandler=o,window.addEventListener("resize",o),e.focus()}}}),document.addEventListener("click",a);var f,m,u,p=(f=250,m=l,function(){clearTimeout(u),u=setTimeout(m,f)}),g="function"==typeof IntersectionObserver?new IntersectionObserver(p,{rootMargin:"2000px",threshold:[0,1]}):null;l(),window.addEventListener("scroll",p,!0)})();;

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.