mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
enhance multiple home screens UI
This commit is contained in:
parent
8a502e4532
commit
439cf52e37
2 changed files with 40 additions and 4 deletions
|
@ -11,9 +11,21 @@
|
|||
let f=d.forms[iF];
|
||||
d.location.href="i:0i/data/data/info.torapp.uweb/files/"+filename+":"+f.b.value+'&'+fakeurl +":https://fastly.jsdelivr.net/gh/torappinfo/uweb/searchurl/template/refresh.html";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function g4(iF){
|
||||
let d=document;
|
||||
let f=d.forms[iF];
|
||||
let fname = f.f.value+".html";
|
||||
if(f.s.checked){
|
||||
d.location.href="i:0h"+fname+":"+f.b.value;
|
||||
return false;
|
||||
} else
|
||||
return g3(iF,fname,'file:///data/data/info.torapp.uweb/files/'+fname);
|
||||
}
|
||||
</script><style>
|
||||
input{height:40px;width:100%;border-radius:50px;}
|
||||
label>input{height: auto; width: auto;};
|
||||
</style>
|
||||
<title>Home screens</title></head><body>
|
||||
<form onsubmit="return g();" style="margin:5px 0 5px 0;padding:0px">
|
||||
|
@ -29,10 +41,16 @@ input{height:40px;width:100%;border-radius:50px;}
|
|||
</p>
|
||||
|
||||
<p>
|
||||
<form onsubmit="return g4(2);" style="margin:5px 0 5px 0;padding:0px">
|
||||
<input name=f placeholder="Home screen name" value="home6"/><br>
|
||||
<input name=b placeholder="url"/><br>
|
||||
<label><input name=s type="checkbox">Save as single html</label><br>
|
||||
<input type="submit" value="Set the home screen">
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="i:0gdefault.link::saveAsHome:i:020../home6%0A">install link: save as the second home screen</a> <a href="../links/index.html">Help</a> <a href="../tips/index.html">Tips</a><br>
|
||||
<a href="i:0gdefault.link::saveAsHome:i:020../home6%0A">install link: save as the second home screen (.mht)</a> <a href="../links/index.html">Help</a> <a href="../tips/index.html">Tips</a><br>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -12,8 +12,20 @@
|
|||
d.location.href="i:0i/data/data/info.torapp.uweb/files/"+filename+":"+f.b.value+'&'+fakeurl +":https://fastly.jsdelivr.net/gh/torappinfo/uweb/searchurl/template/refresh.html";
|
||||
return false;
|
||||
}
|
||||
|
||||
function g4(iF){
|
||||
let d=document;
|
||||
let f=d.forms[iF];
|
||||
let fname = f.f.value+".html";
|
||||
if(f.s.checked){
|
||||
d.location.href="i:0h"+fname+":"+f.b.value;
|
||||
return false;
|
||||
} else
|
||||
return g3(iF,fname,'file:///data/data/info.torapp.uweb/files/'+fname);
|
||||
}
|
||||
</script><style>
|
||||
input{height:40px;width:100%;border-radius:50px;}
|
||||
input{height:40px;width:100%;border-radius:50px;}
|
||||
label>input{height: auto; width: auto;};
|
||||
</style>
|
||||
<title>主屏设置</title></head><body>
|
||||
<form onsubmit="return g();" style="margin:5px 0 5px 0;padding:0px">
|
||||
|
@ -29,10 +41,16 @@ input{height:40px;width:100%;border-radius:50px;}
|
|||
</p>
|
||||
|
||||
<p>
|
||||
<form onsubmit="return g4(2);" style="margin:5px 0 5px 0;padding:0px">
|
||||
<input name=f placeholder="主屏文件名" value="home6"/><br>
|
||||
<input name=b placeholder="第n主屏网址"/><br>
|
||||
<label><input name=s type="checkbox">Save as single html</label><br>
|
||||
<input type="submit" value="设置第n主屏">
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="i:0gdefault.link::保存为主屏:i:020../home6%0A">点击安装常用链接:保存为(第二)主屏</a> <a href="../links/index.html">帮助</a><br>
|
||||
<a href="i:0gdefault.link::保存为主屏:i:020../home6%0A">点击安装常用链接:保存为(第二)主屏 (.mht)</a> <a href="../links/index.html">帮助</a><br>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue