From 71f962dc54a470a62ba5d44d16a30ed9f5d9ca96 Mon Sep 17 00:00:00 2001 From: Fergus McClean Date: Fri, 6 Sep 2024 08:49:17 +0100 Subject: [PATCH] Add prompt text to page --- image.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/image.html b/image.html index bd2f2de..4a809c3 100644 --- a/image.html +++ b/image.html @@ -4,7 +4,15 @@ const path = urlParams.get('path'); var img = document.createElement("img"); img.src = path; - img.style.height = "100%" + img.style.height = "90%" document.body.appendChild(img) + console.log(urlParams) + const promptText = urlParams.get('prompt') + if (promptText !== undefined) { + const prompt = document.createElement("p"); + prompt.innerHTML = urlParams.get('prompt'); + document.body.appendChild(prompt) + } + \ No newline at end of file