PageSourceSearch

https://tomrocksmaths.com/_static/??-eJyVkNFOwzAMRX8Ix7RUKi+IT0FJ6…VvpP99cfaSgmoBKoOW78Fpehnmep+HxaZy2L0eumBM=

js tomrocksmaths.com collected 2026-09-24 21:20:36 UTC 23,346 bytes, 293 lines download raw bytes

1(()=>{(function(){var Scroller,stats,type,text,totop,loading_text,isIE=-1!==navigator.userAgent.search("MSIE");if(isIE){var IEVersion=navigator.userAgent.match(/MSIE\s?(\d+)\.?\d*;/);IEVersion=parseInt(IEVersion[1])}function fullscreenState(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?1:0}"https:"===document.location.protocol&&(infiniteScroll.settings.ajaxurl=infiniteScroll.settings.ajaxurl.replace("http://","https://")),Scroller=function(e){var t=this;this.id=e.id,this.body=document.body,this.window=window,this.element=document.getElementById(e.id),this.wrapperClass=e.wrapper_class,this.ready=!0,this.disabled=!1,this.page=1,this.offset=e.offset,this.currentday=e.currentday,this.order=e.order,this.throttle=!1,this.click_handle=e.click_handle,this.google_analytics=e.google_analytics,this.history=e.history,this.origURL=window.location.href,this.handle=document.createElement("div"),this.handle.setAttribute("id","infinite-handle");var n=document.createElement("span"),i=document.createElement("button");i.textContent=text,n.appendChild(i),this.handle.appendChild(n),this.footer={el:document.getElementById("infinite-footer"),wrap:e.footer},this.checkViewportOnLoadBound=t.checkViewportOnLoad.bind(this),this.wpMediaelement=null,"scroll"===type?(this.window.addEventListener("scroll",function(){t.throttle=!0}),t.gotop(),setInterval(function(){t.throttle&&(t.throttle=!1,t.thefooter(),t.refresh(),t.determineURL())},250),t.ensureFilledViewport(),this.body.addEventListener("is.post-load",t.checkViewportOnLoadBound)):"click"===type&&(this.click_handle&&this.element.appendChild(this.handle),this.handle.addEventListener("click",function(){t.click_handle&&t.handle.parentNode.removeChild(t.handle),t.refresh()})),this.body.addEventListener("is.post-load",t.initializeMejs)},Scroller.prototype.getScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},Scroller.prototype.extend=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])Object.hasOwn(arguments[t],n)&&(e[n]=arguments[t][n]);return e},Scroller.prototype.check=function(){return this.measure(this.element,[this.wrapperClass]).bottom<2*this.window.innerHeight},Scroller.prototype.render=function(e){var t=Array.prototype.slice.call(e.fragment.childNodes);for(this.body.classList.add("infinity-success");t.length>0;){var n=t.shift();this.element.appendChild(n)}this.trigger(this.body,"is.post-load",{jqueryEventName:"post-load",data:e}),this.ready=!0},Scroller.prototype.query=function(){return{page:this.page+this.offset,currentday:this.currentday,order:this.order,scripts:window.infiniteScroll.settings.scripts,styles:window.infiniteScroll.settings.styles,query_args:window.infiniteScroll.settings.query_args,query_before:window.infiniteScroll.settings.query_before,last_post_date:window.infiniteScroll.settings.last_post_date}},Scroller.prototype.animate=function(e,t){var n=performance.now();requestAnimationFrame(function i(o){var r=Math.min(1,(o-n)/t);e(r),r<1&&requestAnimationFrame(i)})},Scroller.prototype.gotop=function(){var e=document.getElementById("infinity-blog-title"),t=this;e&&(e.setAttribute("title",totop),e.addEventListener("click",function(e){var n=t.window.pageYOffset;e.preventDefault(),t.animate(function(e){var t=n-n*e;document.documentElement.scrollTop=document.body.scrollTop=t},200)}))},Scroller.prototype.thefooter=function(){var e,t,n,i,o=this;if(this.footer&&this.footer.el){if("string"==typeof this.footer.wrap){try{t=(t=document.getElementById(this.footer.wrap).getBoundingClientRect()).width}catch{t=0}t>479&&(e=this.footer.el.querySelector(".container"))&&(e.style.width=t+"px")}n=parseInt(o.footer.el.style.bottom||-50,10),i=this.window.pageYOffset>=350?0:-50,n!==i&&o.animate(function(e){var t=n+(i-n)*e;o.footer.el.style.bottom=t+"px",1===e&&(n=i)},200)}},Scroller.prototype.urlEncodeJSON=function(e,t){var n,i,o=[];for(var r in e)n=encodeURIComponent(r),i=t?t+"["+n+"]":n,"object"==typeof e[r]?!Array.isArray(e[r])||e[r].length>0?o.push(this.urlEncodeJSON(e[r],i)):o.push(i+"[]="):o.push(i+"="+encodeURIComponent(e[r]));return o.join("&")},Scroller.prototype.refresh=function(){var self=this,query,xhr,loader,customized;if(!this.disabled&&this.ready&&this.check())return this.ready=!1,this.click_handle&&(loader||(document.getElementById("infinite-aria").textContent=loading_text,loader=document.createElement("div"),loader.classList.add("infinite-loader"),loader.setAttribute("role","progress"),loader.innerHTML='<svg class="jetpack-spinner infinite-loader-spinner spinner" width="28" height="28" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><circle cx="50" cy="50" r="46" fill="none" stroke="#ddd" stroke-width="8"/><path d="M 50 4 A 46 46 0 0 1 96 50" fill="none" stroke="currentColor" stroke-width="8" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" dur="1.4s" from="0 50 50" to="360 50 50" repeatCount="indef
1inite"/></path></svg>'),this.element.appendChild(loader)),query=self.extend({action:"infinite_scroll"},this.query()),"undefined"!=typeof wp&&wp.customize&&wp.customize.settings.theme&&(customized={},query.wp_customize="on",query.theme=wp.customize.settings.theme.stylesheet,wp.customize.each(function(e){e._dirty&&(customized[e.id]=e())}),query.customized=JSON.stringify(customized),query.nonce=wp.customize.settings.nonce.preview),xhr=new XMLHttpRequest,xhr.open("POST",infiniteScroll.settings.ajaxurl,!0),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),xhr.send(self.urlEncodeJSON(query)),xhr.onerror=function(){self.click_handle&&loader.parentNode&&loader.parentNode.removeChild(loader),self.ready=!0},xhr.onload=function(){var response=JSON.parse(xhr.responseText),httpCheck=xhr.status>=200&&xhr.status<300,responseCheck=void 0!==response.html;if(response&&httpCheck&&responseCheck){if(self.click_handle&&loader.parentNode&&loader.parentNode.removeChild(loader),response.scripts&&Array.isArray(response.scripts)&&response.scripts.forEach(function(e){var t=e.footer?"body":"head";window.infiniteScroll.settings.scripts.push(e.handle),e.extra_data&&self.appendInlineScript(e.extra_data,t),e.before_handle&&self.appendInlineScript(e.before_handle,t);var n=document.createElement("script");n.type="text/javascript",n.src=e.src,n.id=e.handle,n.async=!1,e.after_handle&&(n.onload=function(){self.appendInlineScript(e.after_handle,t)}),"wp-mediaelement"===e.handle&&self.body.removeEventListener("is.post-load",self.initializeMejs),"wp-mediaelement"===e.handle&&"undefined"==typeof mejs?(self.wpMediaelement={},self.wpMediaelement.tag=n,self.wpMediaelement.element=t,setTimeout(self.maybeLoadMejs.bind(self),250)):document.getElementsByTagName(t)[0].appendChild(n)}),response.styles&&Array.isArray(response.styles)&&response.styles.forEach(function(item){window.infiniteScroll.settings.styles.push(item.handle);var style=document.createElement("link");style.rel="stylesheet",style.href=item.src,style.id=item.handle+"-css",!item.conditional||isIE&&eval(item.conditional.replace(/%ver/g,IEVersion))||(style=!1),style&&document.getElementsByTagName("head")[0].appendChild(style)}),response.fragment=document.createElement("div"),response.fragment.innerHTML=response.html,self.page++,stats&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?"+stats+"&post=0&baba="+Math.random()),"object"==typeof response.postflair&&"object"==typeof WPCOM_sharing_counts&&(WPCOM_sharing_counts=self.extend(WPCOM_sharing_counts,response.postflair)),self.render.call(self,response),"click"===type?(infiniteScroll.settings.wrapper&&document.querySelector("#infinite-view-"+(self.page+self.offset-1)+" a:first-of-type").focus({preventScroll:!0}),response.lastbatch?self.click_handle?(self.body.classList.add("infinity-end"),self.body.classList.remove("infinity-success")):self.trigger(this.body,"infinite-scroll-posts-end"):self.click_handle?self.element.appendChild(self.handle):self.trigger(this.body,"infinite-scroll-posts-more")):response.lastbatch&&(self.disabled=!0,self.body.classList.add("infinity-end"),self.body.classList.remove("infinity-success")),response.currentday&&(self.currentday=response.currentday),self.google_analytics){var ga_url=self.history.path.replace(/%d/,self.page);"object"==typeof _gaq&&_gaq.push(["_trackPageview",ga_url]),"function"==typeof ga&&ga("send","pageview",ga_url)}}else self.click_handle&&loader.parentNode&&loader.parentNode.removeChild(loader)},xhr},Scroller.prototype.appendInlineScript=function(e,t){var n=document.createElement("script"),i=document.createTextNode("//<![CDATA[ \n"+e+"\n//]]>");n.type="text/javascript",n.appendChild(i),document.getElementsByTagName(t)[0].appendChild(n)},Scroller.prototype.maybeLoadMejs=function(){null!==this.wpMediaelement&&("undefined"==typeof mejs?setTimeout(this.maybeLoadMejs.bind(this),250):(document.getElementsByTagName(this.wpMediaelement.element)[0].appendChild(this.wpMediaelement.tag),this.wpMediaelement=null,this.body.addEventListener("is.post-load",this.initializeMejs)))},Scroller.prototype.initializeMejs=function(e){if(e.detail&&e.detail.html&&(-1!==e.detail.html.indexOf("wp-audio-shortcode")||-1!==e.detail.html.indexOf("wp-video-shortcode"))&&"undefined"!=typeof mejs){var t,n={};"undefined"!=typeof _wpmejsSettings&&(n.pluginPath=_wpmejsSettings.pluginPath),n.success=function(e){var t=e.attributes.autoplay&&"false"!==e.attributes.autoplay;"flash"===e.pluginType&&t&&e.addEventListener("canplay",function(){e.play()},!1)},t=document.querySelectorAll(".wp-audio-shortcode, .wp-video-shortcode"),t=(t=Array.prototype.slice.call(t)).filter(function(e){for(;e.parentNode;){if(e.classList.contains("mejs-container"))return!1;e=e.parentNode}return!0});for(var i=0;i<t.length;i++)new MediaElementPlayer(t[i],n)}},Scroller.prototype.measure=function(e,t){t=t||[];for(var n,i,o,r=Array.prototype.slice.call(e.children),s=Number.MAX_VALUE,l=0;r.length>0;){for(n=r.shift(),o=0;o<t.length;o++)if(n.classList.contains(t[o])){r=r.concat(Array.prototype.slice.call(n.children));break}i=n.getBoundingClientRect(),s=Math.min(s,i.top),l=Math.max(l,i.bottom)}var a=Math.round(window.innerHeight/2),d=s<=a&&l>=a;return{top:s,bottom:l,height:l-s,factor:(Math.min(l,a)-Math.max(s,0))/a,isActive:d}},Scroller.prototype.ensureFilledViewport=function(){var e=this,t=e.window.innerHeight,n=e.measure(e.element,[e.wrapperClass]);e.body.removeEventListener("is.post-load",e.checkViewportOnLoadBound),0!==n.bottom&&n.bottom<t&&(e.ready=!0,e.refresh())},Scroller.prototype.checkViewportOnLoad=function(){this.ensureFilledViewport()};var previousFullScrenState=fullscreenState();Scroller.prototype.determineURL=function(){var e,t=this,n=-1,i=fullscreenState(),o=0;if(previousFullScrenState^i)previousFullScrenState=i;else{previousFullScrenState=i,e=document.querySelectorAll("."+t.wrapperClass);for(var r=0;r<e.length;r++){var s=t.measure(e[r]);if(s.isActive){n=parseInt(e[r].dataset.pageNum,10);break}s.factor>o&&(n=parseInt(e[r].dataset.pageNum,10),o=s.factor)}t.updateURL(n)}},Scroller.prototype.updateURL=function(e){if(window.history.pushState){var t=this,n=t.origURL;-1!==e&&(n=window.location.protocol+"//"+t.history.host+t.history.path.replace(/%d/,e)+t.history.parameters),window.location.href!==n&&history.pushState(null,null,n)}},Scroller.prototype.pause=function(){this.disabled=!0},Scroller.prototype.resume=function(){this.disabled=!1},Scroller.prototype.trigger=function(e,t,n){var i;(n=n||{}).jqueryEventName&&"undefined"!=typeof jQuery&&jQuery(e).trigger(n.jqueryEventName,n.data||null);try{i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n.data||null})}catch{(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n.data||null)}e.dispatchEvent(i)};var jetpackInfinityModule=function(){if("object"==typeof infiniteScroll&&(infiniteScroll.
1settings.body_class.split(" ").forEach(function(e){e&&document.body.classList.add(e)}),stats=infiniteScroll.settings.stats,type=infiniteScroll.settings.type,text=infiniteScroll.settings.text,totop=infiniteScroll.settings.totop,loading_text=infiniteScroll.settings.loading_text,infiniteScroll.scroller=new Scroller(infiniteScroll.settings),"click"===type)){var e=null;window.addEventListener("scroll",function(){e||(e=setTimeout(function(){infiniteScroll.scroller.determineURL(),e=null},250))})}};"interactive"===document.readyState||"complete"===document.readyState?jetpackInfinityModule():document.addEventListener("DOMContentLoaded",jetpackInfinityModule)})()})();;
2!function(e){var o={};function n(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,o){if(1&o&&(e=n(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)n.d(t,r,function(o){return e[o]}.bind(null,r));return t},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},n.p="",n(n.s=273)}({273:function(e,o){!function(){"use strict";let e,o;function n(e){return new Promise((o,n)=>{const t=document.createElement("script");t.onload=()=>o(),t.onerror=e=>n(e),t.src=e,document.body.appendChild(t)})}function t(){if(e)return e;const o=window.wpcom_coblocks_js;return e=n(o.coblocks_lightbox_js),e}function r(){if(o)return o;window.wpcomJQueryUsageLoggerDisabled=!0;const e=window.wpcom_coblocks_js,t=window.jQuery?Promise.resolve():n(e.jquery_core_js).then(()=>n(e.jquery_migrate_js)),r=t.then(()=>window.imagesLoaded?Promise.resolve():n(e.imagesloaded_js)),c=t.then(()=>window.Masonry?Promise.resolve():n(e.masonry_js)),u=Promise.all([t,r,c]).then(()=>n(e.coblocks_masonry_js));return o=u,o}function c(){document.querySelector(".wp-block-coblocks-gallery-masonry")&&r(),document.querySelector(".has-lightbox")&&t(),document.body.classList.contains("block-editor-page")&&(r(),t())}"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c)}()}});;
3/**
4 * File skip-link-focus-fix.js.
5 *
6 * Helps with accessibility for keyboard only users.
7 *
8 * Learn more: https://git.io/vWdr2
9 */
10(function() {
11	var isIe = /(trident|msie)/i.test( navigator.userAgent );
12
13	if ( isIe && document.getElementById && window.addEventListener ) {
14		window.addEventListener( 'hashchange', function() {
15			var id = location.hash.substring( 1 ),
16				element;
17
18			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
19				return;
20			}
21
22			element = document.getElementById( id );
23
24			if ( element ) {
25				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
26					element.tabIndex = -1;
27				}
28
29				element.focus();
30			}
31		}, false );
32	}
33})();
34;
35/**
36 * File navigation.js.
37 *
38 * Handles toggling the navigation menu for small screens and enables TAB key
39 * navigation support for dropdown menus.
40 */
41( function( $ ) {
42
43	var body, menuToggle, siteMenu, siteNavigation;
44
45	function initMainNavigation( container ) {
46
47		// Add dropdown toggle that displays child menu items.
48		var dropdownToggle = $( '<button />', {
49			'class': 'dropdown-toggle',
50			'aria-expanded': false
51		} ).append( $( '<span />', {
52			'class': 'screen-reader-text',
53			text: screenReaderText.expand
54		} ) );
55
56		container.find( '.menu-item-has-children > a' ).after( dropdownToggle );
57
58		// Toggle buttons and submenu items with active children menu items.
59		container.find( '.current-menu-ancestor > button' ).addClass( 'toggled-on' );
60		container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' );
61
62		// Add menu items with submenus to aria-haspopup="true".
63		container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' );
64
65		container.find( '.dropdown-toggle' ).click( function( e ) {
66			var _this            = $( this ),
67				screenReaderSpan = _this.find( '.screen-reader-text' );
68
69			e.preventDefault();
70			_this.toggleClass( 'toggled-on' );
71			_this.next( '.children, .sub-menu' ).toggleClass( 'toggled-on' );
72
73			// jscs:disable
74			_this.attr( 'aria-expanded', _this.attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
75			// jscs:enable
76			screenReaderSpan.text( screenReaderSpan.text() === screenReaderText.expand ? screenReaderText.collapse : screenReaderText.expand );
77		} );
78	}
79	initMainNavigation( $( '#site-navigation' ) );
80
81	siteMenu         = $( '#menu-primary' );
82	siteNavigation   = $( '#site-navigation' );
83	menuToggle       = siteNavigation.find( '.menu-toggle' );
84
85	// Enable menuToggle.
86	( function() {
87
88		// Return early if menuToggle is missing.
89		if ( ! menuToggle.length ) {
90			return;
91		}
92
93		// Add an initial values for the attribute.
94		menuToggle.add( siteNavigation ).attr( 'aria-expanded', 'false' );
95
96		menuToggle.on( 'click.apostrophe', function() {
97			$( this ).add( siteMenu ).add( siteNavigation ).toggleClass( 'toggled-on' );
98
99			// jscs:disable
100			$( this ).add( siteMenu ).add( siteNavigation ).attr( 'aria-expanded', $( this ).add( siteNavigation ).attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
101			// jscs:enable
102		} );
103	} )();
104
105	// Fix sub-menus for touch devices and better focus for hidden submenu items for accessibility.
106	( function() {
107		if ( ! siteNavigation.length || ! siteNavigation.children().length ) {
108			return;
109		}
110
111		// Toggle `focus` class to allow submenu access on tablets.
112		function toggleFocusClassTouchScreen() {
113			if ( window.innerWidth >= 840 ) {
114				$( document.body ).on( 'touchstart.apostrophe', function( e ) {
115					if ( ! $( e.target ).closest( '.main-navigation li' ).length ) {
116						$( '.main-navigation li' ).removeClass( 'focus' );
117					}
118				} );
119				siteNavigation.find( '.menu-item-has-children > a' ).on( 'touchstart.apostrophe', function( e ) {
120					var el = $( this ).parent( 'li' );
121
122					if ( ! el.hasClass( 'focus' ) ) {
123						e.preventDefault();
124						el.toggleClass( 'focus' );
125						el.siblings( '.focus' ).removeClass( 'focus' );
126					}
127				} );
128			} else {
129				siteNavigation.find( '.menu-item-has-children > a' ).unbind( 'touchstart.apostrophe' );
130			}
131		}
132
133		if ( 'ontouchstart' in window ) {
134			$( window ).on( 'resize.apostrophe', toggleFocusClassTouchScreen );
135			toggleFocusClassTouchScreen();
136		}
137
138		siteNavigation.find( 'a' ).on( 'focus.apostrophe blur.apostrophe', function() {
139			$( this ).parents( '.menu-item' ).toggleClass( 'focus' );
140		} );
141	} )();
142
143	// Add the default ARIA attributes for the menu toggle and the navigations.
144	function onResizeARIA() {
145		if ( window.innerWidth < 840 ) {
146			if ( menuToggle.hasClass( 'toggled-on' ) ) {
147				menuToggle.attr( 'aria-expanded', 'true' );
148				siteMenu.attr( 'aria-expanded', 'true' );
149				siteNavigation.attr( 'aria-expanded', 'true' );
150			} else {
151				menuToggle.attr( 'aria-expanded', 'false' );
152				siteMenu.attr( 'aria-expanded', 'false' );
153				siteNavigation.attr( 'aria-expanded', 'false' );
154			}
155		} else {
156			menuToggle.removeAttr( 'aria-expanded' );
157			siteMenu.removeAttr( 'aria-expanded' );
158			siteNavigation.removeAttr( 'aria-expanded' );
159		}
160	}
161
162	$( document ).ready( function() {
163		body = $( document.body );
164
165		$( window )
166			.on( 'load.apostrophe', onResizeARIA )
167			.on( 'resize.apostrophe', onResizeARIA );
168	} );
169
170} )( jQuery );
171;
172/**
173 * apostrophe.js
174 *
175 * Handles the basic JS functionality for our theme.
176 */
177( function($) {
178	/*
179	 * Count the number of images in each row in order to create the proper clearings.
180	 * For the most part, this isn't necessary, but there are certain instances where
181	 * the grid breaks at the wrong spot, making the whole layout look funky.
182	 * To fix that, we're counting where we are in the grid layout based on the space
183	 * each article uses, and adding a clearing class each time we drop to a new row.
184	 */
185	function countGrid() {
186		var $body = $( 'body' );
187		var $container = $( '#main #posts-wrapper' );
188		var $button = $( '.menu-toggle' );
189
190		// Only initiate script if the mobile menu toggle isn't showing and we're on a page that uses the grid.
191		// Return otherwise.
192		if ( ( 0 !== $button.offsetWidth && 0 !== $button.offsetHeight ) &&
193				 ! ( $body.hasClass( 'archive' ) || $body.hasClass( 'blog' ) || $body.hasClass( 'search' ) ) ) {
194			return;
195		}
196
197		var $articles = $container.find( '.hentry' );
198		// This variable is used to count how far across the grid we are.
199		var gridcount = 0;
200		var gridcount_increment;
201
202		$articles.each( function() {
203			// If the article is featured, it takes up two blocks. If not, it takes up one.
204			if ( $( this ).hasClass( 'apostrophe-featured' ) ) {
205				gridcount_increment = 2;
206			} else {
207				gridcount_increment = 1;
208			}
209			// If we're at a newline in the grid, add a class to clear the previous line, and reset the grid count.
210			if ( 3 < gridcount + gridcount_increment ) {
211				gridcount = 0;
212				$( this ).addClass( 'clear' );
213			}
214			gridcount = gridcount + gridcount_increment;
215		} );
216	} // countGrid
217
218	// 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.
219	function blockWidth() {
220		var $body = $( 'body' );
221		if ( $body.hasClass( 'archive' ) || $body.hasClass( 'blog' ) || $body.hasClass( 'search' ) ) {
222
223			if ( $( window ).innerWidth() > 767 ) {
224				$( '.hentry' ).each( function() {
225					$( this ).find( '.entry-title' ).width( $( this ).width() );
226				} );
227			} else {
228				$( '.hentry' ).each( function() {
229					$( this ).find( '.entry-title' ).attr( 'style', '' );
230				} );
231			}
232		}
233	}
234
235	// Count grid blocks on page load
236	$( document ).on( 'ready', function() {
237		countGrid();
238		blockWidth();
239	});
240
241	// ...and on each subsequent Infinite Scroll load, as well.
242	$( document ).on( 'post-load', function() {
243		countGrid();
244		blockWidth();
245	});
246
247	$( window ).resize( function() {
248		blockWidth();
249	});
250
251} )(jQuery);
252;
253/* global FB, jpfbembed */
254( function ( window ) {
255	var facebookEmbed = function () {
256		var fbroot, src, newScript, firstScript;
257
258		if ( 'undefined' !== typeof FB && FB.XFBML ) {
259			FB.XFBML.parse();
260		} else {
261			fbroot = document.createElement( 'div' );
262			fbroot.id = 'fb-root';
263			document.getElementsByTagName( 'body' )[ 0 ].appendChild( fbroot );
264
265			src = '//connect.facebook.net/' + jpfbembed.locale + '/sdk.js#xfbml=1';
266			if ( jpfbembed.appid ) {
267				src += '&appId=' + jpfbembed.appid;
268			}
269			src += '&version=v2.3';
270
271			newScript = document.createElement( 'script' );
272			newScript.setAttribute( 'src', src );
273			firstScript = document.querySelector( 'script' );
274			firstScript.parentNode.insertBefore( newScript, firstScript );
275		}
276	};
277
278	window.fbAsyncInit = function () {
279		FB.init( {
280			appId: jpfbembed.appid,
281			version: 'v2.3',
282		} );
283
284		FB.XFBML.parse();
285	};
286
287	if ( 'undefined' !== typeof infiniteScroll ) {
288		document.body.addEventListener( 'post-load', facebookEmbed );
289	}
290
291	facebookEmbed();
292} )( window );
293;

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.