At my work we have purchased a krpanoJS license. I copied krpanoiphone.license.js to the folder that contained the standard krpano swf (root of site). Using the following code I got it to work
var viewer = createPanoViewer({swf:"krpano.swf", xml:"global.xml", target:"viewer"}); if ( viewer.isHTML5possible() ) { viewer.useHTML5("always"); viewer.embed(); }
However, I have included several other JS files, that contain our code. I wanted the above code to be used inside the main.js script instead of embedding it into the index. Also I moved all krpano related files (swf, js's, licenses) into a /krpano folder. After getting messages of the krpanoJS not being available, I got that part to work indeed copying all files to the same folder and using the following code
var viewer = createPanoViewer({swf:"krpano/krpano.swf", xml:"global.xml", target:"viewer"});
if ( viewer.isHTML5possible() ) { viewer.useHTML5("always"); viewer.embed(); }
However I have not succeeded registering the viewer this way. I have tried adding license: krpanoiphone.js to the createPanoViewer init object, I have included swfkrano.js, krpanoiphone.js and krpanoiphone.license.js into my index to no avail. The krpano files are all still in the same folder. Also using the script debugger from safari I was able to find a krpanoreg node, that contained correct license. But still it is displaying the demo message.
Can someone please advise?