ajout de page index -> bibliographie - archive (à garder (?)) + Test cartographie (svg) - js. + ajout de notes.

This commit is contained in:
2026-04-08 16:11:40 +02:00
parent 656fe3a82a
commit 80c1d07a28
6 changed files with 2786 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
const canvas = document.getElementById("mycanvas");
/*const canvas = document.getElementById("mycanvas");
const ctx = canvas.getContext("2d");
/*taille du canvas*/
@@ -36,8 +36,13 @@ document.addEventListener("mousemove", (e) => {
});
const dpr = window.devicePixelRatio || 1;
/*const dpr = window.devicePixelRatio || 1;
canvas.width = window.innerWidth * dpr;
canvas.height = window.innerHeight * dpr;
ctx.scale(dpr, dpr);
ctx.scale(dpr, dpr);*/
document.getElementsByTagName("color")[0]
.addEventListener("click",function(evt){
alert(evt.target.getAttribute("data-gemeente"))
},
false)