Gets the name of a number, even if it's stupidly big. Supersedes TheoryOfNekomata/number-name.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

102 行
2.2 KiB

  1. <!DOCTYPE html>
  2. <html lang="en-PH">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>Numerica</title>
  8. <style>
  9. :root {
  10. --color-bg: white;
  11. --color-fg: black;
  12. }
  13. :root {
  14. background-color: var(--color-bg);
  15. color: var(--color-fg);
  16. }
  17. body {
  18. margin: 0;
  19. font-size: 5vw;
  20. }
  21. form {
  22. display: block;
  23. width: 100vw;
  24. height: 100vh;
  25. text-align: center;
  26. }
  27. .locale {
  28. width: 100%;
  29. height: 5%;
  30. border: 0;
  31. padding: 0 2rem;
  32. margin: 0;
  33. text-align: inherit;
  34. font: inherit;
  35. font-size: 0.25em;
  36. display: grid;
  37. place-content: center;
  38. outline: 0;
  39. appearance: none;
  40. -webkit-appearance: none;
  41. -moz-appearance: none;
  42. background-color: var(--color-bg);
  43. color: var(--color-fg);
  44. border-radius: 0;
  45. box-sizing: border-box;
  46. }
  47. .input {
  48. width: 100%;
  49. height: 45%;
  50. border: 0;
  51. padding: 0 2rem;
  52. margin: 0;
  53. text-align: inherit;
  54. font: inherit;
  55. display: grid;
  56. place-content: center;
  57. outline: 0;
  58. background-color: inherit;
  59. color: inherit;
  60. border-radius: 0;
  61. box-sizing: border-box;
  62. resize: none;
  63. }
  64. .output {
  65. width: 100%;
  66. height: 50%;
  67. border: 0;
  68. padding: 0 2rem;
  69. margin: 0;
  70. text-align: inherit;
  71. font: inherit;
  72. display: grid;
  73. place-content: center;
  74. outline: 0;
  75. background-color: inherit;
  76. color: inherit;
  77. border-radius: 0;
  78. box-sizing: border-box;
  79. font-size: 0.5em;
  80. resize: none;
  81. }
  82. @media only screen and (prefers-color-scheme: dark) {
  83. :root {
  84. --color-bg: black;
  85. --color-fg: white;
  86. }
  87. }
  88. </style>
  89. </head>
  90. <body>
  91. <div id="root"></div>
  92. <script type="module" src="/src/main.tsx"></script>
  93. </body>
  94. </html>