eb529048797dc23f5dea4eeaa336578fabb67b98
jnavarr5
  Wed Nov 13 13:32:40 2024 -0800
Adding a link to the Help menu to open a popup with all available javascript tutorials, refs #34208

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 97ad15d..0668489 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -11486,30 +11486,31 @@
     webIncludeResourceFile("jquery-ui.css");
     if (enableMouseOver)
       webIncludeResourceFile("mouseOver.css");
 
     if (!searching)     // NOT doing search
         {
         webIncludeResourceFile("jquery.contextmenu.css");
         jsIncludeFile("jquery.contextmenu.js", NULL);
         webIncludeResourceFile("ui.dropdownchecklist.css");
         jsIncludeFile("ui.dropdownchecklist.js", NULL);
         jsIncludeFile("ddcl.js", NULL);
         if (cfgOptionBooleanDefault("showTutorial", TRUE))
             {
             puts("<script src=\"https://cdn.jsdelivr.net/npm/shepherd.js@11.0.1/dist/js/shepherd.min.js\"></script>");
             puts("<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/shepherd.js@11.0.1/dist/css/shepherd.css\"/>");
+            jsIncludeFile("hgTracksPopup.js", NULL);
             jsIncludeFile("tutorial.js",NULL);
             jsIncludeFile("clinicalTutorial.js",NULL);
             // if the user is logged in, we won't show the notification
             // that a tutorial is available, just leave the link in the
             // blue bar under "Help"
             if (wikiLinkUserName())
                 jsInline("var userLoggedIn = true;");
             // if the CGI variable startTutorial=true is present (in that exact
             // spelling/case), immediately start the tutorial, for example
             // when the user clicks a link from a help page. Note that this
             // means it is a one time link that won't work on refresh because
             // the variable isn't saved onto the URL
             if (sameOk(cgiOptionalString("startTutorial"), "true"))
                 {
                 jsInline("var startTutorialOnLoad = true;");