• Resolved reza4234

    (@reza4234)


    Hello, do not be tired
    Is it possible to link to the home button of the civic widget and go to a page of the site by tapping it, or put a button like the civic buttons but give it a site link?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Avirtum

    (@avirtum)

    Hello. Yes, you can redefine the button handler and write your own (use the js custom section), see the code below.

    var instance = this,
    $ = jQuery;
    
    function onHomeClick() {
       console.log('go to a web page or something else');
    }
    
    var $btn = $('<div>').addClass('ipnrm-btn ipnrm-home').on('click', onHomeClick);
    $('.ipnrm-btn.ipnrm-home').after($btn).remove();
    • This reply was modified 3 years, 11 months ago by Avirtum.
    Thread Starter reza4234

    (@reza4234)

    Where to replace the desired address???

    console.log(‘?????‘);

    Here?

    Plugin Author Avirtum

    (@avirtum)

    You can use this code to open the link in a new window instead of the console.log.

    window.open(“https://google.com&#8221;, “_blank”);

    • This reply was modified 3 years, 11 months ago by Avirtum.
    • This reply was modified 3 years, 11 months ago by Avirtum.
    • This reply was modified 3 years, 11 months ago by Avirtum.
    • This reply was modified 3 years, 11 months ago by Avirtum.
    Thread Starter reza4234

    (@reza4234)

    Is it possible to add a button?

    Plugin Author Avirtum

    (@avirtum)

    Yes, something like this inside the js custom section. We can add elements dynamic

    var instance = this,
    $ = jQuery;
    
    function onButtonClick(e) {
        var sceneId = $(this).data('scene-id'),
        plugin = $('.ipanorama').ipanorama('instance');
        
        sceneId && plugin && plugin.setScene({id:sceneId});
    }
    
    var $buttons = $('<div>').addClass('my-buttons');
    $button =$('<div>').addClass('my-button').attr({'data-scene-id':'scene01'}).text('Go Home');
    $button.on('click', onButtonClick);
    $buttons.append($button);
    
    instance.$container.append($buttons);
    • This reply was modified 3 years, 11 months ago by Avirtum.
    Thread Starter reza4234

    (@reza4234)

    HI.AGAIN
    It is possible to add a loading page before uploading panoramic images because the size of the photos is large and it takes a while to load
    Of course, the “Preload image” option is under the “special” category, but it does not help much

    Thread Starter reza4234

    (@reza4234)

    Previous issue with backgrounds resolved
    If possible, set up a button to share on social media and a button to show suggestions related to the panorama and transfer directly from one panorama to another.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Put the stata button to link to a page of the site or link the home button in th’ is closed to new replies.