Skip to content

Commit 2252224

Browse files
save file
1 parent 0363a42 commit 2252224

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

utils/misc/base64-encode-file/base64-encode-file.html

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11

22

3+
<!DOCTYPE html>
34

45
<html>
56

67
<head>
8+
<meta charset=utf-8>
79

8-
<title>base64 encode file</title>
10+
<title>
11+
Base64 Encode File
12+
</title>
13+
914
<meta name=description content='base64 encode files, optional dataurl'>
1015

1116
<link rel=icon type='image/png' href='image/base64-30.png'>
@@ -14,7 +19,6 @@
1419
<base href='https://ext-code.com/utils/misc/base64-encode-file/'>
1520
<link rel=canonical href='https://ext-code.com/utils/misc/base64-encode-file/base64-encode-file.html'>
1621

17-
1822
<script type='application/ld+json'>
1923
{
2024
"@context" : "https://schema.org",
@@ -31,7 +35,6 @@
3135
}
3236
</script>
3337

34-
3538

3639
<script src='https://libs.ext-code.com/js/dom/component/component.js'></script>
3740

@@ -40,7 +43,7 @@
4043
console.log('base64-encode-file-v2.0.html');
4144
console.log();
4245
console.json=v=>console.log(JSON.stringify(v,null,4));
43-
var df=true,did='base64-encode-file'
46+
var df=true,version='v2.0'
4447
;
4548

4649
var ext;
@@ -53,8 +56,6 @@
5356
var preview = {};
5457
var output = {};
5558

56-
var filemod;
57-
var publish;
5859
var log;
5960

6061

@@ -66,15 +67,15 @@
6667
async function init(){
6768

6869
//keydown = keydown();
69-
menu = mod.menumod();
70+
menu = menumod();
7071

7172
hdr = mod['hdr-base64'];
7273
//mod.menu.main = mod.menu.main();
73-
preview.filemod = mod['filemod[preview]'];
74-
preview.filename = mod['filename-ui[preview]'];
75-
output.filemod = mod['filemod[output]']
76-
output.filename = mod['filename-ui[output]'];
77-
log = mod.log;
74+
preview.filemod = mod['file-preview'];
75+
preview.filename = mod['fn-preview'];
76+
output.filemod = mod['file-output']
77+
output.filename = mod['fn-output'];
78+
log = mod['log-mod'];
7879

7980
hdr.initmod({ext,$,menu,menumod});
8081
//mod.menu.main.initmod({ext,$,menumod,editor,filemod});
@@ -97,7 +98,7 @@
9798
menu.on.close = null;
9899

99100

100-
await initdom(document.body);
101+
initdom(document.body);
101102

102103

103104
}//init
@@ -216,7 +217,7 @@
216217
<body>
217218

218219

219-
<hdr-base64 component=grp v2.0>
220+
<hdr-base64 component=grp>
220221
<img class=title src='image/base64-file-50.png' style='top:5px;height:40px'>
221222
<time slot=date datetime=2025-10-18>18 Oct 2025</time>
222223
</hdr-base64>
@@ -231,18 +232,16 @@
231232

232233
<div class=user>
233234

234-
<filemod inst=preview component v2.0></filemod>
235+
<file-mod id=file-preview component v2.0></file-mod>
235236

236237
<div id=btns>
237-
238238
<input value=save type=button>
239239
<div class=spc></div>
240-
241240
</div>
242241

243242
</div>
244243

245-
<filename-ui inst=preview component v2.0></filename-ui>
244+
<filename-ui id=fn-preview component></filename-ui>
246245

247246
</div>
248247

@@ -289,7 +288,7 @@
289288

290289
<div class=user>
291290

292-
<filemod inst=output component v2.0></filemod>
291+
<file-mod id=file-output component></file-mod>
293292

294293
<div id=btns>
295294

@@ -302,7 +301,7 @@
302301

303302
</div>
304303

305-
<filename-ui inst=output component v2.0></filename-ui>
304+
<filename-ui id=fn-output component v2.0></filename-ui>
306305

307306
</div output>
308307

@@ -325,7 +324,7 @@
325324
</body>
326325

327326

328-
<log component v2.0></log>
327+
<log-mod component></log-mod>
329328

330329

331330
<script>

0 commit comments

Comments
 (0)