Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Created March 1, 2013 15:35
Show Gist options
  • Save elijahmanor/5065434 to your computer and use it in GitHub Desktop.
Save elijahmanor/5065434 to your computer and use it in GitHub Desktop.
JavaScript Alarm Clock
setInterval( 86400000, function () {
var day = new Date().getDay();
if ( day === 0 || day === 6 ) {
return;
}
alert( "Wake up!" );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment