13a71608b50408e504d9c0e88526264e43e4be20 chmalee Fri Feb 17 12:28:47 2023 -0800 Proof of concept tutorial overlay done diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index d0ecf9b..826c9ff 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -5475,16 +5475,21 @@ // add a button to download the current track data (under hg.conf control) if (typeof showDownloadButton !== 'undefined' && showDownloadButton) { newButton = document.createElement("input"); newButton.setAttribute("id", "hgTracksDownload"); newButton.setAttribute("type", "button"); newButton.setAttribute("name", "downloadTracks"); newButton.setAttribute("value", "download current tracks"); newButton.setAttribute("title", "download track data in window"); // add a space to match the other buttons $("#hgt\\.setWidth")[0].parentNode.appendChild(document.createTextNode(" ")); $("#hgt\\.setWidth")[0].parentNode.appendChild(newButton); $("#hgTracksDownload").click(downloadCurrentTrackData.showDownloadUi); } + // show a tutorial page if this is a new user + if (tour !== undefined) { + tour.start(); + } + });