Redo landing page

This commit is contained in:
2021-10-06 18:32:28 +02:00
parent ac66f6747e
commit c100daeba5
5 changed files with 80 additions and 227 deletions

23
docs/javascripts/extra.js Normal file
View File

@@ -0,0 +1,23 @@
function copyToClipboardNux() {
const text = document.getElementById("ghcup-command-linux").innerText;
const el = document.createElement('textarea');
el.value = text;
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
const button = document.getElementById("ghcup-linux-button");
button.focus();
}
function copyToClipboardWin() {
const text = document.getElementById("ghcup-command-windows").innerText;
const el = document.createElement('textarea');
el.value = text;
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
const button = document.getElementById("ghcup-windows-button");
button.focus();
}