73dbd7cdaa77baf709b8900c92d4eee474c5309d gperez2 Fri Apr 25 20:23:04 2025 -0700 Updating files for the Gateway interactive tutorial, refs #35464 diff --git src/hg/hgGateway/hgGateway.c src/hg/hgGateway/hgGateway.c index 7d9d9570203..e5cd235920a 100644 --- src/hg/hgGateway/hgGateway.c +++ src/hg/hgGateway/hgGateway.c @@ -21,30 +21,31 @@ #include "htmshell.h" #include "hubConnect.h" #include "hui.h" #include "jsHelper.h" #include "jsonParse.h" #include "obscure.h" // for readInGulp #include "regexHelper.h" #include "suggest.h" #include "trackHub.h" #include "web.h" #include "botDelay.h" #include "genark.h" #include "assemblyList.h" #include + /* Global Variables */ struct cart *cart = NULL; /* CGI and other variables */ struct hash *oldVars = NULL; /* Old contents of cart before it was updated by CGI */ static boolean issueBotWarning = FALSE; static int measureTiming = 0; static long enteredMainTime = 0; #define SEARCH_TERM "hggw_term" static char *maybeGetDescriptionText(char *db) /* Slurp the description.html file for db into a string (if possible, don't die if * we can't read it) and return it. */ { struct errCatch *errCatch = errCatchNew(); @@ -399,30 +400,39 @@ webIncludeResourceFile("jquery-ui.css"); jsIncludeFile("jquery-ui.js", NULL); jsIncludeFile("jquery.watermarkinput.js", NULL); jsIncludeFile("autocompleteCat.js",NULL); 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("\n", dbDbTree); // Main JS for hgGateway: jsIncludeFile("hgGateway.js", NULL); +// Shepherd.js CSS - fine to load this synchronously +puts(""); + +// Shepherd.js script (load async + defer) +puts(""); + +// Load Gateway tutorial +puts(""); + #define TIMING_WARNING_BOX_START "
" \ "
" #define TIMING_WARNING_BOX_END "
" 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(); webEndJWest(); }