From dabb332d33b779b4636afc5349f135d379975790 Mon Sep 17 00:00:00 2001 From: JeanPaulvanderHam <117824394+JeanPaulvanderHam@users.noreply.github.com> Date: Fri, 12 Apr 2024 09:05:16 +0200 Subject: [PATCH] Update index.html --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0d4a272..eea4538 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,10 @@ } body { - margin: 0; + min-height: 100vh; + display: flex; + flex-direction: column; + justify-content: flex-end; } #webchat { @@ -79,7 +82,7 @@ inputBox.style.width = 'auto%'; // Set the width inputBox.style.height = '30px'; // Set the height inputBox.style.marginLeft = '20px'; // Move the box to the right - inputBox.style.marginBottom = '20px';; // Move the box to the bottom + inputBox.style.marginBottom = '5vh'; // Move the box to the bottom document.body.appendChild(inputBox); @@ -94,6 +97,9 @@ function sendMessage() { let inputText = inputBox.value; + // Remove spaces + inputText = inputText.replace(/\s+/g, ''); + // If the input text is "performance" if (inputText.toLowerCase() === 'performance') { inputText = '#SnelSnellerSnelst';