Fork me on GitHub

Some code from Erin C.

by Erin Carter

28 Aug 2013

function myFunction()
{
var x="";
var time=new Date().getHours();
if (time<20)
  {
  x="Good day";
  }
else
  {
  x="Good evening";
  }
document.getElementById("demo").innerHTML=x;
}
Erin is a second-year MSIS student. She works at the SILS Help Desk, stop on by! Find Erin Carter on Twitter, Github, and on the web.
comments powered by Disqus