popup.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <title>test</title>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
  8. <meta name="apple-mobile-web-app-title" content="CodeDay">
  9. <meta http-equiv="Cache-Control" content="no-siteapp">
  10. <style>
  11. body, html {
  12. margin: 0;
  13. }
  14. button {
  15. width: 100%;
  16. border: none;
  17. height: 30px;
  18. background-color: #009fe9;
  19. color: white;
  20. cursor: pointer;
  21. user-select: none;
  22. box-shadow: 1px 1px 4px #968a8a;
  23. }
  24. .user-bar {
  25. font-family: "Microsoft YaHei";
  26. font-size: 12px;
  27. line-height: 26px;
  28. background-color: #009fe9;
  29. color: white;
  30. padding: 0 10px;
  31. height: 26px;
  32. }
  33. .no-script {
  34. display: none;
  35. }
  36. .no-scheme .loading {
  37. display: none;
  38. }
  39. .no-scheme .no-script {
  40. display: block;
  41. }
  42. .login {
  43. display: none;
  44. }
  45. .script-box {
  46. width: 200px;
  47. height: 200px;
  48. overflow: auto;
  49. position: relative;
  50. }
  51. .loading, .no-script {
  52. width: 160px;
  53. position: absolute;
  54. left: 0;
  55. right: 0;
  56. top: 0;
  57. bottom: 0;
  58. margin: auto;
  59. }
  60. .button-box {
  61. display: none;
  62. }
  63. </style>
  64. </head>
  65. <body>
  66. <div class="user-bar">
  67. <span class="user"></span>
  68. <div class="login">登录</div>
  69. </div>
  70. <div class="script-box">
  71. <img class="loading" src="./img/loading.svg">
  72. <img class="no-script" src="./img/no-script.svg">
  73. <div class="button-box">
  74. <button>获取方案</button>
  75. </div>
  76. </div>
  77. <script type="text/javascript" src="js/popup.js"></script>
  78. </body>
  79. </html>