Added darkmode

This commit is contained in:
gpkvt 2022-08-23 11:12:48 +02:00
parent 25769445be
commit 487387a3cb
1 changed files with 12 additions and 0 deletions

View File

@ -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>