6cb29beead43fd47d57c739ea19b62990c1a87e5
jnavarr5
  Tue Jun 25 15:14:30 2024 -0700
Making a javascript tutorial for clinicians. Creating a URL parameter to start the tutorial. refs #33732

diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index c7331ac..83a91f5 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -5676,30 +5676,35 @@
             // Turn on drag scrolling.
             $("div.scroller").panImages();
         }
 
         // Retrieve tracks via AJAX that may take too long to draw initialliy (i.e. a remote bigWig)
         var retrievables = $('#imgTbl').find("tr.mustRetrieve");
         if ($(retrievables).length > 0) {
             $(retrievables).each( function (i) {
                 var trackName = $(this).attr('id').substring(3);
                 imageV2.requestImgUpdate(trackName,"","");
             });
         }
         imageV2.loadRemoteTracks();
         makeItemsByDrag.load();
 
+        if (typeof clinicalTour !== 'undefined') {
+            if (typeof startClinicalOnLoad !== 'undefined' && startClinicalOnLoad){
+                clinicalTour.start();
+            }
+        }
         // 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) {