PageSourceSearch

https://www.logting.fo/DependencyHandler.axd?s=L3NjcmlwdHMvbG9hZEZ…&t=Javascript&cdv=1331585316

js logting.fo collected 2026-10-02 12:06:22 UTC 5,436 bytes, 37 lines download raw bytes

1$(window).on("load",function(){setTimeout(function(){var url=window.location.href;var yearSelector=document.getElementById("SelectedYear");if(url.includes("gerdabokur")){protocolsDropDownSubmit(yearSelector);}
2else{$(yearSelector.form).submit()}},500);});function protocolsDropDownSubmit(dropdown){var selectedProtocol=$('#SelectedProtocolType').val();if(selectedProtocol==1){$('#SelectedCommittee').attr('disabled','disabled');}
3else{$('#SelectedCommittee').removeAttr('disabled');}
4$(dropdown.form).submit()}
5function showSpinner(){let spinner=document.getElementById("spinner");spinner.style.visibility="visible";$('#macroContainer').hide();}
6function hideSpinner(){let spinner=document.getElementById("spinner");spinner.style.visibility="hidden";$('#macroContainer').show();}
7;;;function sortTable(headerCell,isProtocols){const tableElement=headerCell.parentElement.parentElement.parentElement;const headerIndex=Array.prototype.indexOf.call(headerCell.parentElement.children,headerCell);const currentIsAscending=headerCell.classList.contains("th-sort-asc");if(isProtocols){sortProtocolsTable(tableElement,headerIndex,!currentIsAscending);}
8else{sortCaseTable(tableElement,headerIndex,!currentIsAscending);}
9setSortingCssClasses(tableElement,headerIndex,!currentIsAscending);}
10function sortAgendaTable(headerCell){const tableElement=headerCell.parentElement.parentElement.parentElement;let headerIndex=Array.prototype.indexOf.call(headerCell.parentElement.children,headerCell);let tableColumnArray=headerCell.parentElement.children;const currentIsAscending=headerCell.classList.contains("th-sort-asc");if(headerIndex==0){lastColumnIndex=tableColumnArray.length-1;sortCaseTable(tableElement,lastColumnIndex,!currentIsAscending)}
11else{sortCaseTable(tableElement,headerIndex,!currentIsAscending)}
12setSortingCssClasses(tableElement,headerIndex,!currentIsAscending);}
13function sortCaseTable(table,column,asc){const directionModifier=asc?1:-1;const tBody=table.tBodies[0];const rows=Array.from(tBody.querySelectorAll("tr"));const sortedRows=rows.sort(function(a,b){let aColText=""
14let bColText=""
15if(column==0){aTextLength=a.querySelector(`td:nth-child(${column + 1})`).textContent.trim().length;bTextLength=b.querySelector(`td:nth-child(${column + 1})`).textContent.trim().length;if(aTextLength==12){aColText=a.querySelector(`td:nth-child(${column + 1})`).textContent.trim().substring(3,7);}
16else{aColText=a.querySelector(`td:nth-child(${column + 1})`).textContent.trim().substring(3,6);}
17if(bTextLength==12){bColText=b.querySelector(`td:nth-child(${column + 1})`).textContent.trim().substring(3,7);}
18else{bColText=b.querySelector(`td:nth-child(${column + 1})`).textContent.trim().substring(3,6);}}
19else{aColText=a.querySelector(`td:nth-child(${column + 1})`).textContent.trim()
20bColText=b.querySelector(`td:nth-child(${column + 1})`).textContent.trim()
21var aDateParts=aColText.split('.');var bDateParts=bColText.split('.');aDate=new Date(aDateParts[2],aDateParts[1]-1,aDateParts[0]);bDate=new Date(bDateParts[2],bDateParts[1]-1,bDateParts[0]);if(isValidDate(aDate)&&isValidDate(bDate)){return compareWithDirection(aDate,bDate,directionModifier);}}
22return compareWithDirection(aColText,bColText,directionModifier);});while(tBody.firstChild){tBody.removeChild(tBody.firstChild);}
23if(supportsSpread()){tBody.append(...sortedRows);}}
24function supportsSpread(){try{new Function('foo(...params);');return true;}catch(e){return false;}}
25function sortProtocolsTable(table,column,asc=true){const directionModifier=asc?1:-1;const tBody=table.tBodies[0];const rows=Array.from(tBody.querySelectorAll("tr"));const sortedRows=rows.sort((a,b)=>{let aColText=""
26let bColText=""
27if(column==1){aColText=a.querySelector(`td:nth-child(${column + 1})`).textContent.trim()
28bColText=b.querySelector(`td:nth-child(${column + 1})`).textContent.trim()
29var aDateParts=aColText.split('.');var bDateParts=bColText.split('.');aDate=new Date(aDateParts[2],aDateParts[1]-1,aDateParts[0]);bDate=new Date(bDateParts[2],bDateParts[1]-1,bDateParts[0]);return compareWithDirection(aDate,bDate,directionModifier);}
30aColText=a.querySelector(`td:nth-child(${column + 1})`).textContent.trim();bColText=b.querySelector(`td:nth-child(${column + 1})`).textContent.trim();return compareWithDirection(aColText,bColText,directionModifier);});while(tBody.firstChild){tBody.removeChild(tBody.firstChild);}
31if(supportsSpread()){tBody.append(...sortedRows);}}
32function setSortingCssClasses(table,selectedColumnIndex,asc){var headerArray=table.querySelectorAll("th");var cssClassSortAsc="th-sort-asc";var cssClassSortDesc="th-sort-desc";var cssClassNotSorted="th-notSorted";for(i=0;i<headerArray.length;i++){if(headerArray[i].classList.contains(cssClassSortAsc)||headerArray[i].classList.contains(cssClassSortDesc)||headerArray[i].classList.contains(cssClassNotSorted)){headerArray[i].classList.remove(cssClassSortAsc,cssClassSortDesc,cssClassNotSorted);headerArray[i].classList.add(cssClassNotSorted);}}
33table.querySelector(`th:nth-child(${selectedColumnIndex + 1})`).classList.remove(cssClassNotSorted);table.querySelector(`th:nth-child(${selectedColumnIndex + 1})`).classList.toggle(cssClassSortAsc,asc);table.querySelector(`th:nth-child(${selectedColumnIndex + 1})`).classList.toggle(cssClassSortDesc,!asc);}
34function compareWithDirection(a,b,direction){if(a==b){return 0}
35return a>b?(1*direction):(-1*direction);}
36function isValidDate(d){return d instanceof Date&&!isNaN(d);}
37;;;

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.