5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
6 <link rel=
"canonical" href=
"https://jamesfengcao.gitlab.io/uweb/zh/gesture/" />
8 <link rel=
"stylesheet" href=
"../style.css#" type=
"text/css" />
12 let href
= location
.href
;
13 for(let i
=href
.length
-1;i
>0;i
--){
14 if('/'==href
.charAt(i
) && '/'==href
.charAt(i
-3))
21 location
.href
= location
.href
.substring(0,i
+1)+page
;
23 function nav2Lang(lang
){
25 let href
= location
.href
;
26 location
.href
= location
.href
.substring(0,i
-2)+lang
+location
.href
.substring(i
);
31 <header class='header'
>
32 <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>
35 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2Lang('en')">English
</a>
43 <div class=
"container">
46 <span class=
"subtitle"></span>
51 <p>顶部下拉弹出地址栏; 顶部上划隐藏地址栏。底部下划隐藏工具条; 底部左右角落划动弹出工具条。
</p>
52 <p>紧靠工具条左右划动切换当前窗口; 左右大幅度划动切换到第一或最后一个窗口。
</p>
53 <p>起点终点紧靠地址栏划动操作调用
"default.gesture
"文件中对应链接。文件格式与文件
<a href=
"../links/index.html#">default.link
</a>完全相同。每行第一部分为助记名,第二部分为链接。手势操作对应方式如下:
</p>
55 <li>将屏幕宽度平分为三部分,分别对应数字
0,
1,
2</li>
56 <li>将终点对应的屏幕数字加上起点对应数字的三倍。如果数字为
4且初始为往左滑动则数字改为
9。
</li>
57 <li>每额外多一次来回转折数字加
10。
<br>
58 超微浏览器将执行上述数字所对应行所定义的链接操作。(
0对应第一行,以此类推)
</li>
60 <p>右边缘划动操作调用
"default.gesture2
"文件中对应链接。对应方法同
"default.gesture
"。
</p>
62 back:javascript:history.back()
<br>
63 forward:javascript:history.forward()
<br>
64 back2:javascript:history.go(-
2)
</p>
67 <p>Last Modified:
2 April
2024<br>
68 add js function in README
<br>
73 src='https://giscus.app/client.js'
74 data-repo=
"torappinfo/uweb"
75 data-repo-id=
"MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
76 data-category=
"Announcements"
77 data-category-id=
"DIC_kwDOEgNLGc4CQjsh"
80 data-reactions-enabled=
"1"
81 data-emit-metadata=
"0"
82 data-input-position=
"top"
86 crossorigin=
"anonymous" async
>
89 <footer class=
"site-footer">
90 <div class=
"container">
91 © 2018-
2024 Richard H. Cao
94 <!-- 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/>. -->