Sfoglia il codice sorgente

redirect based on screen width

huaisianhuang 3 anni fa
parent
commit
08021635a7
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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,