1/*--------------------------------------------------------------------------------- 2 Site: 3 COPYRIGHT (c) ASKÃ S INTERNET- & REKLAMBYRÃ AB 1997-2023. ALL RIGHTS RESERVED. 4---------------------------------------------------------------------------------*/ 5jQuery(document.body).on('mousedown',function(){jQuery(document.body).addClass('using-mouse');});jQuery(document.body).on('keydown',function(e){if(e.key==='Tab'){jQuery(document.body).removeClass('using-mouse');}});var observed_element;var focus_counter=0;let tabTrappingCallback=(mutationList,tabTrappingObserver)=>{var targetNode=mutationList[0].target;let temp_focus_counter=targetNode.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), input[type="password"]:not([disabled])').length;var resetTabTrapping=false;for(let mutation of mutationList){if(mutation.type==='childList'){if(temp_focus_counter!=focus_counter){resetTabTrapping=true;}}else if(mutation.type==='attributes'){resetTabTrapping=true;}} 6if(mutationList.length==1){if(observed_element==targetNode){resetTabTrapping=false;}} 7if(resetTabTrapping){removeTabTrapping(observed_element);addTabTrapping(observed_element);}};let tabTrappingObserver=new MutationObserver(tabTrappingCallback);let tabTrappingConfig={attributes:true,attributeFilter:['class'],childList:true,subtree:true,attributeOldValue:true};var firstFocusableEl;var lastFocusableEl;var bindBehavourToElements=function(e){if(e&&firstFocusableEl&&lastFocusableEl){if(e.key==='Tab'){if(e.shiftKey){if(document.activeElement===firstFocusableEl){lastFocusableEl.focu
7s();e.preventDefault();}}else{if(document.activeElement===lastFocusableEl){firstFocusableEl.focus();e.preventDefault();}}}}else{return;}} 8function addTabTrapping(element,addObserver=true){var currentContainer=element;if(currentContainer){var focusableElements=currentContainer.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), input[type="password"]:not([disabled]), .ghostInput');firstFocusableEl=focusableElements[0];if(isHidden(firstFocusableEl)){firstFocusableEl=findFirstVisible(focusableElements);} 9lastFocusableEl=focusableElements[focusableElements.length-1];if(isHidden(lastFocusableEl)){lastFocusableEl=findFirstVisible(focusableElements,false);} 10observed_element=currentContainer;focus_counter=focusableElements.length;focusableElements.forEach((element)=>{element.setAttribute('tabindex','0');});var priorityElements=currentContainer.querySelectorAll('[data-focuspriority="1"]:not([disabled]');if(priorityElements.length){priorityElements[0].focus();}
10else if(firstFocusableEl){firstFocusableEl.focus();} 11if(addObserver){tabTrappingObserver.observe(currentContainer,tabTrappingConfig);} 12if(firstFocusableEl&&lastFocusableEl){currentContainer.addEventListener('keydown',bindBehavourToElements);}}} 13function removeTabTrapping(element,stillFocusable=false){var currentContainer=element;var focusableElements=currentContainer.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), input[type="password"]:not([disabled]), .ghostInput');if(currentContainer.id==="AIRvarukorg-Wrap"){if(currentContainer.getAttribute('data-state')==='active'){tabTrappingObserver.disconnect();}}else{tabTrappingObserver.disconnect();} 14focusableElements.forEach((element)=>{if(stillFocusable){element.removeAttribute('tabindex');}else{element.setAttribute('tabindex','-1');}});if(currentContainer){currentContainer.removeEventListener('keydown',bindBehavourToElements);}} 15function findFirstVisible(list,firstToLast=true){var item;if(firstToLast){for(var i=0,item;item=list[i];i++){if(!isHidden(item)){return item;}}}else{for(var i=(list.length-1),item;item=list[i];i--){if(!isHidden(item)){return item;}}} 16return;} 17function isHidden(element){return(element.offsetParent===null)}
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.