-
Don't waste time on setup #4
+ Don't waste time on setup
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud
diff --git a/scripts/features.js b/scripts/features.js
index 0dbf442..8c17366 100644
--- a/scripts/features.js
+++ b/scripts/features.js
@@ -4,10 +4,14 @@ let currentFeature = 0;
for (let i = 0; i < featureTitles.length; i++) {
featureTitles[i].addEventListener('click', function () {
- updateActiveFeature(i);
+ if (i != currentFeature) {
+ updateActiveFeature(i);
+ }
}, false)
+
+ // We need to remove the gradient so that linearBackground is hidden
if (featureTitles[i].id != 'active-feature-item') {
- featureTitles[i].className = 'row feature-list-item rounded-3';
+ featureTitles[i].className = 'row feature-list-item rounded-3 m-0';
}
}
@@ -22,7 +26,7 @@ function updateActiveFeature(i) {
// Reset previous current feature
featureTitles[lastCurrentFeature].removeAttribute('id');
- featureTitles[lastCurrentFeature].className = 'row feature-list-item rounded-3';
+ featureTitles[lastCurrentFeature].className = 'row feature-list-item rounded-3 m-0';
featureTitles[lastCurrentFeature].style = '';
featureDetails[lastCurrentFeature].removeAttribute('id');