index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. /* display: flex;
  48. justify-content: center;
  49. align-items: center; */
  50. text-align: center;
  51. }
  52. span {
  53. transition-duration: 100ms;
  54. display: inline-block;
  55. border-radius: 50%;
  56. width: 28px;
  57. height: 28px;
  58. vertical-align: middle;
  59. cursor: pointer;
  60. }
  61. .light {
  62. transition-duration: 100ms;
  63. display: inline-block;
  64. border: 5px double grey;
  65. border-radius: 50%;
  66. width: 18px;
  67. height: 18px;
  68. z-index: 10;
  69. }
  70. span::after {
  71. content: "";
  72. height: 0;
  73. display: inline-block;
  74. vertical-align: middle;
  75. }
  76. .table {
  77. margin: 0;
  78. }
  79. .black {
  80. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  81. background: #000;
  82. cursor: default;
  83. }
  84. .white {
  85. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  86. background: #fff;
  87. cursor: default;
  88. }
  89. .green {
  90. box-shadow: 1px 1px 2px rgba(115, 115, 115, 0.7);
  91. background-image: linear-gradient(black,white,90deg);
  92. cursor: default;
  93. }
  94. .tables {
  95. top: 0;
  96. left: 0;
  97. z-index: 3;
  98. }
  99. #xq-tips {
  100. position: absolute;
  101. top: 20%;
  102. left: 0;
  103. width: 100%;
  104. height: 150px;
  105. background: rgba(0, 0, 0, 0);
  106. display: none;
  107. z-index: 4;
  108. backdrop-filter: blur(5px);
  109. }
  110. .xq-txt {
  111. position: relative;
  112. height: 150px;
  113. background: rgba(35, 35, 35, 0.5);
  114. top: 0;
  115. bottom: 0;
  116. right: 0;
  117. left: 0;
  118. margin: auto;
  119. color: #fff;
  120. font-size: 40px;
  121. text-align: center;
  122. line-height: 150px;
  123. }
  124. #agin {
  125. display: none;
  126. }
  127. #regret {
  128. display: none;
  129. }
  130. .pointer {
  131. display: none;
  132. transition-duration: 100ms;
  133. pointer-events: none;
  134. position: absolute;
  135. opacity: 50%;
  136. left: 0;
  137. top: 0;
  138. }
  139. </style>
  140. <script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  141. <title>Document</title>
  142. </head>
  143. <body>
  144. <div id="five">
  145. <div class="controls">
  146. <a class="btn btn-info" href="/" style="text-shadow: rgb(85, 85, 85) 3px 2px 4px;"><i
  147. class="glyphicon glyphicon-home" aria-hidden="true"></i>&nbsp;返回</a>
  148. <button class="btn btn-primary" id="begin"><i class=" glyphicon glyphicon-ban-circle"
  149. aria-hidden="true"></i>&nbsp;开始游戏</button>
  150. <button class="btn btn-primary" id="agin"><i class=" glyphicon glyphicon-repeat"
  151. aria-hidden="true"></i>&nbsp;重新游戏</button>
  152. <button class="btn btn-warning" id="regret"><i class=" glyphicon glyphicon-backward"
  153. aria-hidden="true"></i>&nbsp;悔棋</button>
  154. <div class="light"></div>
  155. </div>
  156. <div id="game" class="center-block">
  157. <span class="black pointer"></span>
  158. </div>
  159. </div>
  160. <script src="../js/chess.js"></script>
  161. </body>
  162. </html>