This commit is contained in:
github-actions[bot]
2022-07-22 10:18:46 +00:00
parent cf8ddd93e2
commit e4e37cbbf5
340 changed files with 1059 additions and 1044 deletions

View File

@@ -107,4 +107,15 @@ document.addEventListener("DOMContentLoaded", () => {
}
})
})
// Map
const map = document.getElementById('dach')
if (map) {
map.onclick = e => {
console.log({
top: Math.round((e.offsetY / e.target.height) * 100) - 2,
left: Math.round((e.offsetX / e.target.width) * 100) + 1,
})
}
}
})