From 06fa2a297ec23c3b73417439891df3428822621f Mon Sep 17 00:00:00 2001 From: Patrick Tang <36460266+patricksptang@users.noreply.github.com> Date: Sun, 24 Nov 2024 21:28:42 -0800 Subject: [PATCH] Stop showing FAQ panel after 30 visits --- step-web/src/main/webapp/js/step_ready.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/step-web/src/main/webapp/js/step_ready.js b/step-web/src/main/webapp/js/step_ready.js index 4fc07b3f67..c2123fec94 100644 --- a/step-web/src/main/webapp/js/step_ready.js +++ b/step-web/src/main/webapp/js/step_ready.js @@ -325,7 +325,7 @@ var stepUsageCount = parseInt(stepUsageCountStorageOrCookie, 10); if (isNaN(stepUsageCount)) stepUsageCount = 0; var urlVars = $.getUrlVars(); - if ((urlVars.indexOf("skipwelcome") > -1) || (urlVars.indexOf("clickvocab") > -1) || + if ((urlVars.indexOf("skipwelcome") > -1) || (urlVars.indexOf("clickvocab") > -1) || (stepUsageCount > 30) || (step.touchDevice && !step.touchWideDevice) ) { // phones do not have the width to display the Welcome to STEP panel step.util.showOrHideTutorial('true'); // URL has skipwelcome if (urlVars.indexOf("clickvocab") > -1) {