PageSourceSearch

https://usken.no/_static/??-eJx9jtEOgjAMRX/IUdRE5MH4KWZsVYa0W1gn0a…WRCMfuqhovOX4Pr9IG9umc6bZu2Pta79tAMb2pgZ0c=

js usken.no collected 2026-10-07 12:04:11 UTC 18,403 bytes, 444 lines download raw bytes

1var $ = jQuery;
2function suckerfishmenu(){
3	$('.sf-menu li').hover(function(){
4		$(this).find('ul:first').css({visibility:'visible',display:'none'}).slideDown(300);
5	},
6	function(){
7		$(this).find('ul:first').css({visibility:'hidden'});
8	});
9}
10$(document).ready(function(){
11	suckerfishmenu();
12});
13var $ = jQuery;
14
15
16function sfHoverEvents(sfEls) {
17  var len = sfEls.length;
18  for (var i=0; i<len; i++) {
19    sfEls[i].onmouseover=function() {
20      this.className+=" sfhover";
21    }
22    sfEls[i].onmouseout=function() {
23      this.className=this.className.replace(" sfhover", "");
24    }
25  }
26}
27function sfHover() {
28var ULs = document.getElementsByTagName("UL");
29var len = ULs.length;
30  for(var i=0;i<len;i++) {
31    if(ULs[i].className.indexOf("sf-menu") != -1)
32      sfHoverEvents(ULs[i].getElementsByTagName("LI"));
33  }
34}
35if (window.attachEvent) window.attachEvent("onload", sfHover);
36;
37/*! This file is auto-generated */
38window.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"!==i.type&&!i.disabled&&!l){i.focus();break}}catch(e){}return!1}}}}(window);;
39!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"}
39),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})());;
40/**
41 * Observe how the user enters content into the comment form in order to determine whether it's a bot or not.
42 *
43 * Note that no actual input is being saved here, only counts and timings between events.
44 */
45
46( function() {
47	// Passive event listeners are guaranteed to never call e.preventDefault(),
48	// but they're not supported in all browsers.  Use this feature detection
49	// to determine whether they're available for use.
50	var supportsPassive = false;
51
52	try {
53		var opts = Object.defineProperty( {}, 'passive', {
54			get : function() {
55				supportsPassive = true;
56			}
57		} );
58
59		window.addEventListener( 'testPassive', null, opts );
60		window.removeEventListener( 'testPassive', null, opts );
61	} catch ( e ) {}
62
63	function init() {
64		var input_begin = '';
65
66		var keydowns = {};
67		var lastKeyup = null;
68		var lastKeydown = null;
69		var keypresses = [];
70
71		var modifierKeys = [];
72		var correctionKeys = [];
73
74		var lastMouseup = null;
75		var lastMousedown = null;
76		var mouseclicks = [];
77		var mouseclickCoordinates = [];
78
79		var mousemoveTimer = null;
80		var lastMousemoveX = null;
81		var lastMousemoveY = null;
82		var lastMousemoveTime = null;
83		var mousemoveStart = null;
84		var mousemoves = [];
85		var intervalsBetweenMousemovesAndClicks = [];
86
87		var touchmoveCountTimer = null;
88		var touchmoveCount = 0;
89
90		var lastTouchEnd = null;
91		var lastTouchStart = null;
92		var touchEvents = [];
93
94		var scrollCountTimer = null;
95		var scrollCount = 0;
96
97		var correctionKeyCodes = [ 'Backspace', 'Delete', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown' ];
98		var modifierKeyCodes = [ 'Shift', 'CapsLock' ];
99
100		var forms = document.querySelectorAll( 'form[method=post]' );
101
102		for ( var i = 0; i < forms.length; i++ ) {
103			var form = forms[i];
104
105			var formAction = form.getAttribute( 'action' );
106
107			// Ignore forms that POST directly to other domains; these could be things like payment forms.
108			if ( formAction ) {
109				// Check that the form is posting to an external URL, not a path.
110				if ( formAction.indexOf( 'http://' ) == 0 || formAction.indexOf( 'https://' ) == 0 ) {
111					if ( formAction.indexOf( 'http://' + window.location.hostname + '/' ) != 0 && formAction.indexOf( 'https://' + window.location.hostname + '/' ) != 0 ) {
112						continue;
113					}
114				}
115			}
116
117			form.addEventListener( 'submit', function () {
118				var ak_bkp = prepare_array_for_request( keypresses );
119				var ak_bmc = prepare_array_for_request( mouseclicks );
120				var ak_bte = prepare_array_for_request( touchEvents );
121				var ak_bmm = prepare_array_for_request( mousemoves );
122				var ak_bcc = prepare_array_for_request( mouseclickCoordinates );
123				var ak_bibmac = intervalsBetweenMousemovesAndClicks.slice( 0, 100 ).join( ';' );
124
125				var input_fields = {
126					// When did the user begin entering any input?
127					'bib': input_begin,
128
129					// When was the form submitted?
130					'bfs': Date.now(),
131
132					// How many keypresses did they make?
133					'bkpc': keypresses.length,
134
135					// How quickly did they press a sample of keys, and how long between them?
136					'bkp': ak_bkp,
137
138					// How quickly did they click the mouse, and how long between clicks?
139					'bmc': ak_bmc,
140
141					// How many mouseclicks did they make?
142					'bmcc': mouseclicks.length,
143
144					// When did they press modifier keys (like Shift or Capslock)?
145					'bmk': modifierKeys.join( ';' ),
146
147					// When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back
148					'bck': correctionKeys.join( ';' ),
149
150					// How many times did they move the mouse?
151					'bmmc': mousemoves.length,
152
153					// How many times did they move around using a touchscreen?
154					'btmc': touchmoveCount,
155
156					// How many times did they scroll?
157					'bsc': scrollCount,
158
159					// How quickly did they perform touch events, and how long between them?
160					'bte': ak_bte,
161
162					// How many touch events were there?
163					'btec' : touchEvents.length,
164
165					// How quickly did they move the mouse, and how long between moves?
166					'bmm' : ak_bmm,
167
168					// Click coordinates
169					'bcc' : ak_bcc,
170
171					// Milliseconds between last mouse movement and each click
172					'bibmac' : ak_bibmac
173				};
174
175				var akismet_field_prefix = 'ak_';
176
177				if ( this.getElementsByClassName ) {
178					// 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.
179					var possible_akismet_containers = this.getElementsByClassName( 'akismet-fields-container' );
180
181					for ( var containerIndex = 0; containerIndex < possible_akismet_containers.length; containerIndex++ ) {
182						var container = possible_akismet_containers.item( containerIndex );
183
184						if ( container.getAttribute( 'data-prefix' ) ) {
185							akismet_field_prefix = container.getAttribute( 'data-prefix' );
186							break;
187						}
188					}
189				}
190
191				for ( var field_name in input_fields ) {
192					var field = document.createElement( 'input' );
193					field.setAttribute( 'type', 'hidden' );
194					field.setAttribute( 'name', akismet_field_prefix + field_name );
195					field.setAttribute( 'value', input_fields[ field_name ] );
196					this.appendChild( field );
197				}
198			}, supportsPassive ? { passive: true } : false  );
199
200			form.addEventListener( 'keydown', function ( e ) {
201				// If you hold a key down, some browsers send multiple keydown events in a row.
202				// Ignore any keydown events for a key that hasn't come back up yet.
203				if ( e.key in keydowns ) {
204					return;
205				}
206
207				var keydownTime = ( new Date() ).getTime();
208				keydowns[ e.key ] = [ keydownTime ];
209
210				if ( ! input_begin ) {
211					input_begin = keydownTime;
212				}
213
214				// In some situations, we don't want to record an interval since the last keypress -- for example,
215				// on the first keypress, or on a keypress after focus has changed to another element. Normally,
216				// we want to record the time between the last keyup and this keydown. But if they press a
217				// key while already pressing a key, we want to record the time between the two keydowns.
218
219				var lastKeyEvent = Math.max( lastKeydown, lastKeyup );
220
221				if ( lastKeyEvent ) {
222					keydowns[ e.key ].push( keydownTime - lastKeyEvent );
223				}
224
225				lastKeydown = keydownTime;
226			}, supportsPassive ? { passive: true } : false  );
227
228			form.addEventListener( 'keyup', function ( e ) {
229				if ( ! ( e.key in keydowns ) ) {
230					// This key was pressed before this script was loaded, or a mouseclick happened during the keypress, or...
231					return;
232				}
233
234				var keyupTime = ( new Date() ).getTime();
235
236				if ( 'TEXTAREA' === e.target.nodeName || 'INPUT' === e.target.nodeName ) {
237					if ( -1 !== modifierKeyCodes.indexOf( e.key ) ) {
238						modifierKeys.push( keypresses.length - 1 );
239					} else if ( -1 !== correctionKeyCodes.indexOf( e.key ) ) {
240						correctionKeys.push( keypresses.length - 1 );
241					} else {
242						// ^ Don't record timings for keys like Shift or backspace, since they
243						// typically get held down for longer than regular typing.
244
245						var keydownTime = keydowns[ e.key ][0];
246
247						var keypress = [];
248
249						// Keypress duration.
250						keypress.push( keyupTime - keydownTime );
251
252						// Amount of time between this keypress and the previous keypress.
253						if ( keydowns[ e.key ].length > 1 ) {
254							keypress.push( keydowns[ e.key ][1] );
255						}
256
257						keypresses.push( keypress );
258					}
259				}
260
261				delete keydowns[ e.key ];
262
263				lastKeyup = keyupTime;
264			}, supportsPassive ? { passive: true } : false  );
265
266			form.addEventListener( "focusin", function ( e ) {
267				lastKeydown = null;
268				lastKeyup = null;
269				keydowns = {};
270			}, supportsPassive ? { passive: true } : false  );
271
272			form.addEventListener( "focusout", function ( e ) {
273				lastKeydown = null;
274				lastKeyup = null;
275				keydowns = {};
276			}, supportsPassive ? { passive: true } : false  );
277		}
278
279		document.addEventListener( 'mousedown', function ( e ) {
280			lastMousedown = ( new Date() ).getTime();
281
282			if ( lastMousemoveTime ) {
283				intervalsBetweenMousemovesAndClicks.push( lastMousedown - lastMousemoveTime );
284			}
285
286			var mouseclickCoordinate = [];
287
288			var rect = e.target.getBoundingClientRect();
289			var relativeX = e.clientX - rect.left;
290			var relativeY = e.clientY - rect.top;
291
292			// Pixel offset of the click within the target element.
293			mouseclickCoordinate.push( Math.round( relativeX ) );
294			mouseclickCoordinate.push( Math.round( relativeY ) );
295
296			// Percentage offset of the click within the target element.
297			mouseclickCoordinate.push( rect.width > 0 ? Math.round( relativeX / rect.width * 100 ) : 0 );
298			mouseclickCoordinate.push( rect.height > 0 ? Math.round( relativeY / rect.height * 100 ) : 0 );
299
300			mouseclickCoordinates.push( mouseclickCoordinate );
301		}, supportsPassive ? { passive: true } : false  );
302
303		document.addEventListener( 'mouseup', function ( e ) {
304			if ( ! lastMousedown ) {
305				// If the mousedown happened before this script was loaded, but the mouseup happened after...
306				return;
307			}
308
309			var now = ( new Date() ).getTime();
310
311			var mouseclick = [];
312			mouseclick.push( now - lastMousedown );
313
314			if ( lastMouseup ) {
315				mouseclick.push( lastMousedown - lastMouseup );
316			}
317
318			mouseclicks.push( mouseclick );
319
320			lastMouseup = now;
321
322			// If the mouse has been clicked, don't record this time as an interval between keypresses.
323			lastKeydown = null;
324			lastKeyup = null;
325			keydowns = {};
326		}, supportsPassive ? { passive: true } : false  );
327
328		document.addEventListener( 'mousemove', function ( e ) {
329			lastMousemoveTime = ( new Date() ).getTime();
330
331			if ( mousemoveTimer ) {
332				clearTimeout( mousemoveTimer );
333				mousemoveTimer = null;
334			}
335			else {
336				mousemoveStart = lastMousemoveTime;
337				lastMousemoveX = e.offsetX;
338				lastMousemoveY = e.offsetY;
339			}
340
341			mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) {
342				var now = ( new Date() ).getTime() - 500; // To account for the timer delay.
343
344				var mousemove = [];
345				mousemove.push( now - originalMousemoveStart );
346				mousemove.push(
347					Math.round(
348						Math.sqrt(
349							Math.pow( theEvent.offsetX - lastMousemoveX, 2 ) +
350							Math.pow( theEvent.offsetY - lastMousemoveY, 2 )
351						)
352					)
353				);
354
355				if ( mousemove[1] > 0 ) {
356					// If there was no measurable distance, then it wasn't really a move.
357					mousemoves.push( mousemove );
358				}
359
360				mousemoveStart = null;
361				mousemoveTimer = null;
362			}, 500, e, mousemoveStart );
363		}, supportsPassive ? { passive: true } : false  );
364
365		document.addEventListener( 'touchmove', function ( e ) {
366			if ( touchmoveCountTimer ) {
367				clearTimeout( touchmoveCountTimer );
368			}
369
370			touchmoveCountTimer = setTimeout( function () {
371				touchmoveCount++;
372			}, 500 );
373		}, supportsPassive ? { passive: true } : false );
374
375		document.addEventListener( 'touchstart', function ( e ) {
376			lastTouchStart = ( new Date() ).getTime();
377		}, supportsPassive ? { passive: true } : false );
378
379		document.addEventListener( 'touchend', function ( e ) {
380			if ( ! lastTouchStart ) {
381				// If the touchstart happened before this script was loaded, but the touchend happened after...
382				return;
383			}
384
385			var now = ( new Date() ).getTime();
386
387			var touchEvent = [];
388			touchEvent.push( now - lastTouchStart );
389
390			if ( lastTouchEnd ) {
391				touchEvent.push( lastTouchStart - lastTouchEnd );
392			}
393
394			touchEvents.push( touchEvent );
395
396			lastTouchEnd = now;
397
398			// Don't record this time as an interval between keypresses.
399			lastKeydown = null;
400			lastKeyup = null;
401			keydowns = {};
402		}, supportsPassive ? { passive: true } : false );
403
404		document.addEventListener( 'scroll', function ( e ) {
405			if ( scrollCountTimer ) {
406				clearTimeout( scrollCountTimer );
407			}
408
409			scrollCountTimer = setTimeout( function () {
410				scrollCount++;
411			}, 500 );
412		}, supportsPassive ? { passive: true } : false );
413	}
414
415	/**
416	 * For the timing/coordinate data that is collected, don't send more than `limit` data points in the request.
417	 * Choose a random slice and send those, with each batch separated by semicolons and the items in each batch
418	 * separated by commas.
419	 */
420	function prepare_array_for_request( a, limit ) {
421		if ( ! limit ) {
422			limit = 100;
423		}
424
425		var rv = '';
426
427		if ( a.length > 0 ) {
428			var random_starting_point = Math.max( 0, Math.floor( Math.random() * a.length - limit ) );
429
430			for ( var i = 0; i < limit && i < a.length; i++ ) {
431				var entry = a[ random_starting_point + i ];
432				rv += entry.join( ',' ) + ';';
433			}
434		}
435
436		return rv;
437	}
438
439	if ( document.readyState !== 'loading' ) {
440		init();
441	} else {
442		document.addEventListener( 'DOMContentLoaded', init );
443	}
444})();;

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.