index.html 8.4 KB

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