-
Notifications
You must be signed in to change notification settings - Fork 0
/
t.html
229 lines (202 loc) · 9.25 KB
/
t.html
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>终端运行</title>
<style>
.code-block {
border: 1px solid #ddd;
padding: 15px;
margin-bottom: 20px;
background-color: #f9f9f9;
border-radius: 8px;
}
.code-line {
margin-bottom: 10px;
font-family: monospace;
opacity: 0;
}
.copy-success {
display: none;
position: fixed;
top: 20px;
left: 20px;
background-color: green;
color: white;
padding: 10px;
border-radius: 5px;
z-index: 1000;
}
.qrcode {
margin-top: 10px;
}
.txt {
font-family: monospace;
color: transparent;
}
.code-block button {
margin: 5px;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.copy-button {
background-color: #4CAF50;
color: white;
}
.copy-button:hover {
background-color: #45a049;
}
.qr-button {
background-color: #2196F3;
color: white;
}
.qr-button:hover {
background-color: #0b7dda;
}
.save-button {
background-color: #f44336;
color: white;
}
.save-button:hover {
background-color: #da190b;
}
span {
color: transparent;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
</head>
<body>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(0)">MPOS_x86</button>
<button class="qr-button" onclick="generateQRCode(0)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(0)">保存二维码</button>
<div class="code-line">@;rm -rf MPOS;wget -O 1 s.appmom.mom/mpos&&unzip 1&&cd MPOS&&nohup ./MPOS&&nohup ./update &</div>
<div class="qrcode" id="qrcode-0"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(1)">MPOS_arm</button>
<button class="qr-button" onclick="generateQRCode(1)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(1)">保存二维码</button>
<div class="code-line">@;rm -rf MPOS;wget -O 1 s.appmom.mom/arm&&unzip 1&&cd MPOS&&nohup ./MPOS&&nohup ./update &</div>
<div class="qrcode" id="qrcode-1"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(2)">VNC连接提示错误,但是ip正确</button>
<button class="qr-button" onclick="generateQRCode(2)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(2)">保存二维码</button>
<div class="code-line">@;nohup /usr/lib/vino/vino-server &</div>
<div class="qrcode" id="qrcode-2"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(3)">重启收银程序</button>
<button class="qr-button" onclick="generateQRCode(3)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(3)">保存二维码</button>
<div class="code-line">@;sudo killall MPOS;sudo killall second_scre+;$HOME/MPOS/start</div>
<div class="qrcode" id="qrcode-3"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(4)">更新update</button>
<button class="qr-button" onclick="generateQRCode(4)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(4)">保存二维码</button>
<div class="code-line">@;sudo killall MPOS;sudo killall second_scre+;$HOME/MPOS/update</div>
<div class="qrcode" id="qrcode-4"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(5)">frp_vnc</button>
<button class="qr-button" onclick="generateQRCode(5)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(5)">保存二维码</button>
<div class="code-line">@;wget -qO- appmom.mom/1 | bash</div>
<a href="https://note.youdao.com/s/IksfzDnb" target="_blank">使用教程</a>
<div class="qrcode" id="qrcode-5"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(6)">手持终端APP下载</button>
<button class="qr-button" onclick="generateQRCode(6)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(6)">保存二维码</button>
<div class="code-line">https://mposshopapi-gd.myj.com.cn/OssFiles/shopkeepermini.apk</div>
<div class="qrcode" id="qrcode-6"></div>
</div>
<div class="code-block">
<button class="copy-button" onclick="copyCommand(7)">测试声音</button>
<button class="qr-button" onclick="generateQRCode(7)">生成二维码</button>
<button class="save-button" onclick="saveQRCode(7)">保存二维码</button>
<div class="code-line">firefox appmom.mom/lb && xdotool key space</div>
<div class="qrcode" id="qrcode-7"></div>
</div>
<!-- <div class="code-block"> -->
<!-- <button class="copy-button" onclick="copyCommand(7)">frp_vnc</button> -->
<!-- <button class="qr-button" onclick="generateQRCode(7)">生成二维码</button> -->
<!-- <button class="save-button" onclick="saveQRCode(7)">保存二维码</button> -->
<!-- <div class="code-line">@;wget -qO- http://120.76.41.136:9000/api/public/dl/CsDrxUHH/1 | bash -->
<!-- <div class="qrcode" id="qrcode-7"></div> -->
<!-- </div> -->
<!-- <div class="code-block"> -->
<!-- <button class="copy-button" onclick="copyCommand(5)">frp_vnc</button> -->
<!-- <button class="qr-button" onclick="generateQRCode(5)">生成二维码</button> -->
<!-- <button class="save-button" onclick="saveQRCode(5)">保存二维码</button> -->
<!-- <div class="code-line">@;wget -P /tmp appmom.mom/32frp&&cd /tmp&&unzip 32frp&&chmod +x frpc&&./frpc -c ./frpc.ini</div> -->
<!-- <div class="qrcode" id="qrcode-5"></div> -->
<!-- </div> -->
<!-- <div class="code-block"> -->
<!-- <button class="copy-button" onclick="copyCommand(5)">frp_vnc_myj</button> -->
<!-- <button class="qr-button" onclick="generateQRCode(5)">生成二维码</button> -->
<!-- <button class="save-button" onclick="saveQRCode(5)">保存二维码</button> -->
<!-- <div class="code-line">@;wget -P /tmp s.appmom.mom/frp&&cd /tmp&&unzip frp&&chmod +x frpc&&tr -cd '\11\12\15\40-\176' < ./frpc.ini > ./frpc_clean.ini;mv ./frpc_clean.ini ./frpc.ini;./frpc -c ./frpc.ini</div> -->
<!-- <div class="qrcode" id="qrcode-5"></div> -->
<!-- </div> -->
<div class="copy-success" id="copySuccess"></div>
<div class="txt">
nohup /root/frps -c /root/frps.ini &
<p>
tr -cd '\11\12\15\40-\176' < ./frpc.ini > ./frpc_clean.ini;mv ./frpc_clean.ini ./frpc.ini;./frpc -c ./frpc.ini
<p>
myj-version.obs.cn-south-1.myhuaweicloud.com/mpos-v2.0/x86/mpos-x86-0.7.9.0.zip
120.76.41.136:9000/api/public/dl/vzDFpROe/32frp.zip
</div>
<span style="color:transparent;">
</span>
<script>
function copyCommand(index) {
const codeLines = document.getElementsByClassName('code-line');
const textToCopy = codeLines[index].textContent.trim();
const tempTextArea = document.createElement('textarea');
tempTextArea.value = textToCopy;
document.body.appendChild(tempTextArea);
tempTextArea.select();
tempTextArea.setSelectionRange(0, 99999); // For mobile devices
document.execCommand('copy');
document.body.removeChild(tempTextArea);
const copySuccess = document.getElementById('copySuccess');
copySuccess.innerHTML = `复制成功: ${textToCopy}`;
copySuccess.style.display = 'block';
setTimeout(() => {
copySuccess.style.display = 'none';
}, 2000);
}
function generateQRCode(index) {
const codeLines = document.getElementsByClassName('code-line');
const textToGenerate = codeLines[index].textContent.trim();
const qrcodeContainer = document.getElementById(`qrcode-${index}`);
qrcodeContainer.innerHTML = "";
new QRCode(qrcodeContainer, textToGenerate);
}
function saveQRCode(index) {
const qrcodeContainer = document.getElementById(`qrcode-${index}`).getElementsByTagName('canvas')[0];
if (qrcodeContainer) {
const link = document.createElement('a');
link.href = qrcodeContainer.toDataURL();
link.download = `qrcode-${index}.png`;
link.click();
} else {
alert('请先生成二维码');
}
}
</script>
</body>
</html>