8b20ca320b01a4d283273fc4c0358a29319b2548 lrnassar Fri Sep 4 15:02:46 2026 -0700 New BLAT form banner: welcome wording with a link to the news announcement. refs #37996 Replaces "We are testing a new BLAT search page" with "Welcome to our new BLAT page", linking to the announcement's agreed anchor (goldenPath/newsarch.html#newBLAT); keeps the persistent opt-out link to the classic form and the feedback mailto. diff --git src/hg/js/hgBlat.js src/hg/js/hgBlat.js index 1212770ffcb..82db4a044e2 100644 --- src/hg/js/hgBlat.js +++ src/hg/js/hgBlat.js @@ -830,33 +830,35 @@ '<div class="gbCard"><h3>About BLAT</h3>' + '<div>DNA BLAT quickly finds sequences of 95% and greater similarity that are at least 25 bases ' + 'long; it finds perfect matches down to 20 bases, and may miss shorter or more divergent ' + 'alignments. Protein BLAT finds sequences of 80% and greater similarity at least 20 amino acids ' + 'long.</div>' + '<div>Kent WJ. <a target="_blank" href="https://genome.cshlp.org/content/12/4/656.abstract">' + 'BLAT — the BLAST-like alignment tool</a>. Genome Res. 2002 Apr;12(4):656-64.</div>' + '</div></div>'; } function blatFormBuild() { var cfg = hgBlatFormData; var banner = ''; if (cfg.classicUrl) { - banner = '<div class="gbBanner">We are testing a new BLAT search page. You can go back to ' + - `<a href="${htmlEncode(cfg.classicUrl)}">the original page</a> anytime. If you have feedback ` + - 'on this new page, do not hesitate to let us know via ' + + // #newBLAT is the agreed anchor for the announcement on the news archive page (RM #37996). + banner = '<div class="gbBanner">Welcome to our ' + + '<a href="../goldenPath/newsarch.html#newBLAT">new BLAT page</a>. You can go back to ' + + `the <a href="${htmlEncode(cfg.classicUrl)}">original page</a> anytime. ` + + 'Please send any feedback to ' + '<a href="mailto:genome@soe.ucsc.edu">genome@soe.ucsc.edu</a>.</div>'; } // Checkbox plus the browser's standard info icon. Same SVG and same title + // convertTitleTagsToMouseovers mechanism as printInfoIcon()/printInfoIconSvg() in hg/lib/hui.c, // so these read identically to the info icons on every other Genome Browser page. var check = (name, on, label, tip) => `<span class="blatCheck"><label><input type="checkbox" name="${name}" ` + `id="blat_${name}"${on ? ' checked' : ''}>${label}</label>` + `<span class="blatInfo" title="${htmlEncode(tip)}">${BLAT_INFO_SVG}</span></span>`; // "Keep results" starting state. The cart (cfg.keepResults) only remembers the choice within a // session; localStorage carries it across sessions so a user who wants their BLAT results to // accumulate does not have to re-tick the box on every visit. localStorage wins when set (it is // the more durable record of the user's own preference); the cart is the fallback for a browser