2b810709f5349a9ba8aad784af59abac2c2c422d
jnavarr5
Fri Dec 12 15:00:27 2025 -0800
Writing to the apache log that the tutorial has finished, refs #34354
diff --git src/hg/js/tutorials/customTrackTutorial.js src/hg/js/tutorials/customTrackTutorial.js
index 1c78a8887fe..5840fa1dccb 100644
--- src/hg/js/tutorials/customTrackTutorial.js
+++ src/hg/js/tutorials/customTrackTutorial.js
@@ -1,31 +1,31 @@
/* jshint esnext: true */
/* global Shepherd */
//Creating an IIFE to prevent global variable conflicts
(function() {
const customTrackTour = new Shepherd.Tour({
defaultStepOptions: {
cancelIcon: { enabled: true },
classes: 'class-1 class-2',
scrollTo: { behavior: 'smooth', block: 'center' }
},
useModalOverlay: true,
canClickTarget: false
});
- // log when a tutorial is started (commented out for now)
+ // log when a tutorial is started
customTrackTour.on('start', function() {
writeToApacheLog("customTrackTutorial start " + getHgsid());
});
var tutorialButtons = {
'back': {
action() {
return this.back();
},
classes: 'shepherd-button-secondary',
text: 'Back'
},
'next': {
action() {
return this.next();
@@ -508,30 +508,32 @@
'custom tracks, please read the Custom Track user guide. You can find examples of simple '+
'annotation files, BED custom tracks with muliple blocks, loading custom tracks '+
'via the URL, and more. '+
'
'+
'You can also contact us if you '+
'have any questions or issues uploading a custom track. ',
attachTo: {
element: '#hgCustomHelp',
on: 'left-start'
},
buttons: [ tutorialButtons.back, tutorialButtons.end ],
when: {
show: () => {
keepMenuVisible('#help > ul');
+ // Write to the apache log that the tutorial has finished
+ writeToApacheLog("customTrackTutorial finish " + getHgsid());
},
hide: () => hideMenu('#help > ul')
},
id: 'additional-help'
});
}
if (typeof window.customTrackTour === 'undefined') {
// Unique ID to verify that you are on the results page
customTrackSteps();
//Export the customTrackTour globalally
window.customTrackTour = customTrackTour;
}
// Condition to continue the tutorial once you submit the custom track