Commit 14ec96c0 authored by ∞'s avatar 💻

Modal close

parent 8edbac56
......@@ -60,6 +60,12 @@ export default class extends Controller {
this.modal.style.top = null
this.modal.style.transform = null
this.modal.style.position = 'relative'
for (var i of this.modal.querySelectorAll('.modal-close')) {
i.addEventListener(
'click',
() => document.getElementById('modal').style.display = 'none'
)
}
window.scrollTo(0, document.body.scrollHeight)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment