index.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>4DAGE</title>
  7. <style type="text/css">
  8. body {
  9. margin: 0;
  10. padding: 0;
  11. }
  12. a {
  13. text-decoration: none;
  14. }
  15. a:visited {
  16. text-decoration: none;
  17. }
  18. a:hover {
  19. text-decoration: none;
  20. }
  21. a:active {
  22. text-decoration: none;
  23. }
  24. .pc {
  25. width: 100%;
  26. }
  27. .pc .item .items{
  28. background: #fff;
  29. border: 1px solid #E6E6E6;
  30. margin-bottom: 32px;
  31. border-radius: 4px 4px 4px 4px;
  32. }
  33. .viewImg{
  34. overflow: hidden;
  35. }
  36. .pc .item .items:hover{
  37. box-shadow: rgba(0, 0, 0, .16) 0px 0px 10px;
  38. /* background: red; */
  39. }
  40. .headercontent{
  41. background: linear-gradient(rgba(15, 15, 15, 1), rgba(58, 58, 58, 1));
  42. }
  43. .pc .header {
  44. height: 40px;
  45. width: 100%;
  46. background: url('./image/pc-header.png');
  47. /* margin-bottom: 48px; */
  48. background-repeat: no-repeat;
  49. background-size: auto 80px;
  50. background-color: l;
  51. background-position: 50% center;
  52. padding: 20px 0;
  53. text-align: center;
  54. }
  55. .pc .header img{
  56. height: 100%;
  57. position: relative;
  58. left: -525px;
  59. }
  60. .pc .list {
  61. margin: 0 auto;
  62. /* min-width: 1336px; */
  63. width: 1200px;
  64. display: flex;
  65. flex-flow: row wrap;
  66. justify-content: left;
  67. margin-top: 48px;
  68. height: calc(100vh - 80px - 48px);
  69. overflow-y: auto;
  70. }
  71. .pc .list::-webkit-scrollbar {
  72. display: none; /* Chrome Safari */
  73. }
  74. .pc .list .item:not(:nth-child(3n)) {
  75. margin-right: 30px;
  76. }
  77. .pc .list .item {
  78. width: calc(33.333% - 20px);
  79. height: 250px;
  80. opacity: 1;
  81. display: grid;
  82. margin: 0 0px 32px 0;
  83. }
  84. .pc .list .item img{
  85. width: 100%;
  86. height: 190px;
  87. object-fit: cover;
  88. display: block;
  89. transition-duration: .5s;
  90. }
  91. .pc .item .items:hover img{
  92. /* background: red; */
  93. transform: scale(1.2);
  94. }
  95. .pc .list .item .name {
  96. padding: 19px;
  97. font-size: 14px;
  98. font-family: PingFang SC-Regular, PingFang SC;
  99. font-weight: 400;
  100. color: #333333;
  101. line-height: 22px;
  102. /* background-color: #fff; */
  103. }
  104. .mobile .header img{
  105. height: 26px;
  106. margin-left: 16px;
  107. }
  108. .mobile .header {
  109. height: 30px;
  110. padding: 16px 0;
  111. width: 100%;
  112. background: url('./image/mobile-header.png');
  113. background-repeat: no-repeat;
  114. background-size: 100% 100%;
  115. }
  116. .mobile .list::-webkit-scrollbar {
  117. display: none; /* Chrome Safari */
  118. }
  119. .mobile .list {
  120. width: 100vw;
  121. height: calc(100vh - 62px);
  122. overflow-y: auto;
  123. }
  124. .mobile .list .item {
  125. padding: 16px;
  126. width: calc(100% - 32px);
  127. height: 62px;
  128. background: #FFFFFF;
  129. border-radius: 0px 0px 0px 0px;
  130. opacity: 1;
  131. border-bottom: 1px solid #E6E6E6;
  132. }
  133. .mobile .list .item .viewImg {
  134. float: left;
  135. width: 120px;
  136. height: 62px;
  137. margin-right: 16px;
  138. object-fit: cover;
  139. display: block;
  140. }
  141. .mobile .list .item .name {
  142. float: left;
  143. width: 120px;
  144. height: 42px;
  145. padding: 10px 0;
  146. font-size: 14px;
  147. font-family: PingFang SC-Regular, PingFang SC;
  148. font-weight: 400;
  149. color: #333333;
  150. line-height: 20px;
  151. }
  152. </style>
  153. </head>
  154. <body>
  155. <div class="container" id="container">
  156. <div class="headercontent">
  157. <div class="header">
  158. <img src="./image/logo.png" alt="">
  159. </div>
  160. </div>
  161. <div class="list" id="list">
  162. </div>
  163. </div>
  164. <script>
  165. inter()
  166. window.addEventListener('resize', inter);
  167. const list = [{
  168. id: 1,
  169. sceneName: 'Song 25.41',
  170. webSite: 'https://eur.4dkankan.com/spc.html?m=KK-eur-ZqPBmZYOD',
  171. thumb: 'https://eurs3.4dkankan.com/images/imagesKK-eur-ZqPBmZYOD/thumbBigImg.jpg?_43',
  172. }, {
  173. id: 2,
  174. sceneName: '체스터톤스 속초',
  175. webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-DERS974172&lang=en',
  176. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-DERS974172/user/thumb-1k.jpg?_=100',
  177. }, {
  178. id: 3,
  179. sceneName: '東京タワー',
  180. webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-kdM29Ent5&lang=zh',
  181. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-kdM29Ent5/user/thumb-1k.jpg?_=17',
  182. }, {
  183. id: 4,
  184. sceneName: 'TOKYO TOWER',
  185. webSite: 'https://mega.4dkankan.jp/index.html?m=SS-jp-ywmQVbYrHte#/',
  186. thumb: './image/bg_banner.png',
  187. }, {
  188. id: 5,
  189. sceneName: 'MICHAIL GKINIS AOYAMA',
  190. webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-vJ9xY22YD&lang=en',
  191. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-vJ9xY22YD/user/thumb-1k.jpg?_=141',
  192. }, {
  193. id: 6,
  194. sceneName: '関ケ原古戦場記念館',
  195. webSite: 'https://eur.4dkankan.com/spc.html?m=KJ-eur-H7wnhZMo5&lang=zh',
  196. thumb: './image/bg_banner.png',
  197. }, {
  198. id: 7,
  199. sceneName: '星の王子さま',
  200. webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-IHHn93a23e&lang=zh',
  201. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-IHHn93a23e/user/thumb-1k.jpg?_=30',
  202. }, {
  203. id: 8,
  204. sceneName: 'Proj:0519.10.30',
  205. webSite: 'https://laser.4dkankan.com/index.html?m=SS-jOlzSJE5jV',
  206. thumb: './image/bg_banner.png',
  207. }, {
  208. id: 9,
  209. sceneName: '프레리독',
  210. webSite: 'https://eur.4dkankan.com/spg.html?m=KK-eur-w9UQ3SLMh',
  211. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KK-eur-w9UQ3SLMh/user/thumb-1k.jpg?_=145',
  212. }, {
  213. id: 10,
  214. sceneName: 'TOKYO CITY VIEW | SKY DECK',
  215. webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-rv0wF7eYh&lang=zh',
  216. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-rv0wF7eYh/user/thumb-1k.jpg?_=53',
  217. }, {
  218. id: 11,
  219. sceneName: 'TOKYO CITY VIEW | SKY DECK',
  220. webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-CFvI90bafc&lang=zh',
  221. thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-CFvI90bafc/user/thumb-1k.jpg?_=127',
  222. }, {
  223. id: 12,
  224. sceneName: '旭橋',
  225. webSite: 'https://laser.4dkankan.com/index.html?m=SS-36imHa4Sl0&lang=zh#/',
  226. thumb: './image/bg_banner.png',
  227. }, {
  228. id: 13,
  229. sceneName: '星の王子さま(户外)',
  230. webSite: 'https://l-prince.4dkankan.jp/spg/?m=SS-tIQYvzaLf8&lang=en ',
  231. thumb: 'https://4dkk.4dage.com/scene_view_data/SS-tIQYvzaLf8/user/thumb-1k.jpg?_=127',
  232. }]
  233. var listDiv = document.getElementById('list');
  234. for (var i = 0; i < list.length; i++) {
  235. let item = list[i]
  236. let divcontent = document.createElement("div");
  237. var testa = document.createElement("a");
  238. var testDv = document.createElement("div");
  239. var testDva = document.createElement("div");
  240. var testDvaImg = document.createElement("div");
  241. var divImg = document.createElement("img");
  242. testDv.id = "t" + i;
  243. testDv.className = "col-lg-4 name";
  244. testDv.className += ' col-md-6';
  245. testDv.innerHTML = item.sceneName
  246. divcontent.className = 'item'
  247. testDva.className = 'items'
  248. testDvaImg.className = 'viewImg'
  249. divImg.src = item.thumb;
  250. divImg.onerror = function(){
  251. this.src = "./image/bg_banner.png";
  252. }
  253. testDvaImg.appendChild(divImg)
  254. testDva.appendChild(testDvaImg);
  255. testDva.appendChild(testDv);
  256. testa.target = '_blank'
  257. testa.href = item.webSite;
  258. testa.appendChild(testDva)
  259. divcontent.appendChild(testa)
  260. listDiv.appendChild(divcontent)
  261. }
  262. function inter() {
  263. setTimeout(() => {
  264. let myType = 'pc'
  265. if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
  266. // 当前设备是移动设备
  267. myType = 'mobile'
  268. }
  269. console.log('inter', myType)
  270. var div = document.getElementById('container');
  271. div.setAttribute("class", myType);
  272. }, 10);
  273. }
  274. </script>
  275. </body>
  276. </html>