diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-07 19:55:44 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-07 19:55:44 +0300 |
| commit | 970c07ea3110f114f6cb348ccbef5a6f763373ce (patch) | |
| tree | 071cc22b4e26be964e51dda280d3dcb4f74b5fc9 /website/index.html | |
| parent | c01b947d0bde1663980a15727938ac666ce31f61 (diff) | |
docs: document windows preview installs
Diffstat (limited to 'website/index.html')
| -rw-r--r-- | website/index.html | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/website/index.html b/website/index.html index cbcefb00..1a06efc0 100644 --- a/website/index.html +++ b/website/index.html @@ -137,7 +137,7 @@ </div> <div class="install-panel" aria-label="Install options"> <div class="install-methods" role="group" aria-label="Install method"> - <span class="install-label">Install with</span> + <span class="install-label">Stable install</span> <button class="install-method is-active" type="button" @@ -165,10 +165,23 @@ <code id="install-cmd" class="is-compact" >curl -fsSL https://herdr.dev/install.sh | sh</code > - <button id="copy-btn" type="button">Copy</button> + <button id="copy-btn" type="button" data-copy-target="install-cmd">Copy</button> + </div> + <div class="windows-install" aria-label="Windows beta preview install"> + <div class="windows-install-heading"> + <span>Windows beta · preview only</span> + <a href="/docs/preview/windows-beta/">Preview docs</a> + </div> + <div class="install-card install-card-secondary" aria-label="Windows beta install command"> + <span class="prompt">PS></span> + <code id="windows-install-cmd" class="is-compact" + >$env:HERDR_CHANNEL="preview"; irm https://herdr.dev/install.ps1 | iex</code + > + <button type="button" data-copy-target="windows-install-cmd">Copy</button> + </div> </div> </div> - <p class="hero-note">Single Rust binary · no Electron</p> + <p class="hero-note">Stable Linux/macOS · Windows preview beta · no Electron</p> </div> </div> @@ -1048,18 +1061,23 @@ $ herdr</code></pre> }); }); - copyButton.addEventListener("click", async function () { - try { - await navigator.clipboard.writeText( - command.textContent.trim(), - ); - copyButton.textContent = "Copied"; - setTimeout(function () { - copyButton.textContent = "Copy"; - }, 1500); - } catch (error) { - copyButton.textContent = "Select"; - } + document.querySelectorAll("[data-copy-target]").forEach(function (button) { + button.addEventListener("click", async function () { + var target = document.getElementById(button.dataset.copyTarget); + if (!target) return; + + try { + await navigator.clipboard.writeText( + target.textContent.trim(), + ); + button.textContent = "Copied"; + setTimeout(function () { + button.textContent = "Copy"; + }, 1500); + } catch (error) { + button.textContent = "Select"; + } + }); }); })(); |
