PageSourceSearch

https://ads.kiertonet.fi/embed/loader.js?v=20260331

js kiertonet.fi collected 2026-10-02 07:18:13 UTC 3,578 bytes, 1 lines download raw bytes

1(function(){const u=new Map;function c(e){return!e||typeof e!="string"?"":e.replace(/\/+$/,"")}function h(){var e="";if(typeof document<"u"&&document.currentScript&&document.currentScript.src)e=document.currentScript.src;else if(typeof document<"u"){var n=document.getElementsByTagName("script");if(n.length>0){var r=n[n.length-1];r&&r.src&&(e=r.src)}}if(!e)return"";try{var i=new URL(e);return i.origin+"/api/v1/serve"}catch{return""}}function m(){if(typeof window>"u")return"";var e=window.__adManagerServeUrl;return e&&typeof e=="string"&&e.trim()!==""?c(e.trim()):c(h())}function g(){var e=m();if(!e)return null;try{return new URL(e).origin}catch{return null}}function p(){return"adm"+Math.random().toString(36).slice(2,10)+Date.now().toString(36)}function w(e){var n=e&&e.getAttribute?e.getAttribute("data-ad-manager-embed-id"):null;n&&u.delete(n)}function v(e,n){u.set(e,n)}function y(e){if(!e||typeof e!="object")return{width:NaN,height:NaN};var n=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(max-width: 767px)").matches:!1,r=n?e.mobile:e.desktop,i=n?e.desktop:e.mobile,t=r&&typeof r=="object"?r:i;(!t||typeof t!="object")&&(t=e);var a=typeof t.width=="number"?t.width:parseFloat(t.width),o=typeof t.height=="number"?t.height:parseFloat(t.height);return{width:a,height:o}}function b(){return typeof window>"u"?null:typeof window.matchMedia=="function"?window.matchMedia("(max-width: 767px)").matches?"mobile":"desktop":null}function S(e,n,r){!e||!e.style||(!Number.isNaN(r)&&r>0&&(e.style.width="100%",e.style.maxWidth=Math.ceil(r)+"px"),e.style.height=n+"px")}function M(e,n){var r=e&&e.embed_id;if(r&&typeof r=="string"){var i=u.get(r);if(i&&i.isConnected)return i;var t=document.querySelector('iframe.ad-manager-ad-iframe[data-ad-manager-embed-id="'+r.replace(/"/g,"")+'"]');if(t)return u.set(r,t),t;i&&u.delete(r)}var a=null;return u.forEach(function(o,d){if(!(a||!o)){if(!o.isConnected){u.delete(d);return}try{o.contentWindow&&o.contentWindow===n&&(a=o)}catch{}}}),a}function N(e){if(!(!e||!e.getAttribute)){var n=e.getAttribute("data-ad-position");if(n&&(n=String(n).trim(),!!n)){e.querySelectorAll("iframe.ad-manager-ad-iframe").forEach(function(l){w(l),l.remove()});var r=m();if(r){var i=p(),t=document.createElement("iframe");t.className="ad-manager-ad-iframe",t.title="Advertisement",t.setAttribute("frameborder","0"),t.setAttribute("data-ad-manager-embed-id",i),t.loading="eager",t.style.width="100%",t.style.maxWidth="100%",t.style.border="0",t.style.display="block",t.style.marginLeft="auto",t.style.marginRight="auto",t.style.height="0px";var a=new URLSearchParams;a.set("embed_id",i);var o=b();o&&a.set("host_viewport",o);var d=e.getAttribute("data-ad-platform");d&&typeof d=="string"&&d.trim()!==""&&a.set("platform",d.trim());var f=a.toString();t.src=r+"/"+encodeURIComponent(n)+(f?"?"+f:""),e.appendChild(t),v(i,t)}}}}function s(){document.querySelectorAll("div.ad-slot[data-ad-position]").forEach(N)}if(typeof window<"u"){let e=function(){s()},n=function(){function r(){setTimeout(e,0)}if(document.readyState==="complete"){r();return}document.addEventListener("DOMContentLoaded",r)};var x=e,A=n;window.addEventListener("message",function(r){var i=r.data;if(!(!i||i.type!=="ad-manager-iframe-resize")){var t=g();if(!(t&&r.origin!==t)){var a=typeof i.height=="number"?i.height:parseFloat(i.height);if(!Number.isNaN(a)){a=Math.max(0,Math.ceil(a));var o=y(i.slot),d=M(i,r.source);d&&S(d,a,o.width)}}}}),window.AdManagerLoader={refresh:s},n(),window.__adManagerTurbolinks&&document.addEventListener("turbolinks:load",e)}})();

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.