You are not logged in.

Search results

Search results 1-3 of 3.

Friday, September 16th 2022, 4:17pm

Author: swalter

Integration into parcel bundler

This does not work. The javascript is not loaded correctly. Here is an example: index.html: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <html><body> <divid="app"></div> <scriptsrc="src/krpano.js"></script> <script> embedpano({ xml:"tour.xml", target:"pano", html5:"only", mobilescale:1.0, passQueryParameters:"startscene,startlookat" }); </script> <divid="krpano" style="width: 100%; height: 100%;"></div> <scriptsrc="src/index.js"></script> </body> index.js: Source code 1 2 3 4 5 6 7 8 9 10 imp...

Thursday, September 15th 2022, 9:44pm

Author: swalter

Integration into parcel bundler

Thanks for your reply. The problem with this method is that the krpano is then loaded in separately, so in the other scripts of my site I can not access the krpano object and its functions. I want to interactively switch on/off panoramas using different buttons than the ones offered in the viewer, for example.

Thursday, September 15th 2022, 6:18pm

Author: swalter

Integration into parcel bundler

Hello, I'm trying to embed the pano viewer into an existing project which is based on the parcel bundler. When i just load an additional script via the index.html, the embedpano function can not be found (Uncaught ReferenceError: embedpano is not defined). Does anyone know how to manage this? Any help is greatly appreciated! Sebastian