Model.html 8.4 KB

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