Model.html 6.9 KB

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