jeter20131220 3 lat temu
rodzic
commit
b67de6caf7
2 zmienionych plików z 66 dodań i 42 usunięć
  1. 61 37
      goto.js
  2. 5 5
      index.html

+ 61 - 37
goto.js

@@ -1,10 +1,34 @@
 var random = Math.floor(Math.random() * $('.youtube').length);
 $('.youtube').hide().eq(random).show();
 
-// 廣告區域輪播
+$(".youtube7-10").hide();
+
+// (function () {
+//   const second = 1000,
+//     minute = second * 60,
+//     hour = minute * 60,
 
-    
   
+// }());
+
+// var today =new Date();
+// console.log(today);
+// var day3 = new Date();
+
+// day3.setTime(day3.getTime()+24*60*60*1000); 
+
+// console.log(day3);
+
+
+// $(".youtube7-10").hide();
+
+//   if (today = day3) {
+//     $(".youtube7-10").show();
+//   }
+
+
+
+
 
 // sec03排名table輪播
 $('#sec03-slider').slick({
@@ -24,7 +48,7 @@ $('#sec05-moblie-slider').slick({
   slidesToShow: 1,
   slidesToScroll: 1,
   infinite: true,
- 
+
 
 });
 
@@ -68,8 +92,8 @@ $(function () {
     slidesToScroll: 3,
     infinite: true,
     arrows: true,
- 
-    
+
+
     responsive: [
       {
         breakpoint: 600, // RWD在1024寬度時切換顯示數量
@@ -78,7 +102,7 @@ $(function () {
           slidesToShow: 1, //一次顯示3個
           slidesToScroll: 1,//切換下一頁時移動3個
           infinite: true,
-          dots:false,
+          dots: false,
 
         }
       }, {
@@ -88,7 +112,7 @@ $(function () {
           slidesToShow: 1,//一次顯示2個
           slidesToScroll: 1,//切換下一頁時移動2個
           infinite: true,
-          dots:false,
+          dots: false,
 
         }
       },
@@ -308,48 +332,48 @@ $(".contact-form-mobile").submit(function (e) {
     });
   return false;
 });
-$(function() {
-
-$("#sec05-moblie").swipe( { fingers:'all', swipeLeft:swipe1, swipeRight:swipe2} );
-function swipe1(event, direction, distance, duration, fingerCount) {
-  $('#sec05-moblie-slider').slick('slickNext')//向左滑動你要執行的動作 
-}
-function swipe2(event, direction, distance, duration, fingerCount) {
-  $('#sec05-moblie-slider').slick('slickPrev') //向右滑動你要執行的動作
-}
+$(function () {
+
+  $("#sec05-moblie").swipe({ fingers: 'all', swipeLeft: swipe1, swipeRight: swipe2 });
+  function swipe1(event, direction, distance, duration, fingerCount) {
+    $('#sec05-moblie-slider').slick('slickNext')//向左滑動你要執行的動作 
+  }
+  function swipe2(event, direction, distance, duration, fingerCount) {
+    $('#sec05-moblie-slider').slick('slickPrev') //向右滑動你要執行的動作
+  }
 });
 
-$(function() {
+$(function () {
 
-  $(".sec05-button").swipe( { fingers:'all', swipeLeft:swipe1, swipeRight:swipe2} );
+  $(".sec05-button").swipe({ fingers: 'all', swipeLeft: swipe1, swipeRight: swipe2 });
   function swipe1(event, direction, distance, duration, fingerCount) {
     $('#sec05-moblie-slider').slick('slickNext')//向左滑動你要執行的動作 
   }
   function swipe2(event, direction, distance, duration, fingerCount) {
     $('#sec05-moblie-slider').slick('slickPrev') //向右滑動你要執行的動作
   }
-  });
+});
 
-  $(function() {
+$(function () {
 
-    $("#sec06").swipe( { fingers:'all', swipeLeft:swipe1, swipeRight:swipe2} );
-    function swipe1(event, direction, distance, duration, fingerCount) {
-      $('#sec06-container').slick('slickNext')//向左滑動你要執行的動作 
-    }
-    function swipe2(event, direction, distance, duration, fingerCount) {
-      $('#sec06-container').slick('slickPrev') //向右滑動你要執行的動作
-    }
-  });
+  $("#sec06").swipe({ fingers: 'all', swipeLeft: swipe1, swipeRight: swipe2 });
+  function swipe1(event, direction, distance, duration, fingerCount) {
+    $('#sec06-container').slick('slickNext')//向左滑動你要執行的動作 
+  }
+  function swipe2(event, direction, distance, duration, fingerCount) {
+    $('#sec06-container').slick('slickPrev') //向右滑動你要執行的動作
+  }
+});
 
-  $(function() {
+$(function () {
 
-    $("#sec04-moblie").swipe( { fingers:'all', swipeLeft:swipe1, swipeRight:swipe2} );
-    function swipe1(event, direction, distance, duration, fingerCount) {
-      $('#sec04-moblie-container').slick('slickNext')//向左滑動你要執行的動作 
-    }
-    function swipe2(event, direction, distance, duration, fingerCount) {
-      $('#sec04-moblie-container').slick('slickPrev') //向右滑動你要執行的動作
-    }
-  });
+  $("#sec04-moblie").swipe({ fingers: 'all', swipeLeft: swipe1, swipeRight: swipe2 });
+  function swipe1(event, direction, distance, duration, fingerCount) {
+    $('#sec04-moblie-container').slick('slickNext')//向左滑動你要執行的動作 
+  }
+  function swipe2(event, direction, distance, duration, fingerCount) {
+    $('#sec04-moblie-container').slick('slickPrev') //向右滑動你要執行的動作
+  }
+});
 
 

+ 5 - 5
index.html

@@ -89,7 +89,7 @@
     <section id="banner" class="container-fluid" style="margin: 0; padding: 0;">
         <div id="banner-container">
             <div class="youtube-slider">
-                <!-- <div class="youtube7-10">
+                <div class="youtube7-10">
                     <div class="row">
                         <div id="youtube-text" class="col-12 order-2 col-lg-5 order-lg-1 ">
                             <a target="_blank" href="">
@@ -109,7 +109,7 @@
                         </div>
                     </div>
 
-                </div> -->
+                </div>
                 <div class="youtube ">
                     <div class="row">
                         <div id="youtube-text" class="col-12 order-2 col-lg-5 order-lg-1 ">
@@ -202,7 +202,7 @@
             <!-- 電腦版按鈕 -->
             <form class="contact-form-destop">
                 <h1>歡迎訂閱掌握最新活動資訊</h1>
-                <input type="email" name="email" id="email" placeholder="請在此輸入email"><input class="btn" type="submit"
+                <input type="email" name="email" id="email" placeholder="請在此輸入email" required><input class="btn" type="submit"
                     value="立即訂閱">
             </form>
             <!-- 手機板按鈕 -->
@@ -210,8 +210,8 @@
                 <div class="youtube-text-hr" style="border-top:1px dashed #cccccc;height: 1px;overflow:hidden"></div>
                 <h1>歡迎訂閱掌握最新活動資訊</h1>
                 <div style="text-align: center;">
-                    <input type="email" name="email" id="email-moblie" placeholder="請在此輸入email"><input id="email-arrow"
-                        type="submit" value="">
+                    <input type="email" name="email" id="email-moblie" placeholder="請在此輸入email" required><input id="email-arrow"
+                        type="submit">
                 </div>
 
             </form>