Skip to content

Instantly share code, notes, and snippets.

@DmitryMiroshnichenko
Last active March 3, 2016 11:50
Show Gist options
  • Save DmitryMiroshnichenko/0c91491d8097b8a0ca7a to your computer and use it in GitHub Desktop.
Save DmitryMiroshnichenko/0c91491d8097b8a0ca7a to your computer and use it in GitHub Desktop.
jQuery(document).ready(function(){
var currentDate = new Date();
var day = currentDate.getDay();
var hour = currentDate.getHours();
var targetURL = "http://pvdb.ru/live/";
if (day == 7 && hour >= 17 && hour < 19)
{
window.location.href = targetURL;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment