Skip to content
Snippets Groups Projects
Commit 1be6df50 authored by Michal Malý's avatar Michal Malý
Browse files

Show BB00_C_G automatically once viewer initializes itself

parent 42f61539
No related branches found
No related tags found
No related merge requests found
......@@ -331,6 +331,18 @@ function hide_ntc_description(ntc) {
setTimeout(() => descElem.remove(), 222);
}
/*
* Shows initial fragment on A- B- Z- tag
*
* @param {string} ntc - NtC code of the fragment
* @param {string} seq - Sequence of the fragment
*/
function show_initial_fragment(ntc, seq) {
const fragElem = document.getElementById(fragment_cell_id(mkFragId(ntc, seq), 'abz'));
abz_fragment_clicked(fragElem, ntc, seq);
}
/*
* Displays a "tooltip" element with NtC description
*
......@@ -824,10 +836,12 @@ function init_all() {
clearInterval(anim);
viewerElem.removeChild(loadingElem);
redraw_molstar();
show_initial_fragment('BB00', 'C_G');
}).catch(e => {
clearInterval(anim);
viewerElem.removeChild(loadingElem);
if (viewerElem.contains(loadingElem)) {
viewerElem.removeChild(loadingElem);
}
throw e;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment