PageSourceSearch

https://www.assouline.com/cdn/shop/t/541/assets/component-local-weather.js?v=166343710508417045551790780346

js assouline.com collected 2026-10-02 02:55:15 UTC 923 bytes, 2 lines download raw bytes

1class HHLocalWeather extends HTMLElement{constructor(){super(),this.apiKey=this.getAttribute("data-api-key"),this.city=this.getAttribute("data-city"),this.getWeather=this.getWeather.bind(this)}connectedCallback(){!this.apiKey||!this.city||this.getWeather()}getWeather(){fetch(`https://api.weatherapi.com/v1/forecast.json?key=${this.apiKey}&q=${this.city}&days=1&aqi=no&alerts=no`).then(res=>res.json()).then(res=>{if(res){let icon=document.createElement("img");icon.src=res.current.condition.icon,icon.alt="",icon.role="presentation",this.appendChild(icon);let weather=document.createElement("span");weather.innerText=res.location.country=="United States of America"?`${res.current.temp_f} \xB0F`:`${res.current.temp_c} \xB0C`,this.appendChild(weather)}})}}customElements.define("hh-local-weather",HHLocalWeather);
2//# sourceMappingURL=/cdn/shop/t/541/assets/component-local-weather.js.map?v=166343710508417045551790780346

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.