1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if (krpano) {
// nuke any existing krpano plugins, data, actions, or layers
krpano.call("loop(plugin.count GT 0, removeplugin(0));");
krpano.call("removeplugin('video');");
krpano.call("set(data.count,0);");
krpano.call("set(action.count,0);");
krpano.call("set(layer.count,0);");
}
removepano('pano');
removepano('panoID');
$('#main').after("<div id='pano' style='width:100%;height:100%;'></div>");
} catch(err){
console.log(err);
}
embedpano({ xml:null, mwheel: false, target:'pano', html5:'prefer', mobilescale:1.0, passQueryParameters:true, id:'panoID', initvars:{'tourPath':tourPath}$
krpano = document.getElementById("panoID");
krpano.call("loadpanoscene('https://" + document.location.hostname +"/loader.xml');");
|