-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtouch2.html
More file actions
171 lines (126 loc) · 2.95 KB
/
Copy pathtouch2.html
File metadata and controls
171 lines (126 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>设置触屏</title>
<style>
body{background:#f7f7f0;}
table{border-collapse:collapse;cursor:default;}
#foo{border-top:solid 1px #cccccc;padding-top:2rem;margin-top:6rem;width:90%;text-align:center}
.game-btn {
display: inline-block;
padding: 6px 12px;
margin: 0 5px;
font-weight: 500;
text-decoration: none;
background-color: #4a76a8;
color: white;
border-radius: 4px;
transition: all 0.3s;
}
.game-btn:hover {
background-color: #3a5b85;
transform: translateY(-2px);
}
.game-btn:active {
transform: translateY(0);
}
input[type="radio"] {
margin-right: 5px;
}
input[type="radio"] + label {
margin-right: 15px;
cursor: pointer;
}
.radio-container {
margin: 10px 0;
display: inline-block;
padding: 5px 15px;
border-radius: 5px;
background-color: #f0f0f0;
}
.settings-section {
margin: 15px 0;
padding: 10px;
border-radius: 8px;
background-color: #f9f9f9;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
h3 {
color: #333;
margin-bottom: 10px;
}
</style>
<base target="_top">
</head>
<body>
<a href="index.html" class="game-btn">返回首页</a>
<center>
<br><br>
<div class="settings-section">
<h3>触击模式</h3>
<div class="radio-container">
<input type="radio" id="tpn-0" name="tpn" value="0" checked="" onclick="save('tpn',0);more(0);"><label for="tpn-0">标记</label>
<input type="radio" id="tpn-1" name="tpn" value="1" onclick="save('tpn',1);more(1);"><label for="tpn-1">直开</label>
</div>
</div>
<div id="hint" class="settings-section" style="display:none;">
<h3>直开模式下的标记方法</h3>
长按
</div>
<div id="open" class="settings-section" style="display:none;">
<h3>标记模式下的打开方法</h3>
<div class="radio-container">
<input type="radio" id="opn-0" name="opn" value="0" checked="" onclick="save('opn',0)"><label for="opn-0">长按</label>
<input type="radio" id="opn-1" name="opn" value="1" onclick="save('opn',1)"><label for="opn-1">快点三次</label>
</div>
</div>
<br>
<br>
<script>
function $(id){return document.getElementById(id);}
function load(rname)
{
var rv=localStorage.getItem(rname);
if(rv==null) rv=0;
var robj=document.getElementsByName(rname);
for(i=0;i<robj.length;i++){
if(robj[i].value==rv){
robj[i].checked=true;
}
}
return rv;
}
function save(rname,rv)
{
if(rv==0){
localStorage.removeItem(rname);
}
else{
localStorage.setItem(rname,rv);
}
}
var rv=load("tpn");
load("opn");
more(rv);
function more(v)
{
if(v==0){
$("open").style.display="block";
$("hint").style.display="none";
}
else{
$("hint").style.display="block";
$("open").style.display="none";
}
}
</script>
</center>
<br><br>
</div>
<script language="javascript" type="text/javascript" src=".\static\js\18759442.js"></script>
<div style="display: none">
<script type="text/javascript" src=".\static\js\z_stat.js"></script>
</div>
</body>
</html>