mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-01 04:16:08 +00:00
17 lines
447 B
JavaScript
17 lines
447 B
JavaScript
import InputTag from 'input-tag/input-tag'
|
|
import InputMap from 'input-map/input-map'
|
|
|
|
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 } })
|
|
})
|
|
})
|