diff --git a/css/style.css b/css/style.css index b87faaf..a3c0497 100644 --- a/css/style.css +++ b/css/style.css @@ -56,19 +56,22 @@ footer { left: 0; } +/* Features Page */ + .row.feature-list-item { padding: 0.5rem; + cursor: pointer; background: #333; } -.row.feature-list-item#active-feature-item { - background: transparent; -} - .feature-detail-container { display: none; } .feature-detail-container#active-feature-detail { display: inherit; +} + +#feature-jumbotron { + background: #333; } \ No newline at end of file diff --git a/features.html b/features.html index 74335b9..2070f72 100644 --- a/features.html +++ b/features.html @@ -133,16 +133,16 @@ -
+
-
+
-
+
@@ -150,22 +150,22 @@
-
+
Pick Up and Play
-
+
Quick Resume
-
+
Rewind & Fast Forward
-
+
Configurator
@@ -176,7 +176,7 @@
-
+
@@ -198,7 +198,7 @@
-
+
@@ -220,7 +220,7 @@
-
+
@@ -242,7 +242,7 @@
-
+
diff --git a/scripts/features.js b/scripts/features.js index a1fb800..e64be19 100644 --- a/scripts/features.js +++ b/scripts/features.js @@ -1,20 +1,31 @@ featureTitles = document.getElementsByClassName('feature-list-item'); featureDetails = document.getElementsByClassName('feature-detail-container'); -let currentFeature = 0; +// let currentFeature = 0; for (let i = 0; i < featureTitles.length; i++) { featureTitles[i].addEventListener('click', function () { updateActiveFeature(i); }, false) + if (featureTitles[i].id != 'active-feature-item') { + featureTitles[i].className = 'row feature-list-item rounded-3'; + } } function updateActiveFeature(i) { - currentFeature = i; + // Reset all for (let j = 0; j < featureTitles.length; j++) { featureTitles[j].removeAttribute('id'); featureDetails[j].removeAttribute('id'); + featureTitles[j].className = 'row feature-list-item rounded-3'; + featureTitles[j].style = ''; } + // currentFeature = i; + + // Update the active feature featureTitles[i].id = 'active-feature-item'; featureDetails[i].id = 'active-feature-detail' + + // Handle styles + featureTitles[i].className += ' gradient-spin my-gradient'; } \ No newline at end of file