mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-14 00:36:48 +00:00
Add script to locate meetup coordinates
Inspired by @OttoAllmendinger's [comment](https://github.com/Einundzwanzig-Podcast/einundzwanzig.space/pull/66#issuecomment-1101299945).
This commit is contained in:
@@ -42,7 +42,7 @@ block main
|
|||||||
= m.name.replace('Bitcoin ', '')
|
= m.name.replace('Bitcoin ', '')
|
||||||
- j++
|
- j++
|
||||||
|
|
||||||
img(src=assetPath('/img/dach.svg') alt="DE, AT, CH")
|
img#dach(src=assetPath('/img/dach.svg') alt="DE, AT, CH")
|
||||||
|
|
||||||
#unmapped
|
#unmapped
|
||||||
h2 Weitere Meetups
|
h2 Weitere Meetups
|
||||||
@@ -51,3 +51,11 @@ block main
|
|||||||
li(class=clss(m) style=style(m))
|
li(class=clss(m) style=style(m))
|
||||||
a(href=m.url target="_blank" rel="nofollow noopener")
|
a(href=m.url target="_blank" rel="nofollow noopener")
|
||||||
= m.name
|
= m.name
|
||||||
|
|
||||||
|
script.
|
||||||
|
document.getElementById('dach').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