index.html 8.2 KB

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