index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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"
  7. integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  8. <link rel="stylesheet" href="../css/style.css">
  9. <link rel="preconnect" href="https://fonts.gstatic.com">
  10. <link href="https://fonts.loli.net/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700
  11. &family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  12. <script src="../js/av-live-query-min.js"></script>
  13. <title>五子</title>
  14. <meta charset="UTF-8">
  15. <style>
  16. * {
  17. padding: 0;
  18. margin: 0;
  19. }
  20. html,
  21. body,
  22. #five {
  23. /* background: #ccc; */
  24. height: 100%;
  25. }
  26. .controls {
  27. /* position: absolute; */
  28. top: 20px;
  29. margin: 5px;
  30. }
  31. #game {
  32. width: 580px;
  33. height: 580px;
  34. /* box-shadow: 2px 2px 5px #333333; */
  35. /* text-align: center; */
  36. padding: 10px;
  37. background: rgba(0, 0, 0, 0.2);
  38. }
  39. table {
  40. width: 560px;
  41. border-collapse: collapse;
  42. border-spacing: 0;
  43. }
  44. td {
  45. width: 35px;
  46. height: 35px;
  47. text-align: center;
  48. }
  49. span {
  50. transition-duration: 100ms;
  51. display: inline-block;
  52. border-radius: 50%;
  53. width: 28px;
  54. height: 28px;
  55. vertical-align: middle;
  56. cursor: pointer;
  57. }
  58. .light {
  59. transition-duration: 100ms;
  60. display: inline-block;
  61. border: 5px double grey;
  62. border-radius: 50%;
  63. width: 18px;
  64. height: 18px;
  65. z-index: 10;
  66. vertical-align: middle;
  67. }
  68. span::after {
  69. content: "";
  70. height: 0;
  71. display: inline-block;
  72. vertical-align: middle;
  73. }
  74. .black {
  75. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  76. background: #000;
  77. cursor: default;
  78. }
  79. .white {
  80. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  81. background: #fff;
  82. cursor: default;
  83. }
  84. .tables {
  85. top: 0;
  86. left: 0;
  87. z-index: 3;
  88. }
  89. #xq-tips {
  90. position: absolute;
  91. top: 20%;
  92. left: 0;
  93. width: 100%;
  94. height: 150px;
  95. background: rgba(0, 0, 0, 0);
  96. display: none;
  97. z-index: 4;
  98. backdrop-filter: blur(5px);
  99. }
  100. .xq-txt {
  101. position: relative;
  102. height: 150px;
  103. background: rgba(35, 35, 35, 0.5);
  104. top: 0;
  105. bottom: 0;
  106. right: 0;
  107. left: 0;
  108. margin: auto;
  109. color: #fff;
  110. font-size: 40px;
  111. text-align: center;
  112. line-height: 150px;
  113. }
  114. #agin {
  115. display: none;
  116. }
  117. #regret {
  118. display: none;
  119. }
  120. .pointer {
  121. display: none;
  122. transition-duration: 100ms;
  123. pointer-events: none;
  124. position: absolute;
  125. opacity: 50%;
  126. left: 0;
  127. top: 0;
  128. }
  129. .btn {
  130. text-shadow: rgb(85, 85, 85) 3px 2px 4px;
  131. }
  132. .noshadow{
  133. text-shadow: none;
  134. }
  135. </style>
  136. <script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  137. <title>Document</title>
  138. </head>
  139. <body>
  140. <div id="five">
  141. <div class="controls">
  142. <a class="btn btn-info" href="/"><i class="glyphicon glyphicon-home" aria-hidden="true"></i>&nbsp;返回</a>
  143. <button class="btn btn-primary" id="begin"><i class=" glyphicon glyphicon-ban-circle"
  144. aria-hidden="true"></i>&nbsp;开始游戏</button>
  145. <button class="btn btn-primary" id="agin"><i class=" glyphicon glyphicon-repeat"
  146. aria-hidden="true"></i>&nbsp;重新游戏</button>
  147. <button class="btn btn-warning" id="regret"><i class=" glyphicon glyphicon-backward"
  148. aria-hidden="true"></i>&nbsp;悔棋</button>
  149. <button class="btn btn-default noshadow" id="help" onclick="alert('说明:普通五子棋,需双人对战,同一设备只能使用一种颜色\n\n(找不到同伴可以自己用两个设备玩)')"><i
  150. class="glyphicon glyphicon-question-sign" aria-hidden="true"></i></button>
  151. <div class="light"></div>
  152. </div>
  153. <div id="game" class="center-block">
  154. <span class="black pointer"></span>
  155. </div>
  156. </div>
  157. <script src="../js/chess.js"></script>
  158. </body>
  159. </html>