From 81b0a2259f9f54c0c0d411f937c5a71f767c048f Mon Sep 17 00:00:00 2001 From: Riya Chauhan <96919050+Riyachauhan11@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:29:23 +0530 Subject: [PATCH] fixing button display issues and vote popup --- index.html | 33 +++++++++++++++++++++----------- popup.js | 56 ++++++++++++++++++++++++++++++------------------------ 2 files changed, 53 insertions(+), 36 deletions(-) diff --git a/index.html b/index.html index dd93cdc..95d23be 100644 --- a/index.html +++ b/index.html @@ -57,16 +57,27 @@ } - .popup-content { - background: linear-gradient(rgb(3 0 28 / 80%), rgb(0 2 55 / 80%)), url(your-image-url.jpg); - padding: 20px; - border-radius: 5px; - max-width: 300px; - text-align: center; +.popup-content { + background: linear-gradient(rgb(255 255 255 / 90%), rgb(240 240 240 / 90%)), url(your-image-url-light.jpg); + color: #333; /* Darker text color for readability */ + padding: 20px; + border-radius: 5px; + max-width: 300px; + text-align: center; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for subtle depth */ +} + +.dark-theme .popup-content { + +background: linear-gradient(rgb(3 0 28 / 80%), rgb(0 2 55 / 80%)), url(your-image-url.jpg); +padding: 20px; +border-radius: 5px; +max-width: 300px; +text-align: center; +color: whitesmoke; +} - } - /* Set poll options to stack vertically */ #pollOptions { @@ -380,7 +391,7 @@

What power-up do you find most helpful?

} // Set timeout for poll display - setTimeout(checkAndDisplayPollPopup, 10000); + setTimeout(checkAndDisplayPollPopup, 6000); // Manage user selections and votes const pollButtons = document.querySelectorAll('.poll-button[data-value]'); @@ -996,8 +1007,8 @@