Last active
March 3, 2016 11:50
-
-
Save DmitryMiroshnichenko/0c91491d8097b8a0ca7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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