Model3.html 6.8 KB

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