mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update index.html
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
e338ddb7b2
commit
d3fa483c4b
1 changed files with 2 additions and 3 deletions
|
|
@ -767,11 +767,10 @@
|
|||
// Update command display based on selected tool and version
|
||||
function updateCommand(version) {
|
||||
const tool = document.querySelector('input[name="tool"]:checked').value;
|
||||
const proxy = localStorage.getItem("gh-proxy-enabled") === "true" ? " | <span class='text-blue-400'>sed</span> <span class='text-orange-400'>'s#https://github.com#https://gh-proxy.com/https://github.com#g'</span>" : "";
|
||||
const _version = version===undefined?"": `<span class="text-green-400">VERSION</span>=<span class="text-pink-400">${version}</span> `
|
||||
const cmd = tool === "curl"
|
||||
? `<pre class="text-slate-300"><code>${_version}<span class="text-blue-400">bash</span> \<(<span class="text-blue-400">curl</span> <span class="text-cyan-400">https://mikrotik.ltd/chr.sh</span>${proxy})</code></pre>`
|
||||
: `<pre class="text-slate-300"><code>${_version}<span class="text-blue-400">bash</span> \<(<span class="text-blue-400">wget -O - </span><span class="text-cyan-400">https://mikrotik.ltd/chr.sh</span>${proxy})</code></pre>`;
|
||||
? `<pre class="text-slate-300"><code>${_version}<span class="text-blue-400">bash</span> \<(<span class="text-blue-400">curl</span> <span class="text-cyan-400">https://mikrotik.ltd/chr.sh</span>)</code></pre>`
|
||||
: `<pre class="text-slate-300"><code>${_version}<span class="text-blue-400">bash</span> \<(<span class="text-blue-400">wget -O - </span><span class="text-cyan-400">https://mikrotik.ltd/chr.sh</span>)</code></pre>`;
|
||||
commandDiv.innerHTML = cmd;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue