index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="icon" href="/favicon.svg" type="image/svg+xml">
  7. <title></title>
  8. <meta name="description" content="Opinionated Vite Starter Template">
  9. <!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script> -->
  10. </head>
  11. <body class="font-sans dark:text-white dark:bg-hex-121212">
  12. <div id="app"></div>
  13. <noscript>
  14. <div>Please enable JavaScript to use this application.</div>
  15. </noscript>
  16. <script>(function () {
  17. // var vConsole = new window.VConsole();
  18. // const angent = navigator.userAgent
  19. // const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
  20. // const setting = localStorage.getItem('color-schema') || 'auto'
  21. // if (setting === 'dark' || (prefersDark && setting !== 'light'))
  22. // document.documentElement.classList.toggle('dark', true)
  23. document.getElementsByTagName('html')[0].style.fontSize = `${(document.documentElement.clientWidth / 750) * 100}px`
  24. window.onresize = function () {
  25. document.getElementsByTagName('html')[0].style.fontSize = `${(document.documentElement.clientWidth / 750) * 100}px`
  26. }
  27. })()
  28. </script>
  29. <script src="/config.js"></script>
  30. <script type="module" src="/src/main.ts"></script>
  31. </body>
  32. </html>