I am receiving a syntax error with unexpected token < at line 14 when i try to run this script in my browser. What i am trying to do is open my classes 5 minutes before class and still open when ran all the way up to 5 minutes before the next class.
<script>
//Current time
var date = new Date();
var time = date.getTime();
//Time checker
if(time >= 7:55 && < 8:55){
window.open('https://classroom.google.com/c/MTIyMjc3NTE0MzEw');
}
if(time >= 8:55 && < 9:55){
window.open('https://classroom.google.com/c/MTE1MjA4MzM5MDgz');
}
if(time >= 9:55 && < 10:55){
window.open('https://classroom.google.com/c/MTIyMjk4MzAxMjYx');
}
if(time >= 10:55 && < 11:55){
window.open('https://classroom.google.com/c/MTIzMjMyNzU4ODk2');
}
if(time >= 11:55 && < 12:55){
window.open('https://classroom.google.com/c/MTIzMTkzMjU1MjAx');
}
if(time >= 12:55 && < 13:55){
window.open('https://classroom.google.com/c/MTIyMjk4MzAxMjQx');
}
if(time >= 13:55 && < 14:55){
window.open('https://classroom.google.com/c/MTIyNDk3Mjk5NDQ2');
}
if(time >= 14:55 && <= 15:00){
window.open('https://classroom.google.com/c/MTIyNjk1NTQxMzYw');
}
</script>
Aucun commentaire:
Enregistrer un commentaire