Addition :-)
-
Hi There!
Love your countdown, it’s adorable. Recommend it to all of my clients as well. π I am a web developer, Perl programmer, and hacker myself, so I wanted to just add a tiny little edit I always make to the javascript:
In santas-christmas-countdown/scripts/scriptfile.js, I simply changed this code block:
if (daysLeft <= 0 ) { document.write("<br><br>Merry<br>Christmas!") } else { document.write( ""+daysLeft+" days <BR> til Christmas!");}}
to
if (daysLeft <= 0 ) { document.write("<br><br>Merry<br>Christmas!") } else if (daysLeft == 1 ) { document.write( ""+daysLeft+" day <BR> til Christmas!");} else { document.write( ""+daysLeft+" days <BR> til Christmas!");}}
Just to ensure on the last day before the count ends, instead of “1 days left” it will say “1 day left”. π
Thank you for the awesome plugin. π
Nicole Edwards
Rockware IT
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Addition :-)’ is closed to new replies.