//////////////////////////////////////////////////////////////////////////////////////// //Document Ready //////////////////////////////////////////////////////////////////////////////////////// function execDocReady() { var pluginGroups = [ ["../reference/light-blue/lib/vendor/jquery.ui.widget.js", "../reference/lightblue4/docs/lib/widgster/widgster.js"], ["../reference/lightblue4/docs/lib/bootstrap-select/dist/js/bootstrap-select.min.js"] // 추가적인 플러그인 그룹들을 이곳에 추가하면 됩니다. ]; loadPluginGroupsParallelAndSequential(pluginGroups) .then(function () { console.log("모든 플러그인 로드 완료"); $("#sidebar").hide(); $(".wrap").css("margin-left", 0); $("#footer").load("/cover/html/template/landing-footer.html"); setTimeout(function () { $(".widget").widgster(); autoSlide(); }, 500); // 메뉴 클릭 시 active 항목 바꾸기 var menuItems = document.querySelectorAll('#menuList li'); menuItems.forEach(function(item) { item.addEventListener('click', function() { menuItems.forEach(function(li) { li.classList.remove('active'); }); this.classList.add('active'); }); }); }) .catch(function (error) { console.error("플러그인 로드 중 오류 발생"); console.error(error); }); } // 자동 슬라이드 function autoSlide(){ $('#carousel-example-generic').carousel({ interval: 5000, }); }