1window.addEventListener("message",function(event){const iframes=Array.from(document.getElementsByClassName("pollUnit-iframe"));iframes.forEach((iframe)=>{if(iframe.getAttribute("data-pollunit-autoresize")){iframe.style.height=event.data+"px";iframe.style.overflow="hidden"}})});document.addEventListener("DOMContentLoaded",function(){pollUnitInit()});const pollUnitInit=function(){if(pollUnitIsCookieSet("pollunit-embed-session-id")){pollUnitInializeIframes(pollUnitGetCookie("pollunit-embed-session-id"))}else{fetch("https://pollunit.com/cookieless_session.json").then((response)=>response.json()).then((json)=>{session_id=json.cookieless_session_id;if(session_id){pollUnitSetCookie("pollunit-embed-session-id",session_id,60)} 2pollUnitInializeIframes(session_id)})}};const pollUnitInializeIframes=function(session_id){const elements=document.querySelectorAll("[data-pollunit-src]");elements.forEach((el)=>{const optsString=el.getAttribute("data-pollunit-options");const heightString=el.getAttribute("data-pollunit-height");const widthString=el.getAttribute("data-pollunit-width");const options=typeof optsString==="string"?optsString.split(","):[];const height=typeof heightString==="string"?heightString:"700";const width=typeof widthString==="string"?widthString:"100%";const iframe=document.createElement("iframe");iframe.setAttribute("class","pollUnit-iframe");iframe.setAttribute("width",width);iframe.setAttribute("height",height);iframe.setAttribute("frameborder","0");iframe.setAttribute("allowfullscreen","1");if(options.includes("autoresize")){iframe.setAttribute("data-pollunit-autoresize","1")} 3if(options.includes("kill_background")){iframe.setAttribute("allowtransparency","true")} 4var srcString=el.getAttribute("data-pollunit-src");iframe.setAttribute("src",pollUnitIframeUrl(srcString,session_id,options));const parent=el.parentNode;parent.replaceChild(iframe,el)})};const pollUnitIframeUrl=function(urlString,session_id,options){const urlObj=new URL(urlString);urlObj.searchParams.append("embed","1");if(session_id){urlObj.searchParams.append("cookieless_session",session_id)} 5options.forEach((option)=>{urlObj.searchParams.append(`embed_options[${option}]`,"1")});return urlObj.toString()};function pollUnitSetCookie(name,value,days,secure=!0,sameSite="None"){let expires="";if(days){const date=new Date();date.setTime(date.getTime()+days*24*60*60*1000);expires=`; expires=${date.toUTCString()}`} 6const secureFlag=secure?"; secure":"";const sameSiteFlag=`; samesite=${sameSite}`;document.cookie=`${name}=${value || ""}${expires}; path=/${secureFlag}${sameSiteFlag}`} 7function pollUnitGetCookie(name){const cookies=document.cookie.split("; ");for(let cookie of cookies){const[key,value]=cookie.split("=");if(key===name){return value}} 8return null} 9function pollUnitIsCookieSet(name){return pollUnitGetCookie(name)!==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.