index.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- <link async rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
  5. integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> -->
  6. <link rel="stylesheet" href="../css/bootstrap.min.css" crossorigin="anonymous">
  7. <link rel="stylesheet" href="../css/style.css">
  8. <link rel="preconnect" href="https://fonts.gstatic.com">
  9. <link href="https://fonts.loli.net/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700
  10. &family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  11. <script src="../js/av-live-query-min.js"></script>
  12. <title>五子</title>
  13. <meta charset="UTF-8">
  14. <style>
  15. * {
  16. padding: 0;
  17. margin: 0;
  18. }
  19. html,
  20. body,
  21. #five {
  22. background: #ccc;
  23. height: 100%;
  24. }
  25. .controls {
  26. /* position: absolute; */
  27. top: 20px;
  28. margin: 5px;
  29. }
  30. #game {
  31. width: 580px;
  32. height: 580px;
  33. /* box-shadow: 2px 2px 5px #333333; */
  34. /* text-align: center; */
  35. padding: 10px;
  36. background: rgba(0, 0, 0, 0.2);
  37. }
  38. table {
  39. width: 560px;
  40. border-collapse: collapse;
  41. border-spacing: 0;
  42. }
  43. td {
  44. width: 35px;
  45. height: 35px;
  46. text-align: center;
  47. }
  48. span {
  49. transition-duration: 100ms;
  50. display: inline-block;
  51. border-radius: 50%;
  52. width: 28px;
  53. height: 28px;
  54. vertical-align: middle;
  55. cursor: pointer;
  56. }
  57. .led {
  58. transition-duration: 100ms;
  59. display: inline-block;
  60. border: 5px double grey;
  61. border-radius: 50%;
  62. width: 18px;
  63. height: 18px;
  64. z-index: 10;
  65. vertical-align: middle;
  66. }
  67. .word {
  68. background: radial-gradient(transparent, rgb(15 15 15 / 25%));
  69. transition-duration: 100ms;
  70. display: inline-block;
  71. padding: 3px 6px;
  72. border: 5px double grey;
  73. z-index: 10;
  74. vertical-align: middle;
  75. }
  76. .red {
  77. filter: drop-shadow(0 0 2px red);
  78. }
  79. span::after {
  80. content: "";
  81. height: 0;
  82. display: inline-block;
  83. vertical-align: middle;
  84. }
  85. .black {
  86. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  87. background: #000;
  88. cursor: default;
  89. }
  90. .white {
  91. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  92. background: #fff;
  93. cursor: default;
  94. }
  95. .highlight.black {
  96. filter: drop-shadow(0 0 5px black);
  97. }
  98. .highlight.white {
  99. filter: drop-shadow(0 0 5px white);
  100. }
  101. .red:active {
  102. background: radial-gradient(transparent, rgb(15 15 15 / 25%));
  103. }
  104. .word:focus:not(:focus-visible) {
  105. background: radial-gradient(transparent, rgb(15 15 15 / 25%));
  106. outline: 0;
  107. }
  108. .tables {
  109. top: 0;
  110. left: 0;
  111. z-index: 3;
  112. }
  113. #xq-tips {
  114. position: absolute;
  115. top: 20%;
  116. left: 0;
  117. width: 100%;
  118. height: 150px;
  119. background: rgba(0, 0, 0, 0);
  120. display: none;
  121. z-index: 4;
  122. backdrop-filter: blur(5px);
  123. }
  124. .xq-txt {
  125. position: relative;
  126. height: 150px;
  127. background: rgba(35, 35, 35, 0.5);
  128. top: 0;
  129. bottom: 0;
  130. right: 0;
  131. left: 0;
  132. margin: auto;
  133. color: #fff;
  134. font-size: 40px;
  135. text-align: center;
  136. line-height: 150px;
  137. }
  138. #agin {
  139. display: none;
  140. }
  141. #regret {
  142. display: none;
  143. }
  144. .pointer {
  145. display: none;
  146. transition-duration: 100ms;
  147. pointer-events: none;
  148. position: absolute;
  149. opacity: 50%;
  150. left: 0;
  151. top: 0;
  152. }
  153. .btn {
  154. text-shadow: rgb(85, 85, 85) 3px 2px 4px;
  155. }
  156. .noshadow {
  157. text-shadow: none;
  158. }
  159. input {
  160. outline-style: none;
  161. text-shadow: rgb(85, 85, 85) 3px 2px 4px;
  162. border: 1px solid #ccc;
  163. border-radius: 2px;
  164. background: rgb(215 215 215 / 50%);
  165. }
  166. input:hover {
  167. outline-style: none;
  168. text-shadow: rgb(85, 85, 85) 3px 2px 4px;
  169. border: 1px solid #ccc;
  170. border-radius: 2px;
  171. background: rgb(215 215 215 / 40%);
  172. }
  173. </style>
  174. <script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  175. <title>Document</title>
  176. </head>
  177. <body>
  178. <div id="five">
  179. <div class="controls">
  180. <a class="btn btn-info" href="/"><i class="glyphicon glyphicon-home" aria-hidden="true"></i>&nbsp;返回</a>
  181. <button class="btn btn-primary" id="begin"><i class=" glyphicon glyphicon-ban-circle"
  182. aria-hidden="true"></i>&nbsp;开始游戏</button>
  183. <button class="btn btn-primary" id="agin"><i class=" glyphicon glyphicon-repeat"
  184. aria-hidden="true"></i>&nbsp;重新游戏</button>
  185. <button class="btn btn-warning" id="regret"><i class=" glyphicon glyphicon-backward"
  186. aria-hidden="true"></i>&nbsp;悔棋</button>
  187. <button class="btn btn-info" id="check"><i class=" glyphicon glyphicon-exclamation-sign"
  188. aria-hidden="true"></i>&nbsp;下哪了</button>
  189. <button class="btn btn-default noshadow" id="help"
  190. onclick="alert('说明:普通五子棋,需双人对战,同一设备只能使用一种颜色。\n(找不到同伴可以自己用两个设备玩)\n右侧按钮可用于发送信号,但请勿频繁点击。\n两个指示灯分别表示自身颜色和当前颜色,两者相同时说明该你了')"><i
  191. class="glyphicon glyphicon-question-sign" aria-hidden="true"></i></button>
  192. <div class="led mylight"></div>
  193. <div class="led light"></div>
  194. <button class="btn btn-danger word message1">快</button>
  195. <button class="btn btn-danger word message2">再想想?</button>
  196. <button class="btn btn-danger word message3">拜拜</button>
  197. <button class="btn btn-danger word message4"><input id="messageText"></button>
  198. </div>
  199. <div id="game" class="center-block">
  200. <span class="black pointer"></span>
  201. </div>
  202. <div style="display:inline-block">在线人数:<il id="messageServer"></il>
  203. </div>
  204. </div>
  205. </div>
  206. <script src="../js/chess.js"></script>
  207. </body>
  208. </html>