mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Add Kurse
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user