mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add cool stuff :3
This commit is contained in:
		
							parent
							
								
									b25841a667
								
							
						
					
					
						commit
						feb3242638
					
				| @ -2189,15 +2189,21 @@ const drawPause = () => { | ||||
| } | ||||
| 
 | ||||
| const init = () => { | ||||
|   // fixes a issue where firefox/chromium fails to load the ambinet mode and doesnt load it. - please dont remove this line lmao | ||||
|   video.pause();video.play();  | ||||
|   // Fixes an issue where Firefox/Chromium fails to load ambient mode and doesn't load it. | ||||
|   video.pause(); video.play();  | ||||
|   // DO NOT REMOVE | ||||
| 
 | ||||
|   // Check if ambient mode should load | ||||
|   if (numWorkers < 2 || window.matchMedia("(prefers-reduced-motion: reduce)").matches) { | ||||
|     return;  | ||||
|   } | ||||
| 
 | ||||
|   // DO NOT REMOVE  | ||||
|   AMvideo.addEventListener("play", drawStart, false) | ||||
|   AMvideo.addEventListener("pause", drawPause, false) | ||||
|   AMvideo.addEventListener("ended", drawPause, false) | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| const cleanup = () => { | ||||
|   AMvideo.removeEventListener("play", drawStart) | ||||
|   AMvideo.removeEventListener("pause", drawPause) | ||||
| @ -2261,7 +2267,7 @@ window.addEventListener("unload", cleanup) | ||||
| <!-- BUNDLE VERSION 02.09.2024 --> | ||||
| <!-- BUNDLE VERSION 02.09.2024 --> | ||||
| <!-- BUNDLE VERSION 02.09.2024 --> | ||||
| <!-- BUNDLE --><script src="/static/app.bundle.js?version=02.09.2024&bundledate=020924_0143ab93_videojs8156605" > </script><!-- BUNDLE --> | ||||
| <!-- BUNDLE --><script src="/static/app.bundle.js?version=02.09.2024&bundledate=020924_0143ab93_videojs81563605" > </script><!-- BUNDLE --> | ||||
| <!-- BUNDLE VERSION 02.09.2024 --> | ||||
| <!-- BUNDLE VERSION 02.09.2024 --> | ||||
| <!-- BUNDLE VERSION 02.09.2024 --> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ashley
						ashley