mirror of https://gitlab.com/gpvkt/twitchtts.git
Added darkmode
This commit is contained in:
parent
25769445be
commit
487387a3cb
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