PageSourceSearch

https://walkwithhistory.net/_static/??-eJxtzNEKwjAMheEXMnbiRL0QnyV…0DqCmbGBaT82uUKgoX7L7iGy+54bk6Hpt23TzIHTW8=

js walkwithhistory.net collected 2026-10-02 15:19:52 UTC 3,536 bytes, 53 lines download raw bytes

1var cps=[];function CP(t){"string"==typeof t&&(t=document.querySelector(t)),this._iframe=t,cps.push(this),this.eventListeners={}}function searchInCPs(t){for(var e in cps)if(cps[e]._iframe.contentWindow==t)return e;return-1}CP.prototype._post=function(t){this._iframe.contentWindow.postMessage(t,"*")},CP.prototype.play=function(){this._post({action:"CP.API.PLAY"})},CP.prototype.pause=function(){this._post({action:"CP.API.PAUSE"})},CP.prototype.toggle=function(){this._post({action:"CP.API.TOGGLE"})},CP.prototype.seekTo=function(t){this._post({action:"CP.API.SEEK_TO",value:t})},CP.prototype.getVolume=function(t){this._getter("GET_VOLUME",t)},CP.prototype.getDuration=function(t){this._getter("GET_DURATION",t)},CP.prototype.getPosition=function(t){this._getter("GET_POSITION",t)},CP.prototype.getPaused=function(t){this._getter("GET_PAUSED",t)},CP.prototype.getSource=function(t){this._getter("GET_SOURCE",t)},CP.prototype._getter=function(t,e){var n=this,i=function(s){e&&e(s.data),n.unbind("CP.API.CALLBACK."+t,i)};this.bind("CP.API.CALLBACK."+t,i),this._post({action:"CP.API."+t})},CP.prototype.bind=function(t,e){this.eventListeners[t]instanceof Array||(this.eventListeners[t]=[]),this.eventListeners[t].push(e),this._iframe.addEventListener(t,e,!1)},CP.prototype.unbind=function(t,e){if(e){var n=this.eventListeners[t].indexOf(e);this._iframe.removeEventListener(t,e,!1),-1!==n&&this.eventListeners[t].pop(n)}else if(this.eventListeners[t]instanceof Array){for(var i in this.eventListeners[t])this._iframe.removeEventListener(t,this.eventListeners[t][i],!1);this.eventListeners[t]=[]}},window.addEventListener("message",function(t){if(t.data.event&&-1!=t.data.event.search("CP.")){var e=searchInCPs(t.source);if(-1!=e){var n=new Event(t.data.event);n.data=t.data.data,cps[e]._iframe.dispatchEvent(n)}}});;
2(()=>{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}))})();;
3/**
4 * File primary-navigation.js.
5 *
6 * This files only gets added to themes that support the mobile nav on side
7 */
8( function() {
9
10	/**
11	 * Menu Toggle Behaviors
12	 *
13	 * @param {Element} element
14	 */
15	var navMenu = function ( buttonId, inputId ) {
16		var wrapper = document.body;
17
18		var toggleButton = document.getElementById( buttonId );
19		var toggleInput  = document.getElementById( inputId );
20
21		if ( toggleButton ) {
22			toggleButton.onclick = function() {
23				if ( true == toggleInput.checked ) {
24					wrapper.classList.remove( 'lock-scrolling' );
25				} else {
26					wrapper.classList.add( 'lock-scrolling' );
27				}
28
29				toggleButton.focus();
30			}
31		}
32
33		document.addEventListener( 'click', function( event ) {
34			// If target onclick is <a> with # within the href attribute
35			if ( event.target.hash && event.target.hash.includes( '#' ) ) {
36				wrapper.classList.remove( 'lock-scrolling' );
37				if (toggleInput) {
38					toggleInput.checked = false;
39				}
40				// Wait 550 and scroll to the anchor.
41				setTimeout(function () {
42					var anchor = document.getElementById(event.target.hash.slice(1));
43					anchor.scrollIntoView();
44				}, 550);
45			}
46		} );
47	}
48
49	window.addEventListener( 'load', function() {
50		navMenu(  'toggle-menu', 'toggle' );
51		navMenu(  'toggle-cart', 'woocommerce-toggle' );
52	} );
53} )();;

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.