Model.html 6.8 KB

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