PageSourceSearch

https://www.carbonbrief.org/wp-content/themes/carbon-brief/assets/…/scripts/block.8a66eb5672470afdaf24.js

js carbonbrief.org collected 2026-09-24 08:24:45 UTC 1,947 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={2331:(e,t,i)=>{i.d(t,{T:()=>s});const o=(e,t)=>`${e}=${t};`,s=(e,t,i,s="/",l=null,n=!0,c="strict")=>{let r=o(e,t)+o("expires",(e=>new Date(Date.now()+24*e*60*60*1e3))(i).toUTCString())+o("path",s)+o("SameSite",c);"string"==typeof l&&(r+=o("Domain",l)),!0===n&&(r+="Secure"),document.cookie=r}},8358:(e,t,i)=>{i.d(t,{A:()=>s});var o=i(2331);class s{constructor(e){this.element=e,this.lockScroll="true"===this.element.dataset.lockScroll,this.cookieSet=!1,this.init()}init(){this.initDismissButton(),this.initOpenButton(),this.initModalLinks(),this.element.classList.contains("modal--active")&&this.open()}open(){this.element.classList.add("modal--active"),this.lockScroll&&(document.body.style.overflow="hidden")}close(){if(this.element.classList.remove("modal--active"),this.lockScroll&&(document.body.style.overflow=""),this.element.dataset.cookie){const e=this.element.getAttribute("id"),{hash:t}=this.element.dataset,i=this.element.dataset.cookie||3;(0,o.T)(e,t,i),this.cookieSet=!0}}initModalLinks(){this.element.querySelectorAll("a[href]").forEach(e=>{e.addEventListener("click",t=>{if(!this.cookieSet){t.preventDefault(),this.close();let i=e.href,o=window.location.href;i&&o&&(i=i.split("/?")[0],o=o.split("/?")[0],i!==o&&e.click())}})})}initDismissButton(){this.element.querySelectorAll(".modal__dismiss").forEach(e=>{e.addEventListener("click",()=>{this.close()})})}initOpenButton(){document.querySelectorAll(`[data-open-modal="${this.element.id}"]`).forEach(e=>{e.addEventListener("click",()=>{this.open()})})}}}},t={};function i(o){var s=t[o];if(void 0!==s)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,i),l.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=i(8358);window.addEventListener("load",()=>{(document.querySelectorAll(".modal")??[]).forEach(e=>{new o.A(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.