mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Sun May 8 08:05:25 AM CST 2022
This commit is contained in:
parent
f396bf92a6
commit
5a2bfca657
2 changed files with 12 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
let labels = ["网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
let labels = ["网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族","语言"];
|
||||||
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
let names = ["font","cursive","fantasy","fixed","sansserif","serif","language"];
|
||||||
|
|
||||||
let text;
|
let text;
|
||||||
let d=document;
|
let d=document;
|
||||||
|
@ -18,19 +18,27 @@ let sa = [`<style>input{height:40px;width:100%;border-radius:50px;}</style>
|
||||||
<option value="monospace">
|
<option value="monospace">
|
||||||
<option value="cursive">
|
<option value="cursive">
|
||||||
</datalist>
|
</datalist>
|
||||||
|
<datalist id="language">
|
||||||
|
<option value="zh">
|
||||||
|
<option value="en">
|
||||||
|
</datalist>
|
||||||
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/sdcard/uweb/config.html:'+f.font.value+
|
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/sdcard/uweb/config.html:'+f.font.value+
|
||||||
'&'+ f.cursive.value +
|
'&'+ f.cursive.value +
|
||||||
'&'+ f.fantasy.value +
|
'&'+ f.fantasy.value +
|
||||||
'&'+ f.fixed.value +
|
'&'+ f.fixed.value +
|
||||||
'&'+ f.sansserif.value +
|
'&'+ f.sansserif.value +
|
||||||
'&'+ f.serif.value +
|
'&'+ f.serif.value +
|
||||||
|
'&'+ f.language.value +
|
||||||
':https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
':https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||||
|
|
||||||
|
|
||||||
let strs = text.split('\n');
|
let strs = text.split('\n');
|
||||||
for (let i = 0; i < labels.length; i++){
|
let i=0;
|
||||||
|
for (i = 0; i < labels.length-1; i++){
|
||||||
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||||
}
|
}
|
||||||
|
sa.push("<label>"+labels[i]+"<input list='language' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||||
|
|
||||||
sa.push('<input type="submit" value="Save"></form>');
|
sa.push('<input type="submit" value="Save"></form>');
|
||||||
let r = sa.join('<br>');
|
let r = sa.join('<br>');
|
||||||
d.documentElement.innerHTML = r;
|
d.documentElement.innerHTML = r;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%4%
|
%4%
|
||||||
%5%
|
%5%
|
||||||
%6%
|
%6%
|
||||||
|
%7%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue