1 let labels
= ["<a href='https://jamesfengcao.codeberg.page/en/redirect/index.html'>Global redirect url</a>","Download path (with option 'Download to sdcard')","Default font","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" src="https://jamesfengcao.codeberg.page/en/searchurl/config.js"><\\/script>');
22 let str = inputs.join('\\n');
23 let url = 'i:b1Save config.html%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);