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/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index d87c016..becac9f 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -11374,44 +11374,49 @@ 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(""); puts(""); 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;"); } + if (sameOk(cgiOptionalString("startClinical"), "true")) + { + jsInline("var startClinicalOnLoad = true;"); + } } } hPrintf("
\n"); hPrintf("\n"); if (cfgOptionBooleanDefault("canDoHgcInPopUp", FALSE)) { jsIncludeFile("hgc.js", NULL); hPrintf("\n"); } cartFlushHubWarnings(); }