Skip to content

Commit

Permalink
Add prompt text to page
Browse files Browse the repository at this point in the history
  • Loading branch information
fmcclean committed Sep 6, 2024
1 parent deaf82c commit 71f962d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion image.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

</script>
</body>

0 comments on commit 71f962d

Please sign in to comment.