Skip to content

Commit 8f756ae

Browse files
save file
1 parent 9fca7d6 commit 8f756ae

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

utils/editors/srcdoc/html/srcdoc-headers/srcdoc-headers.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<input id=name>
3434
<input id=value>
3535
<input value=add type=button>
36+
<div class=spc>
37+
</div>
38+
<input value=clear type=button>
3639
</div>
3740

3841
<div id=list>
@@ -103,6 +106,7 @@
103106
ui.value = $(hdr,'#value');
104107

105108
$(hdr,'[value=add]').onclick = btn.add;
109+
$(hdr,'[value=clear]').onclick = btn.clear;
106110

107111

108112
list = $(shadow,'#list');
@@ -140,6 +144,17 @@
140144
}//add
141145

142146

147+
btn.clear = function(){
148+
149+
for(var key in headers){
150+
151+
delete headers[key];
152+
153+
}//for
154+
list.replaceChildren();
155+
156+
}//clear
157+
143158

144159

145160
return obj;

0 commit comments

Comments
 (0)