Przeglądaj źródła

'oak正站預處理'

oak 5 miesięcy temu
rodzic
commit
56d7a42701

+ 24 - 0
builder/lists/js/main.js

@@ -4,10 +4,34 @@ $('#footer').load('../../template/footer.html');
 $('#btn-box').load('../../template/button.html');
 $('#topCarousel').load('../../template/top_carousel.html');
 
+// window.onload = function () {
+
+//     if (screen.width < 991) {
+       
+//         window.location.href = `https://m.hhh.com.tw/builder/lists/`;
+//     }
+// }
+
+// window.onload = function () {
+//   //hhh_user_api();
+//     if (screen.width >= 991) {
+    
+//     window.location.href =`https://hhh.com.tw/builder/lists/`;
+//   }
+
+// }
+
+
+
+
+
+
 let page = 1; // 當前頁數
 let pageSize = 18; // 每頁數量
 let isFirstLoad = true; // 初始載入
 
+
+
 // 列表篩選
 async function dataSearch(type = "") {
   let url;

+ 21 - 0
cases/lists/js/main.js

@@ -4,6 +4,25 @@ $('#footer').load('../../template/footer.html');
 $('#btn-box').load('../../template/button.html');
 $('#topCarousel').load('../../template/top_carousel.html');
 
+
+
+// window.onload = function () {
+
+//     if (screen.width < 991) {
+       
+//         window.location.href = `https://m.hhh.com.tw/cases/lists/`;
+//     }
+// }
+
+// window.onload = function () {
+//   //hhh_user_api();
+//     if (screen.width >= 991) {
+    
+//     window.location.href =`https://hhh.com.tw/cases/lists/`;
+//   }
+
+// }
+
 let assignOrder = ""; // 當前排序
 
 // new, hot, recommend 排序 (預設推薦)
@@ -19,6 +38,8 @@ let page = 1; // 當前頁數
 let pageSize = 18; // 每頁數量
 let isFirstLoad = true; // 初始載入
 
+
+
 // 列表篩選
 async function dataSearch(type = "") {
   let url;

+ 28 - 0
columns/lists/js/main.js

@@ -4,6 +4,34 @@ $('#footer').load('../../template/footer.html');
 $('#btn-box').load('../../template/button.html');
 $('#topCarousel').load('../../template/top_carousel.html');
 
+
+// window.onload = function () {
+
+//     if (screen.width < 991) {
+       
+//         window.location.href = `https://m.hhh.com.tw/columns/lists/`;
+//     }
+// }
+
+// window.onload = function () {
+//   //hhh_user_api();
+//     if (screen.width >= 991) {
+    
+//     window.location.href =`https://hhh.com.tw/columns/lists/`;
+//   }
+
+// }
+
+
+
+
+
+
+
+
+
+
+
 // $("#columnLoading").hide(); // 隱藏讀取動畫
 
 let assignOrder = ""; // 當前排序

+ 18 - 0
designers/lists/js/main.js

@@ -4,6 +4,24 @@ $('#footer').load('../../template/footer.html');
 $('#btn-box').load('../../template/button.html');
 $('#topCarousel').load('../../template/top_carousel.html');
 
+
+// window.onload = function () {
+
+//     if (screen.width < 991) {
+       
+//         window.location.href = `https://m.hhh.com.tw/designers/lists/`;
+//     }
+// }
+
+// window.onload = function () {
+//   //hhh_user_api();
+//     if (screen.width >= 991) {
+    
+//     window.location.href =`https://hhh.com.tw/designers/lists/`;
+//   }
+
+// }
+
 let assignOrder = ""; // 當前排序
 
 // new, hot, recommend 排序 (預設推薦)

+ 17 - 0
videos/lists/js/main.js

@@ -4,6 +4,23 @@ $('#footer').load('../../template/footer.html');
 $('#btn-box').load('../../template/button.html');
 $('#topCarousel').load('../../template/top_carousel.html');
 
+// window.onload = function () {
+
+//     if (screen.width < 991) {
+       
+//         window.location.href = `https://m.hhh.com.tw/videos/lists/`;
+//     }
+// }
+
+// window.onload = function () {
+//   //hhh_user_api();
+//     if (screen.width >= 991) {
+    
+//     window.location.href =`https://hhh.com.tw/videos/lists/`;
+//   }
+
+// }
+
 let assignOrder = ""; // 當前排序
 
 // new, hot, recommend 排序 (預設推薦)