added small fix for interval

This commit is contained in:
KasperRT
2014-12-09 12:57:03 +01:00
parent 8fb218e06b
commit db1512686b

View File

@@ -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)");
}
}
}