Skip to content

Commit e7a8f43

Browse files
save file
1 parent 2fb885d commit e7a8f43

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

utils/editors/srcdoc/v2.0/srcdoc-v2.0.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ <h1 slot=seo-hdr class=visually-hidden>
159159
<input id=url autocomplete=off spellcheck=false>
160160
<img id=hdrs-icon class=icon title='request> headers'>
161161
<input type=button value=go>
162-
163162
</div>
164163

165164
<iframe></iframe>
@@ -193,6 +192,7 @@ <h1 slot=seo-hdr class=visually-hidden>
193192
$(root,'.copy').onclick = btn.copy;
194193
$(root,'.paste').onclick = btn.paste;
195194

195+
$(root,'#hdrs-icon').onclick = btn['hdrs-icon'];
196196
$(root,'[value=go]').onclick = btn.go;
197197

198198

@@ -271,6 +271,14 @@ <h1 slot=seo-hdr class=visually-hidden>
271271
}//go
272272

273273

274+
btn['hdrs-icon'] = function(){
275+
276+
var [viewport,srchdrs] = await Promise.all([vm.new(),mod.component('srcdoc-headers',{component:'page'}));
277+
viewport.body.append(srchdrs.__host);
278+
279+
}//hdrs-icon
280+
281+
274282
//:
275283

276284

0 commit comments

Comments
 (0)