From e5982b53124479db451639199c49732412e1c21f Mon Sep 17 00:00:00 2001 From: 2jun0 Date: Fri, 31 May 2024 23:42:46 +0900 Subject: [PATCH] feat: update preview --- static/preview.html | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/static/preview.html b/static/preview.html index 8c0555e..470ac53 100644 --- a/static/preview.html +++ b/static/preview.html @@ -31,11 +31,13 @@ const formData = new FormData(form); const moving = formData.get("moving"); const username = formData.get("username"); + const width = formData.get("width"); + const height = formData.get("height"); if (username !== "") { preview.classList.remove("hidden"); - const svgUrl = `https://gitpokecol.org/pokemons/${username}?face=${moving}`; + const svgUrl = `https://gitpokecol.org/pokemons/${username}?face=${moving}&width=${width}&height=${height}`; previewImg.src = svgUrl; previewUrl.textContent = ` ${username}'s GitHub Pokemon Collection @@ -61,7 +63,30 @@

Github Pokemon Collection Preivew

- +
+ Width: + +
+
+ Height: + +
+
+ Username: + +