From 0146f89f8671a1807f6deab6b953e4a5a91a693c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santanch=C3=A8?= Date: Sun, 5 Nov 2023 14:59:45 -0300 Subject: [PATCH] fix (map): interactive button --- _includes/mupa-mapa-2023.svg | 6 ++++-- js/museu.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_includes/mupa-mapa-2023.svg b/_includes/mupa-mapa-2023.svg index 5aea448..c6f375d 100644 --- a/_includes/mupa-mapa-2023.svg +++ b/_includes/mupa-mapa-2023.svg @@ -1659,7 +1659,8 @@ id="center_mc" cx="698.31445" cy="418.80063" - r="4.895432" /> + - + + diff --git a/js/museu.js b/js/museu.js index 9ba6434..50e25f2 100644 --- a/js/museu.js +++ b/js/museu.js @@ -28,7 +28,7 @@ class Museu { const target = document.getElementById(id) target.setAttribute('transform-origin', center) target.setAttribute('transform', 'scale(5, 5)') - setInterval(this.out(id, center), 1000) + setInterval(function () {Museu.i.out(id, center)}, 10) } }