paulrouget / dzslides

DZSlides is a one-file HTML template to build slides in HTML5 and CSS3.
http://paulrouget.com/dzslides
934 stars 255 forks source link

Display next slide ID as END instead of -1.0 #80

Closed mathjazz closed 12 years ago

mathjazz commented 12 years ago

Currently, onstage.html displays the last slide number as -1.0.

This is a fix which will display END instead of -1.0 as the last slide's number.

hsablonniere commented 12 years ago

Thanks. I'm wondering if a Number comparison wouldn't be better than the minus - detection ?

Something like this : $("#nextslideidx").innerHTML = +argv[1] < 0 ? "END" : argv[1];

mathjazz commented 12 years ago

I agree, your solution looks more elegant.

hsablonniere commented 12 years ago

Thanks. If you feel like keeping my solution. Feel free to update (ammend) your commit, I'll merge it right away...

mathjazz commented 12 years ago

Done.