123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- <!DOCTYPE html>
- <html>
- <head lang="en">
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>4DAGE</title>
- <style type="text/css">
- body {
- margin: 0;
- padding: 0;
- }
- a {
- text-decoration: none;
- }
- a:visited {
- text-decoration: none;
- }
- a:hover {
- text-decoration: none;
- }
- a:active {
- text-decoration: none;
- }
- .pc {
- width: 100%;
- }
- .pc .item .items{
- background: #fff;
- border: 1px solid #E6E6E6;
- margin-bottom: 32px;
- border-radius: 4px 4px 4px 4px;
- }
- .viewImg{
- overflow: hidden;
- }
- .pc .item .items:hover{
- box-shadow: rgba(0, 0, 0, .16) 0px 0px 10px;
- /* background: red; */
- }
- .headercontent{
- background: linear-gradient(rgba(15, 15, 15, 1), rgba(58, 58, 58, 1));
- }
- .pc .header {
- height: 40px;
- width: 100%;
- background: url('./image/pc-header.png');
- /* margin-bottom: 48px; */
- background-repeat: no-repeat;
- background-size: auto 80px;
- background-color: l;
- background-position: 50% center;
- padding: 20px 0;
- text-align: center;
- }
- .pc .header img{
- height: 100%;
- position: relative;
- left: -525px;
- }
- .pc .list {
- margin: 0 auto;
- /* min-width: 1336px; */
- width: 1200px;
- display: flex;
- flex-flow: row wrap;
- justify-content: left;
- margin-top: 48px;
- height: calc(100vh - 80px - 48px);
- overflow-y: auto;
- }
- .pc .list::-webkit-scrollbar {
- display: none; /* Chrome Safari */
- }
- .pc .list .item:not(:nth-child(3n)) {
- margin-right: 30px;
- }
- .pc .list .item {
- width: calc(33.333% - 20px);
- height: 250px;
- opacity: 1;
- display: grid;
- margin: 0 0px 32px 0;
- }
- .pc .list .item img{
- width: 100%;
- height: 190px;
- object-fit: cover;
- display: block;
- transition-duration: .5s;
- }
-
- .pc .item .items:hover img{
- /* background: red; */
- transform: scale(1.2);
- }
- .pc .list .item .name {
- padding: 19px;
- font-size: 14px;
- font-family: PingFang SC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- line-height: 22px;
- /* background-color: #fff; */
- }
- .mobile .header img{
- height: 26px;
- margin-left: 16px;
- }
- .mobile .header {
- height: 30px;
- padding: 16px 0;
- width: 100%;
- background: url('./image/mobile-header.png');
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
-
- .mobile .list::-webkit-scrollbar {
- display: none; /* Chrome Safari */
- }
-
- .mobile .list {
- width: 100vw;
- height: calc(100vh - 62px);
- overflow-y: auto;
- }
- .mobile .list .item {
- padding: 16px;
- width: calc(100% - 32px);
- height: 62px;
- background: #FFFFFF;
- border-radius: 0px 0px 0px 0px;
- opacity: 1;
- border-bottom: 1px solid #E6E6E6;
- }
- .mobile .list .item .viewImg {
- float: left;
- width: 120px;
- height: 62px;
- margin-right: 16px;
- object-fit: cover;
- display: block;
- }
- .mobile .list .item .name {
- float: left;
- width: 120px;
- height: 42px;
- padding: 10px 0;
- font-size: 14px;
- font-family: PingFang SC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- line-height: 20px;
- }
- </style>
- </head>
- <body>
- <div class="container" id="container">
- <div class="headercontent">
- <div class="header">
- <img src="./image/logo.png" alt="">
- </div>
- </div>
- <div class="list" id="list">
- </div>
- </div>
- <script>
- inter()
- window.addEventListener('resize', inter);
- const list = [{
- id: 1,
- sceneName: 'Song 25.41',
- webSite: 'https://eur.4dkankan.com/spc.html?m=KK-eur-ZqPBmZYOD',
- thumb: 'https://eurs3.4dkankan.com/images/imagesKK-eur-ZqPBmZYOD/thumbBigImg.jpg?_43',
- }, {
- id: 2,
- sceneName: '체스터톤스 속초',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-DERS974172&lang=en',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-DERS974172/user/thumb-1k.jpg?_=100',
- }, {
- id: 3,
- sceneName: '東京タワー',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-kdM29Ent5&lang=zh',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-kdM29Ent5/user/thumb-1k.jpg?_=17',
- }, {
- id: 4,
- sceneName: 'TOKYO TOWER',
- webSite: 'https://mega.4dkankan.jp/index.html?m=SS-jp-ywmQVbYrHte#/',
- thumb: './image/bg_banner.png',
- }, {
- id: 5,
- sceneName: 'MICHAIL GKINIS AOYAMA',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-vJ9xY22YD&lang=en',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-vJ9xY22YD/user/thumb-1k.jpg?_=141',
- }, {
- id: 6,
- sceneName: '関ケ原古戦場記念館',
- webSite: 'https://eur.4dkankan.com/spc.html?m=KJ-eur-H7wnhZMo5&lang=zh',
- thumb: './image/bg_banner.png',
- }, {
- id: 7,
- sceneName: '星の王子さま',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-IHHn93a23e&lang=zh',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-IHHn93a23e/user/thumb-1k.jpg?_=30',
- }, {
- id: 8,
- sceneName: 'Proj:0519.10.30',
- webSite: 'https://laser.4dkankan.com/index.html?m=SS-jOlzSJE5jV',
- thumb: './image/bg_banner.png',
- }, {
- id: 9,
- sceneName: '프레리독',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KK-eur-w9UQ3SLMh',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KK-eur-w9UQ3SLMh/user/thumb-1k.jpg?_=145',
- }, {
- id: 10,
- sceneName: 'TOKYO CITY VIEW | SKY DECK',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-rv0wF7eYh&lang=zh',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-rv0wF7eYh/user/thumb-1k.jpg?_=53',
- }, {
- id: 11,
- sceneName: 'TOKYO CITY VIEW | SKY DECK',
- webSite: 'https://eur.4dkankan.com/spg.html?m=KJ-eur-CFvI90bafc&lang=zh',
- thumb: 'https://eurs3.4dkankan.com/scene_view_data/KJ-eur-CFvI90bafc/user/thumb-1k.jpg?_=127',
- }, {
- id: 12,
- sceneName: '旭橋',
- webSite: 'https://laser.4dkankan.com/index.html?m=SS-36imHa4Sl0&lang=zh#/',
- thumb: './image/bg_banner.png',
- }, {
- id: 13,
- sceneName: '星の王子さま(户外)',
- webSite: 'https://l-prince.4dkankan.jp/spg/?m=SS-tIQYvzaLf8&lang=en ',
- thumb: 'https://4dkk.4dage.com/scene_view_data/SS-tIQYvzaLf8/user/thumb-1k.jpg?_=127',
- }]
- var listDiv = document.getElementById('list');
- for (var i = 0; i < list.length; i++) {
- let item = list[i]
- let divcontent = document.createElement("div");
- var testa = document.createElement("a");
- var testDv = document.createElement("div");
- var testDva = document.createElement("div");
- var testDvaImg = document.createElement("div");
- var divImg = document.createElement("img");
- testDv.id = "t" + i;
- testDv.className = "col-lg-4 name";
- testDv.className += ' col-md-6';
- testDv.innerHTML = item.sceneName
- divcontent.className = 'item'
- testDva.className = 'items'
- testDvaImg.className = 'viewImg'
- divImg.src = item.thumb;
- divImg.onerror = function(){
- this.src = "./image/bg_banner.png";
- }
- testDvaImg.appendChild(divImg)
- testDva.appendChild(testDvaImg);
- testDva.appendChild(testDv);
- testa.target = '_blank'
- testa.href = item.webSite;
- testa.appendChild(testDva)
- divcontent.appendChild(testa)
- listDiv.appendChild(divcontent)
- }
- function inter() {
- setTimeout(() => {
- let myType = 'pc'
- if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
- // 当前设备是移动设备
- myType = 'mobile'
- }
- console.log('inter', myType)
- var div = document.getElementById('container');
- div.setAttribute("class", myType);
- }, 10);
- }
- </script>
- </body>
- </html>
|