Added DOCTYPE

This commit is contained in:
gpkvt 2022-08-25 22:18:20 +02:00
parent 135fe13a87
commit 0eac8a269e
1 changed files with 16 additions and 15 deletions

View File

@ -1,4 +1,5 @@
<html lang="de"> <!DOCTYPE html>
<html lang="en">
<head> <head>
<link href="./bootstrap.min.css" rel="stylesheet" /> <link href="./bootstrap.min.css" rel="stylesheet" />
<title>TTS</title> <title>TTS</title>
@ -30,19 +31,19 @@
<button id="resume" class="btn btn-info mt-4 me-2">Resume</button> <button id="resume" class="btn btn-info mt-4 me-2">Resume</button>
<button id="cancel" class="btn btn-danger mt-4 me-2">Cancel</button> <button id="cancel" class="btn btn-danger mt-4 me-2">Cancel</button>
</div> </div>
</body> <script src="./tts.js"></script>
<script src="./tts.js"></script> <script>
<script> $(document).ready (function(){
$(document).ready ( function(){ if (window.matchMedia) {
if (window.matchMedia) { if(window.matchMedia('(prefers-color-scheme: dark)').matches){
if(window.matchMedia('(prefers-color-scheme: dark)').matches){ $('body').addClass('bg-dark');
$('body').addClass('bg-dark'); $('p').addClass('text-light');
$('p').addClass('text-light'); $('select').addClass('text-light');
$('select').addClass('text-light'); $('option').addClass('bg-dark');
$('option').addClass('bg-dark'); $('span').addClass('text-light');
$('span').addClass('text-light'); }
} }
} });
}); </script>
</script> </body>
</html> </html>