index.html 7.9 KB

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