Open AhoyIndieMedia opened 2 years ago
Javascript Arrays:
https://www.w3schools.com/js/js_arrays.asp
I think a solution is going to have to be some sort of array feature
day = new Date()
hr = day.getUTCHours()
if ((hr == 2) || (hr == 3) || (hr == 4))
window.location= (location.href="http://www.opfradio.co.uk/requests000f.html")
if ((hr == 5) || (hr == 6) || (hr == 7))
window.location= (location.href="http://www.opfradio.co.uk/requests000f.html")
if ((hr == 8) || (hr == 9))
window.location= (location.href="http://www.opfradio.co.uk/requests000f.html")
if ((hr == 10) || (hr == 11))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 12) || (hr == 13))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 14) || (hr == 15))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 16) || (hr == 17))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 18) || (hr == 19))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 20) || (hr == 21))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 22) || (hr == 23))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
if ((hr == 00) || (hr == 1))
window.location= (location.href="http://www.opfradio.co.uk/requests000.html")
</script>```
Delay that works
The Ahoy Super Schedule Overview The idea is to create a seamless TV experience - through clever switches of jwplayer src code.
Think of it like a jukebox : At 7pm - it will show XYZ playlist
24 hours a day / 3 hours = 8
8 Blocks
Block 1 = 7 Am to 10 am Block 2 = 10 AM to 1 PM Block 3 = 1PM to 4PM Block 4 = 4PM to 7PM Block 5 = 7PM to 10PM Block 6 = 10PM to 1AM Block 7 = 1AM to 4AM Block 8 = 4AM to 7AM
Steps:
Ahoy Code Blocks:
https://docs.google.com/spreadsheets/d/1r-3Wmh362BMWujtkRL3VlUgfbx2-1GD3jp4rcMDNMP0/edit?usp=sharing