Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
439 stars 101 forks source link

page counter when using openOnStart #72

Closed jstranger closed 9 years ago

jstranger commented 9 years ago

I have been working with openOnStart as I need a simple link from with a web page to open and run a slideshow without any need for thumbnails. This now works (at least when I specify albumID and imageID), but it appears to cause the page counter to remain fixed as '1 of n'.

HTML is as follows:

<a id="startlink" href="javascript:void(0)" style="margin-bottom: 40px;">run slide show</a>
<div id="gallery">
        <a href=... data-ngalbumid="artist" data-ngid="1" data-ngdesc=..

Script is as follows:

    $(document).ready(function () {
        $("#startlink").click(function (e) {
            $("#gallery").nanoGallery({
                openOnStart: "artist/1",
                slideshowAutoStart: true,
                colorSchemeViewer: "dark",
                viewerToolbar: {standard: "previousButton, pageCounter, nextButton, playPauseButton, label"},
            });
        });
    });
Kris-B commented 9 years ago

I could not reproduce this issue. Can you provide the full code?

jstranger commented 9 years ago

Hi Christophe – many thanks for your reply. The attached standalone HTML page reproduces the issue. Presumably I am missing something.

Regards

Jon

From: Christophe Brisbois [mailto:notifications@github.com] Sent: 23 March 2015 22:14 To: Kris-B/nanoGALLERY Cc: jstranger Subject: Re: [nanoGALLERY] page counter when using openOnStart (#72)

I could not reproduce this issue. Can you provide the full code?

— Reply to this email directly or view it on GitHub https://github.com/Kris-B/nanoGALLERY/issues/72#issuecomment-85227032 . https://github.com/notifications/beacon/ADV04nbv_zj1XECXcOLakA7jP8FD_ORsks5n4IehgaJpZM4DydW_.gif

Kris-B commented 9 years ago

the attachment has been lost...

jstranger commented 9 years ago

That is odd – it is certainly attached to the message in my Sent mail – perhaps GitHub is removing it? Trying once more.

Jon

From: Christophe Brisbois [mailto:notifications@github.com] Sent: 24 March 2015 12:39 To: Kris-B/nanoGALLERY Cc: jstranger Subject: Re: [nanoGALLERY] page counter when using openOnStart (#72)

the attachment has been lost...

— Reply to this email directly or view it on GitHub https://github.com/Kris-B/nanoGALLERY/issues/72#issuecomment-85481558 .Image removed by sender.

jstranger commented 9 years ago

I can’t figure out how to get GitHub to let me send an attachment, so have put the page up at http://lucknow.homeserver.com/test/slideshowtest.html

Jon

From: Christophe Brisbois [mailto:notifications@github.com] Sent: 24 March 2015 12:39 To: Kris-B/nanoGALLERY Cc: jstranger Subject: Re: [nanoGALLERY] page counter when using openOnStart (#72)

the attachment has been lost...

— Reply to this email directly or view it on GitHub https://github.com/Kris-B/nanoGALLERY/issues/72#issuecomment-85481558 . https://github.com/notifications/beacon/ADV04qsx3PvAk2526fyjIAO6Y5rBiGRCks5n4VJPgaJpZM4DydW_.gif

Kris-B commented 9 years ago

Hi Jon,

If you want to display 'artist/1', you also need to to define the album 'artist'. You can do it by adding an element like this example: <a href="http://commandostore.net/art/artworks/890.jpg" data-ngalbumid="0" data-ngid="artist" data-ngkind="album" data-ngdesc="artist" />