This commit is contained in:
2026-06-13 17:23:18 +03:30
parent 53b8a91843
commit 2c8a134d41
5 changed files with 1549 additions and 2 deletions

16
landing.js Normal file
View File

@@ -0,0 +1,16 @@
const installCommand = 'curl -fsSL https://meghdadfadaee.github.io/nais/setup.sh | sh';
document.querySelectorAll('[data-copy-command]').forEach((button) => {
button.addEventListener('click', async () => {
try {
await navigator.clipboard.writeText(installCommand);
const label = button.querySelector('.copy-label');
label.textContent = 'Copied';
window.setTimeout(() => {
label.textContent = 'Copy';
}, 1800);
} catch {
window.prompt('Copy the install command:', installCommand);
}
});
});