<div class="menu">
    <div class="traffic01" onclick="movePath('/statistics/traffic01')">교통량 통계</div>
    <div class="traffic02" onclick="movePath('/statistics/traffic02')">소통 통계</div>
    <div class="congest" onclick="movePath('/statistics/congestion')">정체 통계</div>
</div>
<div class="mobile-menu">
    <div id="traffic01" onclick="movePath('/statistics/traffic01')">
        <div></div>
        교통량 통계
    </div>
    <div id="traffic02" onclick="movePath('/statistics/traffic02')">
        <div></div>
        소통 통계
    </div>
    <div id="congest" onclick="movePath('/statistics/congestion')">
        <div></div>
        정체 통계
    </div>
</div>

<script th:inline="javascript">
    const active = [[${active}]];
    if (active) {
        $('.' +  active).addClass('active');
        $('#' +  active).addClass('active');
    }
</script>