jahresbericht2018/assets/js/pannellum.js

1 line
34 KiB
JavaScript
Raw Permalink Normal View History

2024-01-12 13:54:37 +00:00
"use strict";window.pannellum=function(e,t,n){function a(a,o){var i,r,s,l,h,c,d,u,p,f=this,m=!1,v=Date.now(),y=0,g=0,w=-1,b=0,P=0,M=new Array(10),x=!1,E=!1,L=!1,C={yaw:0,pitch:0,hfov:0},k=!1,I=!1,z=0,R=0,O={},S={},H=[],D=!1,T=!1,N={hfov:100,minHfov:50,multiResMinHfov:!1,maxHfov:120,pitch:0,minPitch:n,maxPitch:n,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:n,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,dynamicUpdate:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],avoidShowingBackground:!1,animationTimingFunction:function(e){return e<.5?2*e*e:(4-2*e)*e-1},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189],friction:.15,strings:{loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."}};(a="string"==typeof a?t.getElementById(a):a).classList.add("pnlm-container"),a.tabIndex=0;var F=t.createElement("div");F.className="pnlm-ui",a.appendChild(F);var A=t.createElement("div");A.className="pnlm-render-container",a.appendChild(A);var Y=t.createElement("div");Y.className="pnlm-dragfix",F.appendChild(Y);var W=t.createElement("span");W.className="pnlm-about-msg",W.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a>',F.appendChild(W),Y.addEventListener("contextmenu",function e(t){var n=V(t);W.style.left=n.x+"px";W.style.top=n.y+"px";clearTimeout(e.t1);clearTimeout(e.t2);W.style.display="block";W.style.opacity=1;e.t1=setTimeout(function(){W.style.opacity=0},2e3);e.t2=setTimeout(function(){W.style.display="none"},2500);t.preventDefault()});var B={},q=t.createElement("div");q.className="pnlm-sprite pnlm-hot-spot-debug-indicator",F.appendChild(q),B.container=t.createElement("div"),B.container.className="pnlm-panorama-info",B.title=t.createElement("div"),B.title.className="pnlm-title-box",B.container.appendChild(B.title),B.author=t.createElement("div"),B.author.className="pnlm-author-box",B.container.appendChild(B.author),F.appendChild(B.container),B.load={},B.load.box=t.createElement("div"),B.load.box.className="pnlm-load-box",B.load.boxp=t.createElement("p"),B.load.box.appendChild(B.load.boxp),B.load.lbox=t.createElement("div"),B.load.lbox.className="pnlm-lbox",B.load.lbox.innerHTML='<div class="pnlm-loading"></div>',B.load.box.appendChild(B.load.lbox),B.load.lbar=t.createElement("div"),B.load.lbar.className="pnlm-lbar",B.load.lbarFill=t.createElement("div"),B.load.lbarFill.className="pnlm-lbar-fill",B.load.lbar.appendChild(B.load.lbarFill),B.load.box.appendChild(B.load.lbar),B.load.msg=t.createElement("p"),B.load.msg.className="pnlm-lmsg",B.load.box.appendChild(B.load.msg),F.appendChild(B.load.box),B.errorMsg=t.createElement("div"),B.errorMsg.className="pnlm-error-msg pnlm-info-box",F.appendChild(B.errorMsg);var G={};G.container=t.createElement("div"),G.container.className="pnlm-controls-container",F.appendChild(G.container),G.load=t.createElement("div"),G.load.className="pnlm-load-button",G.load.addEventListener("click",function(){Ie(),De()}),F.appendChild(G.load),G.zoom=t.createElement("div"),G.zoom.className="pnlm-zoom-controls pnlm-controls",G.zoomIn=t.createElement("div"),G.zoom