1 line
314 B
JavaScript
1 line
314 B
JavaScript
|
let clickCount=0;function changeImages(){clickCount++,5===clickCount&&(document.querySelector(".profile.background").src="assets/img/profile2.webp",document.querySelector(".profile.foreground").src="assets/img/profile2-fg.webp")}document.querySelector(".profile.background").addEventListener("click",changeImages);
|