index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <head>
  2. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
  3. integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  4. <link rel="stylesheet" href="../css/style.css">
  5. <link rel="preconnect" href="https://fonts.gstatic.com">
  6. <link href="https://fonts.loli.net/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700
  7. &family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  8. <style>
  9. .box {
  10. display: inline-block;
  11. margin: 10px;
  12. cursor: pointer;
  13. width: 180px;
  14. height: 3px;
  15. background-color: #bdbdbd;
  16. position: relative;
  17. vertical-align: middle;
  18. }
  19. .box .hd {
  20. width: 17px;
  21. height: 18px;
  22. background-color: #56a3fc;
  23. border-radius: 6px;
  24. position: absolute;
  25. left: 0;
  26. top: -8px;
  27. cursor: pointer;
  28. margin: 0;
  29. }
  30. .box .hdt {
  31. position: absolute;
  32. top: 0;
  33. left: 0;
  34. height: 3px;
  35. width: 0;
  36. background-color: #56a3fc;
  37. margin: 0;
  38. }
  39. .box-text {
  40. user-select: none;
  41. }
  42. * {
  43. -webkit-box-sizing: border-box;
  44. box-sizing: content-box;
  45. }
  46. #main {
  47. display: flex;
  48. flex-direction: row;
  49. width: 900px;
  50. margin: 0 auto;
  51. margin-top: -20px;
  52. }
  53. #draw {
  54. width: 640px;
  55. height: 640px;
  56. display: flex;
  57. flex-direction: row;
  58. flex-wrap: wrap;
  59. margin: 0 auto;
  60. border: 1px solid rgb(211, 211, 211);
  61. }
  62. .pixel-line {
  63. width: 8px;
  64. height: 8px;
  65. border: 1px solid rgb(211, 211, 211);
  66. }
  67. .pixel {
  68. width: 10px;
  69. height: 10px;
  70. }
  71. #color-list {
  72. display: flex;
  73. flex-direction: column;
  74. flex-wrap: wrap;
  75. }
  76. #tools {
  77. width: 20%;
  78. }
  79. .color-item {
  80. height: 20px;
  81. width: 20px;
  82. }
  83. #now-color {
  84. width: 80px;
  85. height: 80px;
  86. border: 1px solid rgb(147, 147, 147);
  87. background-color: #000;
  88. }
  89. li {
  90. list-style: none;
  91. margin-bottom: 3px;
  92. display: block;
  93. box-sizing: border-box;
  94. }
  95. .btn {
  96. text-shadow: rgb(85, 85, 85) 3px 2px 4px;
  97. display: inline-block;
  98. }
  99. </style>
  100. <script src="../js/av-min.js"></script>
  101. <script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  102. <script type="text/javascript" src="../js/paint.js">
  103. </script>
  104. </head>
  105. <body>
  106. <a class="btn btn-info" href="/" style="text-shadow: rgb(85, 85, 85) 3px 2px 4px;"><span
  107. class="glyphicon glyphicon-home" aria-hidden="true"></span>&nbsp;返回</a>
  108. <div id="main">
  109. <div id="draw"></div>
  110. <div id="tools">
  111. <div id="now-color"></div>
  112. <div class="box" id="box-r">
  113. <i class="hd"></i>
  114. <i class="hdt"></i>
  115. <div class="box-text" id="box-r-text">0</div>
  116. </div>
  117. <div class="box" id="box-g">
  118. <i class="hd"></i>
  119. <i class="hdt"></i>
  120. <div class="box-text" id="box-g-text">0</div>
  121. </div>
  122. <div class="box" id="box-b">
  123. <i class="hd"></i>
  124. <i class="hdt"></i>
  125. <div class="box-text" id="box-b-text">0</div>
  126. </div>
  127. <ul id="color-list"></ul>
  128. </div>
  129. </div>
  130. <div style="text-align: center;margin-top:10px">
  131. <button class="btn btn-warning" id="show-hide-line">
  132. <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>&nbsp;网格</button>
  133. <button class="btn btn-info" id="upload"><span class="glyphicon glyphicon-cloud-upload"
  134. aria-hidden="true"></span>&nbsp;上传</button>
  135. <button class="btn btn-danger" id="reset"><span class="glyphicon glyphicon-cloud-download"
  136. aria-hidden="true"></span>&nbsp;重置</button>
  137. <button class="btn btn-danger" id="clear" onclick="tryClear()"><span class="glyphicon glyphicon-ban-circle"
  138. aria-hidden="true"></span>&nbsp;清空</button>
  139. </div>
  140. </body>