index.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <link rel="stylesheet" href="../style.css#" type="text/css" />
  7. <title>手势</title>
  8. <script type="text/javascript">
  9. function findLang(){
  10. let href = location.href;
  11. for(let i=href.length-1;i>0;i--){
  12. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  13. return i;
  14. }
  15. return 0;
  16. }
  17. function nav2(page){
  18. let i = findLang();
  19. location.href = location.href.substring(0,i+1)+page;
  20. }
  21. function nav2Lang(lang){
  22. let i = findLang();
  23. let href = location.href;
  24. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <header class='header'>
  30. <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
  31. <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
  32. <nav>
  33. </nav>
  34. </header>
  35. <br />
  36. <div class="container">
  37. <h1 class="title">手势
  38. <br>
  39. <span class="subtitle"></span>
  40. </h1>
  41. <ul class="tags">
  42. </ul>
  43. <p>顶部下拉弹出地址栏; 顶部上划隐藏地址栏。底部下划隐藏工具条; 底部左右角落划动弹出工具条。</p>
  44. <p>紧靠工具条左右划动切换当前窗口; 左右大幅度划动切换到第一或最后一个窗口。</p>
  45. <p>起点终点紧靠地址栏划动操作调用&quot;default.gesture&quot;文件中对应链接。文件格式与文件<a href="../links/index.html#">default.link</a>完全相同。每行第一部分为助记名,第二部分为链接。手势操作对应方式如下:</p>
  46. <ol>
  47. <li>将屏幕宽度平分为三部分,分别对应数字0,1,2</li>
  48. <li>将终点对应的屏幕数字加上起点对应数字的三倍。如果数字为4且初始为往左滑动则数字改为9。</li>
  49. <li>每额外多一次来回转折数字加10。<br>
  50. 超微浏览器将执行上述数字所对应行所定义的链接操作。(0对应第一行,以此类推)</li>
  51. </ol>
  52. <p>右边缘划动操作调用&quot;default.gesture2&quot;文件中对应链接。对应方法同&quot;default.gesture&quot;。</p>
  53. <p>常用操作链接:<br>
  54. back:javascript:history.back()<br>
  55. forward:javascript:history.forward()<br>
  56. back2:javascript:history.go(-2)</p>
  57. </div>
  58. <p>Last Modified: 2 April 2024<br>
  59. add js function in README<br>
  60. <pre></pre>
  61. </p>
  62. <script id='jsgiscus'
  63. src='https://giscus.app/client.js'
  64. data-repo="torappinfo/uweb"
  65. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  66. data-category="Announcements"
  67. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  68. data-mapping="title"
  69. data-strict="0"
  70. data-reactions-enabled="1"
  71. data-emit-metadata="0"
  72. data-input-position="top"
  73. data-theme="light"
  74. data-lang="en"
  75. data-loading="lazy"
  76. crossorigin="anonymous" async>
  77. </script>
  78. <footer class="site-footer">
  79. <div class="container">
  80. &copy; 2018-2024 Richard H. Cao
  81. </div>
  82. </footer>
  83. <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
  84. </body>
  85. </html>