/* カスタマイズ用のJavaScriptコードをここに記述してください */ function btnActiveOn(type) { var elm, parent, children, id; switch (type) { case "route": id = "routeclick"; break; case "station": id = "icon_station"; break; default: return; } elm = document.getElementById(id); if (elm) { parent = elm.parentNode; children = elm.children; if (parent && children[0]) { parent.classList.add("active"); children[0].style.display = "none"; children[1].style.display = "inline-block"; } } } function btnActiveOff(type) { var elm, parent, children, id; switch (type) { case "route": id = "routeclick"; routeDialogHide(); break; case "station": id = "icon_station"; break; default: return; } elm = document.getElementById(id); if (elm) { parent = elm.parentNode; children = elm.children; if (parent && children[0]) { parent.classList.remove("active"); children[0].style.display = "inline-block"; children[1].style.display = "none"; } } } function routeDialogShow() { document.getElementById("ZdcEmapList").style.display = "block"; } function routeDialogHide() { document.getElementById("ZdcEmapList").style.display = "none"; }