Skip to content

Commit 46a848e

Browse files
save file
1 parent 9e9b3d8 commit 46a848e

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

utils/video/scan-video-file-for-objects/scan-video-file-for-objects-v2.0.html

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,24 @@
5353

5454

5555

56-
mod.stack.add = init;
57-
5856
async function init(){
5957
console.log('init');
6058

6159
menu = menumod();
6260

6361
hdr = mod['video-hdr'];
64-
filemod = mod.filemod;
65-
log = mod.log;
62+
filemod = mod['file-mod'];
63+
log = mod['log-mod'];
6664

6765
hdr.initmod({ext,$,menu});
6866
filemod.initmod({ext,$,menumod,menu,complete,source,log});
6967
log.initmod({ext,$});
7068

71-
await hdr.init();
72-
await filemod.init();
73-
await log.init();
74-
69+
await Promise.all([
70+
hdr.init(),
71+
filemod.init(),
72+
log.init(),
73+
]);
7574

7675

7776
initdom(document.body);
@@ -83,8 +82,6 @@
8382
//:
8483

8584

86-
init.stack = mod.stack;
87-
8885

8986
(async()=>{
9087

@@ -259,11 +256,7 @@ <h1 slot=seo-hdr class=visually-hidden>scan video file for objects / people</h1>
259256
</div>
260257

261258

262-
<filemod component v2.0>
263-
<!--
264-
<script html-loader src='https://html-loader-1024713184986.us-central1.run.app/'></script>
265-
-->
266-
</filemod>
259+
<file-mod component></file-mod>
267260

268261

269262
<div style="display: flex; align-items: center; margin-top: 10px; justify-content: center; gap: 30px;">
@@ -361,9 +354,7 @@ <h1 slot=seo-hdr class=visually-hidden>scan video file for objects / people</h1>
361354

362355
</div center>
363356

364-
<log>
365-
<script src='https://html-loader-1024713184986.us-central1.run.app/'></script>
366-
</log>
357+
<log-mod component></log-mod>
367358

368359
</body>
369360

@@ -1116,7 +1107,7 @@ <h1 slot=seo-hdr class=visually-hidden>scan video file for objects / people</h1>
11161107
var src = video.src;
11171108
var i = src.indexOf('-');
11181109
var file = src.slice(i+1);
1119-
window.open('video-player.html?'+file+'='+time);
1110+
window.open('../video-player/video-player.html?'+file+'='+time);
11201111

11211112
}//open
11221113

0 commit comments

Comments
 (0)