<br><br><br>
<footer>
    &copy; 2025 CodeBridge. All rights reserved.
</footer>

<script src="https://code.highcharts.com/maps/highmaps.js"></script>
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>
<script src="https://code.highcharts.com/modules/funnel.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
    // 부트스트랩5 서브메뉴 토글
    document.addEventListener("DOMContentLoaded", function(){
        document.querySelectorAll('.dropdown-submenu .dropdown-toggle').forEach(function(element){
            element.addEventListener('click', function(e){
                e.preventDefault();
                e.stopPropagation();

                // 다른 열린 서브메뉴 닫기
                document.querySelectorAll('.dropdown-submenu .dropdown-menu.show').forEach(function(subMenu){
                    if(subMenu !== this.nextElementSibling){
                        subMenu.classList.remove('show');
                    }
                }.bind(this));

                // 현재만 토글
                this.nextElementSibling.classList.toggle('show');
            });
        });

        // 바깥 클릭 시 닫힘
        document.body.addEventListener('click', function(){
            document.querySelectorAll('.dropdown-submenu .dropdown-menu.show').forEach(function(subMenu){
                subMenu.classList.remove('show');
            });
        });
    });
</script>
</body>
</html>
