diff --git a/features.html b/features.html index f400d24..f4a48ec 100644 --- a/features.html +++ b/features.html @@ -105,13 +105,8 @@
-
-
- - - +
+

It's dangerous to go alone! Take these.

@@ -133,13 +128,13 @@ -
+
-
+
@@ -150,23 +145,23 @@
-
Pick Up and Play
-
+
Quick Resume
-
+
Rewind & Fast Forward
-
+
Configurator
@@ -176,7 +171,7 @@ -
+
@@ -187,7 +182,7 @@
-
+

Don't waste time on setup

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor @@ -212,9 +207,9 @@
-
+
-

Don't waste time on setup #2

+

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 @@ -237,9 +232,9 @@
-
+
-

Don't waste time on setup #3

+

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 @@ -262,9 +257,9 @@
-
+
-

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');