1//ê´ê³ ì°½ ì ì²´ íì±í í¨ì 2function activateCategoryView() { 3 // ë·° 4 $(".cateView").css("display", "block"); 5} 6 7//ê´ê³ ì°½ ì ì²´ ë¹íì±í í¨ì 8function deactivateCategoryView() { 9 // ìì 10 $(".cateView").css("display", "none"); 11} 12 13var isOnOffActi = false; 14var isFirstServerCall = false; 15$(document).ready(function () { 16 $(".cateBase").mouseenter(function () { 17 isOnOffActi = true; 18 activateCategoryView(); 19 $(".cateBase").removeClass("hovered"); // ë¤ë¥¸ ë²í¼ë¤ì .hovered í´ëì¤ ì ê±° 20 $(this).addClass("hovered"); // íì¬ ë²í¼ì .hovered í´ëì¤ ì¶ê° 21 22 // ê° ë²í¼ì ëí 컨í ì¸ íì 23 var buttonId = $(this).attr("id"); 24 showContent(buttonId); 25 26 // ë§ì½ ì¢ì¸¡ìí¬í¸ì°½ì´ ì´ë ¤ ìì¼ë©´ ì¤ì²©ë¬¸ì ë¡ ì¼ë¨ ì ì´ëì! 27 if (isMenuCvFold === false) { 28 cvWrapFold(); 29 } 30 31 // ì¹´í ê³ ë¦¬ê´ê³ ì ë³´ê°ì ¸ì¤ê¸° 32 if (!isFirstServerCall) { 33 categoryADListAPIWorker("apiKey"); //ì¹ìì»¤ë¡ í¨ìí¸ì¶ 34 isFirstServerCall = true; 35 } 36 }); 37 38 function showContent(buttonId) { 39 // ê° ë²í¼ì ëí 컨í ì¸ íì ì¬ë¶ ê²°ì 40 $(".cVContents").hide(); // 모ë 컨í ì¸ ì¨ê¹ 41 // ê° ë²í¼ì ëí 컨í ì¸ íì 42 switch (buttonId) { 43 case "cateBase1": 44 $("#cVContent1").show(); 45 break; 46 case "cateBase2": 47 $("#cVContent2").show(); 48 break; 49 case "cateBase3": 50 $("#cVContent3").show(); 51 break; 52 case "cateBase4": 53 $("#cVContent4").show(); 54 break; 55 case "cateBase5": 56 $("#cVContent5").show(); 57 break; 58 case "cateBase6": 59 $("#cVContent6").show(); 60 break; 61 default: 62 break; 63 } 64 } 65 /*------------------------------------------*/ 66 //2ëì¤ë©ë´ 롤ì¤ë³´ì í´ë¹ì»¨í ì¸ ë ¸ì¶í´ë³´ì! 67 $("#cVCmenu1 ul li").mouseenter(function () { 68 // í´ë¹ ì¤ë¶ë¥ì ì¸ë±ì¤ë¥¼ ê°ì ¸ì¤ê¸° 69 var index = $(this).index() + 0; // ì¸ë±ì¤ë 0ë¶í° ììíë¯ë¡ 1ì ëí©ëë¤ 70 71 // í´ë¹ ì¤ë¶ë¥ì ëí 컨í ì¸ ë ¸ì¶ 72 $(".cVCmenu1_common").hide(); // 모ë ì¤ë¶ë¥ 컨í ì¸ ì¨ê¹ 73 $("#cVCmenu1_view" + index).show(); // í´ë¹ ì¤ë¶ë¥ 컨í ì¸ íì 74 }); 75 $("#cateBase1").mouseenter(function () { 76 $(".cVCmenu1_common").hide(); 77 $("#cVCmenu1_view0").show(); // 기본컨í ì¸ ë ¸ì¶ 78 }); 79 /*--------*/ 80 81 $("#cVCmenu2 ul li").mouseenter(function () { 82 // í´ë¹ ì¤ë¶ë¥ì ì¸ë±ì¤ë¥¼ ê°ì ¸ì¤ê¸° 83 var index = $(this).index() + 7; // ì¸ë±ì¤ë 0ë¶í° ììíë¯ë¡ 1ì ëí©ëë¤ 84 85 // í´ë¹ ì¤ë¶ë¥ì ëí 컨í ì¸ ë ¸ì¶ 86 $(".cVCmenu1_common").hide(); // 모ë ì¤ë¶ë¥ 컨í ì¸ ì¨ê¹ 87 $("#cVCmenu1_view" + index).show(); // í´ë¹ ì¤ë¶ë¥ 컨í ì¸ íì 88 }); 89 $("#cateBase2").mouseenter(function () { 90 $(".cVCmenu1_common").hide(); 91 $("#cVCmenu1_view7").show(); // 기본컨í ì¸ ë ¸ì¶ 92 }); 93 /*--------*/ 94 95 $("#cVCmenu3 ul li").mouseenter(function () { 96 // í´ë¹ ì¤ë¶ë¥ì ì¸ë±ì¤ë¥¼ ê°ì ¸ì¤ê¸° 97 var index = $(this).index() + 12; // ì¸ë±ì¤ë 0ë¶í° ììíë¯ë¡ 1ì ëí©ëë¤ 98 99 // í´ë¹ ì¤ë¶ë¥ì ëí 컨í ì¸ ë ¸ì¶ 100 $(".cVCmenu1_common").hide(); // 모ë ì¤ë¶ë¥ 컨í ì¸ ì¨ê¹ 101 $("#cVCmenu1_view" + index).show(); // í´ë¹ ì¤ë¶ë¥ 컨í ì¸ íì 102 }); 103 $("#cateBase3").mouseenter(function () { 104 $(".cVCmenu1_common").hide(); 105 $("#cVCmenu1_view12").show(); // 기본컨í ì¸ ë ¸ì¶ 106 }); 107 /*--------*/ 108 109 $("#cVCmenu4 ul li").mouseenter(function () { 110 // í´ë¹ ì¤ë¶ë¥ì ì¸ë±ì¤ë¥¼ ê°ì ¸ì¤ê¸° 111 var index = $(this).index() + 16; // ì¸ë±ì¤ë 0ë¶í° ììíë¯ë¡ 1ì ëí©ëë¤ 112 113 // í´ë¹ ì¤ë¶ë¥ì ëí 컨í ì¸ ë ¸ì¶ 114 $(".cVCmenu1_common").hide(); // 모ë ì¤ë¶ë¥ 컨í ì¸ ì¨ê¹ 115 $("#cVCmenu1_view" + index).show(); // í´ë¹ ì¤ë¶ë¥ 컨í ì¸ íì 116 }); 117 $("#cateBase4").mouseenter(function () { 118 $(".cVCmenu1_common").hide(); 119 $("#cVCmenu1_view16").show(); // 기본컨í ì¸ ë ¸ì¶ 120 }); 121 /*--------*/ 122 123 $("#cVCmenu5 ul li").mouseenter(function () {
124 // í´ë¹ ì¤ë¶ë¥ì ì¸ë±ì¤ë¥¼ ê°ì ¸ì¤ê¸° 125 var index = $(this).index() + 21; // ì¸ë±ì¤ë 0ë¶í° ììíë¯ë¡ 1ì ëí©ëë¤ 126 127 // í´ë¹ ì¤ë¶ë¥ì ëí 컨í ì¸ ë ¸ì¶ 128 $(".cVCmenu1_common").hide(); // 모ë ì¤ë¶ë¥ 컨í ì¸ ì¨ê¹ 129 $("#cVCmenu1_view" + index).show(); // í´ë¹ ì¤ë¶ë¥ 컨í ì¸ íì 130 }); 131 $("#cateBase5").mouseenter(function () { 132 $(".cVCmenu1_common").hide(); 133 $("#cVCmenu1_view21").show(); // 기본컨í ì¸ ë ¸ì¶ 134 }); 135 /*--------*/ 136 137 $("#cVCmenu6 ul li").mouseenter(function () { 138 // í´ë¹ ì¤ë¶ë¥ì ì¸ë±ì¤ë¥¼ ê°ì ¸ì¤ê¸° 139 var index = $(this).index() + 26; // ì¸ë±ì¤ë 0ë¶í° ììíë¯ë¡ 1ì ëí©ëë¤ 140 141 // í´ë¹ ì¤ë¶ë¥ì ëí 컨í ì¸ ë ¸ì¶ 142 $(".cVCmenu1_common").hide(); // 모ë ì¤ë¶ë¥ 컨í ì¸ ì¨ê¹ 143 $("#cVCmenu1_view" + index).show(); // í´ë¹ ì¤ë¶ë¥ 컨í ì¸ íì 144 }); 145 $("#cateBase6").mouseenter(function () { 146 $(".cVCmenu1_common").hide(); 147 $("#cVCmenu1_view26").show(); // 기본컨í ì¸ ë ¸ì¶ 148 }); 149 /*------------------------------------------*/ 150 $(".cateBase").mouseleave(function () { 151 if (!$(this).hasClass("hovered")) { 152 isOnOffActi = false; 153 deactivateCategoryView(); 154 } 155 }); 156 157 $(".cateView").mouseenter(function () { 158 isOnOffActi = true; 159 activateCategoryView(); 160 }); 161 162 $(".cateView").mouseleave(function () { 163 isOnOffActi = false; 164 deactivateCategoryView(); 165 $(".cateBase.hovered").removeClass("hovered"); // 모ë ë²í¼ì .hovered í´ëì¤ ì ê±° 166 }); 167}); 168 169/* ---------------------------------------------------------------- */ 170// php API를 íµí´ ì¹´í ê³ ë¦¬ ì ë³´(ì¹´ì´í¸ë¥¼ ë°ìì¤ê¸°. 171function categoryCountAPI() { 172 var phpApi = "https://maps.openers.ai/require/Kmaps/phpAdd/brandCategoryCountAPI.php"; 173 var datas = { 174 apiKey: "categoryCountAPI" 175 }; 176 177 // AJAX ìì² 178 $.ajax({ 179 type: "POST", // ëë GET 180 url: phpApi, 181 data: datas, 182 dataType: "json", // ìë²ë¡ë¶í° ë°ìì¬ ë°ì´í°ì íìì ëª ì 183 success: function (response) { 184 // ìëµì ì²ë¦¬í í¨ì í¸ì¶ 185 categoryCountViewPoint(response); 186 //console.log("ì¹´í ê³ ë¦¬ì ë³´: ", response); 187 }, 188 error: function (xhr, status, error) { 189 console.log("AJAX Error:", xhr); 190 console.log("Status:", status); 191 console.log("Error:", error); 192 }, 193 }); 194} 195function categoryCountViewPoint(response) { 196 $("#cateCount1").text(response[0].count.toLocaleString()); //íì + ì²ì리ìë§ë¤ ê¼¼ë§ì¶ê° 197 $("#cateCount2").text(response[1].count.toLocaleString()); //ì¤ì 198 $("#cateCount3").text(response[2].count.toLocaleString()); //ì¼ì 199 $("#cateCount4").text(response[3].count.toLocaleString()); //ìì 200 $("#cateCount5").text(response[4].count.toLocaleString()); //ë³ì/í¨ì ì리 201 $("#cateCount6").text(response[5].count.toLocaleString()); //주ì 202 let totalCategory1 = 0; 203 for (let i = 0; i <= 5; i++) { 204 totalCategory1 += response[i].count; 205 } 206 $("#cateCount27").text(totalCategory1.toLocaleString()); //ëë¶ë¥ > ììì /주ì 207 208 $("#cateCount7").text(response[6].count.toLocaleString()); //ì¹í¨ 209 $("#cateCount8").text(response[7].count.toLocaleString()); //í¼ì 210 $("#cateCount9").text(response[8].count.toLocaleString()); //í¨ì¤í¸í¸ë 211 $("#cateCount10").text(response[9].count.toLocaleString()); //ë¶ì 212 let totalCategory2 = 0; 213 for (let i = 6; i <= 9; i++) { 214 totalCategory2 += response[i].count; 215 } 216 $("#cateCount28").text(totalCategory2.toLocaleString()); //ëë¶ë¥ > ì¹í¨/í¨ì¤í¸í¸ë 217 218 $("#cateCount11").text(response[10].count.toLocaleString()); //ì»¤í¼ 219 $("#cateCount12").text(response[11].count.toLocaleString()); //ëì í¸ 220 $("#cateCount13").text(response[12].count.toLocaleString()); //ì ê³¼ì ë¹µ 221 let totalCategory3 = 0; 222 for (let i = 10; i <= 12; i++) { 223 totalCategory3 += response[i].count; 224 } 225 $("#cateCount29").text(totalCategory3.toLocaleString()); //ëë¶ë¥ > ì¹´í/ëì í¸ 226
227 $("#cateCount14").text(response[13].count.toLocaleString()); //í¸ìì 228 $("#cateCount15").text(response[14].count.toLocaleString()); //ë·°í°/í¨ì 229 $("#cateCount16").text(response[15].count.toLocaleString()); //ëìì°ë¬¼/ê±´ê° 230 $("#cateCount17").text(response[16].count.toLocaleString()); //기í ëì매ì 231 let totalCategory4 = 0; 232 for (let i = 13; i <= 16; i++) { 233 totalCategory4 += response[i].count; 234 } 235 $("#cateCount30").text(totalCategory4.toLocaleString()); //ëë¶ë¥ > ëì매/í매ì 236 237 $("#cateCount18").text(response[17].count.toLocaleString()); //ì¸êµì´ 238 $("#cateCount19").text(response[18].count.toLocaleString()); //ì´ì¤ê³ 239 $("#cateCount20").text(response[19].count.toLocaleString()); //ì ì 240 $("#cateCount21").text(response[20].count.toLocaleString()); //기í êµì¡ì 241 let totalCategory5 = 0; 242 for (let i = 17; i <= 20; i++) { 243 totalCategory5 += response[i].count; 244 } 245 $("#cateCount31").text(totalCategory5.toLocaleString()); //ëë¶ë¥ > êµì¡/ì¡ì 246 247 $("#cateCount22").text(response[21].count.toLocaleString()); //ì´ë¯¸ì© 248 $("#cateCount23").text(response[22].count.toLocaleString()); //ì¸í 249 $("#cateCount24").text(response[23].count.toLocaleString()); //골í/ì¤í¬ì¸ 250 $("#cateCount25").text(response[24].count.toLocaleString()); //PCë°©/ì¤ë½ 251 $("#cateCount26").text(response[25].count.toLocaleString()); //기í ìë¹ì¤ì 252 let totalCategory6 = 0; 253 for (let i = 21; i <= 25; i++) { 254 totalCategory6 += response[i].count; 255 } 256 $("#cateCount32").text(totalCategory6.toLocaleString()); //ëë¶ë¥ > ìíìë¹ì¤ 257} 258// íì´ì§ë¡ëì ì¹´í ê³ ë¦¬ ì¹´ì´í° í¨ì í¸ì¶ë¡ ì ë³´ê°ì ¸ì
258¤ê¸° 259categoryCountAPI(); 260 261/*-----------------------------------------------------------------------------*/ 262// ì¹´í ê³ ë¦¬ê´ê³ ì ë³´ê°ì ¸ì¤ê¸° 263//categoryADListAPIWorker("apiKey"); //ì¹ìì»¤ë¡ í¨ìí¸ì¶ 264 265/*-----------------------------------------------------------------------------*/ 266// ìíê· ë§¤ì¶ ë± : ê¸ì¡ì 리 267function calculateLevySum(totalCost) { 268 let levySum = ''; 269 270 // 1ìµì ì´ìì¸ ê²½ì° 271 if (totalCost >= 100000) { 272 const ìµ = Math.floor(totalCost / 100000); // ììì ë²ë¦¬ê³ ì ìë°í 273 const ë§ = Math.floor(totalCost % 100000 / 10).toLocaleString(); // 10ë§ë¨ìë¡ ëëê³ ë ë머ì§ë¥¼ ë§ë¨ìë¡ ë³ê²½í ì«ìí¬ë©§í 274 levySum = `${ìµ}ìµ ${ë§}ë§ì`; 275 } else { 276 // 1ìµì 미ë§ì¸ ê²½ì° 277 const ë§ = Math.floor(totalCost / 10).toLocaleString(); // ì²ë¨ì를 ë§ë¨ìë¡ ë³ê²½íê³ ì«ìí¬ë©§í 278 levySum = `${ë§}ë§ì`; 279 } 280 281 return levySum; 282} 283function cleanBrandName(name) { 284 // ê´í¸ì ê´í¸ ë´ ë¬¸ì를 ì ê±° 285 let cleanedName = name.replace(/\([^)]+\)\s*/g, ""); 286 // 공백 ì ê±° 287 cleanedName = cleanedName.replace(/\s/g, ""); 288 // &를 &ë¡ ëì²´ 289 cleanedName = cleanedName.replace(/&/g, "&"); 290 // '를(ë°ì´í) ì ê±° 291 cleanedName = cleanedName.replace(/'/g, ""); 292 // ; ì ê±° 293 cleanedName = cleanedName.replace(/;/g, ""); 294 // ììë°ì´í(') ì ê±° 295 cleanedName = cleanedName.replace(/'/g, ""); 296 // ì¬ëì ì ê±° 297 cleanedName = cleanedName.replace(/\//g, "&"); 298 // 물ìí ì ê±° 299 cleanedName = cleanedName.replace(/\?/g, ""); 300 // ëê´í¸ ìì ì ê±° 301 cleanedName = cleanedName.replace(/\[/g, ""); 302 // ëê´í¸ ì¢ ë£ ì ê±° 303 cleanedName = cleanedName.replace(/\]/g, ""); 304 return cleanedName; 305} 306 307 308function categoryADListViewPoint(datas) { 309 //console.log("ì¹´í ê´ê³ (ì¹ì커):", datas); 310 311 function cateAdhandleImageError(ci, src, oriBrName, inum) { 312 console.log("ì¹´í ê´ê³ ì´ë¯¸ì§ ë¡ëì¤í¨: " + ci, src, oriBrName, inum); 313 // 기본 ì´ë¯¸ì§ URL 314 var defaultImageUrl = "https://maps.openers.ai/require/Kmaps/img/OPENERS_OKi_character_2023-05-12.png"; 315 $("#categoryADimgs" + ci).css("background-image", "url(" + defaultImageUrl + ")"); 316 317 //ìë¬ë°ìì´ë¯¸ì§ DBìì ë°ë¡ ì ê±°íì! 318 errorImages_DBDeleter("cateAdhandleImageError", src, oriBrName, inum); 319 } 320 /*----------------------------------------------------------------*/ 321 for (let j = 0; j < 32; j++) { 322 for (let i = 0; i < 3; i++) { 323 var ci = j * 3 + i; // $i를 $jì ìì¡´ì ì¼ë¡ ë§ëëë¤. 324 325 //$("#categoryADName" + ci).text(cleanBrandName(datas.cateAll[j][i].sign)); // ë¸ëëë¤ì 326 var maxLength = 14; // ìµë ê¸¸ì´ 327 var oriBrName = datas.cateAll[j][i].sign; 328 var inum = datas.cateAll[j][i].inum; 329 var originalText = cleanBrandName(oriBrName); // í´ë¦°íë ë¸ëëë¤ì 330 var truncatedText = 331 originalText.length > maxLength 332 ? originalText.substring(0, maxLength) + "..." 333 : originalText; 334 $("#categoryADName" + ci).text(truncatedText); // ë¸ëëë¤ì 335 $("#categoryADHQ" + ci).text(datas.cateAll[j][i].sangho); // ê°ë§¹ë³¸ë¶(íë ì ë³´ - ìë´ì ì²ì íì) 336 337 $("#categoryADCate" + ci).text(datas.cateAll[j][i].openers_depth_2); // 2ëì¤ì¹´í ê³ ë¦¬ 338 $("#categoryADStore" + ci).text( 339 `ì êµ ${Number( 340 datas.cateAll[j][i].iall.split("|")[0] 341 ).toLocaleString()}ê³³` 342 ); // ì êµë§¤ì¥ì 343 $("#categoryADUnitArea" + ci).text( 344 `${Math.round(0.3025 * datas.cateAll[j][i].basearea)}í` 345 ); // 기ì¤ë©´ì 346 347 $("#categoryADUnitAreaSales" + ci).text( 348 `ìíê· ${Number( 349 Math.round(datas.cateAll[j][i].iall.split("|")[4] / 12 / 10) 350 ).toLocaleString()}ë§ì` 351 ); // íë¹ë§¤ì¶ë ¥ 352 353 //ì°½ì ë¹ì© ì 리 354 var membershipfee = datas.cateAll[j][i].membershipfee; 355 var educationfee = datas.cateAll[j][i].educationfee; 356 var deposit = datas.cateAll[j][i].deposit; 357 var costs = datas.cateAll[j][i].costs; 358 var interiorcost = datas.cateAll[j][i].interiorcost; 359 360 //var totalCost = calculateLevySum(parseInt(membershipfee + educationfee + deposit + costs + interiorcost, 10)); 361 var totalCost = calculateLevySum( 362 parseInt(membershipfee, 10) + 363 parseInt(educationfee, 10) + 364 parseInt(deposit, 10) + 365 parseInt(costs, 10) + 366 parseInt(interiorcost, 10) 367 ); 368 369 $("#categoryADCost" + ci).text(totalCost);
369 //ì°½ì ë¹ì© 370 //$("#categoryADCost" + ci).text(calculateLevySum(parseInt(datas.cateAll[j][i].membershsum, 10) + parseInt(datas.cateAll[j][i].interiorcost, 10))); // ì°½ì ë¹ì© 371 372 $("#categoryADMatchCategoty" + j).text( 373 "#" + datas.cateAll[j][i].openers_depth_2 374 ); // 2ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 375 376 /*-----------------------------------------------------------------*/ 377 //ê´ê³ ì´ë¯¸ì§ ì½ì 378 //$("#categoryADimgs" + ci).css("background-image", "url(" + datas.cateAll[j][i].br_imgsURL + ")"); 379 380 var img = new Image(); //ì´ë¯¸ì§ ìì ìì± 381 img.src = datas.cateAll[j][i].br_imgsURL; //ì´ë¯¸ì§ì URL ì¤ì 382 383 // ì¼ë¨ ì´ë¯¸ì§ 모ë를 ì½ì (ë¡ë©) ìë 384 $("#categoryADimgs" + ci).css( 385 "background-image", 386 "url('" + img.src + "')" 387 ); 388 389 // ì´ë¯¸ì§ ë¡ë©ì¤í¨ì 390 img.onerror = (function (currentCi, imgSrc, brandName, inum) { 391 return function () { 392 cateAdhandleImageError(currentCi, imgSrc, brandName, inum); 393 }; 394 })(ci, img.src, oriBrName, inum); 395 396 /*-----------------------------------------------------------------*/ 397 var buttonsContent; 398 if (datas.cateAll[j][i].adType === "yes") { 399 buttonsContent = $("<div>") 400 .addClass("adYes") 401 .append( 402 $("<span>") 403 .attr("id", "cateConsultingApplication" + ci) 404 .text("ìë´ì ì²") 405 .append($("<i>!</i>")) 406 ) 407 .append( 408 $("<span>") 409 .attr("id", "cateDetailBrand" + ci) 410 .text("ìì¸í보기") 411 ); 412 } else if (datas.cateAll[j][i].adType === "no") { 413 buttonsContent = $("<div>") 414 .addClass("adNo") 415 .append( 416 $("<span>") 417 .attr("id", "cateFoundedInquiry" + ci) 418 .text("ì°½ì 문ì") 419 .append($("<i>!</i>")) 420 ) 421 .append( 422 $("<span>") 423 .attr("id", "cateDetailBrand" + ci) 424 .text("ìì¸í보기") 425 ); 426 } else { 427 buttonsContent = $("<div>") 428 .addClass("adDefault") 429 .append( 430 $("<span>") 431 .attr("id", "cateDetailBrand" + ci) 432 .text("ë¸ëëì°½ì ìì¸í보기") 433 .append($("<i>!</i>")) 434 ); 435 } 436 437 $("#categoryADButtons" + ci).html(buttonsContent); 438 439 //ê° ë²í¼ì í´ë¦ì´ë²¤í¸ ë±ë¡ 440 (function (index) { 441 //"ìë´ì ì²"ì 442 $("#cateConsultingApplication" + index).click(function () { 443 var ob = datas.cateAll[j][i].sign; 444 var inum = datas.cateAll[j][i].inum; 445 var hq = $("#categoryADHQ" + index).text(); 446 //console.log(index, ob, hq); 447 openModalWindow("cateConsultingApplication" + index, ob, hq, inum); 448 }); 449 //"ì°½ì 문ì"ì 450 $("#cateFoundedInquiry" + index).click(function () { 451 var ob = datas.cateAll[j][i].sign; 452 var inum = datas.cateAll[j][i].inum; 453 var hq = $("#categoryADHQ" + index).text(); 454 //console.log(index, ob, hq); 455 openModalWindow("cateFoundedInquiry" + index, ob, hq, inum); 456 }); 457 //"ë¸ëëì°½ì ìì¸í보기" ì¢ì¸¡ìí¬í¸ì°½ ì¬ë«ê¸° 458 $("#cateDetailBrand" + index).click(function () { 459 var ob = datas.cateAll[j][i].sign; 460 //console.log(index, ob); 461 cvWrapOnOff("brandType", "cateDetailBrand" + index, ob); 462 }); 463 })(ci); 464 465 /* ê° ë¸ëë ê´ì¬(ì¢ìì) 기ë¥ë¶ì¬ ------------------------------------*/ 466 var liked_sign = datas.cateAll[j][i].sign; 467 var liked_inum = datas.cateAll[j][i].inum; 468 var like_count = datas.cateAll[j][i].like_count; 469 //ì½ì í기 470 $("#categoryADLiked" + ci).attr("data-brand-sign", liked_sign); 471 $("#categoryADLiked" + ci).attr("data-brand-inum", liked_inum); 472 473 var $brand_key = $('[data-brand-sign="' + liked_sign + '"]'); 474 $brand_key.find("span").text(" +" + like_count); 475 //console.log($brand_key[0]); 476 477 //ë¸ëë ê´ì¬(ì¢ìì) ì¤ìê° ë°ì 478 var brandInfo = new BrandInfo(liked_sign, liked_inum); 479 updateDisplayedBrandLikes(brandInfo, "", "categoryAD", $brand_key); 480 481 //ë¸ëë ê´ì¬(ì¢ìì) í´ë¦ì´ë²¤í¸ 482 (function (index) { 483 $("#categoryADLiked" + index).click(function () { 484 //리ì¼íì ì ë°ì´í¸ 485 var e = "clicked"; 486 var r = "categoryADLiked" + index; 487 var brand_sign = $("#categoryADLiked" + index).attr("data-brand-sign"); 488 var brand_inum = $("#categoryADLiked" + index).attr("data-brand-inum"); 489 var $brand_key = $('[data-brand-sign="' + brand_sign + '"]'); 490 liked_live_update(e, r, brand_sign, brand_inum, $brand_key); 491 }); 492 })(ci); 493 /*-------------------------------------------------------------------*/ 494 } 495 } 496 497 $("#categoryADMatchCategoty" + 0).text("#" + cleanBrandName(datas.
497cateAll[0][0].openers_depth_1)); // 1ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 498 $("#categoryADMatchCategoty" + 7).text("#" + cleanBrandName(datas.cateAll[7][0].openers_depth_1)); // 1ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 499 $("#categoryADMatchCategoty" + 12).text("#" + cleanBrandName(datas.cateAll[12][0].openers_depth_1)); // 1ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 500 $("#categoryADMatchCategoty" + 16).text("#" + cleanBrandName(datas.cateAll[16][0].openers_depth_1)); // 1ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 501 $("#categoryADMatchCategoty" + 21).text("#" + cleanBrandName(datas.cateAll[21][0].openers_depth_1)); // 1ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 502 $("#categoryADMatchCategoty" + 26).text("#" + cleanBrandName(datas.cateAll[26][0].openers_depth_1)); // 1ëì¤ ê´ê³ 매ì¹ì¹´í ê³ ë¦¬ 503 /*----------------------------------------------------------------*/ 504 505 // datasìì sign ì ë³´ë§ ì¶ì¶íì¬ ë°°ì´ì ì ì¥ 506 const signArray = []; 507 datas.cateAll.forEach((category, depth1Index) => { 508 category.forEach((item, depth2Index) => { 509 signArray.push({ 510 sign: item.sign, 511 inum: item.inum, 512 position: `1-${depth1Index + 1}-${depth2Index + 1}`, 513 }); 514 }); 515 }); 516 // datas.depth2.forEach((category, depth1Index) => { 517 // category.forEach((item, depth2Index) => { 518 // signArray.push({ 519 // sign: item.sign, 520 // inum: item.inum, 521 // position: `2-${depth1Index + 1}-${depth2Index + 1}`, 522 // }); 523 // }); 524 // }); 525 526 //ê´ê³ ì´ë¯¸ì§ í¨ìí¸ì¶(ì¹ì커ìì ì§í) 527 //categoryADImgAPIWorker(signArray); 528 //console.log("ë¸ëëë¤ìì¶ì¶: ", signArray); 529} 530 531function categoryADImgViewPoint(imgs) { 532 console.log("ì¹´í ê´ê³ ì´ë¯¸ì§(ì¹ì커):", imgs); 533 for (let i = 0; i < 96; i++) { 534 $("#categoryADimgs" + i).css("background-image", "url(" + imgs.imgURLs[i].urls[0].br_imgsURL + ")"); 535 } 536}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.