PageSourceSearch

https://curatingthecontemporary.org/_static/??-eJyNj8FOAzEMRH+IrEF…P57ta6kis0pMSbKaIh3fnt6ed2Pu3E/Ps/fuVCdNw==

js curatingthecontemporary.org collected 2026-10-02 08:07:31 UTC 20,257 bytes, 490 lines download raw bytes

1( function( $ ) {
2	$( window ).on( 'load post-load', function() {
3		var currentTallest = 0;
4	    var currentRowStart = 0;
5	    var rowDivs = new Array();
6
7	    //.main-navigation li,
8	    $( '.main-navigation li, #feed-wrap article' ).not('.main-navigation .sub-menu li, .main-navigation .children li').each( function( index ) {
9	    	$( this ).css( 'height', 'auto' )
10
11	        if( currentRowStart != $( this ).position().top ) {
12	            // we just came to a new row.  Set all the heights on the completed row
13	            for( currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++ ) rowDivs[currentDiv].height( currentTallest );
14
15	            // set the variables for the new row
16	            rowDivs.length = 0; // empty the array
17	            currentRowStart = $( this ).position().top;
18	            currentTallest = $( this ).height();
19	            rowDivs.push( $( this ) );
20	        } else {
21	            // another div on the current row.  Add it to the list and check if it's taller
22	            rowDivs.push( $( this ) );
23	            currentTallest = ( currentTallest < $( this ).height() ) ? ( $( this ).height() ) : ( currentTallest );
24	        }
25	        // do the last row
26	        for( currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++ ) rowDivs[currentDiv].height( currentTallest );
27	    } );
28	} );
29} )( jQuery );;
30/*! This file is auto-generated */
31window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,i="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){o(),e&&new e(d).observe(E.body,{childList:!0,subtree:!0})}function o(e){if(i&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,d=n.length;o<d;o++)n[o].addEventListener("click",r)}}function l(e){var t,n,o=g(b.temporaryFormId);o&&h&&(g(b.parentIdFieldId).value="0",t=o.textContent,o.parentNode.replaceChild(h,o),this.style.display="none",n=(o=(o=g(b.commentReplyTitleId))&&o.firstChild)&&o.nextSibling,o&&o.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),o.textContent=t),e.preventDefault())}function r(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,o=a(n,"belowelement"),d=a(n,"commentid"),i=a(n,"respondelement"),l=a(n,"postid"),n=a(n,"replyto")||t;o&&d&&i&&l&&!1===v.addComment.moveForm(o,d,i,l,n)&&e.preventDefault()}function d(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void o()}function a(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return i&&"loading"!==E.readyState?t():i&&v.addEventListener("DOMContentLoaded",t,!1),{init:o,moveForm:function(e,t,n,o,d){var i,l,r,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===d&&(d=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),o&&y&&(y.value=o),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=d),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],l=!1,"getComputedStyle"in v?r=v.getComputedStyle(i):E.documentElement.currentStyle&&(r=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===r.visibility)&&(l=!0),"hidden"
31!==i.type&&!i.disabled&&!l){i.focus();break}}catch(e){}return!1}}}}(window);;
32/* global FB, jpfbembed */
33( function ( window ) {
34	var facebookEmbed = function () {
35		var fbroot, src, newScript, firstScript;
36
37		if ( 'undefined' !== typeof FB && FB.XFBML ) {
38			FB.XFBML.parse();
39		} else {
40			fbroot = document.createElement( 'div' );
41			fbroot.id = 'fb-root';
42			document.getElementsByTagName( 'body' )[ 0 ].appendChild( fbroot );
43
44			src = '//connect.facebook.net/' + jpfbembed.locale + '/sdk.js#xfbml=1';
45			if ( jpfbembed.appid ) {
46				src += '&appId=' + jpfbembed.appid;
47			}
48			src += '&version=v2.3';
49
50			newScript = document.createElement( 'script' );
51			newScript.setAttribute( 'src', src );
52			firstScript = document.querySelector( 'script' );
53			firstScript.parentNode.insertBefore( newScript, firstScript );
54		}
55	};
56
57	window.fbAsyncInit = function () {
58		FB.init( {
59			appId: jpfbembed.appid,
60			version: 'v2.3',
61		} );
62
63		FB.XFBML.parse();
64	};
65
66	if ( 'undefined' !== typeof infiniteScroll ) {
67		document.body.addEventListener( 'post-load', facebookEmbed );
68	}
69
70	facebookEmbed();
71} )( window );
72;
73!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JetpackScriptDataModule=t():e.JetpackScriptDataModule=t()}(globalThis,()=>(()=>{"use strict";var e={729(e,t,r){r.d(t,{$8:()=>n.$8,IT:()=>n.IT,KS:()=>n.KS,L2:()=>n.L2,Sy:()=>n.Sy,au:()=>n.au,d_:()=>n.d_,e5:()=>n.e5,hT:()=>n.hT,lI:()=>n.lI,mH:()=>n.mH,oQ:()=>n.oQ,sV:()=>n.sV});var n=r(336)},336(e,t,r){function n(){return window.JetpackScriptData}function o(){return n()?.site}function i(e=""){return`${n()?.site.admin_url}${e}`}function u(e=""){return i(`admin.php?page=jetpack${e}`)}function a(e=""){return i(`admin.php?page=my-jetpack${e}`)}function c(){return n()?.site.plan?.features?.active??[]}function s(e){return-1!==c().indexOf(e)}function p(){return"wpcom"===n()?.site?.host}function f(){return"woa"===n()?.site?.host}function d(){return n()?.site?.is_wpcom_platform}function l(){return"unknown"===n()?.site?.host}function m(){return p()?"simple":f()?"woa":"jetpack"}function S(e){return n()?.user.current_user.capabilities[e]}r.d(t,{$8:()=>d,IT:()=>s,KS:()=>m,L2:()=>l,Sy:()=>p,au:()=>n,d_:()=>S,e5:()=>a,hT:()=>i,lI:()=>f,mH:()=>c,oQ:()=>u,sV:()=>o})}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.hasOwn(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let n={};r.r(n),r.d(n,{currentUserCan:()=>o.d_,getActiveFeatures:()=>o.mH,getAdminUrl:()=>o.hT,getJetpackAdminPageUrl:()=>o.oQ,getMyJetpackUrl:()=>o.e5,getScriptData:()=>o.au,getSiteData:()=>o.sV,getSiteType:()=>o.KS,isJetpackSelfHostedSite:()=>o.L2,isSimpleSite:()=>o.Sy,isWoASite:()=>o.lI,isWpcomPlatformSite:()=>o.$8,siteHasFeature:()=>o.IT});var o=r(729);return n})());;
74/**
75 * Observe how the user enters content into the comment form in order to determine whether it's a bot or not.
76 *
77 * Note that no actual input is being saved here, only counts and timings between events.
78 */
79
80( function() {
81	// Passive event listeners are guaranteed to never call e.preventDefault(),
82	// but they're not supported in all browsers.  Use this feature detection
83	// to determine whether they're available for use.
84	var supportsPassive = false;
85
86	try {
87		var opts = Object.defineProperty( {}, 'passive', {
88			get : function() {
89				supportsPassive = true;
90			}
91		} );
92
93		window.addEventListener( 'testPassive', null, opts );
94		window.removeEventListener( 'testPassive', null, opts );
95	} catch ( e ) {}
96
97	function init() {
98		var input_begin = '';
99
100		var keydowns = {};
101		var lastKeyup = null;
102		var lastKeydown = null;
103		var keypresses = [];
104
105		var modifierKeys = [];
106		var correctionKeys = [];
107
108		var lastMouseup = null;
109		var lastMousedown = null;
110		var mouseclicks = [];
111		var mouseclickCoordinates = [];
112
113		var mousemoveTimer = null;
114		var lastMousemoveX = null;
115		var lastMousemoveY = null;
116		var lastMousemoveTime = null;
117		var mousemoveStart = null;
118		var mousemoves = [];
119		var intervalsBetweenMousemovesAndClicks = [];
120
121		var touchmoveCountTimer = null;
122		var touchmoveCount = 0;
123
124		var lastTouchEnd = null;
125		var lastTouchStart = null;
126		var touchEvents = [];
127
128		var scrollCountTimer = null;
129		var scrollCount = 0;
130
131		var correctionKeyCodes = [ 'Backspace', 'Delete', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown' ];
132		var modifierKeyCodes = [ 'Shift', 'CapsLock' ];
133
134		var forms = document.querySelectorAll( 'form[method=post]' );
135
136		for ( var i = 0; i < forms.length; i++ ) {
137			var form = forms[i];
138
139			var formAction = form.getAttribute( 'action' );
140
141			// Ignore forms that POST directly to other domains; these could be things like payment forms.
142			if ( formAction ) {
143				// Check that the form is posting to an external URL, not a path.
144				if ( formAction.indexOf( 'http://' ) == 0 || formAction.indexOf( 'https://' ) == 0 ) {
145					if ( formAction.indexOf( 'http://' + window.location.hostname + '/' ) != 0 && formAction.indexOf( 'https://' + window.location.hostname + '/' ) != 0 ) {
146						continue;
147					}
148				}
149			}
150
151			form.addEventListener( 'submit', function () {
152				var ak_bkp = prepare_array_for_request( keypresses );
153				var ak_bmc = prepare_array_for_request( mouseclicks );
154				var ak_bte = prepare_array_for_request( touchEvents );
155				var ak_bmm = prepare_array_for_request( mousemoves );
156				var ak_bcc = prepare_array_for_request( mouseclickCoordinates );
157				var ak_bibmac = intervalsBetweenMousemovesAndClicks.slice( 0, 100 ).join( ';' );
158
159				var input_fields = {
160					// When did the user begin entering any input?
161					'bib': input_begin,
162
163					// When was the form submitted?
164					'bfs': Date.now(),
165
166					// How many keypresses did they make?
167					'bkpc': keypresses.length,
168
169					// How quickly did they press a sample of keys, and how long between them?
170					'bkp': ak_bkp,
171
172					// How quickly did they click the mouse, and how long between clicks?
173					'bmc': ak_bmc,
174
175					// How many mouseclicks did they make?
176					'bmcc': mouseclicks.length,
177
178					// When did they press modifier keys (like Shift or Capslock)?
179					'bmk': modifierKeys.join( ';' ),
180
181					// When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back
182					'bck': correctionKeys.join( ';' ),
183
184					// How many times did they move the mouse?
185					'bmmc': mousemoves.length,
186
187					// How many times did they move around using a touchscreen?
188					'btmc': touchmoveCount,
189
190					// How many times did they scroll?
191					'bsc': scrollCount,
192
193					// How quickly did they perform touch events, and how long between them?
194					'bte': ak_bte,
195
196					// How many touch events were there?
197					'btec' : touchEvents.length,
198
199					// How quickly did they move the mouse, and how long between moves?
200					'bmm' : ak_bmm,
201
202					// Click coordinates
203					'bcc' : ak_bcc,
204
205					// Milliseconds between last mouse movement and each click
206					'bibmac' : ak_bibmac
207				};
208
209				var akismet_field_prefix = 'ak_';
210
211				if ( this.getElementsByClassName ) {
212					// Check to see if we've used an alternate field name prefix. We store this as an attribute of the container around some of the Akismet fields.
213					var possible_akismet_containers = this.getElementsByClassName( 'akismet-fields-container' );
214
215					for ( var containerIndex = 0; containerIndex < possible_akismet_containers.length; containerIndex++ ) {
216						var container = possible_akismet_containers.item( containerIndex );
217
218						if ( container.getAttribute( 'data-prefix' ) ) {
219							akismet_field_prefix = container.getAttribute( 'data-prefix' );
220							break;
221						}
222					}
223				}
224
225				for ( var field_name in input_fields ) {
226					var field = document.createElement( 'input' );
227					field.setAttribute( 'type', 'hidden' );
228					field.setAttribute( 'name', akismet_field_prefix + field_name );
229					field.setAttribute( 'value', input_fields[ field_name ] );
230					this.appendChild( field );
231				}
232			}, supportsPassive ? { passive: true } : false  );
233
234			form.addEventListener( 'keydown', function ( e ) {
235				// If you hold a key down, some browsers send multiple keydown events in a row.
236				// Ignore any keydown events for a key that hasn't come back up yet.
237				if ( e.key in keydowns ) {
238					return;
239				}
240
241				var keydownTime = ( new Date() ).getTime();
242				keydowns[ e.key ] = [ keydownTime ];
243
244				if ( ! input_begin ) {
245					input_begin = keydownTime;
246				}
247
248				// In some situations, we don't want to record an interval since the last keypress -- for example,
249				// on the first keypress, or on a keypress after focus has changed to another element. Normally,
250				// we want to record the time between the last keyup and this keydown. But if they press a
251				// key while already pressing a key, we want to record the time between the two keydowns.
252
253				var lastKeyEvent = Math.max( lastKeydown, lastKeyup );
254
255				if ( lastKeyEvent ) {
256					keydowns[ e.key ].push( keydownTime - lastKeyEvent );
257				}
258
259				lastKeydown = keydownTime;
260			}, supportsPassive ? { passive: true } : false  );
261
262			form.addEventListener( 'keyup', function ( e ) {
263				if ( ! ( e.key in keydowns ) ) {
264					// This key was pressed before this script was loaded, or a mouseclick happened during the keypress, or...
265					return;
266				}
267
268				var keyupTime = ( new Date() ).getTime();
269
270				if ( 'TEXTAREA' === e.target.nodeName || 'INPUT' === e.target.nodeName ) {
271					if ( -1 !== modifierKeyCodes.indexOf( e.key ) ) {
272						modifierKeys.push( keypresses.length - 1 );
273					} else if ( -1 !== correctionKeyCodes.indexOf( e.key ) ) {
274						correctionKeys.push( keypresses.length - 1 );
275					} else {
276						// ^ Don't record timings for keys like Shift or backspace, since they
277						// typically get held down for longer than regular typing.
278
279						var keydownTime = keydowns[ e.key ][0];
280
281						var keypress = [];
282
283						// Keypress duration.
284						keypress.push( keyupTime - keydownTime );
285
286						// Amount of time between this keypress and the previous keypress.
287						if ( keydowns[ e.key ].length > 1 ) {
288							keypress.push( keydowns[ e.key ][1] );
289						}
290
291						keypresses.push( keypress );
292					}
293				}
294
295				delete keydowns[ e.key ];
296
297				lastKeyup = keyupTime;
298			}, supportsPassive ? { passive: true } : false  );
299
300			form.addEventListener( "focusin", function ( e ) {
301				lastKeydown = null;
302				lastKeyup = null;
303				keydowns = {};
304			}, supportsPassive ? { passive: true } : false  );
305
306			form.addEventListener( "focusout", function ( e ) {
307				lastKeydown = null;
308				lastKeyup = null;
309				keydowns = {};
310			}, supportsPassive ? { passive: true } : false  );
311		}
312
313		document.addEventListener( 'mousedown', function ( e ) {
314			lastMousedown = ( new Date() ).getTime();
315
316			if ( lastMousemoveTime ) {
317				intervalsBetweenMousemovesAndClicks.push( lastMousedown - lastMousemoveTime );
318			}
319
320			var mouseclickCoordinate = [];
321
322			var rect = e.target.getBoundingClientRect();
323			var relativeX = e.clientX - rect.left;
324			var relativeY = e.clientY - rect.top;
325
326			// Pixel offset of the click within the target element.
327			mouseclickCoordinate.push( Math.round( relativeX ) );
328			mouseclickCoordinate.push( Math.round( relativeY ) );
329
330			// Percentage offset of the click within the target element.
331			mouseclickCoordinate.push( rect.width > 0 ? Math.round( relativeX / rect.width * 100 ) : 0 );
332			mouseclickCoordinate.push( rect.height > 0 ? Math.round( relativeY / rect.height * 100 ) : 0 );
333
334			mouseclickCoordinates.push( mouseclickCoordinate );
335		}, supportsPassive ? { passive: true } : false  );
336
337		document.addEventListener( 'mouseup', function ( e ) {
338			if ( ! lastMousedown ) {
339				// If the mousedown happened before this script was loaded, but the mouseup happened after...
340				return;
341			}
342
343			var now = ( new Date() ).getTime();
344
345			var mouseclick = [];
346			mouseclick.push( now - lastMousedown );
347
348			if ( lastMouseup ) {
349				mouseclick.push( lastMousedown - lastMouseup );
350			}
351
352			mouseclicks.push( mouseclick );
353
354			lastMouseup = now;
355
356			// If the mouse has been clicked, don't record this time as an interval between keypresses.
357			lastKeydown = null;
358			lastKeyup = null;
359			keydowns = {};
360		}, supportsPassive ? { passive: true } : false  );
361
362		document.addEventListener( 'mousemove', function ( e ) {
363			lastMousemoveTime = ( new Date() ).getTime();
364
365			if ( mousemoveTimer ) {
366				clearTimeout( mousemoveTimer );
367				mousemoveTimer = null;
368			}
369			else {
370				mousemoveStart = lastMousemoveTime;
371				lastMousemoveX = e.offsetX;
372				lastMousemoveY = e.offsetY;
373			}
374
375			mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) {
376				var now = ( new Date() ).getTime() - 500; // To account for the timer delay.
377
378				var mousemove = [];
379				mousemove.push( now - originalMousemoveStart );
380				mousemove.push(
381					Math.round(
382						Math.sqrt(
383							Math.pow( theEvent.offsetX - lastMousemoveX, 2 ) +
384							Math.pow( theEvent.offsetY - lastMousemoveY, 2 )
385						)
386					)
387				);
388
389				if ( mousemove[1] > 0 ) {
390					// If there was no measurable distance, then it wasn't really a move.
391					mousemoves.push( mousemove );
392				}
393
394				mousemoveStart = null;
395				mousemoveTimer = null;
396			}, 500, e, mousemoveStart );
397		}, supportsPassive ? { passive: true } : false  );
398
399		document.addEventListener( 'touchmove', function ( e ) {
400			if ( touchmoveCountTimer ) {
401				clearTimeout( touchmoveCountTimer );
402			}
403
404			touchmoveCountTimer = setTimeout( function () {
405				touchmoveCount++;
406			}, 500 );
407		}, supportsPassive ? { passive: true } : false );
408
409		document.addEventListener( 'touchstart', function ( e ) {
410			lastTouchStart = ( new Date() ).getTime();
411		}, supportsPassive ? { passive: true } : false );
412
413		document.addEventListener( 'touchend', function ( e ) {
414			if ( ! lastTouchStart ) {
415				// If the touchstart happened before this script was loaded, but the touchend happened after...
416				return;
417			}
418
419			var now = ( new Date() ).getTime();
420
421			var touchEvent = [];
422			touchEvent.push( now - lastTouchStart );
423
424			if ( lastTouchEnd ) {
425				touchEvent.push( lastTouchStart - lastTouchEnd );
426			}
427
428			touchEvents.push( touchEvent );
429
430			lastTouchEnd = now;
431
432			// Don't record this time as an interval between keypresses.
433			lastKeydown = null;
434			lastKeyup = null;
435			keydowns = {};
436		}, supportsPassive ? { passive: true } : false );
437
438		document.addEventListener( 'scroll', function ( e ) {
439			if ( scrollCountTimer ) {
440				clearTimeout( scrollCountTimer );
441			}
442
443			scrollCountTimer = setTimeout( function () {
444				scrollCount++;
445			}, 500 );
446		}, supportsPassive ? { passive: true } : false );
447	}
448
449	/**
450	 * For the timing/coordinate data that is collected, don't send more than `limit` data points in the request.
451	 * Choose a random slice and send those, with each batch separated by semicolons and the items in each batch
452	 * separated by commas.
453	 */
454	function prepare_array_for_request( a, limit ) {
455		if ( ! limit ) {
456			limit = 100;
457		}
458
459		var rv = '';
460
461		if ( a.length > 0 ) {
462			var random_starting_point = Math.max( 0, Math.floor( Math.random() * a.length - limit ) );
463
464			for ( var i = 0; i < limit && i < a.length; i++ ) {
465				var entry = a[ random_starting_point + i ];
466				rv += entry.join( ',' ) + ';';
467			}
468		}
469
470		return rv;
471	}
472
473	if ( document.readyState !== 'loading' ) {
474		init();
475	} else {
476		document.addEventListener( 'DOMContentLoaded', init );
477	}
478})();;
479void ( function ( d, s, id ) {
480	var js,
481		fjs = d.getElementsByTagName( s )[ 0 ],
482		p = /^http:/.test( d.location ) ? 'http' : 'https';
483	if ( ! d.getElementById( id ) ) {
484		js = d.createElement( s );
485		js.id = id;
486		js.src = p + '://platform.twitter.com/widgets.js';
487		fjs.parentNode.insertBefore( js, fjs );
488	}
489} )( document, 'script', 'twitter-wjs' );
490;

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.