2022-07-02 01:15:32 +00:00
|
|
|
let labels = ["Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
|
|
|
|
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
|
|
|
|
|
|
|
let text;
|
|
|
|
let d=document;
|
|
|
|
if(d.body)
|
|
|
|
text = d.body.innerHTML;
|
|
|
|
else
|
|
|
|
text = "\n".repeat(labels.length-1);
|
|
|
|
|
|
|
|
let sa = [`<style>input{height:40px;width:100%;border-radius:50px;}</style>
|
|
|
|
<datalist id="family">
|
|
|
|
<option value="sans-serif">
|
|
|
|
<option value="sans-serif-condensed">
|
|
|
|
<option value="sans-serif-smallcaps">
|
|
|
|
<option value="serif">
|
|
|
|
<option value="serif-monospace">
|
|
|
|
<option value="monospace">
|
|
|
|
<option value="cursive">
|
|
|
|
</datalist>
|
2022-07-09 00:45:17 +00:00
|
|
|
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/data/data/info.torinfo.uweb/files/config.html:'+f.font.value+
|
2022-07-02 01:15:32 +00:00
|
|
|
'&'+ f.cursive.value +
|
|
|
|
'&'+ f.fantasy.value +
|
|
|
|
'&'+ f.fixed.value +
|
|
|
|
'&'+ f.sansserif.value +
|
|
|
|
'&'+ f.serif.value +
|
|
|
|
':https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
|
|
|
|
|
|
|
|
|
|
|
let strs = text.split('\n');
|
|
|
|
let i=0;
|
|
|
|
for (i = 0; i < labels.length; i++){
|
|
|
|
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
|
|
|
}
|
|
|
|
|
|
|
|
sa.push('<input type="submit" value="Save"></form>');
|
|
|
|
let r = sa.join('<br>');
|
|
|
|
d.documentElement.innerHTML = r;
|