Newer
Older
kp2 / houseki.js
function toggleImage(type) {
    var containerId = "image-container-" + type;
    var imageContainer = document.getElementById(containerId);
    if (imageContainer.style.display === 'none' || imageContainer.style.display === '') {
        imageContainer.style.display = 'block'; // 画像を表示
    } else {
        imageContainer.style.display = 'none'; // 画像を非表示
    }
}