From 45fda641192471ec61e49d8f527ab790f02c8420 Mon Sep 17 00:00:00 2001
From: missing6 <115633829+missing6@users.noreply.github.com>
Date: Wed, 13 Dec 2023 13:45:12 +0700
Subject: [PATCH] update
---
index.html | 1 +
index.js | 2 +-
style.css | 3 ++-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 46bd0e2..6815717 100644
--- a/index.html
+++ b/index.html
@@ -8,6 +8,7 @@
Input Field Change Listener
+
diff --git a/index.js b/index.js
index e34a8ee..83467c8 100644
--- a/index.js
+++ b/index.js
@@ -5,5 +5,5 @@ var displayText = document.getElementById('displayText');
// Add the event listener
inputField.addEventListener('input', function(event) {
// Update the displayText content with the input field value
- displayText.textContent = 'Input changed to: ' + event.target.value;
+ displayText.textContent = event.target.value;
});
diff --git a/style.css b/style.css
index 72fb744..9805b39 100644
--- a/style.css
+++ b/style.css
@@ -1,6 +1,7 @@
input {
text-align: right;
+ box-shadow: bisque;
}
h2 {
- text-align: center;
+ background-color: aqua;
}
\ No newline at end of file