Anchor tag to Fullscreen

hello's Avatar

hello

30 Aug, 2012 04:07 AM

Hi Dmitry,

I'm wondering if there's a way to launch an image from the slideshow into fullscreen from an anchor tag:
<a href="fullImage">Enter Fullscreen</a>

Essentially what you have with deep-linking, but into FS.

Thank you,

Dimitar

  1. Support Staff 1 Posted by Dmitry Semenov on 30 Aug, 2012 06:35 AM

    Dmitry Semenov's Avatar

    Hi,

    Yes, there is public API for this.

    <a href="#" onclick="jQuery('.royalSlider').royalSlider('enterFullscreen'); return  false;">Enter Fullscreen</a>
    

    Dmitry

  2. 2 Posted by hello on 30 Aug, 2012 01:37 PM

    hello's Avatar

    Perfect.
    Thank you!

  3. hello closed this discussion on 30 Aug, 2012 01:37 PM.

  4. hello re-opened this discussion on 30 Aug, 2012 02:22 PM

  5. 3 Posted by hello on 30 Aug, 2012 02:25 PM

    hello's Avatar

    Would it be possible to take it a step further and deep-link to that specific image?
    As in <a href="#image-3">Full Screen Image 3</a>

  6. 4 Posted by hello on 30 Aug, 2012 05:59 PM

    hello's Avatar

    For anybody else interested, this seems to work, but I'm not sure how clean of a solution is:

    var sliderInstance = $('.royalSlider').royalSlider({
        //options
        fullscreen: {
            enabled: true
        }
    }).data('royalSlider');
    $(".slide3").click(function () {
        sliderInstance.goTo(2);
        sliderInstance.enterFullscreen();
    });
    

    HTML
    <a class="slide3" href="#">Slide 3 Fullscreen</a>

  7. Support Staff 5 Posted by Dmitry Semenov on 30 Aug, 2012 09:25 PM

    Dmitry Semenov's Avatar

    Thanks for sharing, this solution is clean enough.

    Dmitry

  8. Dmitry Semenov closed this discussion on 30 Aug, 2012 09:25 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac