Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page counter when using openOnStart #72

Closed
jstranger opened this issue Mar 21, 2015 · 6 comments
Closed

page counter when using openOnStart #72

jstranger opened this issue Mar 21, 2015 · 6 comments

Comments

@jstranger
Copy link

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
Copy link
Owner

Kris-B commented Mar 23, 2015

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

@jstranger
Copy link
Author

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 #72 (comment) . https://github.com/notifications/beacon/ADV04nbv_zj1XECXcOLakA7jP8FD_ORsks5n4IehgaJpZM4DydW_.gif

@Kris-B
Copy link
Owner

Kris-B commented Mar 24, 2015

the attachment has been lost...

@jstranger
Copy link
Author

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 #72 (comment) .Image removed by sender.

@jstranger
Copy link
Author

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 #72 (comment) . https://github.com/notifications/beacon/ADV04qsx3PvAk2526fyjIAO6Y5rBiGRCks5n4VJPgaJpZM4DydW_.gif

@Kris-B
Copy link
Owner

Kris-B commented Apr 21, 2015

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" />

@Kris-B Kris-B closed this as completed Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants