PageSourceSearch

https://www.hr2.de/assets_4.48.0/js//feature/sequencePlayer.bundle.js

js hr2.de collected 2026-09-24 17:21:15 UTC 7,999 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["/feature/sequencePlayer"],{5737:function(e,t,n){n.r(t);var r=n(8836),o=n(9434);t.default=function(e){var t,n,a,s,i,l,d,u,c,m=0,y=!1,p=300,g=!1,f=e.element,h=e.options,E=h.edpData,B=h.moduleType;"false"!=E?a=(0,r.PN)(h.frames,f):(s="https://sophora-common-wetter-prod.storage.googleapis.com/wetter/regenradar/dynamic/v1/wn/deutschland/",i="https://sophora-common-wetter-prod.storage.googleapis.com/wetter/regenradar/dynamic/v1/wn/deutschland/");var v=function(){for(var e=0,t=0;t<a.length;t++)"CURRENT"==a[t].dataset.propType&&(e+=1);return e},I=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.onload=function(){if(r.status>=200&&r.status<300)try{var e=JSON.parse(r.responseText);t(e),y=!1}catch(e){n(e),A("Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einmal.- Fehler 0"),y=!0}else n(new Error("HTTP error: ".concat(r.status))),A("Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später noc
1h einmal.- Fehler 1"),y=!0},r.onerror=function(){n(new Error("Network error"));try{N(),A("Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einmal.- Fehler 2"),y=!0}catch(e){}},r.send()}))},A=function(e){document.getElementById("errorDisplayText").innerHTML=e},w=function(e){var t=e.frames,n=e;a=document.getElementsByClassName("sequenceLayer__frame");var r,o,s,l,d,u,c=document.getElementById("rainradarSequence");d=document.createElement("div");var m=new Date(n.baseDate).toLocaleDateString("de-DE",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"});if(u=document.createTextNode("Stand: "+m),d.append(u),document.getElementById("currentStatus").appendChild(d),0==document.getElementById("rainradarSequence").childNodes.length)for(var y=0;y<t.length;y++)(r=document.createElement("div")).classList.add("sequenceLayer__frame"),(o=document.createElement("div")).classList.add("rainradar__picture"),s=document.createElement("img"),l=i+t[y].smallImage+" 512w, "+i+t[y].mediumImage+" 1024w","CURRENT"==t[y].type?r.setAttribute("data-prop-type","CURRENT"):r.setAttribute("data-prop-type","PREVIEW"),r.setAttribute("data-prop-time",t[y].time),r.setAttribute("data-prop-href",i+t[y].mediumImage),s.classList.add("image"),s.classList.add("imageSimple"),s.classList.add("rainradar_pictureImage"),s.setAttribute("sizes","(min-width: 1010px) calc(960px * 0.66), 100vw"),s.setAttribute("loading","auto"),s.setAttribute("fetchpriority","high"),s.setAttribute("srcset",l),s.setAttribute("alt","Die Radarkarte für Deutschland zeigt, wo Regen und Schneefall über Deutschland ziehen. Hervorgehoben sind die Städte Frankfurt, Köln, Hannover, Hamburg, Kiel, Rostock, Berlin, Dresden, München, Stuttgart."),s.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="),s.setAttribute("onerror","this.onerror=null; this.setAttribute('data-error', 'true');"),o.appendChild(s),r.appendChild(o),c.appendChild(r)},b=function(){l=(0,r.PN)(h.controlbar)[0],d=l.dataset?l.dataset.propControlBar:l.getAttribute("data-prop-control-bar"),(t=new o.Z(l,d)).setPlayer(T())},T=function(){return{getName:function(){return"sequencePlayer"},next:function(){this.show(m+1)},jmp:function(e){this.show(m+e)},prev:function(){this.show(m-1)},show:function(e){a[m].classList.remove("show"),m=e<0?a.length-1:e<a.length?e:0,a[m].classList.add("show")},getFrame:function(e){return a[e]},getCurrentFrame:function(){return m},getMaxFrames:function(){return a.length},getMaxFramesRealData:function(){for(var e=0,t=0;t<a.length;t++)"CURRENT"==a[t].dataset.propType&&(e+=1);return e},getMaxFramesPrognosisData:function(){for(var e=0,t=0;t<a.length;t++)"PREVIEW"==a[t].dataset.propType&&(e+=1);return e}}},L=function(){"false"==E?(n=v()-1,setTimeout((function(){t.init()}),1e3),setTimeout((function(){D()}),1e3),setTimeout((function(){x(),t.jump(n)}),2e3)):("weathercams"==B&&C(),n=v()-1,setTimeout((function(){t.init()}),400),setTimeout((function(){D()}),200),setTimeout((function(){x(),t.jump(n)}),400))},C=function(){for(var e,t=document.getElementsByClassName("o-dropdown__no-js-toggle"),n=JSON.parse(t[0].getAttribute("data-hr-toggle-class")),r=document.getElementsByClassName("c-content-nav__button"),o=0;o<r.length;o++)r[o].getAttribute("for")=="o-dropdown__no-js-toggle--"+n.id&&(e=r[o].childNodes[1].textContent);S(e)},S=function(e){document.getElementById("imageLoaderText").childNodes[1].innerHTML=e},x=function(){document.getElementById("controlBarLoader").style.display="none",document.getElementById("controlBar").style.display="block"},k=function(){document.getElementById("controlBarLoader").style.display="block",document.getElementById("controlBar").style.display="none"},D=function(){g=F().showstatus,document.getElementById("currentStatus").style.display="true"==g?"block":"none",document.getElementById("contentBox").style.display="block",document.getElementById("imageLoader").style.display="none",document.getElementById("errorDisplay").style.display="none"},R=function(){document.getElementById("contentBox").style.display="none",document.getElementById("currentStatus").style.display="none",document.getElementById("imageLoader").style.display="none",document.getElementById("errorDisplay").style.display="none"},N=function(){document.getElementById("imageLoader").style.display="none",document.getElementById("contentBox").style.display="none",document.getElementById("controlBar").style.display="none",document.getElementById("controlBarLoader").style.display="none",document.getElementById("currentStatus").style.display="none",document.getElementById("errorDisplay").style.display="block"},F=function(e){var t=e?e.split("?")[1]:window.location.search.slice(1),n={};if(t)for(var r=(t=t.split("#")[0]).split("&"),o=0;o<r.length;o++){var a=r[o].split("="),s=a[0],i=void 0===a[1]||a[1];if(s=s.toLowerCase(),"string"==typeof i&&(i=i.toLowerCase()),s.match(/\[(\d+)?\]$/)){var l=s.replace(/\[(\d+)?\]/,"");if(n[l]||(n[l]=[]),s.match(/\[\d+\]$/)){var d=/\[(\d+)\]/.exec(s)[1];n[l][d]=i}else n[l].push(i)}else n[s]?n[s]&&"string"==typeof n[s]?(n[s]=[n[s]],n[s].push(i)):n[s].push(i):n[s]=i}return n},_=function(){R(),a=[],m=0,document.getElementById("currentStatus").innerHTML="",document.getElementById("rainradarSequence").innerHTML="",k(),t=void 0,document.getElementById("trackBackgroun
1d").remove(),I(s+"index.json").then((function(e){w(e)})),setTimeout((function(){b(),L()}),200),clearInterval(c)},H=function(){u=Number(p),setTimeout((function(){D()}),1e3),c=setInterval((function(){P()}),1e3)},M=function(){clearInterval(c)},P=function(){null!==document.getElementById("counter-refresher")?u>=0?(document.getElementById("counter-refresher").innerHTML="Dieser Inhalt wird automatisch aktualisiert in "+q(u)+" Min.",-1==(u-=1)&&(R(),document.getElementById("contentBox").style.display="none",document.getElementById("imageLoader").style.display="block",document.getElementById("imageLoaderText").innerHTML="<div style='margin-bottom: 10px; font-family: TheSansC5, sans-serif;'>Lade Regenradar für Deutschland...</div><div class=\"loaderImage\"></div>")):(t.stopPlay(),_(),H()):clearInterval(c)},q=function(e){return new Date(1e3*e).toISOString().substr(14,5)};"false"==E?(b(),t.createTrackOutput(),"true"==F().liveupdate&&(function(e){var t=document.getElementById("refreshingStatus"),n=document.createElement("div");n.id="counter-refresher",n.style.backgroundColor="#006dc1",n.style.color="#fff",n.style.fontSize="12px",n.style.fontFamily="TheSansC5, sans-serif;",n.style.padding="8px",n.style.borderRadius="4px",t.style.position="absolute",document.getElementById("overlay-refresher")?(t.removeChild(n),M()):(t.appendChild(n),H()),document.getElementById("counter-refresher").style.display="true"==e?"block":"none"}(F().showcountdown),F().intervall&&(p=F().intervall)),I(s+"index.json").then((function(e){y?(N(),k(),R()):(w(e),L())}))):(b(),t.createTrackOutput(),L())}}}]);

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.