2023-04-29 17:44:27 +02:00
|
|
|
const handleImageClick = (e) => {
|
2023-04-30 13:32:52 +02:00
|
|
|
const image = e.target;
|
|
|
|
|
const container = image.closest('.img-container');
|
|
|
|
|
|
|
|
|
|
image.classList.toggle('enlarged');
|
|
|
|
|
|
|
|
|
|
if (container) {
|
|
|
|
|
container.classList.toggle('expanded-container');
|
|
|
|
|
}
|
2023-04-29 17:44:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default handleImageClick;
|