diff --git a/index.html b/index.html
index cc6971c..e189f7f 100644
--- a/index.html
+++ b/index.html
@@ -13,44 +13,42 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/script.js b/script.js
index c4edf5e..01775b7 100644
--- a/script.js
+++ b/script.js
@@ -4,6 +4,11 @@ const apiKeyNYT = 'NQdorI46QZM3Kythn8ymAWID8ojT7ntY';
document.addEventListener('DOMContentLoaded', function() {
configureDropdowns();
fetchNewsArticles();
+
+ document.getElementById('toggleFilters').addEventListener('click', function() {
+ const filterMenu = document.getElementById('filterMenu');
+ $(filterMenu).collapse('toggle');
+ });
});
document.getElementById('apiSelect').addEventListener('change', function() {
@@ -40,23 +45,6 @@ function fetchTopics() {
const topicSelect = document.getElementById('topicSelect');
topicSelect.innerHTML = ''; // Reset topics dropdown
- // Add static topics
- const staticTopics = [
- { value: 'business', text: 'Business' },
- { value: 'entertainment', text: 'Entertainment' },
- { value: 'science', text: 'Science' },
- { value: 'sports', text: 'Sports' },
- { value: 'technology', text: 'Technology' },
- ];
-
- // Add static options first
- staticTopics.forEach(topic => {
- const option = document.createElement('option');
- option.value = topic.value;
- option.textContent = topic.text;
- topicSelect.appendChild(option);
- });
-
// Loop through the fetched categories from Currents API and add to the dropdown
data.categories.forEach(category => {
const option = document.createElement('option');
diff --git a/style.css b/style.css
index 63f83ba..fb0597f 100644
--- a/style.css
+++ b/style.css
@@ -31,6 +31,22 @@ body {
}
}
+#filterMenu {
+ background-color: var(--card-dark);
+ padding: 1rem;
+ margin-bottom: 1rem;
+ border-radius: var(--border-radius);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+#filterMenu.show {
+ display: block;
+}
+
+#searchInput {
+ margin: 0;
+}
+
.form-control {
background-color: var(--card-dark);
border: 1px solid rgba(255, 255, 255, 0.1);