[solved] How to Connect Krpano with Bootstrap

  • Hi, from this post RE: Is it possible for html layer to contain ALL the functionality of a WEB page? everything seems to indicate that Bootstrap is a good solution to complement options that krpano does not have yet.

    Please indexofrefraction or any advanced user: What is the correct way to connect krpano with Bootstrap? i.e connect HTML, CSS and JS

    It may seem obvious but I can't find any precise information in this forum or on the internet. Some example and instructions would be very helpful *thumbsup*

    Thanks!!!!

  • Fernando

    see code example & link(s) in the other thread. you'd use the javascript interface to control krpano.

    bootstrap is loaded in the main html, check the bootstrap documentation how to do that.

    you basically add your bootstrap gui together with the krpano div under a grouping div

    and set that in display.customFullscreenElement to have it also work in fullscreen mode.

  • Thanks very much indexofrefraction solved!

    Results:

    Demo Menu Lateral

    Codes (adapted from krpano's popup included example):

    index.html:

    tour.xml:

    Code
    <krpano debugmode="true" title="" onstart="">
    
    <preview type="grid(cube,32,32,512,0xCCCCCC,0xFFFFFF,0x999999);" />
    <include url="popups.xml" />
    
    </krpano>

    popups.xml:

  • Fernando July 3, 2024 at 3:15 PM

    Changed the title of the thread from “How to Connect Krpano with Bootstrap” to “[solved] How to Connect Krpano with Bootstrap”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!