From 76ccc3466db08231f7451e2be5b6e7481775e5d3 Mon Sep 17 00:00:00 2001 From: martin emanuel Date: Thu, 19 Jun 2025 11:14:19 -0300 Subject: [PATCH 1/6] Fix: Improve installation page logic and UX - Add proper error handling and user feedback - Fix OS detection logic - Improve command generation - Add user guidance messages - Fix variable declarations and scope issues - Add better clipboard operation handling --- index.html | 508 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 302 insertions(+), 206 deletions(-) diff --git a/index.html b/index.html index 06cf195..5d472e3 100644 --- a/index.html +++ b/index.html @@ -1,229 +1,325 @@ - -anyzig - - - + const installDiv = get("InstallDiv"); + if (installDiv) { + installDiv.innerHTML = html; + } + } -

Install anyzig

-
- Linux - macOS - Windows -
-
- x86_64 - aarch64 -
-
+ function bodyOnload() { + updateInstallDiv(); + const userAgent = window.navigator.userAgent.toLowerCase(); + if (userAgent.includes("linux")) toggleOs(OS_LINUX); + if (userAgent.includes("macintosh")) toggleOs(OS_MACOS); + if (userAgent.includes("windows")) toggleOs(OS_WINDOWS); + if (userAgent.includes("x64") || userAgent.includes("x86_64")) { + toggleArch(ARCH_X86_64); + } else if (userAgent.includes("aarch64") || userAgent.includes("arm64")) { + toggleArch(ARCH_AARCH64); + } + } + + + +

Install anyzig

+
+ Linux + macOS + Windows +
+
+ x86_64 + aarch64 +
+
+ From 2c5f51b44324387d30d74d722e5c35d8f498e36b Mon Sep 17 00:00:00 2001 From: martin emanuel Date: Thu, 19 Jun 2025 16:12:50 -0300 Subject: [PATCH 2/6] Refactor: Improve HTML structure and CSS organization - Extract styles to separate CSS file for better maintainability - Add meta tags for better browser compatibility and SEO - charset UTF-8 - viewport for responsive design - description meta tag - Improve code organization by separating concerns --- index.html | 120 ++++------------------------------------------------- styles.css | 85 +++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 113 deletions(-) create mode 100644 styles.css diff --git a/index.html b/index.html index 5d472e3..02614c1 100644 --- a/index.html +++ b/index.html @@ -1,121 +1,15 @@ - anyzig - -