Skip to content

Commit c04c24d

Browse files
save file
1 parent c3abf51 commit c04c24d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

utils/video/video-thumbnail-generator/video-thumbnail-generator.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
234234
<div id=video-root>
235235
<video controls></video>
236236
<div>
237-
<span id=video-filename></span>
237+
<div>
238+
<input type=checkbox>
239+
<span id=video-filename></span>
240+
</div>
238241
<span id=video-size></span>
239242
<div>
240243
<span id=video-width>-</span>
@@ -274,7 +277,7 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
274277
var video;
275278
var results;
276279
var item;
277-
280+
var chk;
278281

279282
var btn = {};
280283
var gen = {};
@@ -297,6 +300,7 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
297300
item = $('.item');
298301
item.remove();
299302
item.style.display = '';
303+
chk = $.chkbox.group();
300304

301305
output = $('#output');
302306

@@ -482,11 +486,16 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
482486
cur.status = false;
483487
var url = window.URL.createObjectURL(blob);
484488
var nitem = item.cloneNode(true);
489+
var id = 'item-'+chk.len;
490+
nitem.id = id
485491
var img = $(nitem,'img');
486492
img.onload = onload;
487493
img.src = url;
494+
$(nitem,'.filename').textContent = blob.name;
488495
$(nitem,'.size').textContent = hs(blob.size);
489496
results.append(nitem);
497+
chk.add(results,`#${id}`);
498+
490499

491500
function onload(){
492501

0 commit comments

Comments
 (0)