PageSourceSearch

https://www.kystogfjord.no/dakapo/static/global.template.1k39kibrv999.js

js kystogfjord.no collected 2026-09-24 22:36:04 UTC 8,969 bytes, 1 lines download raw bytes

1var debugDakapo=document.referrer.indexOf("debug=dakapo")>-1;debugDakapo&&console.log("DEBUG: Dakapo -     template.js running woopa");var iframeName=window.name.split(":"),dakapoConfig=dakapoConfig||{};dakapoConfig.funnel_session_id="function"==typeof getSessionId?getSessionId():"",dakapoConfig.artRefId=iframeName[0]?iframeName[0]:"",dakapoConfig.fv=iframeName[1]?iframeName[1]:"default";var url=window.location!=window.parent.location?document.referrer:document.location.href;function getUrlParams(t){var e="";if(t&&(t.artRefId&&t.artRefId&&t.position&&"paywall"==t.position&&(e="&artRefId="+t.artRefId),"polarplay"==t.position&&t.video_id&&(e="&artRefId="+t.video_id),t.secRefId&&(e+="&secRefId="+t.secRefId),t.fv&&(e+="&fv="+t.fv),t.medium&&(e+="&medium="+t.medium),t.campaign&&(e+="&campaign="+t.campaign),t.content&&(e+="&content="+t.content),t.video_id&&(e+="&video_id="+t.video_id),t.urlParams))if("undefined"!=typeof URLSearchParams){const n=new URLSearchParams(t.urlParams);for(const[t,s]of n.entries())e+=`&${t}=${s}`}else{var n=JSON.parse('{"'+decodeURI(t.urlParams).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}');for(var s in n)n.hasOwnProperty(s)&&(e+="&"+s+"="+n[s])}return e}function getAriaParams(t){var e="";return t&&(t.ariaPlanID&&(e="&ariaPlanID="+t.ariaPlanID),t.ariaScheduleID&&(e+="&ariaScheduleID="+t.ariaScheduleID),t.offeringUUID&&(e+="&offeringUUID="+t.offeringUUID),t.campaignID&&(e+="&campaignID="+t.campaignID),t.discountID&&(e.includes("&campaignID")?e+=e.replace(/&campaignID(=[^&]*)?/,`&d=${t.discountID}`):e+="&d="+t.discountID)),e}function sendHeight(t,e){if(t){window.parent.postMessage(t+":params","*");var n=500;"topbar"!==t&&"infeed"!==t||(n=0),"polarplay"===t&&(n=300),setTimeout(function(){var n="";n="custom"===e?e:document.documentElement.offsetHeight,debugDakapo&&(console.log("DEBUG: Dakapo - document.documentElement.scrollHeight: ",document.documentElement.scrollHeight),console.log("DEBUG: Dakapo - document.documentElement.offsetHeight: ",document.documentElement.offsetHeight),console.log('DEBUG: Dakapo - sending postMessage "'+t+":height:"+n+'"')),window.parent.postMessage(t+":height:"+n,"*")},n)}}function getSessionId(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<5;n++)t+=e.charAt(Math.floor(62*Math.random()));return t+=(new Date).toJSON().slice(0,10).replace(/-/g,"")}function setSessionParam(t){var e;if(JSON.stringify({})!==JSON.stringify(t))try{e=btoa(encodeURIComponent(JSON.stringify(t)).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode("0x"+e)}))}catch(t){console.error("DAKAPO - getSessionParam:",t.toString())}return e}function setVersion(t){var e=Math.random()>=.5?"a":"b";return t=t.replace("/?","/"+e+"?")}function setAriaSessionUrl(t,e){t.v||(t.v="organic");let n="";const s="bestill-abonnement?";if(t.aviskode&&"AES"===t.aviskode&&(t.aviskode="SPO"),e.indexOf("dev-")>-1||e.indexOf("acc-")>-1){n={AAA:`https://minsidetest.andalsnes-avis.no/${s}`,ADR:`https://minsidetest.adressa.no/${s}`,AES:`https://minsidetest.aesby.no/${s}`,AGP:`https://minsidetest.agderposten.no/${s}`,ALT:`https://minsidetest.altaposten.no/${s}`,BA:`https://minsidetest.banett.no/${s}`,BOM:`https://minsidetest.bomlo-nytt.no/${s}`,DOL:`https://minsidetest.dolen.no/${s}`,DR:`https://minsidetest.driva.no/${s}`,FIN:`https://minsidetest.framtidinord.no/${s}`,FJ:`https://minsidetest.fjordingen.no/${s}`,FJB:`https://minsidetest.fjordabladet.no/${s}`,FJU:`https://minsidetest.fjuken.no/${s}`,FOS:`https://minsidetest.fosna-folket.no/${s}`,FT:`https://minsidetest.fjt.no/${s}`,FVN:`https://minsidetest.fvn.no/${s}`,GAP:`https://minsidetest.gauldalsposten.no/${s}`,GAT:`https://minsidetest.gat.no/${s}`,HAL:`https://minsidetest.hallingdolen.no/${s}`,HIT:`https://minsidetest.hitra-froya.no/${s}`,HT:`https://minsidetest.ht.no/${s}`,INN:`https://minsidetest.innherred.no/${s}`,IT:`https://minsidetest.itromso.no/${s}`,KLP:`https://minsidetest.klebuposten.no/${s}`,LIN:`https://minsidetest.l-a.no/${s}`,LIP:`https://minsidetest.lp.no/${s}`,LIS:`https://minsidetest.lister24.no/${s}`,MN:`https://minsidetest.morenytt.no/${s}`,OPD:`https://minsidetest.opp.no/${s}`,ROM:`https://minsidetest.rbnett.no/${s}`,SET:`https://minsidetest.setesdolen.no/${s}`,SM:`https://minsidetest.nyss.no/${s}`,SPO:`https://minsidetest.smp.no/${s}`,STE:`https://minsidetest.steinkjer24.no/${s}`,STJ:`https://minsidetest.bladet.no/${s}`,STN:`https://minsidetest.s-n.no/${s}`,STO:`https://minsidetest.stord24.no/${s}`,STR:`https://minsidetest.avisa-st.no/${s}`,SUN:`https://minsidetest.sunnhordland.no/${s}`,TFO:`https://minsidetest.folkebladet.no/${s}`,TRB:`https://minsidetest.tronderbladet.no/${s}`,VAG:`https://minsidetest.vaganavisa.no/${s}`,VAR:`https://minsidetest.varden.no/${s}`,VES:`https://minsidetest.vestlandsnytt.no/${s}`,VET:`https://minsidetest.venneslatidende.no/${s}`,VIG:`https://minsidetest.vigga.no/${s}
1`,VOL:`https://minsidetest.vol.no/${s}`,VV:`https://minsidetest.vikebladet.no/${s}`}[t.aviskode]||`https://minsidetest.${t.pubShortname}.no/bestill-abonnement?`}else{n={AAA:`https://minside.andalsnes-avis.no/${s}`,ADR:`https://minside.adressa.no/${s}`,AES:`https://minside.aesby.no/${s}`,AGP:`https://minside.agderposten.no/${s}`,ALT:`https://minside.altaposten.no/${s}`,ASK:`https://minside.av-avis.no/${s}`,BA:`https://minside.banett.no/${s}`,BOM:`https://minside.bomlo-nytt.no/${s}`,BYN:`https://minside.bygdanytt.no/${s}`,DOL:`https://minside.dolen.no/${s}`,DR:`https://minside.driva.no/${s}`,FIN:`https://minside.framtidinord.no/${s}`,FJ:`https://minside.fjordingen.no/${s}`,FJB:`https://minside.fjordabladet.no/${s}`,FJU:`https://minside.fjuken.no/${s}`,FOS:`https://minside.fosna-folket.no/${s}`,FT:`https://minside.fjt.no/${s}`,FVN:`https://minside.fvn.no/${s}`,GAP:`https://minside.gauldalsposten.no/${s}`,GAT:`https://minside.gat.no/${s}`,HAL:`https://minside.hallingdolen.no/${s}`,HIT:`https://minside.hitra-froya.no/${s}`,HT:`https://minside.ht.no/${s}`,INN:`https://minside.innherred.no/${s}`,IT:`https://minside.itromso.no/${s}`,KLP:`https://minside.klebuposten.no/${s}`,KOF:`https://minside.kystogfjord.no/${s}`,KUL:`https://minside.kulingen.no/${s}`,LIN:`https://minside.l-a.no/${s}`,LIP:`https://minside.lp.no/${s}`,LIS:`https://minside.lister24.no/${s}`,MAR:`https://minside.marsteinen.no/${s}`,MN:`https://minside.morenytt.no/${s}`,OPD:`https://minside.opp.no/${s}`,ROM:`https://minside.rbnett.no/${s}`,SET:`https://minside.setesdolen.no/${s}`,SM:`https://minside.nyss.no/${s}`,SPO:`https://minside.smp.no/${s}`,STE:`https://minside.steinkjer24.no/${s}`,STI:`https://minside.strilen.no/${s}`,STJ:`https://minside.bladet.no/${s}`,STN:`https://minside.s-n.no/${s}`,STO:`https://minside.stord24.no/${s}`,STR:`https://minside.avisa-st.no/${s}`,SUN:`https://minside.sunnhordland.no/${s}`,TFO:`https://minside.folkebladet.no/${s}`,TRB:`https://minside.tronderbladet.no/${s}`,VAG:`https://minside.vaganavisa.no/${s}`,VAR:`https://minside.varden.no/${s}`,VEN:`https://minside.vestnytt.no/${s}`,VES:`https://minside.vestlandsnytt.no/${s}`,VET:`https://minside.venneslatidende.no/${s}`,VIG:`https://minside.vigga.no/${s}`,VOL:`https://minside.vol.no/${s}`,VV:`https://minside.vikebladet.no/${s}`}[t.aviskode]||`https://minside.${t.pubShortname}.no/${s}`}return n+="aviskode="+t.aviskode+"&position="+t.position+"&type="+t.type+"&funnel_session_id="+t.funnel_session_id+"&v="+t.v+"&version="+t.version+"&platformsource="+t.platformsource+"&source="+t.source,n}function setSessionUrl(t){return t.v||(t.v="organic"),t.origin&&"https://www.mn24.no"===t.origin?"https://minside.alda.no/bliabonnent?aviskode="+t.aviskode+"&aksjonskode="+t.aksjonskode+"&position="+t.position+"&type="+t.type+"&funnel_session_id="+t.funnel_session_id+"&v="+t.v+"&version="+t.version+"&platformsource="+t.platformsource+"&origin="+t.origin+"&source="+t.source:"https://minside.alda.no/bliabonnent?aviskode="+t.aviskode+"&aksjonskode="+t.aksjonskode+"&position="+t.position+"&type="+t.type+"&funnel_session_id="+t.funnel_session_id+"&v="+t.v+"&version="+t.version+"&platformsource="+t.platformsource+"&source="+t.source}function sendButtonEvent(t,e,n,s){e.sessionObjUrl=setVersion(n)+setSessionParam(e),e.url=setSessionUrl(e),e.url+=getUrlParams(e)}window.addEventListener("message",function(t){var e=t.origin||t.originalEvent.origin;if(window.self!==window.top&&void 0!==t.data){debugDakapo&&console.log("DEBUG: Dakapo - banner recieving postMessage from "+e+' value "'+t.data+'"');try{if(t.data.indexOf("RefId")>-1||t.data.indexOf("urlParams")>-1){var n=JSON.parse(t.data);n.artRefId&&(dakapoConfig.artRefId=n.artRefId),n.secRefId&&(dakapoConfig.secRefId=n.secRefId),n.urlParams&&(dakapoConfig.urlParams=encodeURI(n.urlParams.replace("?","")))}}catch(t){}}},!1);var redPublications=["an","avv","gap","stj","gat","dol","dr","fju","fos","inn","lin","lis","mar","nam","sm","sna","ves","vet","vig","vv"];function publicationColorRed(t){return redPublications.includes(t)}

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.