para =window.location.href.match(/(?<=candidate=)(.*?)[^&]+/)sv = {if ( para !==null ) {if ( motifs_list.includes(para[0]) ) {return para[0] } }return motifs_list[0] }
infoHelper =function(x, lab, txt) {// The element to showlet res =html`${lab} <span class='myInfo' id='${x}'>ⓘ</span>`// Add tippy tooltip// Iusse: add with delay, otherwise the span was not yet displayedsetTimeout(function() {tippy('#'+ x, {content: txt }) },500)return(res)}// Choose a single motifviewof sel = Inputs.select( motifs_list, {label:'Alignment for',value: sv })html`<a href="https://rth.dk/resources/crs/cyanobacteria/candidate.html?candidate=${sel}">View CRS details</a>`