var obj_lst_type_wrap_list; var searchmenu_result_compl; function searchmenu_result_location() { obj_lst_type_wrap_list=document.querySelectorAll('.lst-type-wrap'); let obj_length=obj_lst_type_wrap_list.length; if(obj_length==0) return false; location_num=0; for(let i=0;i '+msg[i]["title"]+''; if(i<=5) { dl.appendChild(dt); }else{ hidden_div.innerHTML="메뉴명 검색 더 보기"; hidden_dl.appendChild(dt); } let location_num=searchmenu_result_location(); h3.innerHTML="메뉴명 검색"; dd.appendChild(dl); dd.appendChild(hidden_div); dd.appendChild(hidden_dl); dl_lst_type_a.appendChild(dd); div_lst_type_wrap.appendChild(h3); div_lst_type_wrap.appendChild(dl_lst_type_a); let obj_length=obj_lst_type_wrap_list.length; if(obj_length==0) return false; //console.log(obj); obj_lst_type_wrap_list[0].parentNode.insertBefore(div_lst_type_wrap, obj_lst_type_wrap_list[location_num]); } } } } , error: function(jqXHR, textStatus, errorThrown) { //console.log(jqXHR.responseText); } }); searchmenu_result_compl=true; return true; } function remove_cate(search_word, remove_cate) { let kwd; if(document.getElementById("kwd")) { kwd=document.getElementById("kwd").value; } kwd=kwd.replace(/(\s*)/g, ""); if(!kwd || kwd.indexOf(search_word)==-1) return false; obj_lst_type_wrap_list=document.querySelectorAll('.lst-type-wrap'); let obj_length=obj_lst_type_wrap_list.length; if(obj_length==0) return false; location_num=0; for(let i=0;i