jeter20131220 3 anni fa
parent
commit
e54463c3b6
3 ha cambiato i file con 30 aggiunte e 23 eliminazioni
  1. 2 1
      about/index.html
  2. 22 20
      goto.js
  3. 6 2
      index.html

+ 2 - 1
about/index.html

@@ -96,7 +96,8 @@
             </div>
            
             <!-- 手機板 -->
-            <a style="text-decoration: none;" href="../index.html"><div class="banner-m row vertical align-items-end px-0 mx-0"></div></a>
+             
+                <div class="banner-m row vertical align-items-end px-0 mx-0"></div>
        
                 
                 <ul class="nav row nav-pills mb-3 col-12 justify-content-md-center rounded-pill" id="pills-tab" role="tablist">

+ 22 - 20
goto.js

@@ -55,7 +55,7 @@ console.log(28);
 //  })
 
 
-  function funcTest2(){
+function funcTest2() {
   $.ajax({
     method: "GET",
     url: "designer4.json",
@@ -94,13 +94,15 @@ console.log(28);
               <img class="img-fluid" src="./img/banner/banner-mobile.png" alt="">\
               </div>\
               <div class="bannerm-2 col-7 order-2 col-lg-2 order-3 px-0 mx-0">\
-                  <img class="img-fluid" src="'+ msg[arrIndex].Designerimg + '" alt="">\
+              <a href="./about/index.html?id='+ msg[arrIndex].id + '"><img class="img-fluid" src="' + msg[arrIndex].Designerimg + '" alt=""></a>\
               </div>\
               <div class="bannerm-1 col-5 order-3 col-lg-5 order-2 text-white text-start py-3">\
-                  <div class="banner1-1" style="font-weight: 900;">'+ msg[arrIndex].WorkName + '</div>\
-                  <p><span class="fs-5">'+ msg[arrIndex].DesignerName + '</span>設計師</p>\
+              <a style="text-decoration: none;color:#fff;" href="./about/index.html?id='+ msg[arrIndex].id + '">\
+              <div class="banner1-1" style="font-weight: 900;">'+ msg[arrIndex].WorkName + '</div>\
+              <p><span class="fs-5">'+ msg[arrIndex].DesignerName + '</span>設計師</p>\
+              </a>\
               </div>\
-            </div>';
+            </div > ';
 
       bodyBannerDes += ' \
             <img class="banner-img img-fluid" id="img_id"  src="'+ msg[arrIndex].workimg[0].img + '" alt="">\
@@ -116,10 +118,10 @@ console.log(28);
       // $('#jsontest').append(test);
     });
 
-    // window.setInterval("funcTest2()",5000);
-    
-  }
-  window.onload = funcTest2();
+  // window.setInterval("funcTest2()",5000);
+
+}
+window.onload = funcTest2();
 
 
 // 點選該設計師,導至其對應id的參數網址
@@ -279,15 +281,15 @@ $('#491').click(function () {
 
 
 
-// function funcTest(){
-// $("div.sec01-designer div").sort(function(){
-//   return Math.random()*10 > 5 ? 1 : -1;
-// },).each(function(){
-//   var $t = $(this),
-//       color = $t.attr("");
-//   $t.css({backgroundColor: color}).appendTo( $t.parent() );
-// });
-// window.setInterval("funcTest()",5000);
-// }
+function funcTest() {
+  $("div.sec01-designer div").sort(function () {
+    return Math.random() * 10 > 5 ? 1 : -1;
+  }).each(function () {
+    var $t = $(this),
+      color = $t.attr("");
+    $t.css({ backgroundColor: color }).appendTo($t.parent());
+  });
+  // window.setInterval("funcTest()",5000);
+}
 
-// window.onload = funcTest();
+window.onload = funcTest();

+ 6 - 2
index.html

@@ -5,8 +5,11 @@
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-    <title>觀眾最愛設計師</title>
+    <meta name="description" content=":::幸福空間::: 2021 觀眾最愛設計師 | 滿足你期待回家的夢想推手">
+    <meta name="keywords" content="幸福空間, 2021, 觀眾最愛, 設計師, 家, 夢想, 滿足">
+    <meta property="og:description" content="幸福溫馨氛圍營造、設計創意源源不絕、機能動線超強規劃,為你創造夢想中的居家!" />
+    <meta property="og:site_name" content=":::幸福空間::: 2021 觀眾最愛設計師 | 滿足你期待回家的夢想推手" />
+    <title>:::幸福空間::: 2021 觀眾最愛設計師 | 滿足你期待回家的夢想推手</title>
 
 
     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
@@ -96,6 +99,7 @@
                         <img class="img-fluid" src="./img/banner/28.png" alt="">
                     </div> -->
                 </div>
+             
                 <!-- 手機板 -->
                 <div class="banner-m row vertical align-items-end px-0 mx-0">
                     <!-- <div class="bannerm-1 col-7">