PageSourceSearch

https://www.weatherbell.com/compiled/webpack/simple_weather_loader.bundle.js

js weatherbell.com collected 2026-10-02 04:59:06 UTC 3,954 bytes, 1 lines download raw bytes

1!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=622)}({622:function(e,t){(function(){var e,t,n,o,i,l,r,a,u,c,d;e="pk.eyJ1Ijoid2VhdGhlcmJlbGwiLCJhIjoiY2plNmhvZmZqMDBmbTJ3bnZ2aHEwN2NiNSJ9.DpntgEKEQFW3VO6fDRuxsQ",l=!1,r=function(e){return t([e.longitude,e.latitude].join(",")).then(function(t){var n;if(void 0!==t&&t.hasOwnProperty("features"))return 2===(n=$.map(t.features,function(e){return e.id.indexOf("place")>-1||e.id.indexOf("region")>-1?e.text:""}).filter(function(e){return""!==e})).length&&(e.city=n[0],e.region=n[1]),console.log("geolocation",e),a(e)})},a=function(e){$.simpleWeather({location:[e.latitude,e.longitude].join(","),unit:"f",success:function(t){var n,o,r,a;r=function(){switch(!1){case!(t.temp>100):return"blue-red-5";case!(t.temp>80):return"blue-red-4";case!(t.temp>60):return"blue-red-3";case!(t.temp>40):return"blue-red-2";case!(t.temp>20):return"blue-red-1";case!(t.temp<=20):return"blue-red-0"}}(),a="<span class='simple-image'> <img src='"+t.thumbnail+"' data-toggle='tooltip' data-placement='top' title='"+t.text+" / "+t.currently+"'/> </span> <span class='simple-text'> <span class='simple-location' data-toggle='tooltip' data-placement='left' title='Change location'>"+e.city+", "+e.region+"</span> </span> <span class='simple-temp' class='"+r+"'>"+t.temp+"&deg;F</span>",(o=$(".simple-weather")).html(a),(n=o.find("img")).length&&n.tooltip(),o.find(".simple-location").tooltip(),l||i()},error:function(e){$(".simple-weather").html("")}})},o=function(e){if(console.log(geolocation),"undefined"!=typeof geolocation&&null!==geolocation&&null!=geolocation.latitude&&null!=geolocation.longitude&&null!=e&&null!=e.latitude&&null!=e.longitude&&(geolocation.latitude!==e.latitude||geolocation.longitude!==e.longitude))return u(e)},u=function(e){$.ajax({url:"/update_geolocation",data:e,type:"POST"})},d=function(){!1 in navigator||navigator.geolocation.getCurrentPosition(function(e){var t;return t={latitude:e.coords.latitude,longitude:e.coords.longitude},o(t),r(t)})},c=function(t){$.ajax({url:window.location.protocol+"//api.mapbox.com/geocoding/v5/mapbox.places/"+t+".json?access_token="+e,type:"GET",success:function(e){var t;t={latitude:e.features[0].center[1],longitude:e.features[0].center[0]},o(t),r(t)}})},t=function(t){return $.getJSON(window.location.protocol+"//api.mapbox.com/geocoding/v5/mapbox.places/"+t+".json?access_token="+e)},i=function(){l=!0,$("a.geo-config-trigger").last().on("click",function(){$.featherlight($("#geo-config"),{targetAttr:"href",afterOpen:function(e){var t;this.$content.removeClass("hidden"),this.$content.find(".geolocate-me").on("click",function(){return d(),n()}),(t=this.$content.find(".geo-zip-code")).val(""),t.keyup(function(e){var t;if(!((t=$.trim($(this).val())).length<=4))return 13===e.which?(c(t),void n()):/^\d{5}$/.test(t)?(c(t),void n()):void 0})}})})},n=function(){var e;if(e=$.featherlight.current())return e.close()},$(document).ready(function(){if("undefined"!=typeof geolocation&&null!==geolocation&&null!=geolocation.latitude&&null!=geolocation.longitude)return r(geolocation)}),window.loadWeather=r})()}});

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.