Ver código fonte

add mb version

huaisian 3 anos atrás
pai
commit
228f5a9071
5 arquivos alterados com 411 adições e 421 exclusões
  1. 153 1
      css/style.css
  2. 0 0
      css/style.css.map
  3. 118 1
      css/style.scss
  4. 97 2
      index_match.html
  5. 43 417
      js/index_match.js

+ 153 - 1
css/style.css

@@ -1661,6 +1661,12 @@ body {
   bottom: 2rem;
 }
 
+@media screen and (max-width: 576px) {
+  .fixed-btn {
+    bottom: 8rem;
+  }
+}
+
 .fixed-btn .btn-gotop, .fixed-btn .btn-login, .fixed-btn .btn-favor,
 .fixed-btn .btn-match {
   cursor: pointer;
@@ -1759,6 +1765,30 @@ body {
   position: relative;
 }
 
+@media screen and (min-width: 576px) {
+  .sec-match .container__match {
+    max-width: 700px;
+  }
+}
+
+@media screen and (min-width: 768px) {
+  .sec-match .container__match {
+    max-width: 880px;
+  }
+}
+
+@media screen and (min-width: 992px) {
+  .sec-match .container__match {
+    max-width: 1100px;
+  }
+}
+
+@media screen and (min-width: 1100px) {
+  .sec-match .container__match {
+    max-width: 1300px;
+  }
+}
+
 .sec-match p {
   color: #707070;
 }
@@ -1773,19 +1803,44 @@ body {
   transition: all .4s;
 }
 
+@media screen and (max-width: 1025px) {
+  .sec-match__imgfr {
+    height: 10rem;
+  }
+}
+
 .sec-match__imgfr:hover {
   -webkit-transform: scale(1.1);
           transform: scale(1.1);
 }
 
 .sec-match__designer {
-  width: 80%;
+  width: 12rem;
   height: 12rem;
   background-position: center;
   background-size: cover;
   border-radius: 50%;
 }
 
+@media screen and (max-width: 1025px) {
+  .sec-match__designer {
+    width: 10rem;
+    height: 10rem;
+  }
+}
+
+@media screen and (max-width: 1025px) {
+  .sec-match__like {
+    max-width: 9rem;
+  }
+}
+
+@media screen and (max-width: 1025px) {
+  .sec-match__consult {
+    max-width: 9rem;
+  }
+}
+
 .sec-match .btn-match {
   outline: none;
   border: none;
@@ -1818,6 +1873,103 @@ body {
   cursor: pointer;
 }
 
+.sec-result {
+  padding: .5rem;
+}
+
+.sec-result p {
+  color: #707070;
+}
+
+.sec-result__imgfr {
+  width: 90%;
+  height: 18rem;
+  background-image: url(https://images.hhh.com.tw/uploads/_hcolumn_orig/point05_244_01.jpg);
+  background-position: center;
+  background-size: cover;
+}
+
+.sec-result__designer {
+  background-image: url(https://cloud.hhh.com.tw/upload/_hdesigner/img_path_611_20190318172644.jpg);
+  width: 6rem;
+  height: 6rem;
+  background-position: center;
+  background-size: cover;
+  border-radius: 50%;
+}
+
+.sec-result .btn-match {
+  outline: none;
+  border: none;
+  color: #EE7800;
+  border: 1px solid #EE7800;
+  background-color: transparent;
+  padding: .4rem .8rem;
+  -webkit-transition: all .3s;
+  transition: all .3s;
+}
+
+.sec-result .btn-match:hover {
+  background-color: #EE7800;
+  color: white;
+}
+
+.sec-result .container__row {
+  border: 1px solid #B2B2B2;
+  margin-bottom: 1rem;
+}
+
+.sec-result__consulting {
+  color: #707070;
+}
+
+.sec-result__num {
+  color: #EE7800;
+}
+
+.fixed_menu {
+  height: 78px;
+  position: fixed;
+  z-index: 4;
+  bottom: 0;
+  left: 0;
+  width: 100%;
+  background-color: #fff;
+  box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+  -webkit-box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+  -moz-box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+}
+
+@media (min-width: 480px) {
+  .fixed_menu {
+    height: 50px;
+  }
+}
+
+@media (min-width: 480px) {
+  .fixed_menu .row {
+    height: 50px;
+  }
+}
+
+@media (min-width: 480px) {
+  .fixed_menu__box {
+    width: 100%;
+    height: 100%;
+  }
+}
+
+.fixed_menu__box img:focus-visible {
+  outline: none;
+}
+
+@media (min-width: 480px) {
+  .fixed_menu__box img {
+    width: 100%;
+    height: 100%;
+  }
+}
+
 .sec-login-list {
   background-color: #F3F3F3;
   padding: 1rem;

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
css/style.css.map


+ 118 - 1
css/style.scss

@@ -1,3 +1,4 @@
+$horizontal: 480px;
 body {
     font-family: 'Helvetica Neue';
 }
@@ -1344,6 +1345,9 @@ body {
     position: fixed;
     right: 15px;
     bottom: 2rem;
+    @media screen and (max-width: 576px) {
+        bottom: 8rem;
+    }
     .btn-gotop, .btn-login, .btn-favor,
     .btn-match {
         cursor: pointer;
@@ -1428,6 +1432,20 @@ body {
 
 .sec-match {
     position: relative;
+    .container__match {
+        @media screen and (min-width: 576px) {
+            max-width: 700px;
+        }
+        @media screen and (min-width: 768px) {
+            max-width: 880px;
+        }
+        @media screen and (min-width: 992px) {
+            max-width: 1100px;
+        }
+        @media screen and (min-width: 1100px) {
+            max-width: 1300px;
+        }
+    }
     p {
         color: #707070;
     }
@@ -1439,17 +1457,34 @@ body {
         background-size: cover;
         cursor: pointer;
         transition: all .4s;
+        @media screen and (max-width: 1025px) {
+            height: 10rem;
+       }
         &:hover {
             transform: scale(1.1);
         }
     }
     &__designer {
         // background-image: url(https://cloud.hhh.com.tw/upload/_hdesigner/img_path_611_20190318172644.jpg);
-        width: 80%;
+        width: 12rem;
         height: 12rem;
         background-position: center;
         background-size: cover;
         border-radius: 50%;
+        @media screen and (max-width: 1025px) {
+            width: 10rem;
+            height: 10rem;
+       }
+    }
+    &__like {
+        @media screen and (max-width: 1025px) {
+            max-width: 9rem;
+       }
+    }
+    &__consult {
+        @media screen and (max-width: 1025px) {
+            max-width: 9rem;
+       }
     }
     .btn-match {
         outline: none;
@@ -1479,6 +1514,88 @@ body {
     }
 }
 
+.sec-result {
+    padding: .5rem;
+    p {
+        color: #707070;
+    }
+    &__imgfr {
+        width: 90%;
+        height: 18rem;
+        background-image: url(https://images.hhh.com.tw/uploads/_hcolumn_orig/point05_244_01.jpg);
+        background-position: center;
+        background-size: cover;
+    }
+    &__designer {
+        background-image: url(https://cloud.hhh.com.tw/upload/_hdesigner/img_path_611_20190318172644.jpg);
+        width: 6rem;
+        height: 6rem;
+        background-position: center;
+        background-size: cover;
+        border-radius: 50%;
+    }
+    .btn-match {
+        outline: none;
+        border: none;
+        color: #EE7800;
+        border: 1px solid #EE7800;
+        background-color: transparent;
+        padding: .4rem .8rem;
+        transition: all .3s;
+        &:hover {
+            background-color: #EE7800;
+            color: white;
+        }
+    }
+    .container__row {
+        border: 1px solid #B2B2B2;
+        margin-bottom: 1rem;
+    }
+    &__consulting {
+        color: #707070;
+    }
+    &__num {
+        color: #EE7800;
+    }
+}
+
+.fixed_menu {
+    height: 78px;
+    position: fixed;
+    z-index: 4;
+    bottom: 0;
+    left: 0;
+    width: 100%;
+    background-color: #fff;
+    box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+    -webkit-box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+    -moz-box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+    //padding-bottom: 16px;
+    @media (min-width: $horizontal) {
+        height: 50px;
+    }
+    .row {
+        @media (min-width: $horizontal) {
+            height: 50px;
+        } 
+    }
+    &__box {
+        @media (min-width: $horizontal) {
+            width: 100%;
+            height: 100%;
+        } 
+        img {
+            &:focus-visible {
+                outline: none;
+            }
+            @media (min-width: $horizontal) {
+                width: 100%;
+                height: 100%;
+            } 
+        }
+    }
+}
+
 .sec-login {
     &-list {
         background-color: #F3F3F3;

+ 97 - 2
index_match.html

@@ -822,7 +822,7 @@
                 </div>
             </div>
         </nav>
-        <section class="sec-match">
+        <section class="sec-match d-none d-sm-block">
           <a class="close"><img src="https://hhh.com.tw/assets/images/section/icon/photos/icon-close.svg" alt=""></a>
           <h3 class="text-center my-5" style="font-size: 1.2rem;font-weight: 400;color: #707070;">依據你的需求,我們推薦以下案例和幾位設計師為您服務,<br>
             請選擇您有興趣的設計師,設計師將會主動與留言聯繫您。</h3>
@@ -908,7 +908,102 @@
             <a class="btn-call" href="tel:0800-366-086">立即撥打</a>
           </div>
         </section>
-        <footer class="footer">
+        <section class="sec-result d-block d-sm-none" style="padding-bottom: 8rem;">
+          <!-- <a class="close"><img src="https://hhh.com.tw/assets/images/section/icon/photos/icon-close.svg" alt=""></a> -->
+          <h3 class="text-center mt-3 mb-2" style="font-size: 1rem;font-weight: 400;color: #707070;line-height: 1.4rem;">依據你的需求,我們推薦以下案例和幾位設計師為您服務,
+            請選擇您有興趣的設計師,設計師將會主動與留言聯繫您。</h3>
+          <div class=" mb-3 text-center">
+            <p class="mb-1">想找免費顧問來幫你嗎?請撥打<span style="color: #EA068C;">0800-366-086</span>!</p>
+            <a class="btn-call d-inline-block" href="tel:0800-366-086">立即撥打</a>
+          </div>
+          <div class="container container__match container__mb">
+            <div class="row align-items-center py-4 pb-5 justify-content-center text-center container__row" style="border-bottom: 1px solid #B2B2B2;">
+              <div class="col-12 mb-4">
+                <div class="sec-result__imgfr mx-auto"></div>
+                <!-- <img src="https://images.hhh.com.tw/uploads/_hcolumn_orig/point05_244_01.jpg" alt=""> -->
+              </div>
+              <div class="row">
+                <div class="col-6">
+                  <div class="sec-result__designer mx-auto mb-4">
+                  </div>
+                  <button class="btn-match">我有興趣</button>
+                </div>
+                <div class="col-6">
+                  <div class="text-start mx-auto">
+                    <p>周明志 設計師</p>
+                    <p class="mb-2">春風時尚空間設計</p>
+                    <p>擅長風格 現代風 </p>
+                    <p>接案坪數 20~30坪</p>
+                    <p class="mb-2">接案地區 台北 新北 </p>
+                    <span class="sec-result__consulting"><strong class="sec-result__num">15</strong> 人正在諮詢</span>
+                  </div>
+                </div>
+              </div>
+            </div>
+            <div class="row align-items-center py-3 justify-content-center text-center container__row" style="border-bottom: 1px solid #B2B2B2;">
+              <div class="col">
+                <div class="sec-result__imgfr mx-auto"></div>
+                <!-- <img src="https://images.hhh.com.tw/uploads/_hcolumn_orig/point05_244_01.jpg" alt=""> -->
+              </div>
+              <div class="col-12">
+                <div class="sec-result__designer mx-auto">
+                </div>
+              </div>
+              <div class="col-12">
+                <div style="width: 190px;" class="text-start mx-auto">
+                  <p>周明志 設計師</p>
+                  <p class="mb-2">春風時尚空間設計</p>
+                  <p>擅長風格 現代風 </p>
+                  <p>接案坪數 20~30坪</p>
+                  <p>接案地區 台北 新北 </p>
+                </div>
+              </div>
+              <div class="col-12">
+                <p>15 人正在諮詢</p>
+              </div>
+              <div class="col-12">
+                <button class="btn-match">我有興趣</button>
+              </div>
+            </div>
+            <div class="row align-items-center py-3 justify-content-center text-center container__row">
+              <div class="col-12">
+                <div class="sec-result__imgfr mx-auto"></div>
+                <!-- <img src="https://images.hhh.com.tw/uploads/_hcolumn_orig/point05_244_01.jpg" alt=""> -->
+              </div>
+              <div class="col-12">
+                <div class="sec-result__designer mx-auto">
+                </div>
+              </div>
+              <div class="col-12">
+                <div style="width: 190px;" class="text-start mx-auto">
+                  <p>周明志 設計師</p>
+                  <p class="mb-2">春風時尚空間設計</p>
+                  <p>擅長風格 現代風 </p>
+                  <p>接案坪數 20~30坪</p>
+                  <p>接案地區 台北 新北 </p>
+                </div>
+              </div>
+              <div class="col-12">
+                <p>15 人正在諮詢</p>
+              </div>
+              <div class="col-12">
+                <button class="btn-match">我有興趣</button>
+              </div>
+            </div>
+          </div>
+        </section>
+
+        <div class="container-fluid px-0 m-0 fixed_menu d-block d-sm-none">
+          <div class="row gx-2 ps-1 pe-2">
+            <div class="fixed_menu__box col"><a href="https://m.hhh.com.tw/about/request/" target="_blank"><img src="https://m.hhh.com.tw/_nuxt/img/40a8bf5.svg" alt=""></a></div>
+            <div class="fixed_menu__box col"><a href="https://m.hhh.com.tw/about/calculator/" target="_blank"><img src="https://m.hhh.com.tw/_nuxt/img/170ebf4.svg" alt=""></a></div>
+            <div class="fixed_menu__box col"><a href="https://m.hhh.com.tw/decoquery/lists/address/" target="_blank"><img src="https://m.hhh.com.tw/_nuxt/img/479aa61.svg" alt=""></a></div>
+            <div class="fixed_menu__box col"><a href="https://m.hhh.com.tw/program/" target="_blank"><img src="https://m.hhh.com.tw/_nuxt/img/dc6b655.svg" alt=""></a></div>
+            <div class="fixed_menu__box col"><a href="https://m.hhh.com.tw/login/index" target="_blank"><img src="https://m.hhh.com.tw/_nuxt/img/76749fd.svg" alt=""></a></div>
+          </div>
+        </div>
+
+        <footer class="footer d-none d-sm-block">
             <div class="container" style="margin:0 auto;">
                 <div class="row">
                     <div class="col footer__block">

+ 43 - 417
js/index_match.js

@@ -2,9 +2,6 @@ let userAgent;
 let isSafari = false;
 let browserName;
 window.onload = function(){
-    if(screen.width < 900){
-        window.location.href = "https://m3.hhh.com.tw/";   
-    }
     userAgent = navigator.userAgent;
     detectBrowser(userAgent);
     detectDirection ();
@@ -16,17 +13,6 @@ window.onload = function(){
           dataType: "json",
       }).done(function (msg) {
           result = [...msg];
-          renderSec00(result);
-          renderSec02(result);
-          renderSec05(result);
-          renderSec06(result);
-          renderSec07(result);
-          renderSec08(result);
-          renderSec09(result);
-          renderSec10(result);
-          //renderSec11(result);
-          renderVideo(result);
-          renderTrending(result);
       });
       $.ajax({
         method: "GET",
@@ -35,6 +21,7 @@ window.onload = function(){
     }).done(function (msg) {
         matchData = [...msg];
         renderMatch(matchData);
+        renderMatchMb(matchData);
     });
 }
 
@@ -62,10 +49,14 @@ function renderMatch(matchData){
                         <p>接案地區 ${matchData[i].Area}</p>
                     </div>
                     </div>
-                    <div class="col">
-                    <p>${matchData[i].Consulting} 人正在諮詢</p>
+                    <div class="col sec-match__consult d-none d-md-block">
+                        <p>${matchData[i].Consulting} 人正在諮詢</p>
                     </div>
-                    <div class="col">
+                    <div class="col sec-match__like d-none d-md-block">
+                        <button class="btn-match">我有興趣</button>
+                    </div>
+                    <div class="col sec-match__like d-block d-md-none">
+                        <p class="mb-3">${matchData[i].Consulting} 人正在諮詢</p>
                         <button class="btn-match">我有興趣</button>
                     </div>
                 </div>`
@@ -74,6 +65,41 @@ function renderMatch(matchData){
     $('.container__match').html(str);
     
 }
+
+function renderMatchMb(matchData) {
+    let str = '';
+    for(let i = 0; i < matchData.length; i++){
+        str += `<div class="row align-items-center py-4 justify-content-center text-center container__row" style="border-bottom: 1px solid #B2B2B2;">
+                    <div class="col-12 mb-4">
+                        <div class="sec-result__imgfr mx-auto" style="background-image: url('${matchData[i].WorkImg}');"
+                        onclick="window.open('${matchData[i].DesignerLink}');"></div>
+                        </div>
+                    <div class="row">
+                        <div class="col-5">
+                            <div class="sec-result__designer mx-auto mb-4" style="background-image: url('${matchData[i].DesignerImg}');">
+                            </div>
+                        </div>
+                        <div class="col-7">
+                            <div class="text-start mx-auto">
+                                <p>${matchData[i].Name} 設計師</p>
+                                <p class="mb-2">${matchData[i].CompanyName}</p>
+                                <p>擅長風格 ${matchData[i].Style}</p>
+                                <p>接案坪數 ${matchData[i].Square}</p>
+                                <p class="mb-2">接案地區 ${matchData[i].Area}</p>
+                                <span class="sec-result__consulting"><strong class="sec-result__num">${matchData[i].Consulting}</strong> 人正在諮詢</span>
+                            </div>
+                    </div>
+                    <div class="col-12 mt-4">
+                        <button class="btn-match">我有興趣</button>
+                    </div>
+                </div>
+            </div>
+                `
+    }
+
+    $('.container__mb').html(str);
+    
+}
   
 $(document).on("click", ".btn-match", function (event) {
     Swal.fire({
@@ -113,342 +139,6 @@ function detectBrowser(agent){
 
 
 
-    function renderSec00(data) {
-        let temp = data[0]['data'];
-        renderBannerStr('sec-00__slider', temp);
-        $(".sec-00__slider").slick({
-            dots: false,
-            speed: 800,
-            autoplay: true,
-            autoplaySpeed: 5000,
-            arrows: true,
-            prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 32px;color: white;transform: translateY(-10px);"></i></button>',
-            nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 32px;color: white;transform: translateY(-10px);"></i></button>'
-        });
-    }
-
-    function renderSec02(data) {
-        let temp = data[1]['data'];
-        renderBannerStr('sec-02__slider', temp);
-        $(".sec-02__slider").slick({
-            dots: false,
-            autoplay: true,
-            arrows: true,
-            fade: true,
-            autoplaySpeed: 4000,
-            prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 33px;color: white;transform: translateY(-10px);"></i></button>',
-            nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 33px;color: white;transform: translateY(-10px);"></i></button>'
-        });
-    }
-
-    function renderBannerStr(sec, data) {
-        let str = '';
-        for(let i = 0; i < data.length; i++){
-            if(data[i]['Dwebp'] && !isSafari) {
-                str+= `<div class="${sec}-${i+1} slide-item" onclick="window.open('${data[i]['link']}');" style="background-image: url('${data[i]['Dwebp']}');" data-bg="${data[i]['Dwebp']}"></div>`
-            } else {
-                str+= `<div class="${sec}-${i+1} slide-item" onclick="window.open('${data[i]['link']}');" style="background-image: url('${data[i]['DimgUrl']}');" data-bg="${data[i]['DimgUrl']}"></div>`
-            }
-            
-        }
-        $(`.${sec}`).html(str);
-    }
-
-    function renderSec05(data) {
-        let randomIdx = Math.floor(Math.random()*3);
-        const ran = $('.sec-05__tabdiv .nav-pills li').eq(randomIdx);
-        const ranDiv = $('.sec-05tab-content>div').eq(randomIdx);
-        $('.sec-05tab-content>div').hide();
-        ranDiv.show();
-        ran.addClass('active');
-        ran.children().addClass('active');
-        $('.sec-05 .morelink').attr('href', $('.sec-05__tabdiv .nav-item-link.active').data('link'));
-          let temp = data[2]['data'];
-          for(let i = 0; i < temp.length; i++){
-            if(temp[i]["tab"] == '最夯設計'){
-              let str = '';
-              let sub = temp[i]["data"];
-              for(let j = 0; j < sub.length; j++){
-                str+= `<div class="tabpar__card" onclick="window.open('${sub[j]['link']}');">
-                    <div class="tabpar__card__imgfr mb-2" style="background-image: url('${sub[j]['imgUrl']}');" data-bg="${sub[j]['imgUrl']}"></div>
-                    <h5 class="mb-2 me-2">${sub[j]['title']}</h5>
-                    <p class="mt-2">${sub[j]['description']}</p>
-                </div>`;
-              }
-              $('#pills-hot-tab .tabpar').html(str);
-            }
-            if(temp[i]["tab"] == '影音實錄'){
-              let str = '';
-              let sub = temp[i]["data"];
-              for(let j = 0; j < sub.length; j++){
-                str+= `<div class="tabpar__card" onclick="window.open('${sub[j]['link']}');">
-                <div class="tabpar__card__imgfr mb-2" style="background-image: url('${sub[j]['imgUrl']}');" data-bg="${sub[j]['imgUrl']}"><img data-src="images/Play-Button.webp" alt="" class="tabpar__card__play lazyload"></div>
-                <h5 class="mb-2  me-2">${sub[j]['title']}</h5>
-                <p class="mt-2">${sub[j]['description']}</p>
-            </div>`;
-              }
-              $('#pills-video-tab .tabpar').html(str);
-            }
-            if(temp[i]["tab"] == '專欄文章'){
-              let str = '';
-              let sub = temp[i]["data"];
-              for(let j = 0; j < sub.length; j++){
-                str+= `<div class="tabpar__card" onclick="window.open('${sub[j]['link']}');">
-                <div class="tabpar__card__imgfr mb-2" style="background-image: url('${sub[j]['imgUrl']}');" data-bg="${sub[j]['imgUrl']}"></div>
-                <h5 class="mb-2  me-2">${sub[j]['title']}</h5>
-                <p class="mt-2">${sub[j]['description']}</p>
-            </div>`;
-              }
-              $('#pills-blog-tab .tabpar').html(str);
-            }
-          }
-          const cardText = document.querySelectorAll('.tabpar__card p');
-          cardText.forEach((item, i) => {
-            let len = item.textContent.length;
-            if(len > 18) {
-              let str = item.textContent.substring(0, 18) + '...';
-              item.textContent = str;
-            }
-          })
-          $('.sec-05__tabdiv .nav-pills button').on('click', function(event){
-            event.preventDefault();
-            $('.sec-05__tabdiv .nav-pills li').removeClass('active');
-            $('.sec-05__tabdiv .nav-pills li button').removeClass('active');
-            $(this).addClass('active');
-            $(this).parent().addClass('active');
-            $('.sec-05tab-content>div').hide();
-            var target = $(this).attr('id');
-            $(`#pills-tab #${target}`).show();
-            $('.sec-05tab-content .tabpar').slick('setPosition');
-        });
-
-        $(`.sec-05tab-content .tabpar`).slick({
-            arrows: true,
-            slidesToShow: 3,
-            infinite: false,
-            dots: false,
-            slidesToScroll: 1,
-            prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 35px;color: black;"></i></button>',
-            nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 35px;color: black;"></i></button>'
-        });
-
-        $('.sec-05__tabdiv .nav-item-link').click(function() {
-            $('.sec-05 .morelink').attr('href',$('.sec-05__tabdiv .nav-item-link.active').data('link'));
-        });
-    }
-
-    function renderSec06(data) {
-        let temp = data[3]['data'];
-        let str = '';
-        for(let i = 0; i < temp.length; i++){
-            if(temp[i].video == 'true'){
-                str+= `<div class="sec-06__card" onclick="window.open('${temp[i]['link']}');">
-                    <div class="sec-06__card__outer"><div class="sec-06__card__imgfr mb-2" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"><img class="sec-06__card__play lazyload" data-src="images/Play-Button.webp"></div></div>
-                    <h5 class="mb-2 mt-2">${temp[i]['title']}</h5>
-                    <p class="mt-2">${temp[i]['description']}</p>
-                    </div>`;
-            } else {
-                str+= `<div class="sec-06__card" onclick="window.open('${temp[i]['link']}');">
-                    <div class="sec-06__card__outer"><div class="sec-06__card__imgfr mb-2" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"></div></div>
-                    <h5 class="mb-2 mt-2">${temp[i]['title']}</h5>
-                    <p class="mt-2">${temp[i]['description']}</p>
-                    </div>`;
-            }
-        }
-        $('.sec-06 .sec-06__slider').html(str);
-        $('.sec-06__slider').slick({
-            arrows: true,
-            dots: false,
-            speed: 800,
-            prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 30px;color: white;"></i></button>',
-            nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 30px;color: white;"></i></button>'
-        });
-        const cardText = document.querySelectorAll('.sec-06__card p');
-        cardText.forEach((item, i) => {
-            let len = item.textContent.length;
-            if(len > 20) {
-              let str = item.textContent.substring(0, 40) + '...';
-              item.textContent = str;
-            }
-        });
-    }
-
-    function renderSec07(data) {
-        let temp = data[5]['data'];
-        let str = '';
-        for(let i = 0; i < temp.length; i++){
-            str+= `<div class="sec-07__slider-${i+1} slide-item" onclick="window.open('${temp[i]['link']}');" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"></div>`
-        }
-        $(`.sec-07__slider`).html(str);
-        $(".sec-07__slider").slick({
-            dots: false,
-            autoplay: true,
-            arrows: false,
-            slidesToShow: 4,
-            slidesToScroll: 1,
-            autoplaySpeed: 7000,
-            initialSlide: 0,
-            infinite: true,
-        });
-    }
-
-    function renderSec08(data) {
-        let temp = data[4]['data'];
-        let str = '';
-        for(let i = 0; i < temp.length; i++){
-            if(temp[i].video == 'true'){
-                str+= `<div class="sec-08__slider-${i+1} sec-08__card col-12 mx-2" onclick="window.open('${temp[i]['link']}');">
-                        <div class="sec-08__imgfr mb-2" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"><img class="sec-08__card__play lazyload" data-src="images/Play-Button.webp"></div>
-                        <h5 class="mb-2 me-2">${temp[i]['title']}</h5>
-                        <p class="mb-2 me-2">${temp[i]['description']}</p>
-                    </div>`;
-            } else {
-                str+= `<div class="sec-08__slider-${i+1} sec-08__card col-12 mx-2" onclick="window.open('${temp[i]['link']}');">
-                        <div class="sec-08__imgfr mb-2" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"></div>
-                        <h5 class="mb-2 me-2">${temp[i]['title']}</h5>
-                        <p class="mb-2 me-2">${temp[i]['description']}</p>
-                    </div>`;
-            }
-        }
-        $('.sec-08__slider').html(str);
-        $(".sec-08__slider").slick({
-          arrows: true,
-          slidesToShow: 1,
-          infinite: false,
-          dots: false,
-          slidesToShow: 3,
-          centerPadding: '12px',
-          prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 35px;color: black;"></i></button>',
-            nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 35px;color: black;"></i></button>'
-      });
-      const cardText = document.querySelectorAll('.sec-08__card p');
-        cardText.forEach((item, i) => {
-          let len = item.textContent.length;
-          if(len > 20) {
-            let str = item.textContent.substring(0, 20) + '...';
-            item.textContent = str;
-          }
-        })
-    }
-
-    function renderSec09(data) {
-        let temp = data[6]['data'];
-        let str = '';
-        for(let i = 0; i < temp.length; i++){
-            if(temp[i].video !== 'false') {
-                str+= `<div class="sec-09__slider-1 sec-09__card col-12 mx-2" onclick="window.open('${temp[i]['link']}');">
-                      <div class="sec-09__imgfr mb-2" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"><img class="sec-09__card__play lazyload" data-src="images/Play-Button.webp"></div>
-                      <p class="sec-09__cardtxt">${temp[i]['title']}</p>
-                    </div>`
-            } else {
-                str+= `<div class="sec-09__slider-1 sec-09__card col-12 mx-2" onclick="window.open('${temp[i]['link']}');">
-                      <div class="sec-09__imgfr mb-2" style="background-image: url('${temp[i]['imgUrl']}');" data-bg="${temp[i]['imgUrl']}"></div>
-                      <p class="sec-09__cardtxt">${temp[i]['title']}</p>
-                    </div>`
-            }
-            
-        }
-        $('.sec-09__slider').html(str);
-        $(".sec-09__slider").slick({
-            autoplay: true,
-            autoplaySpeed: 7000,
-            arrows: true,
-            slidesToShow: 4,
-            infinite: true,
-            dots: false,
-            slidesToScroll: 1,
-            prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 35px;color: black;"></i></button>',
-            nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 35px;color: black;"></i></button>'
-        });
-    }
-    function renderSec10(data) {
-        renderRecStr("sec-10", data[7]['data'].slice(0, 6));
-        renderRecStr("sec-11", data[8]['data'].slice(0, 6));
-    }
-
-    function renderRecStr(sec, data) {
-        let str = '';
-        for(let i = 0; i < data.length; i++){
-            //console.log(data[i]['description'].length);
-            if(data[i]['description'].length > 0) {
-                data[i]['description'].split(',');
-                data[i]['description'] = data[i]['description'].split(',').slice(1).join("");
-            }
-            if(data[i].video !== 'false') {
-                str+= `<div class="${sec}__card col-4 mb-3" onclick="window.open('${data[i]['link']}');">
-                        <div class="${sec}__card-img mb-2" style="background-image: url('${data[i]['imgUrl']}');" data-bg="${data[i]['imgUrl']}"><img class="${sec}__card__play lazyload" data-src="images/Play-Button.webp"></div>
-                        <h5 class="me-2">${data[i]['title']}</h5>
-                        <p class="${sec}__cardtxt me-2">${data[i]['description']}</p>
-                    </div>`
-            } else {
-                str+= `<div class="${sec}__card col-4 mb-3" onclick="window.open('${data[i]['link']}');">
-                        <div class="${sec}__card-img mb-2" style="background-image: url('${data[i]['imgUrl']}');" data-bg="${data[i]['imgUrl']}"></div>
-                        <h5 class="me-2">${data[i]['title']}</h5>
-                        <p class="${sec}__cardtxt me-2">${data[i]['description']}</p>
-                    </div>`
-            }
-            
-        }
-        $(`.${sec} .row`).html(str);
-        const cardText = document.querySelectorAll(`.${sec}__card p`);
-        cardText.forEach((item, i) => {
-          let len = item.textContent.length;
-          if(len > 18) {
-            let str = item.textContent.substring(0, 18) + '...';
-            item.textContent = str;
-          }
-        })
-    }
-
-    function renderVideo(data) {
-        let temp = data[9];
-        console.log(data[9]);
-        $('.sec-06__videotxt').text(temp['title']);
-        console.log('test');
-        $('.sec-06__video__imgfr').css('background-image', `url(https://img.youtube.com/vi/${temp['yt']}/hqdefault.jpg)`);
-        $('#videoModal').on('shown.bs.modal', function () {
-            $('#videoModal iframe').attr('src', `https://www.youtube.com/embed/${temp['yt']}?controls=0&autoplay=1&amp;enablejsapi=1&amp;origin=https%3A%2F%2Fm.hhh.com.tw&amp;widgetid=1`);
-        });
-        $('#videoModal').on('hidden.bs.modal', function () {
-          $('#videoModal iframe').removeAttr('src');
-        });
-    }
-
-    function renderTrending(result){
-        let temp = result[10]['data'];
-        let str = '';
-        for(let i = 0; i < temp.length; i++){
-            str += `<a class="dropbox__hots__link" href="https://hhh.com.tw/search/lists/case/${temp[i]}-keyword/">${temp[i]}</a>`
-        }
-        $('.dropbox__hots').html(`<strong class="dropbox__hots__title">熱搜關鍵字:</strong>${str}`);
-    }
-
-
-function tab2 () {
-    if(('.dropbox__tabdiv').length){
-        // Show the first tab by default
-    $('.dropbox-tab-content>div').hide();
-    $('.dropbox-tab-content>div:first').show();
-    $('.dropbox__tabdiv .nav-pills li:first').addClass('active');
-    $('.dropbox__tabdiv .nav-pills li:first button').addClass('active');
-
-    // Change tab class and display content
-    $('.dropbox__tabdiv .nav-pills button').on('click', function(event){
-        event.preventDefault();
-        $('.dropbox__tabdiv .nav-pills li').removeClass('active');
-        $('.dropbox__tabdiv .nav-pills li button').removeClass('active');
-        $(this).addClass('active');
-        $(this).parent().addClass('active');
-        $('.dropbox-tab-content>div').hide();
-        var target = $(this).attr('id');
-        $(`#pills-tab-2 #${target}`).show();
-    });
-    }
-}
-
-tab2();
-
-
 window.addEventListener('scroll', fixedOnScroll);
     
 const navbar = document.querySelector('.navbar-main');
@@ -586,71 +276,7 @@ $('.match__next').click(function() {
     $('.container_match').fadeOut(0);
     $('.container_match2').fadeIn(500);
 })
-// city result
-
 
-    //jQuery time
-    var current_fs, next_fs, previous_fs; //fieldsets
-    var left, opacity, scale; //fieldset properties which we will animate
-    var animating; //flag to prevent quick multi-click glitches
-    
-    $(".next").click(function(){
-         if(animating) return false;
-         animating = true;
-        
-        current_fs = $(this).parent().parent();
-        next_fs = $(this).parent().parent().next();
-        
-        //activate next step on progressbar using the index of next_fs
-        $(".form-progressbar li").eq($("fieldset").index(next_fs)).addClass("active");
-        
-        //show the next fieldset
-        next_fs.animate({opacity: 1}, {
-            step: function(now, mx) {
-                //as the opacity of current_fs reduces to 0 - stored in "now"
-                //1. scale current_fs down to 80%
-                scale = 0 + (1 + now) * .5 ;
-                //2. bring next_fs from the right(50%)
-                left = (now * 50)+"%";
-                //3. increase opacity of next_fs to 1 as it moves in
-                opacity = 0 + now;
-                next_fs.css({
-            'transform': 'scale('+scale+')',
-          });
-                next_fs.css({'opacity': opacity});
-            }, 
-            duration: 400, 
-            complete: function(){
-                next_fs.show();
-                animating = false;
-            }, 
-            //this comes from the custom easing plugin
-            easing: 'easeInOutBack'
-      }); 
-        //hide the current fieldset with style
-         current_fs.animate({opacity: 0}, {
-            step: function(now, mx) {
-                //as the opacity of current_fs reduces to 0 - stored in "now"
-                //1. scale current_fs down to 80%
-                scale = 1 - (1 - now) * 0.2;
-                //2. bring next_fs from the right(50%)
-                left = (now * 50)+"%";
-                //3. increase opacity of next_fs to 1 as it moves in
-                opacity = 1 - now;
-                current_fs.css({
-            'transform': 'scale('+scale+')',
-          });
-                next_fs.css({'opacity': opacity});
-            }, 
-            duration: 400, 
-            complete: function(){
-                current_fs.hide();
-                animating = false;
-            }, 
-            //this comes from the custom easing plugin
-            easing: 'easeInOutBack'
-      }); 
-    });
 
 $('.close').click(function () {
     window.close();

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff