174d30f5d63b5c167a5af0457d1901a9620ec573 jnavarr5 Tue May 13 16:50:29 2025 -0700 Adding the Gateway and Table Browser tutorials to the Interactive Tutorial popup. Also adding the Help menu link to open the popup on the Gateway and Table Browser pages. Renaming the popup file to something more generic since it is no longer exclusive to hgTracks. Updating the makefile for the popup name change. refs #35716 diff --git src/hg/hgGateway/hgGateway.c src/hg/hgGateway/hgGateway.c index 861baac32c0..d4c59c5dc49 100644 --- src/hg/hgGateway/hgGateway.c +++ src/hg/hgGateway/hgGateway.c @@ -403,34 +403,36 @@ jsIncludeFile("utils.js",NULL); // Phylogenetic tree .js file, produced by dbDbTaxonomy.pl: char *defaultDbDbTree = webTimeStampedLinkToResource("dbDbTaxonomy.js", FALSE); char *dbDbTree = cfgOptionDefault("hgGateway.dbDbTaxonomy", defaultDbDbTree); if (isNotEmpty(dbDbTree)) printf("<script src=\"%s\"></script>\n", dbDbTree); // Main JS for hgGateway: jsIncludeFile("hgGateway.js", NULL); if (cfgOptionBooleanDefault("showTutorial", TRUE)) { puts("<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/shepherd.js@11.0.1/dist/css/shepherd.css\" />"); puts("<script src=\"https://cdn.jsdelivr.net/npm/shepherd.js@11.0.1/dist/js/shepherd.min.js\"></script>"); + jsIncludeFile("tutorialPopup.js", NULL); jsIncludeFile("gatewayTutorial.js", NULL); - if (sameOk(cgiOptionalString("startTutorial"), "true")) - jsInline("var startTutorialOnLoad = true;"); + { + jsInline("var startGatewayOnLoad = true;"); + } } #define TIMING_WARNING_BOX_START "<div id='hogWarningRow' class='jwRow'>" \ "<div id='hogWarningBox' class='jwWarningBox'>" #define TIMING_WARNING_BOX_END "</div></div>" if (measureTiming) { printf("%selapsed time %ld ms (%d ms bottleneck)%s\n", TIMING_WARNING_BOX_START, clock1000() - enteredMainTime, botDelayMillis, TIMING_WARNING_BOX_END); } webIncludeFile("inc/jWestFooter.html"); cartFlushHubWarnings();