Support » Plugin: Christmas Countdown Widget » 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

    http://wordpress.org/plugins/santas-christmas-countdown/

Viewing 1 replies (of 1 total)
  • Plugin Author monkeymays

    (@monkeymays)

    Hey Nicole!

    Thanks so much for your edit to the script 🙂 I used it!! I’ve updated the countdown… now it’s perfect!

    You ROCK! =D

    Thanks, Monica

Viewing 1 replies (of 1 total)
  • The topic ‘Addition :-)’ is closed to new replies.