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/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>Home screens</title></head><body>
  30. <form onsubmit="return g();" style="margin:5px 0 5px 0;padding:0px">
  31. <input name=b placeholder="background image url or image file name"/><br>
  32. <input type="submit" value="Set main home screen">
  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="Main home screen url" value="home5.mht"/><br>
  37. <input type="submit" value="Set the main screen url">
  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="Home screen name" value="home6"/><br>
  43. <input name=b placeholder="url"/><br>
  44. <label><input name=s type="checkbox">Save as single html</label><br>
  45. <input type="submit" value="Set the home screen">
  46. </form>
  47. </p>
  48. <p>
  49. <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>
  50. </p>
  51. <p>
  52. Some sites to configure home screens:<br>
  53. <a href="https://m.inftab.com">inftab</a><br>
  54. </p>
  55. </body></html>