From d1b789ca44afb0835957e9ee34815b32b8ef40a7 Mon Sep 17 00:00:00 2001 From: 2jun0 Date: Sat, 13 Jul 2024 03:24:04 +0900 Subject: [PATCH] chore: update preview --- static/preview.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/static/preview.html b/static/preview.html index 470ac53..dd48e10 100644 --- a/static/preview.html +++ b/static/preview.html @@ -33,11 +33,12 @@ const username = formData.get("username"); const width = formData.get("width"); const height = formData.get("height"); + const background = formData.get("background"); if (username !== "") { preview.classList.remove("hidden"); - const svgUrl = `https://gitpokecol.org/pokemons/${username}?face=${moving}&width=${width}&height=${height}`; + const svgUrl = `https://gitpokecol.org/pokemons/${username}?face=${moving}&width=${width}&height=${height}&background=${background}`; previewImg.src = svgUrl; previewUrl.textContent = ` ${username}'s GitHub Pokemon Collection @@ -87,6 +88,19 @@

Github Pokemon Collection Preivew

Username: +
+ Background: + +