Add Kurse

This commit is contained in:
Dennis Reimann
2022-07-22 12:16:51 +02:00
parent ed3d25334e
commit a9b4d575e7
7 changed files with 68 additions and 10 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,
})
}
}
})