723c7a46c87ed42f8510ed1bf35a3a8890f93609 max Fri Oct 11 03:08:30 2024 -0700 adapting the text a little of the tutorial box, and removing the close button, feedback from Ana und a few users, refs #34604 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index da49ce9..21a6917 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -5789,33 +5789,33 @@ // show a tutorial page if this is a new user if (typeof tour !== 'undefined' && tour) { setupSteps(); if (typeof startTutorialOnLoad !== 'undefined' && startTutorialOnLoad) { tour.start(); } let lsKey = "hgTracks_hideTutorial"; let isUserLoggedIn = (typeof userLoggedIn !== 'undefined' && userLoggedIn === true); let hideTutorial = localStorage.getItem(lsKey); let tutMsgKey = "hgTracks_tutMsgCount"; let tmp = localStorage.getItem(tutMsgKey), tutMsgCount = 0; if (tmp !== null) {tutMsgCount = parseInt(tmp);} // if the user is not logged in and they have not already gone through the // tutorial if (!isUserLoggedIn && !hideTutorial && tutMsgCount < 5) { - let msg = "A guided tutorial is available for new users: " + + let msg = "New to the Genome Browser? A 3-minute introduction is available in the menu at the top of the screen under 'Help > Interactive Tutorial' or here: " + "<button id='showTutorialLink' href=\"#showTutorial\">Start tutorial</button>"; - notifBoxSetup("hgTracks", "hideTutorial", msg); + notifBoxSetup("hgTracks", "hideTutorial", msg, true); notifBoxShow("hgTracks", "hideTutorial"); localStorage.setItem("hgTracks_tutMsgCount", ++tutMsgCount); $("#showTutorialLink").on("click", function() { $("#hgTracks_hideTutorialnotifyHide").trigger("click"); tour.start(); }); } // allow user to bring the tutorial up under the help menu whether they've seen // it or not let tutorialLinkMenuItem = document.createElement("li"); tutorialLinkMenuItem.id = "hgTracksHelpTutorialMenuItem"; tutorialLinkMenuItem.innerHTML = "<a id='hgTracksHelpTutorialLink' href='#showTutorial'>" + "Interactive Tutorial</a>"; $("#help > ul")[0].appendChild(tutorialLinkMenuItem); $("#hgTracksHelpTutorialLink").on("click", function () {