Model3.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <!doctype html>
  2. <html lang="en">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta
  5. name="viewport"
  6. content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
  7. />
  8. <link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon" />
  9. <link rel="stylesheet" href="css/index.css" />
  10. <script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
  11. <head>
  12. <title>-</title>
  13. <script src="js/4dage.js"></script>
  14. <script src="./info.js"></script>
  15. <script>
  16. document.title = titleInfo;
  17. </script>
  18. <style>
  19. html {
  20. overflow: hidden;
  21. }
  22. .back {
  23. z-index: 998;
  24. cursor: pointer;
  25. width: 30px;
  26. height: 30px;
  27. position: absolute;
  28. top: 10px;
  29. left: 10px;
  30. }
  31. .back img {
  32. width: 100%;
  33. height: 100%;
  34. }
  35. .outerImg {
  36. transition: all 1s;
  37. opacity: 1;
  38. position: absolute;
  39. z-index: 998;
  40. top: 0;
  41. left: 0;
  42. width: 100%;
  43. height: 100%;
  44. background-color: #1a1b20;
  45. }
  46. .outerImg img {
  47. position: absolute;
  48. width: 100%;
  49. height: 100%;
  50. object-fit: cover;
  51. }
  52. /* ---------------按钮和文字介绍------------- */
  53. body {
  54. user-select: none;
  55. }
  56. .topButn {
  57. opacity: 0;
  58. pointer-events: none;
  59. z-index: 999;
  60. position: absolute;
  61. top: 50px;
  62. left: 10px;
  63. }
  64. .topButn div {
  65. padding: 0 5px;
  66. margin-bottom: 10px;
  67. width: 100%;
  68. height: 40px;
  69. line-height: 40px;
  70. border-radius: 20px;
  71. font-size: 18px;
  72. color: #fff;
  73. cursor: pointer;
  74. text-align: center;
  75. /* background-color: #f2cd83; */
  76. background-color: #ccc;
  77. border-radius: 5px;
  78. }
  79. .con::-webkit-scrollbar {
  80. /*滚动条整体样式*/
  81. width: 3px;
  82. /*高宽分别对应横竖滚动条的尺寸*/
  83. height: 1px;
  84. }
  85. .con::-webkit-scrollbar-thumb {
  86. /*滚动条里面小方块*/
  87. border-radius: 10px;
  88. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  89. background: #f2cd83;
  90. }
  91. .con::-webkit-scrollbar-track {
  92. /*滚动条里面轨道*/
  93. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  94. border-radius: 10px;
  95. background: #ededed;
  96. }
  97. .txtOne {
  98. opacity: 0;
  99. pointer-events: none;
  100. padding: 30px 15px 30px 30px;
  101. z-index: 1000;
  102. position: absolute;
  103. top: 150px;
  104. left: 10px;
  105. background-image: url("./img/divBac.png");
  106. background-color: rgba(0, 0, 0, 0.6);
  107. background-size: 100% 100%;
  108. width: 400px;
  109. height: 500px;
  110. z-index: 9999;
  111. color: #a08742;
  112. }
  113. .txtOne .con {
  114. text-align: justify;
  115. padding-right: 28px;
  116. line-height: 30px;
  117. margin-bottom: 30px;
  118. overflow-y: auto;
  119. height: 100%;
  120. }
  121. .txtOne .con > h3 {
  122. margin-left: -5px;
  123. font-size: 18px;
  124. font-weight: 700;
  125. margin-bottom: 15px;
  126. }
  127. .txtOne .close {
  128. cursor: pointer;
  129. position: absolute;
  130. right: 24px;
  131. top: 20px;
  132. width: 20px;
  133. height: 20px;
  134. }
  135. .txtOne .close img {
  136. width: 100%;
  137. height: 100%;
  138. }
  139. /* 手机端的样式 */
  140. @media screen and (max-width: 600px) {
  141. .topButn {
  142. width: 220px;
  143. display: flex;
  144. justify-content: center;
  145. margin: 0;
  146. top: 5px;
  147. left: 50%;
  148. transform: translateX(-50%);
  149. pointer-events: auto;
  150. }
  151. .topButn div {
  152. width: 90px;
  153. font-size: 14px;
  154. background-color: #f2cd83;
  155. }
  156. .txtOne {
  157. display: none;
  158. box-sizing: border-box;
  159. width: 100vw;
  160. height: 100vh;
  161. top: 0;
  162. left: 0;
  163. transform: translate(0, 0);
  164. max-height: 100vh;
  165. color: #fff;
  166. }
  167. .txtOne .con {
  168. color: #fff;
  169. height: calc(100vh - 100px);
  170. }
  171. }
  172. </style>
  173. </head>
  174. <body>
  175. <!-- 新加的按钮 -->
  176. <div class="topButn">
  177. <div class="topButnOne">文物介绍</div>
  178. </div>
  179. <!-- 专家鉴定意见的文字 -->
  180. <div class="txtOne">
  181. <div class="close">
  182. <img src="./img/close.png" alt="" />
  183. </div>
  184. <p class="con"></p>
  185. </div>
  186. <div class="back" onclick="javascript: history.go(-1);">
  187. <img src="./img/back.png" alt="" />
  188. </div>
  189. <div class="outerImg">
  190. <img src="./img/bg.jpg" alt="" />
  191. </div>
  192. <div id="ui"></div>
  193. <script src="js/jquery.js"></script>
  194. <script src="./txt.js"></script>
  195. <script>
  196. var number = getQueryVariable("m");
  197. if (spinInfo) window.autoRotate = true;
  198. fdage.embed("4dage/" + number + ".4dage", {
  199. width: 800,
  200. height: 600,
  201. autoStart: true,
  202. fullFrame: true,
  203. pagePreset: false,
  204. });
  205. $(".outerImg img").attr("src", `./images/${number}.jpg`);
  206. // 获取文字介绍
  207. if (txtShow && txtObj[number]) {
  208. const btnDom = document.querySelector(".topButn");
  209. btnDom.style.opacity = 1;
  210. // btnDom.style.pointerEvents = 'auto'
  211. const txtDom = document.querySelector(".txtOne");
  212. txtDom.style.opacity = 1;
  213. txtDom.style.pointerEvents = "auto";
  214. const txtButton = document.querySelector(".topButnOne");
  215. // 获取文本
  216. const txtInfo = txtObj[number] || "(空)";
  217. $(".txtOne .con").html(txtInfo);
  218. // 点击关闭
  219. $(".txtOne .close").click(() => {
  220. $(".txtOne").hide();
  221. btnDom.style.pointerEvents = "auto";
  222. txtButton.style.backgroundColor = "#f2cd83";
  223. });
  224. $(".topButnOne").click(() => {
  225. $(".txtOne").show();
  226. btnDom.style.pointerEvents = "none";
  227. txtButton.style.backgroundColor = "#ccc";
  228. });
  229. }
  230. </script>
  231. </body>
  232. <script src="./js/audio.js"></script>
  233. </html>