popup.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. }
  32. .no-script {
  33. display: none;
  34. }
  35. .no-scheme .loading {
  36. display: none;
  37. }
  38. .no-scheme .no-script {
  39. display: block;
  40. }
  41. .scheme .loading {
  42. display: none;
  43. }
  44. .scheme .button-box {
  45. display: block;
  46. }
  47. .login {
  48. display: none;
  49. }
  50. .script-box {
  51. width: 200px;
  52. height: 200px;
  53. overflow: auto;
  54. position: relative;
  55. }
  56. .loading, .no-script {
  57. width: 160px;
  58. position: absolute;
  59. left: 0;
  60. right: 0;
  61. top: 0;
  62. bottom: 0;
  63. margin: auto;
  64. }
  65. .button-box {
  66. display: none;
  67. }
  68. .no-script img {
  69. width: 100%;
  70. }
  71. .no-script p {
  72. line-height: 20px;
  73. text-align: center;
  74. margin: 0;
  75. padding: 0;
  76. color: #999;
  77. font-size: 14px;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <div class="user-bar">
  83. <span class="user"></span>
  84. <div class="login">登录</div>
  85. </div>
  86. <div class="script-box">
  87. <img class="loading" src="./img/loading.svg">
  88. <div class="no-script">
  89. <img src="./img/no-script.svg">
  90. <p>此页面没有适用脚本!</p>
  91. </div>
  92. <div class="button-box">
  93. <button>获取方案</button>
  94. </div>
  95. </div>
  96. <script type="text/javascript" src="js/popup.js"></script>
  97. </body>
  98. </html>