index.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Elements Encode - By StevenOS</title>
  6. <link rel="shortcut icon" href="https://ryzenx.com/img/favicon.ico" />
  7. <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css" rel="stylesheet">
  8. <script src="https://cdn.bootcdn.net/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
  9. <script src="index.js"></script>
  10. </head>
  11. <style type="text/css">
  12. body {
  13. width: 100%;
  14. height: 100%;
  15. display: flex;
  16. flex-direction: column;
  17. justify-content: center;
  18. align-items: center;
  19. cursor: url("https://ryzenx.oss-accelerate.aliyuncs.com/cur/Diamond_Sword.cur"), auto;
  20. background-image: url("https://stevenapis.xyz/api/bing");
  21. font-family: "SF Pro Text", "SF Pro Icons", -apple-system, "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  22. }
  23. .container {
  24. height: auto;
  25. width: 80%;
  26. backdrop-filter: blur(4px);
  27. background-color: rgba(25, 250, 250, 0.4);
  28. opacity: 0.9;
  29. border-radius: 15px;
  30. margin: 10%;
  31. }
  32. .title {
  33. margin-top: 10px;
  34. font-size: 2rem;
  35. font-family: "SF Pro Text", "SF Pro Icons", -apple-system, "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  36. }
  37. .data {
  38. width: auto;
  39. height: auto;
  40. display: flex;
  41. flex-direction: column;
  42. justify-content: center;
  43. align-items: flex-start;
  44. }
  45. .label {
  46. width: auto;
  47. height: auto;
  48. margin: 8px 8px 8px 0;
  49. font-family: 'Fira Code', 'Jetbrains Mono', 'Ubuntu Mono', Menlo, 'PT Mono', 'Source Han Mono';
  50. }
  51. .btns {
  52. display: flex;
  53. flex-direction: row;
  54. justify-content: start;
  55. align-items: center;
  56. margin-top: 12px;
  57. margin-bottom: 12px;
  58. }
  59. .form-control {
  60. font-family: 'Fira Code', 'Jetbrains Mono', 'Ubuntu Mono', Menlo, 'PT Mono', 'Source Han Mono';
  61. }
  62. </style>
  63. <body onload="onLoad()">
  64. <div class="container">
  65. <div class="title">
  66. 元素周期表 编解码器 - <a href="mailto:me@stevenos.com" target="_blank">StevenOS</a>
  67. </div>
  68. <div id="updateTime" class="label" style="font-size: smaller;"></div>
  69. <div class="data">
  70. <div class="label">#1 </div>
  71. <textarea id="data1" class="form-control" aria-label="With textarea" style="min-height: 150px;"></textarea>
  72. </div>
  73. <div class="btns">
  74. <button id="encode" onclick="doEncode()" type="button" class="btn btn-primary">从 #1 编码</button>
  75. <div style="width: 12px;"></div>
  76. <button id="decode" onclick="doDecode()" type="button" class="btn btn-secondary">从 #1 解码</button>
  77. <div style="width: 12px;"></div>
  78. <button id="copy" onclick="copy()" type="button" class="btn btn-info">拷贝 #2 内容</button>
  79. <div style="width: 12px;"></div>
  80. <button id="clear" onclick="clearText()" type="button" class="btn btn-success">清空</button>
  81. </div>
  82. <div class="data">
  83. <div class="label">#2 </div>
  84. <textarea id="data2" class="form-control" aria-label="With textarea" style="min-height: 150px;"
  85. contenteditable="false"></textarea>
  86. </div>
  87. <div style="height: 18px;"></div>
  88. </div>
  89. </body>
  90. </html>