first attempt of zoom function

This commit is contained in:
Clément Brossaud
2023-05-10 14:45:18 +02:00
parent 49e2576ea2
commit 89c4c9abab

10
src/js/index/index.js Normal file
View File

@@ -0,0 +1,10 @@
var imgAnalyse = document.getElementById("img_analyse");
function zoom(img){
img.setAtribute("width", "width*2px")
img.setAtribute("height", "height*2px")
}
addEventListener("mouseover", zoom(imgAnalyse));