move some JS to template instead

This commit is contained in:
javl
2026-08-18 10:37:40 +02:00
parent 63faf1b699
commit 95273b06c7
2 changed files with 13 additions and 12 deletions
+7
View File
@@ -56,6 +56,13 @@
<div class="note upload-note">You can import multiple images at once.<br>All processing is done locally in your browser: your images are not uploaded or stored anywhere online.</div>
<input type="file" id="file-input" name="file-input" multiple/><br />
<div id="file-input-column-items"></div>
<template id="file-input-entry-template">
<div class="file-input-entry">
<img class="image-size-thumb" alt="" />
<span class="js-label"></span>
<button type="button" class="remove-button js-remove">remove image</button>
</div>
</template>
<div class="note" id="continue-note">Add more images or <a href="#step-2">continue to step 2</a></div>
</div>
<div class="column-right">