Skip to content

Commit 2fe2172

Browse files
save file
1 parent 10d66cf commit 2fe2172

File tree

1 file changed

+48
-21
lines changed

1 file changed

+48
-21
lines changed

utils/misc/fetch/fetch.html

Lines changed: 48 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
11

22

3+
<!DOCTYPE html>
4+
35

46
<html>
57

68
<head>
9+
<meta charset=utf-8>
710

8-
9-
<title>html-editor</title>
11+
<title>
12+
Fetch
13+
</title>
14+
15+
<meta name=description content='A lightweight utility for fetching resources from the internet, similar to wget. Easily download files, inspect responses, and test endpoints directly from your browser or app.'>
1016

1117
<base href='https://ext-code.com/utils/misc/fetch/'>
12-
<base href='https://javascript-2020.github.io/utils/misc/fetch/'>
18+
<link rel=canonical href='https://ext-code.com/utils/misc/fetch/fetch.html'>
19+
20+
<link rel=icon type='image/png' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAVFBMVEVHcEwBAQEBAQEAAAACAgIBAQEBAQEBAQEBAQEBAQECAgIBAQEBAQEAAAABAQEBAQEBAQEBAQEAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFU2+9pAAAAHHRSTlMAHCTfBMPio3dGCRGVi9tK1VD+5Vxrr7NXLuk8uqRECAAAAOlJREFUKM+9ktlywyAMRc0iRNgMBry0//+fBZKYdIrTt9wHRnDQ6AoxTR+SnvNOL2kA4Z2TWvERnYU5NMkCYJ3/QK4BVQ3SJlGEX4xk3Lav7/s9NXGMG2ZyFvUe7QrnfrqhRe/DWbQQTrqjGhEjmgUNRo2sKgTdko9xo0dLl6DGWIH8HyfXLWtrdW/XpbJSJ/uJEP2udG0AMu7PnghjT8z3eE9TNmK6VZGKaQsTRvvwxMNaRuUcyxVLwRhzfg0vz0Rola5Yt5CMpvpSeyBKGaPX/8VYIay5xkvRNaawLEDfFId3tFgn0+f0A0H+CN0Zwf8NAAAAAElFTkSuQmCC'>
21+
<meta name=viewport content='width=device-width, initial-scale=1'>
22+
23+
<script type='application/ld+json'>
24+
{
25+
"@context" : "https://schema.org",
26+
"@type" : "SoftwareApplication",
27+
"name" : "Fetch",
28+
"url" : "https://ext-code.com/utils/misc/fetch/fetch.html",
29+
"author" : {"@type":"Person","name":"Matthew Richards"},
30+
"description" : "A lightweight utility for fetching resources from the internet, similar to wget. Easily download files, inspect responses, and test endpoints directly from your browser or app.",
31+
"applicationCategory" : "DeveloperApplication",
32+
"operatingSystem" : "All",
33+
"browserRequirements" : "Requires JavaScript-enabled browser",
34+
"softwareVersion" : "1.0.0",
35+
"offers" : {"@type":"Offer","price":"0","priceCurrency":"GBP"}
36+
}
37+
</script>
1338

14-
<link rel=icon type='image/png' href='images/html-editor-favicon.png'>
15-
<link rel=stylesheet href='/utils/css/utils.css' crossorigin=anonymous>
16-
1739

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

@@ -22,8 +44,8 @@
2244
console.log('fetch-v2.0.html');
2345
console.log();
2446
console.json=v=>console.log(JSON.stringify(v,null,4));
25-
var df=true,did='fetch.html';
26-
47+
var df=true,version='v2.0'
48+
;
2749

2850
var ext;
2951
var $;
@@ -34,6 +56,7 @@
3456

3557
var menu;
3658

59+
var hdr;
3760
var filemod;
3861
var log;
3962

@@ -45,23 +68,25 @@
4568
async function init(){
4669

4770
//keydown = keydown();
48-
menu = mod.menumod();
71+
menu = menumod();
4972

5073
hdr = mod['hdr-network'];
5174
//mod.menu.main = mod.menu.main();
52-
filemod = mod.filemod;
75+
filemod = mod['file-mod'];
5376
//publish = publish();
5477
//editor = editor();
5578
//output = output();
56-
log = mod.log;
79+
log = mod['log-mod'];
5780

5881
hdr.initmod({ext,$,menu});
5982
filemod.initmod({ext,$,menumod,menu,source,complete,log});
6083
log.initmod({ext,$});
6184

62-
await hdr.init();
63-
await filemod.init();
64-
await log.init();
85+
await Promise.all([
86+
hdr.init(),
87+
filemod.init(),
88+
log.init(),
89+
]);
6590

6691
//:
6792

@@ -70,7 +95,7 @@
7095
//menumod.on.close = focus;
7196

7297

73-
await initdom(document.body);
98+
initdom(document.body);
7499

75100

76101
}//init
@@ -98,6 +123,9 @@
98123

99124
</script init>
100125

126+
127+
128+
<link rel=stylesheet href='/utils/css/utils.css' crossorigin=anonymous>
101129

102130
<style>
103131
:root
@@ -164,13 +192,12 @@
164192

165193

166194

167-
<hdr-network component=grp v2.0>
195+
<hdr-network component=grp>
168196
<img class=title src='image/fetch-title-50.png' style='top:5px;height:40px'>
169-
<span slot=date>03 Aug 2025</span>
197+
<time slot=date datetime=2025-10-31>31 Oct 2025</time>
170198
</hdr-network>
171199

172200

173-
174201
<div id=url-root>
175202

176203
<div id=url-label>
@@ -190,7 +217,7 @@
190217

191218
<div>
192219

193-
<filemod component v2.0></filemod>
220+
<file-mod component></file-mod>
194221

195222
</div>
196223

@@ -240,7 +267,7 @@
240267
</div>
241268

242269

243-
<log component v2.0></log>
270+
<log-mod component></log-mod>
244271

245272

246273
</body>
@@ -271,7 +298,7 @@
271298
root = rootnode;
272299

273300

274-
hdr.initdom(root);
301+
hdr.initdom();
275302

276303

277304
$(root,'.copy').onclick = btn.copy;

0 commit comments

Comments
 (0)