let userAgent; let isSafari = false; let browserName; window.onload = function(){ if(screen.width < 900){ window.location.href = "https://m3.hhh.com.tw/"; } userAgent = navigator.userAgent; detectBrowser(userAgent); detectDirection (); let result; let matchData; $.ajax({ method: "GET", url: "./json/realtime.json", dataType: "json", }).done(function (msg) { result = [...msg]; renderSec00(result); renderSec02(result); renderSec05(result); renderSec06(result); renderSec07(result); renderSec08(result); renderSec09(result); renderSec10(result); //renderSec11(result); renderVideo(result); renderTrending(result); }); $.ajax({ method: "GET", url: "./json/match.json", dataType: "json", }).done(function (msg) { matchData = [...msg]; renderMatch(matchData); }); } function renderMatch(matchData){ let str = ''; for(let i = 0; i < matchData.length; i++){ str += `
${matchData[i].Name} 設計師
${matchData[i].CompanyName}
擅長風格 ${matchData[i].CompanyName}
接案坪數 ${matchData[i].Square}
接案地區 ${matchData[i].Area}
${matchData[i].Consulting} 人正在諮詢
${sub[j]['description']}
${sub[j]['description']}
${sub[j]['description']}
${temp[i]['description']}
${temp[i]['description']}
${data[i]['description']}
${data[i]['description']}