homescreen.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width" />
  2. <script>function g(){
  3. let d=document;
  4. let f=d.forms[0];
  5. d.location.href="i:19"; setTimeout(function(){ document.location.href="i:0i/data/data/info.torapp.uweb/files/home.css:"+f.b.value+":https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/home.css";
  6. },100);
  7. return false;
  8. }
  9. function g3(iF,filename,fakeurl){
  10. let d=document;
  11. let f=d.forms[iF];
  12. d.location.href="i:0i/data/data/info.torapp.uweb/files/"+filename+":"+f.b.value+'&'+fakeurl +":https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/refresh.html";
  13. return false;
  14. }
  15. function g4(iF){
  16. let d=document;
  17. let f=d.forms[iF];
  18. let fname = f.f.value+".html";
  19. if(f.s.checked){
  20. d.location.href="i:0h"+fname+":"+f.b.value;
  21. return false;
  22. } else
  23. return g3(iF,fname,'file:///data/data/info.torapp.uweb/files/'+fname);
  24. }
  25. </script><style>
  26. input{height:40px;width:100%;border-radius:50px;}
  27. label>input{height: auto; width: auto;};
  28. </style>
  29. <title>主屏设置</title></head><body>
  30. <form onsubmit="return g();" style="margin:5px 0 5px 0;padding:0px">
  31. <input name=b placeholder="背景图片网址, 可为配置目录下图像文件名"/><br>
  32. <input type="submit" value="设置主屏">
  33. </form>
  34. <p>
  35. <form onsubmit="return g3(1,'home5.html','file:///data/data/info.torapp.uweb/files/home4.search');" style="margin:5px 0 5px 0;padding:0px">
  36. <input name=b placeholder="主屏网址" value="home5.mht"/><br>
  37. <input type="submit" value="设置主屏网址">
  38. </form>
  39. </p>
  40. <p>
  41. <form onsubmit="return g4(2);" style="margin:5px 0 5px 0;padding:0px">
  42. <input name=f placeholder="主屏文件名" value="home6"/><br>
  43. <input name=b placeholder="第n主屏网址"/><br>
  44. <label><input name=s type="checkbox">Save as single html</label><br>
  45. <input type="submit" value="设置第n主屏">
  46. </form>
  47. </p>
  48. <p>
  49. <a href="i:0gdefault.link::保存为主屏:i:020../home6%0A">点击安装常用链接:保存为(第二)主屏 (.mht)</a> <a href="../links/index.html">帮助</a><br>
  50. </p>
  51. <p>
  52. 常用主屏配置网站:<br>
  53. <a href="https://m.inftab.com">inftab</a><br>
  54. </p>
  55. </body></html>