PageSourceSearch

https://krdo.com/wp-content/themes/storymate-npg/build/js/theme.min.js?ver=1.4.21

js krdo.com collected 2026-09-24 09:10:31 UTC 17,326 bytes, 1 lines download raw bytes

1const forecastWidget=function(e){const t={},n=e(".forecast-widget");return t.init=function(){n.length>0&&t.getWeatherData()},t.getWeatherData=function(){zipCode=e(".forecast-widget__location").data("location"),e.ajax({cache:!1,contentType:"application/json",method:"GET",url:wpApiSettings.root+"weather/v1/module/forecast-widget/zip/"+zipCode,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)},success:function(e){void 0!==e.weather_data&&t.insertData(e.weather_data)}})},t.insertData=function(t){e(".forecast-widget__location").text(t.location);const n='<img src="'+(e(".forecast-widget__location").data("icon")+t.currentHour.condition_icon)+'" alt="'+t.currentHour.condition_name+'">';e(".forecast-widget__current-icon").empty().append(n),e(".forecast-widget__current-temp").text(t.currentHour.temp),e(".forecast-widget__hourly-forecast").empty();for(const[n,a]of Object.entries(t.hourlyForecast)){const t='<img src="'+(e(".forecast-widget__location").data("icon")+a.condition_icon)+'" alt="'+a.condition_name+'">';let n='<div class="forecast-widget__hour">';n+='<div class="forecast-widget__hour-heading">'+a.hour+"</div>",n+='<div class="forecast-widget__hour-icon">'+t+"</div>",n+='<div class="forecast-widget__hour-temp">'+a.temp+String.fromCharCode(176)+"</div>",n+="</div>",e(".forecast-widget__hourly-forecast").append(n)}},t}(jQuery),headerLiveButton=function(e){const t={},n=e(".menu-livestream-button--deactivated"),a=e(".menu-livestream-button");return t.init=function(){n.length>0&&t._deactivatedButtonListener(),a.length>0&&t._checkForActiveLivestream()},t._deactivatedButtonListener=function(){n.on("click",(function(e){e.preventDefault()}))},t._checkForActiveLivestream=function(){e.ajax({type:"GET",cache:!1,dataType:"json",url:wpApiSettings.root+"alerts/v2/livestream-active",success:function(e){e.livestreamActive&&t._addActiveLivestreamClass()}})},t._addActiveLivestreamClass=function(){a.addClass("active")},t}(jQuery),headerSticky=function(e){const t={},n=e("#masthead"),a=e(".sidebar .div-gpt-ad--sticky");return t.init=function(){if(n.length<=0)return!1;t._enableStickyHeader(),t._dynamicStickyOnResize()},t._enableStickyHeader=function(){const e=window.innerWidth,t=n.find(".header__wrapper"),o=t.height();e>992?(t.addClass("header__wrapper--fixed"),n.css("margin-top",o+24+"px"),a.css("top",o+24+"px")):(t.removeClass("header__wrapper--fixed"),n.css("margin-top","0px"))},t._dynamicStickyOnResize=function(){var n;e(window).on("resize",(function(e){clearTimeout(n),n=setTimeout((function(){t._enableStickyHeader()}),200)}))},t}(jQuery),radarModule=function(e){const t={},n=document.getElementById("radar_canvas"),a=document.getElementById("radar_slider"),o=document.getElementById("radar_current_time");let i,r={},s=0,d=!1;function l(e){o.innerText=moment(e).tz(r.tz).format("h:mm A z")}function c(e){const t=i.overlayMapTypes.getAt(e);return void 0!==t&&(t.setOpacity(.8),l(t.name)),t}function u(e){const t=i.overlayMapTypes.getAt(e);return void 0!==t&&(t.setOpacity(0),l(t.name)),t}function g(e){a.value=e}return t.initMap=function(o){n&&(!function(){const e=document.getElementById("radar_play"),n=document.getElementById("radar_stop");e.addEventListener("click",()=>{t.startAnimation()}),n.addEventListener("click",()=>{t.stopAnimation()}),a.addEventListener("input",e=>{s=parseInt(e.target.value,10),!1===d&&(d=s),u(d),c(s),d=s})}(),e.getJSON(wpApiSettings.root+"weather/v1/module/radar-config/location/"+o,t=>{r=t;const o=[];o.push(google.maps.MapTypeId.HYBRID),o.push(google.maps.MapTypeId.ROADMAP),o.push(google.maps.MapTypeId.SATELLITE),o.push(google.maps.MapTypeId.TERRAIN),i=new google.maps.Map(n,{zoom:6,center:new google.maps.LatLng(r.coords.lat,r.coords.lng),mapTypeControlOptions:{mapTypeIds:o},mapTypeId:google.maps.MapTypeId.TERRAIN,streetViewControl:!1,fullscreenControl:!1}),e.getJSON(wpApiSettings.root+"weather/v1/module/radar-timestamps",(function(e){e.length>0&&(e.reverse(),e.map(e=>{var t;i.overlayMapTypes.push((t=e.time,new google.maps.ImageMapType({getTileUrl:function(e,n){const a=1<<n;if(e.y<0||e.y>=a)return null;const o=(e.x%a+a)%a,i=a-e.y-1;return"http://api.velocityweather.com/v1//"+r.key+"/tms/1.0.0/"+r.product+"+"+r.configuration+"+"+t+"/"+n+"/"+o+"/"+i+".png?sig="+r.signature+"&ts="+r.ts},tileSize:new google.maps.Size(256,256),opacity:0,name:t,isPng:!0})))}),s=i.overlayMapTypes.getLength()-1,a.setAttribute("max",i.overlayMapTypes.getLength()-1),c(s),g(s))}))}))},t.startAnimation=function(){if(i.overlayMapTypes.getLength()<1)return;const e=i.overlayMapTypes.getLength()-1;t.interval=setInterval((function(){u(0),s>e&&(u(e),s=0),s>1&&u(s-1),c(s),g(s),d=s,s++}),175)},t.stopAnimation=function(){clearInterval(t.interval);const e=i.overlayMapTypes.getLength()-1;u(d),c(e),g(e),d=0,s=e},t}(jQuery),secondaryNavigation=function(e){const t={},n=e('button[data-toggle="off-canvas-menu"]');return t.init=function(){n.length>0&&(t._menuToggleListener(),t._subMenuToggleListener())},t._menuToggleListener=function(){const t=e("body");n.on("click",(function(n){n.preventDefault(),e(this).toggleClass("is-active"),t.toggleClass("secondary-nav-active")}))},t._subMenuToggleListener=function(){e('button[data-toggle="off-canvas-submenu-dropdown"]').on("click",(function(t){t.preventDefault(),e(this).toggleClass("is-active"),e(this).next(".dropdown__menu").toggleClass("is-active"),e(this).attr("aria-expanded",(function(e,t){return"true"===t?"false":"true"}))}))},t}(jQuery),verizonVideos=function(e){const t={},n=e(".video-and-ad");return t.init=function(){n.length>0&&e.each(n,(function(e,n){const a={};a.guid=n.getAttribute("data-src"),a.src="https://content.uplynk.com/"+a.guid+".m3u8",a.container=document.getElementById(n.getAttribute("id")),t.setupVideoAndDFP(a)}
1))},t.setupVideoAndDFP=function(e){function t(){var e=window.location.search;if(-1===(a=e.indexOf("?")))return{};for(var t={},n=e.substr(a+1).split("&"),a=0;a<n.length;a++){var o=n[a].split("=",2);1===o.length?t[o[0]]=!0:2===o.length&&(t[o[0]]=decodeURIComponent(o[1]))}return t}var n=/(iPad|iPhone|iPod)/g.test(navigator.platform),a=/(iPhone|iPod)/g.test(navigator.platform),o=/Android|webOS|iPad|iPhone|iPod|BlackBerry/i.test(navigator.userAgent),t=t();if(!e.hasOwnProperty("src")||e.src.length<1)console.log("Missing videoData.src");else if("undefined"!==e.container){t.debug&&(videoSetup.debug=!0,console.log("-----------------------------------------------------"),console.log("Setting up Uplynk video"));var r,s,d,l,c,u,g,p,f=e.container.getElementsByClassName("ad-video-container")[0],v=e.container.getElementsByClassName("loading-pane")[0],y=e.container.getElementsByClassName("uplyink-video-container")[0],m=e.container.getElementsByClassName("ad-time")[0],h=m.getElementsByClassName("remaining")[0],_=f.getElementsByClassName("ad-trigger")[0],w=f.getElementsByClassName("mobile-unmute")[0],E=e.src,A=null,T=null,b={debug:videoSetup.debug,showThumbnails:!0,showAdBreakMarkers:!0,disableSeekDuringAdBreak:!1,preferNativePlayback:!1};p=E,null!==T&&T.destroy(),null!==A&&A.destroy(),createAdaptivePlayer(y,b,(function(o){if(!o)return console.log("Error Creating Player - check browser version. Falling back to iframe."),void(y.style.display="none");(A=o).on(AdaptivePlayer.Event.AdBreakEntered,(function(e){t.debug&&console.log("Ad Break Entered: "+e.adBreak.duration)})),A.on(AdaptivePlayer.Event.AdBreakExited,(function(e){t.debug&&console.log("Ad Break exited: "+e.adBreak.duration)})),A.on(AdaptivePlayer.Event.LoadError,(function(e){t.debug&&console.error("ERROR: "+e.error+" ("+e.code+")")})),A.on(AdaptivePlayer.Event.DrmError,(function(e){t.debug&&console.error("DRM ERROR: "+e.error)})),A.on(AdaptivePlayer.Event.SourceLoaded,(function(){t.debug&&(console.log("SourceLoaded:"),console.log(A.segmentMap),console.log(A.availableResolutions)),B()})),(T=plyr.setup(y,b)[0]).setAdaptivePlayer(A),A.load(p),d=e.container.getElementsByClassName("plyr")[0],n&&!a&&(B(),y.muted=!0,w.style.display="block",w.addEventListener("click",(function(){y.muted=!1,w.style.display="none"}))),a&&k(),setTimeout((function(){k()}),1e4)}))}else console.log("Missing video DOM element.");function L(){null!=y&&y.play()}function k(){v.style.display="none"}function S(e){t.debug&&console.log(e.getError()),f.style.display="none",d.classList.add("plyr--fullscreen-enabled"),k(),"object"==typeof c&&c.destroy()}function C(){t.debug&&console.log("contentEndedListener"),u.contentComplete()}function D(){for(g.initialize(),i=0;i<s.length;i++){s[i].removeEventListener("click",D)}_.removeEventListener("click",D),_.style.display="none",y.addEventListener("ended",C);try{c.init(727,409,google.ima.ViewMode.NORMAL),l=c.getCuePoints(),c.start()}catch(e){L()}}function M(){var e=y.offsetWidth,t=y.offsetHeight;c.resize(e,t,google.ima.ViewMode.NORMAL)}function P(){var e=y.volume;!0===y.muted||0===e?c.setVolume(0):c.setVolume(e)}function R(e){var a=e.getAd();switch(e.type){case google.ima.AdEvent.Type.LOADED:t.debug&&console.log("ads LOADED"),a.isLinear()||L();break;case google.ima.AdEvent.Type.STARTED:t.debug&&console.log("ads STARTED"),f.style.display="block",a.isLinear()&&(M(),o||(m.style.display="block",r=setInterval((function(){var e=c.getRemainingTime(),t=new Date(1e3*e),n=t.getMinutes(),a=t.getSeconds(),o=n<10?"0"+n:n,i=a<10?"0"+a:a;h.textContent=o+":"+i}),300)));break;case google.ima.AdEvent.Type.COMPLETE:if(t.debug&&console.log("ads COMPLETE"),f.style.display="none",a.isLinear()&&(clearInterval(r),d.classList.add("plyr--fullscreen-enabled"),n&&l.length>1))for(i=0;i<l.length;i++)c.discardAdBreak();break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:t.debug&&console.log("ads ALL_ADS_COMPLETED"),window.removeEventListener("resize",M),n||y.removeEventListener("volumechange",P),c.destroy()}}function O(){t.debug&&console.log("onContentPauseRequested"),!0===T.isFullscreen()&&(T.toggleFullscreen(),setTimeout(
1M,1e3)),n||e.container.classList.add("playing-ads"),y.removeEventListener("ended",C),null!=y&&y.pause()}function x(){t.debug&&console.log("onContentResumeRequested"),n||e.container.classList.remove("playing-ads"),y.addEventListener("ended",C),L()}function I(t){var a=new google.ima.AdsRenderingSettings;for(a.restoreCustomPlaybackStateOnAdBreakComplete=!0,(c=t.getAdsManager(y,a)).addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,S),c.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,O),c.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,x),c.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,R),c.addEventListener(google.ima.AdEvent.Type.LOADED,R),c.addEventListener(google.ima.AdEvent.Type.STARTED,R),c.addEventListener(google.ima.AdEvent.Type.COMPLETE,R),s=e.container.querySelectorAll('[data-plyr="play"]'),i=0;i<s.length;i++){s[i].addEventListener("click",D)}_.addEventListener("click",D),f.style.display="block",n||(P(),y.addEventListener("volumechange",P)),d.classList.remove("plyr--fullscreen-enabled"),window.addEventListener("resize",M),k()}function B(){if(videoSetup.stationDFPTag.length<=0)return k(),void d.classList.add("plyr--fullscreen-enabled");if("undefined"==typeof google||!google.hasOwnProperty("ima"))return console.log("Notice: IMA SDK failed to load - check that IMA script js has loaded and there is no adblock is running."),k(),void d.classList.add("plyr--fullscreen-enabled");g=new google.ima.AdDisplayContainer(f,y),(u=new google.ima.AdsLoader(g)).addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,I,!1),u.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,S,!1);var e=new google.ima.AdsRequest;e.adTagUrl=videoSetup.stationDFPTag,e.linearAdSlotWidth=727,e.linearAdSlotHeight=409,e.nonLinearAdSlotWidth=640,e.nonLinearAdSlotHeight=150,u.requestAds(e)}},t}(jQuery),weatherFeatureModule=function(e){const t={},n=e(".weather-feature");return t.init=function(){n.length>0&&(t.getWeatherData(),t.showAllHourlyData(),t.listenForZipCodeSubmission())},t.listenForZipCodeSubmission=function(){e(".weather-feature__zip-form").on("submit",(function(n){n.preventDefault();const a=e(".weather-feature__zip-form input").val();t.getWeatherData(a)}))},t.getWeatherData=function(n=""){""===n&&(n=e(".weather-feature__location").data("location")),e.ajax({cache:!1,contentType:"application/json",method:"GET",url:wpApiSettings.root+"weather/v1/module/weather-feature/zip/"+n,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)},success:function(e){void 0!==e.weather_data&&t.insertData(e.weather_data)}})},t.insertData=function(n){e(".weather-feature__location").text(n.location);const a='<img src="'+(e(".weather-feature__location").data("icon")+n.currentHour.condition_icon)+'" alt="'+n.currentHour.condition_name+'">';e(".weather-feature__current-icon").empty().append(a),e(".weather-feature__current-temp").text(n.currentHour.temp),e(".weather-feature__current-condition").text(n.currentHour.condition_name),e(".weather-feature__current-wind").text(n.currentHour.wind),e(".weather-feature__current-humidity").text(n.currentHour.humidity),e(".weather-feature__current-dew-point").text(n.currentHour.dew_point+String.fromCharCode(176)),e(".weather-feature__daily-forecast").hasClass("slick-initialized")&&e(".weather-feature__daily-forecast").slick("unslick"),e(".weather-feature__daily-forecast").empty();for(const[t,a]of Object.entries(n.dailyForecast)){const n=e(".weather-feature__location").data("icon")+a.condition_icon;let o='<div class="weather-feature__day">';o+='<h3 class="weather-feature__day-heading">'+t+"</h3>",o+='<div class="weather-feature__day-forecast">',o+='<div class="weather-feature__day-icon">',o+='<img src="'+n+'" alt="'+a.condition_name+'">',o+="</div>",o+='<div class="weather-feature__day-condition">'+a.condition_name+"</div>",o+="</div>",o+='<div class="weather-feature__day-temps">',o+='<div class="weather-feature__day-high">'+a.temp_max+"</div>",o+='<div class="weather-feature__day-low">'+a.temp_min+"</div>",o+="</div>",o+="</div>",e(".weather-feature__daily-forecast").append(o)}e(".weather-feature__hourly-forecast").empty();for(const[t,a]of Object.entries(n.hourlyForecast)){let t='<div class="weather-feature__hourly">';t+='<div class="weather-feature__hourly-detail weather-feature__hourly-detail--hour">'+a.hour+"</div>",t+='<div class="weather-feature__hourly-detail weather-feature__hourly-detail--condition">'+a.condition_name+"</div>",t+='<div class="weather-feature__hourly-detail weather-feature__hourly-detail--temp">'+a.temp+String.fromCharCode(176)+"</div>",t+='<div class="weather-feature__hourly-detail weather-feature__hourly-detail--precipitation">'+a.precipitation+"</div>",t+="</div>",e(".weather-feature__hourly-forecast").append(t)}t.initSlickSlider()},t.initSlickSlider=function(){e(".weather-feature__daily-forecast").slick({slidesToShow:7,infinite:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:5}},{breakpoint:1024,settings:{slidesToShow:4}},{breakpoint:992,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:1}}],prevArrow:'<div class="weather-feature__arrow weather-feature__arrow--prev"><svg class="icon icon-circle-arrow"><use xlink:href="#icon-circle-arrow"></use></svg></div>',nextArrow:'<div class="weather-feature__arrow weather-feature__arrow--next"><svg class="icon icon-circle-arrow"><use xlink:href="#icon-circle-arrow"></use></svg></div>'})},t.showAllHourlyData=function(){var t=e(".weather-feature__hourly-forecast"),n=e(".weather-feature__more");n.on("click",(function(){t.addClass("display-all"),n.hide()}))},t}(jQuery),youtubeModule=function(e){const t={},n=e(".youtube__player-wrapper iframe"),a=e(".videos-list");return t.init=function(){n.length>0&&(t.replaceVideo(),t.paginateVideos())},t.replaceVideo=function(){const t=e("html, body");a.on("click",".youtube__video-toggle",(function(){const a=e(this).attr("data-embed-url");n.attr("src",a),t.animate({scrollTop:n.offset().top-50},500)}))},t.paginateVideos=function(){const t=e(".playlist-next"),n=e(".playlist-prev");e(".youtube__pagination a").click((function(o){o.preventDefault();const i=e(this).attr("data-page-token"),r=a.attr("data-playlist-id"),s="https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults="+a.attr("data-videos-per-page")+"&playlistId="+r+"&pageToken="+i+"&key="+youtubeData.api_key,d=e(".current-page");let l=parseInt(d.text(),10);e(this).hasClass("playlist-prev")&&(l--,d.text(l)),e(this).hasClass("playlist-next")&&(l++,d.text(l)),e.getJSON(s,(function(o){const i=o.pageInfo.resultsPerPage,r=o.pageInfo.totalResults;Math.ceil(r/i);o.hasOwnProperty("prevPageToken")?n.attr("data-page-token",o.prevPageToken).removeClass("hidden"):n.addClass("hidden"),o.hasOwnProperty("nextPageToken")?t.attr("data-page-token",o.nextPageToken).removeClass("hidden"):t.addClass("hidden"),a.empty(),e.each(o.items,(function(e,t){let n="";t.snippet.hasOwnProperty("thumbnails")&&(n='<img src="'+t.snippet.thumbnails.medium.url+'">');const o='<li class="youtube__video-item"><div class="youtube__video-toggle" data-embed-url="https://www.youtube.com/embed/'+t.snippet.resourceId.videoId+'">'+n+'<h5 class="hdg hdg--5">'+t.snippet.title+"</h5></div></li>";a.append(o)}))}))}))},t}(jQuery);
1weatherFeatureModule.init(),forecastWidget.init(),youtubeModule.init(),verizonVideos.init(),secondaryNavigation.init(),headerLiveButton.init(),headerSticky.init();

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.