ajout de page index -> bibliographie - archive (à garder (?)) + Test cartographie (svg) - js. + ajout de notes.
This commit is contained in:
11
script.js
11
script.js
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user