PageSourceSearch

https://kobi5.com/wp-content/plugins/kobi-weather-system/js/weather-widget.min.js?x58625

js kobi5.com collected 2026-09-24 17:15:09 UTC 3,567 bytes, 1 lines download raw bytes

1!function(){function t(){window.Alpine.data("weatherWidget",function(){return{location:localStorage.getItem("kobi_wx_location")||"Medford",state:localStorage.getItem("kobi_wx_state")||"Or",locationLocked:!1,current:null,todayHigh:null,todayLow:null,aqi:null,loading:!0,error:!1,init(){var t=this.$el.dataset.wxLocation;t&&(this.location=t,this.state=this.$el.dataset.wxState||this.state,this.locationLocked=!0),this.fetchWeather()},fetchWeather(){var t=this,n=window.kobi&&window.kobi.wxApiBase;if(!n)return t.loading=!1,void(t.error=!0);Promise.all([kobiWxFetchOnce(n+"?r=basic&l="+encodeURIComponent(t.location)+"&e=weather"),kobiWxFetchOnce(n+"?r=oneCall&l="+encodeURIComponent(t.location)),kobiWxFetchOnce(n+"?r=basic&l="+encodeURIComponent(t.location)+"&e=air_pollution")]).then(function(n){t.current=n[0];var a=n[1].daily;a&&a.length>0&&(t.todayHigh=a[0].temp.max,t.todayLow=a[0].temp.min);var i=n[2],o=i&&i.components?i.components.pm2_5:null;!i||null==i.aqi||null!=o&&o<1?t.aqi=null:t.aqi=i.aqi}).catch(function(){t.error=!0}).finally(function(){t.loading=!1})},aqiLabel(t){var n=kobiGetEpaAqiCategory(t);return n?n.label:""},aqiColorStyle(t){var n=kobiGetEpaAqiCategory(t);return"color:"+(n?n.color:"rgba(255,255,255,0.6)")},aqiPillStyle(t){var n=kobiGetEpaAqiCategory(t);return n?"background-color:"+n.color+";color:"+n.textColor:"background-color:rgba(255,255,255,0.15);color:#fff"},formatTemp:t=>null==t?"--":Math.round(t)+"°",weatherIcon(t,n){var a="https://wx2.kobi5.com/vendor/weather-icons/production/fill/svg/",i=".svg",o=!!n&&n.endsWith("n")?"night":"day",r={"200,230,231":{day:"thunderstorms-day-rain",night:"thunderstorms-night-rain"},"201,202,232":{day:"thunderstorms-rain",night:"thunderstorms-rain"},"210,211,212,221":{day:"thunderstorms",night:"thunderstorms"},"300,301,310,311,500,501,520":{day:"drizzle",night:"drizzle"},"302,312,313,314,321":{day:"rain",night:"rain"},"502,503,504,521,522,531":{day:"rain",night:"rain"},"511,611,612,613":{day:"sleet",night:"sleet"},"600,601,602,615,616,620,621,622":{day:"snow",night:"snow"},701:{day:"mist",night:"mist"},711:{day:"smoke-particles",night:"smoke-particles"},721:{day:"haze-day",night:"haze-night"},731:{day:"dust-wind",night:"dust-wind"},741:{day:"fog-day",night:"fog-night"},"751,761,762":{day:"dust-day",night:"dust-night"},771:{day:"wind",night:"wind"},781:{day:"tornado",night:"tornado"},800:{day:"clear-day",night:"clear-night"},"801,802":{day:"partly-cloudy-day",night:"partly-cloudy-night"},"803,804":{day:"overcast-day",night:"overcast-night"}},e={"11d":{day:"thunderstorms",night:"thunderstorms"},"09d":{day:"drizzle",night:"drizzle"},"10d":{day:"rain",night:"rain"},"13d":{day:"snow",night:"snow"},"50d":{day:"fog-day",night:"fog-night"},"01d":{day:"clear-day",night:"clear-night"},"01n":{day:"clear-day",night:"clear-night"},"02d":{day:"partly-cloudy-day",night:"partly-cloudy-night"},"02n":{day:"partly-cloudy-day",night:"partly-cloudy-night"},"03d":{day:"partly-cloudy-day",night:"partly-cloudy-night"},"03n":{day:"partly-cloudy-day",night:"partly-cloudy-night"},"04d":{day:"partly-cloudy-day",night:"partly-cloudy-night"},"04n":{day:"partly-cloudy-day",night:"partly-cloudy-night"}};if(t){var d=String(t);for(var l in r)if(-1!==l.split(",").indexOf(d))return a+r[l][o]+i}return n&&e[n]?a+e[n][o]+i:"https://wx2.kobi5.com/vendor/weather-icons/production/fill/svg/not-available.svg"}}})}window.Alpine&&window.Alpine.version?(t(),document.querySelectorAll('[x-data="weatherWidget"]').forEach(function(t){window.Alpine.initTree(t)})):document.addEventListener("alpine:init",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.