mirror of
				https://gitlab.com/gpvkt/twitchtts.git
				synced 2025-10-31 00:57:35 +01:00 
			
		
		
		
	Added darkmode
This commit is contained in:
		
							parent
							
								
									25769445be
								
							
						
					
					
						commit
						487387a3cb
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								tts.html
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								tts.html
									
										
									
									
									
								
							|  | @ -32,4 +32,16 @@ | |||
|     </div> | ||||
|   </body> | ||||
|   <script src="./tts.js"></script> | ||||
|   <script> | ||||
|     $(document).ready ( function(){ | ||||
|       if (window.matchMedia) { | ||||
|         if(window.matchMedia('(prefers-color-scheme: dark)').matches){ | ||||
|           $('body').addClass('bg-dark'); | ||||
|           $('p').addClass('text-light'); | ||||
|           $('select').addClass('text-light'); | ||||
|           $('span').addClass('text-light'); | ||||
|         } | ||||
|       } | ||||
|     }); | ||||
|     </script> | ||||
| </html> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue