huai-sian пре 3 година
родитељ
комит
ce0509c186
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      js/index.js

+ 7 - 0
js/index.js

@@ -2,7 +2,14 @@ window.onload = function(){
     if(screen.width < 900){
     if(screen.width < 900){
         window.location.href = "https://m3.hhh.com.tw/";   
         window.location.href = "https://m3.hhh.com.tw/";   
     }
     }
+    detectDirection ();
 }
 }
+  
+  function detectDirection () {
+    let height = (window.screen.width * 5) / 12;
+    console.log(height);
+    $('.sec-02 .slide-item').css('height', `${height}px`);
+  }
 
 
 let result;
 let result;
       $.ajax({
       $.ajax({