foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs

6 lines
205 B
Handlebars
Raw Permalink Normal View History

<script>
var proposals = [ {{#each proposals as |val|}}"{{val}}",{{/each}} ];
Array.from(document.getElementsByClassName('{{className}}'))
.forEach(element => autocomplete(element, proposals))
</script>