mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	save every 5 seconds instead
This commit is contained in:
		
							parent
							
								
									1e3fd63d56
								
							
						
					
					
						commit
						e5a6092a25
					
				| @ -96,10 +96,6 @@ function fadeInElements() { | ||||
|   }); | ||||
| } | ||||
| 
 | ||||
| window.addEventListener('scroll', fadeInElements); | ||||
| document.addEventListener('fullscreenchange', fadeInElements); | ||||
| setInterval(fadeInElements, 100); | ||||
|   | ||||
| function jumpToTime(e) { | ||||
|   e.preventDefault(); | ||||
|    | ||||
| @ -188,7 +184,7 @@ function resumeProgress() { | ||||
| } | ||||
| 
 | ||||
| video.addEventListener('timeupdate', () => { | ||||
|   if (Math.floor(video.currentTime) % 1 === 0) { | ||||
|   if (Math.floor(video.currentTime) % 5 === 0) { | ||||
|     saveProgress(); | ||||
|   } | ||||
| }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley ////
						Ashley ////