mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed small bug with timer of player
This commit is contained in:
		| @@ -158,6 +158,8 @@ function durationSetter() | ||||
| 	dMinutes = Math.floor(duration / 60); | ||||
| 	dSeconds = duration - dMinutes * 60; | ||||
| 	currDurr = ytplayer.getCurrentTime(); | ||||
| 	if(currDurr > duration) | ||||
| 		currDurr = duration; | ||||
| 	minutes = Math.floor(currDurr / 60); | ||||
| 	seconds = currDurr - minutes * 60; | ||||
| 	document.getElementById("duration").innerHTML = pad(minutes)+":"+pad(seconds)+" <span id='dash'>/</span> "+pad(dMinutes)+":"+pad(dSeconds); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user