Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{html}
<script type="text/javascript">
var date = new Date("October 4, 2015"); 
var now = new Date(); 
var diff = date.getTime() - now.getTime(); 
var days = Math.floor(diff / (1000 * 60 * 60 * 24)) + 1;
var plural = (days == 1) ? "" : "s";
if (days > 0) {
    document.write("<h4>Only " + days + " day" + plural + " till daylight savings!</h4>"); 
} else if (days > -20) {
    document.write("<h4>Daylight savings is here!</h4>");    
}
</script>
{html}

Image Added    Image Added

Recently Updated Forum Posts

...