rbDomain = "https://www.rundblick.at"; var containerid = 1499; var panoid = 11015; var configid = 0; var hscat = "1"; var fovmin = "20"; var fovmax = "130"; var blink = ""; var showlogo = ""; var temp = ""; var mpparam = ""; var viewermap = ""; var autorotate = "1"; var autorotatetime = "5"; var thumbstripe = "0"; var loaddelay = "0"; //console.log(mpparam); //krpanoTarget = "rbPanoPlayer"; //alert(krpanoTarget); //alert(hscat); var jsDom = document.location.hostname; if (typeof containerid == 'undefined') { containerid = false; } if (typeof panoid == 'undefined') { panoid = false; } if (typeof configid == 'undefined') { configid = false; } if (typeof hscat == 'undefined') { hscat = false; } if (typeof playerNr == 'undefined') { playerNr = 0; playerArr = ["containerid="+containerid+"&panoid="+panoid+"&configid="+configid+"&hscat="+hscat+"&jsDom="+jsDom+"&fovmin="+fovmin+"&fovmax="+fovmax+"&blink="+blink+"&showlogo="+showlogo+"&temp="+temp+"&thumbstripe="+thumbstripe+"&mpparam="+mpparam+"&viewermap="+viewermap+"&autorotate="+autorotate+"&autorotatetime="+autorotatetime]; } else { playerNr = playerNr + 1; playerArr.push("containerid="+containerid+"&panoid="+panoid+"&configid="+configid+"&hscat="+hscat+"&jsDom="+jsDom+"&fovmin="+fovmin+"&fovmax="+fovmax+"&blink="+blink+"&showlogo="+showlogo+"&temp="+temp+"&thumbstripe="+thumbstripe+"&mpparam="+mpparam+"&viewermap="+viewermap+"&autorotate="+autorotate+"&autorotatetime="+autorotatetime); } if(playerNr==0){ //inlcude jquery /*if (!window.jQuery) { var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.src = rbDomain+'/js/jquery/jquery-3.2.1.min.js'; document.getElementsByTagName('head')[0].appendChild(jq); }*/ //include krpano player if(typeof krpanoLoaded === "undefined"){ var kp = document.createElement('script'); kp.type = 'text/javascript'; kp.src = rbDomain+'/templates/rundblick-2016.at/viewer/v1/krpano.js'; document.getElementsByTagName('head')[0].appendChild(kp);var krpanoLoaded = true; //document.getElementsByTagName('head')[0].appendChild(kp); //var krpanoLoaded = true; //$.getScript( rbDomain+'/templates/rundblick-2016.at/viewer/v1/v1/krpano.js', function( data, textStatus, jqxhr ) { }); } var rb_u="//stats.futureweb.at/"; rb_tracker_id=1015; function addMatomo(){ if(typeof window.Matomo !== 'undefined' && window.Matomo instanceof Object){ var rb_viewer_tracker = Matomo.getTracker(rb_u+'matomo.php', rb_tracker_id); rb_viewer_tracker.setDocumentTitle(document.domain + "/viewer/" + document.title); rb_viewer_tracker.trackPageView(); rb_viewer_tracker.enableHeartBeatTimer(); rb_viewer_tracker.enableLinkTracking(); } else { (function() { var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=rb_u+'matomo.js'; s.parentNode.insertBefore(g,s); viewerInitCalls = function () { var rb_viewer_tracker = Matomo.getTracker(rb_u+'matomo.php', rb_tracker_id); rb_viewer_tracker.setDocumentTitle(document.domain + "/viewer/" + document.title); rb_viewer_tracker.trackPageView(); rb_viewer_tracker.enableHeartBeatTimer(); rb_viewer_tracker.enableLinkTracking(); window.viewerTrackerLoaded = true; } window.piwikAsyncInit = function () { if(typeof window.viewerTrackerLoaded === "undefined" && typeof viewerInitCalls !== "undefined")viewerInitCalls(); if(typeof window.mapTrackerLoaded === 'undefined' && typeof mapInitCalls !== "undefined")mapInitCalls(); }; })(); } } addLoadEvent(addMatomo); function trackView(title, type){ var rb_viewer_tracker = Matomo.getTracker(rb_u+'matomo.php', rb_tracker_id); rb_viewer_tracker.setDocumentTitle(document.domain + "/"+type+"/" + title); rb_viewer_tracker.trackPageView(); } function embedpanoDelayed(playerAddItem){ embedpano({xml:rbDomain+"/templates/rundblick-2016.at/viewer/v1/viewer.xml.php?"+playerAddItem, target:krpanoTarget, html5:"prefer", mobilescale:1.0, passQueryParameters:true, initvars:{rbDomain:rbDomain}}); } function initPano(){ playerArr.map( function(playerAddItem, i) { if(i>0){ krpanoTarget= 'rbPanoPlayer'+i; } else { krpanoTarget= 'rbPanoPlayer'; } var playerDiv = document.getElementById(krpanoTarget); //console.log("test: "+playerDiv.clientHeight); if(playerDiv.clientHeight<=25){ playerDiv.style.height = 500+"px"; } if(playerDiv.getElementsByTagName("div").length==0) { embedpano({xml:rbDomain+"/templates/rundblick-2016.at/viewer/v1/viewer.xml.php?"+playerAddItem, target:krpanoTarget, html5:"prefer", mobilescale:1.0, passQueryParameters:true, initvars:{rbDomain:rbDomain}}); //embedpano({xml:rbDomain+"/templates/rundblick-2016.at/viewer/v1/viewer.xml.php?"+playerAddItem, target:krpanoTarget, html5:"prefer", mobilescale:1.0, passQueryParameters:true, initvars:{rbDomain:rbDomain}}); } }) } function krpano_is_ready() { //alert("krpano is loaded and ready"); //var krpano = document.getElementById("rbPanoPlayer"); } } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(initPano);//window.onload = initPano;