1 let labels
= ["<a href='https://jamesfengcao.codeberg.page/zh/redirect/index.html'>全局重定向网址</a>","下载目录(选项'下载至可卸存储'下生效)","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
2 let names
= ["redirecturl","downloadpath","font","cursive","fantasy","fixed","sansserif","serif"];
6 let sa
= [`<head><meta charset="utf-8"><meta name="viewport" content="width=device-width" /></head><style>input{height:40px;width:100%;border-radius:50px;}</style>
8 <option value="sans-serif">
9 <option value="sans-serif-condensed">
10 <option value="sans-serif-smallcaps">
11 <option value="serif">
12 <option value="serif-monospace">
13 <option value="monospace">
14 <option value="cursive">
18 let d=document;let f=d.forms[0];
19 let inputs = Array.from(f.querySelectorAll('input')).map(input => input.value);
21 inputs.push('<script charset="utf-8" type="application/javascript" src="https://gitee.com/jamesfengcao/uweb/raw/master/zh/searchurl/config.js#"><\\/script>');
22 let str = inputs.join('\\n');
23 let url = 'i:b1保存配置%0A%0Ai:8lconfig.html%0Ai:0lconfig.html:'+btoa(str);
28 <form onsubmit="return save()" accept-charset=utf-8 >`];
31 let strs
= text
.split('\n');
34 sa
.push("<label>"+labels
[i
]+"<input type='text' name='"+names
[i
]+"' value='"+strs
[i
]+"'/></label>");
35 for (i
= 2; i
< labels
.length
; i
++){
36 sa
.push("<label>"+labels
[i
]+"<input list='family' type='text' name='"+names
[i
]+"' value='"+strs
[i
]+"'/></label>");
39 sa
.push('<input type="submit" value="Save"></form>');
40 let r
= sa
.join('<br>');
46 var r
=new XMLHttpRequest
;
51 r
.open("GET",location
.href
,!0);
54 let text
= "\n".repeat(labels
.length
-1);