mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
added small fix for interval
This commit is contained in:
@@ -204,6 +204,7 @@ function startNextSong()
|
||||
function getTime()
|
||||
{
|
||||
console.log("utenfor if test" + wasPaused);
|
||||
if(ytplayer.getCurrentTime() > 2 && ytplayer.getPlayerState() == 1) wasPaused = false;
|
||||
if(!wasPaused)
|
||||
{
|
||||
console.log("sjekker om brukeren spolte");
|
||||
@@ -324,4 +325,4 @@ function setBGimage(id){
|
||||
$("#bgimage").css("background-image", "url(http://img.youtube.com/vi/"+id+"/0.jpg)");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user