mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-05 23:35:46 +00:00
14 lines
360 B
JavaScript
14 lines
360 B
JavaScript
document.addEventListener('turbolinks:load', () => {
|
|
document.querySelectorAll('.taggable').forEach(target => {
|
|
target.innerHTML = ''
|
|
|
|
new InputTag({ target, props: { ...target.dataset } })
|
|
})
|
|
|
|
document.querySelectorAll('.mapable').forEach(target => {
|
|
target.innerHTML = ''
|
|
|
|
new InputMap({ target, props: { ...target.dataset } })
|
|
})
|
|
})
|