') } if ($('.productimg-container').hasClass('open-fixed')) { $('.productimg-container').removeClass('open-fixed'); } else { $('.productimg-container').addClass('open-fixed'); } } function toggleMobileDrop(path, buttonpath) { if ($(path).hasClass('open')) { $(path).removeClass('open'); $(path).addClass('closed'); $(buttonpath).removeClass('open'); $(buttonpath).addClass('closed'); } else { $(path).removeClass('closed'); $(path).addClass('open'); $(buttonpath).removeClass('closed'); $(buttonpath).addClass('open'); } }