1const contentTemp2 = (content, menu_id) => { 2 // if menu_id is 6 then use order by position 3 // if (menu_id == 6) { 4 // content = content.sort((a, b) => a.position - b.position); 5 // } else { 6 // content = content.sort((a, b) => b.id - a.id); 7 // } 8 9 content = content.sort((a, b) => a.position - b.position); 10 11 return content.map((item) => { 12 const templatelanguagesTH = item.template_languages.find( 13 (i) => i.language === "TH" 14 ); 15 let classCss = ""; 16 if ( 17 templatelanguagesTH.title == 18 "à¸à¸à¸°à¸à¸£à¸£à¸¡à¸à¸²à¸£ สำà¸à¸±à¸à¸à¸²à¸à¸à¸±à¸à¸à¸²à¸à¸²à¸£à¸§à¸´à¸à¸±à¸¢à¸à¸²à¸£à¹à¸à¸©à¸à¸£" 19 ) { 20 classCss = "d-nones "; 21 } else { 22 classCss = ""; 23 } 24 return ` 25 <p class="text-center ${classCss} text-blue font-20 mt-5" style="margin-top: 100px !important;margin-bottom: 30px;font-size: 1.5rem !important;font-weight: bold;">${templatelanguagesTH.title 26 }</p> 27 <div class="container-board-demo ${item.components.length > 1 ? "justify-content-start" : "justify-content-center"} m-auto row" id="cardBoard1"> 28 ${cardBord(item.components, menu_id).join("")} 29 </div> 30 `; 31 }); 32}; 33const cardBord = (components, menu_id) => { 34 return components.map((item) => { 35 const languageComponentTH = item.component_languages.find( 36 (i) => i.language === "TH" 37 ); 38 39 console.log("item"); 40 41 let data_id = ``; 42 if (menu_id != 6) { 43 data_id = `data-committee=${item.id}`; 44 } 45 46 return ` 47 <div class="box-board d-flex justify-content-start col-6 card-executive-col" ${data_id}> 48 <div class="box-board-item d-flex mb-5"> 49 <div class="img-organization"> 50 <a> 51 <img style="width:100% !important" class="img-120 card-img-top mx-auto d-block mt-3" src="/api/component-file/image/${item.component_files.length > 0 && item.component_files[0].id ? item.component_files[0].id : 'noimage.png' 52 }/o" alt="รูà¸à¸ าà¸à¸à¸¸à¸à¸¥à¸²à¸à¸£"> 53 </a> 54 </div> 55 56 <div class="card-body-demo"> 57 <p class="font-18 text-left text-blue p-0 m-0 pt-3 executive-name" style="font-weight: bold;">${languageComponentTH?.name || " " 58 }</p> 59 <p class="font-16 text-left text-sky p-0 mb-3 m-0 pt-3">${languageComponentTH?.roles || " " 60 }</p> 61 <p class="font-16 text-left text-sky p-0 mb-3 m-0 ">${languageComponentTH?.department || " " 62 }</p> 63 <p class="font-16 text-left text-blue p-0 m-0 pt-0"> 64 à¹à¸à¸£ : ${item?.phone || " "}</p> 65 <p class="font-16 text-left text-blue p-0 m-0"> 66 à¸à¸µà¹à¸¡à¸¥ : ${item?.email || " "} 67 </p> 68 <hr class="mt-3 mb-3"> 69 ${item.component_languages[0].description || ""} 70 </div> 71 </div> 72 </div> 73 74 `; 75 76 // <div class="divider-card-executive"></div> *** divider for name executive 77 }); 78}; 79 80// const contentTemp2 = (content, menu_id) => { 81// return content.map((item) => { 82// const templatelanguagesTH = item.template_languages.find( 83// (i) => i.language === "TH" 84// ); 85// let classCss = ""; 86// if ( 87// templatelanguagesTH.title == 88// "à¸à¸à¸°à¸à¸£à¸£à¸¡à¸à¸²à¸£ สำà¸à¸±à¸à¸à¸²à¸à¸à¸±à¸à¸à¸²à¸à¸²à¸£à¸§à¸´à¸à¸±à¸¢à¸à¸²à¸£à¹à¸à¸©à¸à¸£" 89// ) { 90// classCss = "d-none "; 91// } else { 92// classCss = ""; 93// } 94// return ` 95// <p class="text-center ${classCss} text-blue font-20 mt-5">${ 96// templatelanguagesTH.title 97// }</p> 98// <div class="container-board justify-content-center m-auto row" id="cardBoard1"> 99// ${cardBord(item.components, menu_id).join("")} 100// </div> 101// `; 102// }); 103// }; 104// const cardBord = (components, menu_id) => { 105// return components.map((item) => {
106// const languageComponentTH = item.component_languages.find( 107// (i) => i.language === "TH" 108// ); 109 110// console.log("item"); 111 112// let data_id = ``; 113// if (menu_id != 6) { 114// data_id = `data-committee=${item.id}`; 115// } 116 117// return ` 118// <div class="box-board d-flex justify-content-center col-lg-4 col-md-12 col-sm-12" ${data_id}> 119// <div class="card card-board rounded m-auto mb-3"> 120// <div class="img-organization"> 121// <a> 122// <img class="img-120 card-img-top mx-auto d-block mt-3" src="/api/component-file/image/${ 123// item.component_files.length > 0 && item.component_files[0].id ? item.component_files[0].id:'noimage.png' 124// }/o" alt=""> 125// </a> 126// </div> 127// <div class="card-body"> 128// <p class="font-14 text-center text-blue p-0 m-0 pt-3">${ 129// languageComponentTH?.name || " " 130// }</p> 131// <p class="font-14 text-center text-sky p-0 mb-3 m-0 ">${ 132// languageComponentTH?.roles || " " 133// }</p> 134// <p class="font-14 text-center text-sky p-0 mb-3 m-0 ">${ 135// languageComponentTH?.department || " " 136// }</p> 137// <p class="font-14 text-center text-blue p-0 m-0 pt-4">${ 138// item?.phone || " " 139// }</p> 140// <p class="font-14 text-center text-blue p-0 m-0">${ 141// item?.email || " " 142// }</p> 143// </div> 144// </div> 145// </div> 146 147// `; 148// }); 149// }; 150 151$("body").on("click", "[data-id]", async function () { 152 const dataID = $(this).data("id"); 153 window.open(`/detail/${dataID}`); 154});
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.