Ver Fonte

redirect based on screen width

huaisianhuang há 3 anos atrás
pai
commit
08021635a7
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      js/index.js

+ 6 - 0
js/index.js

@@ -1,3 +1,9 @@
+window.onload = function(){
+  if(screen.width >= 901){
+      window.location.href = "https://www2.hhh.com.tw/";   
+  }
+}
+
 $(".sec-01__slider").slick({
         dots: true,
         autoplay: false,