mirror of https://gitlab.com/gpvkt/twitchtts.git
Added darkmode
This commit is contained in:
parent
ab0f17505a
commit
3fe6c81943
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…
Reference in New Issue