7147d370964619773bfd7a7761281240262aebe4 hiram Tue Sep 10 15:05:22 2024 -0700 adding pop up help text refs #32596 diff --git src/hg/js/assemblySearch.js src/hg/js/assemblySearch.js index fb82437..88c3cf6 100644 --- src/hg/js/assemblySearch.js +++ src/hg/js/assemblySearch.js @@ -247,38 +247,39 @@ searchInput.value = query; document.getElementById('submitSearch').click(); } } document.getElementById("measureTiming").style.display = "none"; }); // refresh the thead columns in the specified table function headerRefresh(tableHead) { // clear existing content tableHead.innerHTML = ''; // re-populate header row - the sortable system added a class to // the last sorted column, need to rebuild the headerRow to get the // header back to pristine condition for the next sort var headerRow = '<tr>'; - headerRow += '<th><div class=tooltip>View/<br>Request ⓘ<span onclick="event.stopPropagation()" class="tooltiptext"><em>"view"</em> opens the genome browser for an existing assembly, <em>"request"</em> opens an assembly request form.</span></div></th>'; - headerRow += '<th><div class="tooltip">English common name ⓘ<span onclick="event.stopPropagation()" class="tooltiptext">English common name</span></div></th>'; - headerRow += '<th><div class="tooltip">Scientific name ⓘ<span onclick="event.stopPropagation()" class="tooltiptext">scientific name</span></div></th>'; - headerRow += '<th><div class="tooltip">NCBI Assembly ⓘ<span onclick="event.stopPropagation()" class="tooltiptext">Links to NCBI resource record<br>or UCSC downloads for local UCSC assemblies</span></div></th>'; - headerRow += '<th><div class="tooltip">Year ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">Year assembly was released.</span></div></th>'; - headerRow += '<th><div class="tooltip"><em>GenArk</em> clade ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">clade specification as found in the GenArk system.</span></div></th>'; - headerRow += '<th><div class="tooltip">Description ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">other meta data for this assembly.</span></div></th>'; - headerRow += '<th><div class="tooltip">Status ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">various other status</span></div></th>'; + let circleQuestion = '<svg width="24" height="24"> <circle cx="12" cy="12" r="10" fill="#4444ff" /> <text x="50%" y="50%" text-anchor="middle" fill="white" font-size="13px" font-family="Verdana" dy=".3em">?</text>?</svg>'; + headerRow += '<th><div class=tooltip>View/<br>Request ⓘ<span onclick="event.stopPropagation()" class="tooltiptext"><em>"view"</em> opens the genome browser for an existing assembly, <em>"request"</em> opens an assembly request form.</span></div></th>'; + headerRow += '<th><div class="tooltip">English common name ⓘ<span onclick="event.stopPropagation()" class="tooltiptext">English common name</span></div></th>'; + headerRow += '<th><div class="tooltip">Scientific name ⓘ<span onclick="event.stopPropagation()" class="tooltiptext">scientific name</span></div></th>'; + headerRow += '<th><div class="tooltip">NCBI Assembly ⓘ<span onclick="event.stopPropagation()" class="tooltiptext">Links to NCBI resource record<br>or UCSC downloads for local UCSC assemblies</span></div></th>'; + headerRow += '<th><div class="tooltip">Year ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">Year assembly was released.</span></div></th>'; + headerRow += '<th><div class="tooltip"><em>GenArk</em> clade ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">clade specification as found in the GenArk system.</span></div></th>'; + headerRow += '<th><div class="tooltip">Description ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">other meta data for this assembly.</span></div></th>'; + headerRow += '<th><div class="tooltip">Status ⓘ<span onclick="event.stopPropagation()" class="tooltiptextright">various other status</span></div></th>'; headerRow += '</tr>'; tableHead.innerHTML = headerRow; } // call with visible true to make visible, false to hide function advancedSearchVisible(visible) { var advancedSearchButton = document.getElementById("advancedSearchButton"); var searchOptions = document.getElementById("advancedSearchOptions"); if (visible) { searchOptions.style.display = "flex"; advancedSearchButton.textContent = "Hide advanced search options"; stateObject.advancedSearchVisible = true; } else { searchOptions.style.display = "none"; advancedSearchButton.textContent = "Show advanced search options";