PageSourceSearch

https://kenji-fukushima-lab.github.io/assets/js/ncbi-genome-loader.js?97ca60881c439e555d59685bd5dc1211

js kenji-fukushima-lab.github.io collected 2026-10-03 09:27:34 UTC 1,482 bytes, 1 lines download raw bytes

1(()=>{const e=document.querySelectorAll(".ncbi-genome-load-btn[data-ncbi-load]");if(!e.length)return;const n="ncbi-sviewer-script",t="https://www.ncbi.nlm.nih.gov/projects/sviewer/js/sviewer.js";let d=null;const i=(e,n)=>{e.remove(),d=null,n(new Error("Failed to load NCBI SeqViewer script"))},o=()=>d||(d=new Promise((e,d)=>{const o=document.getElementById(n);if(o)return"true"===o.dataset.loaded?void e():(o.addEventListener("load",()=>{o.dataset.loaded="true",e()},{once:!0}),void o.addEventListener("error",()=>i(o,d),{once:!0}));const r=document.createElement("script");r.id=n,r.src=t,r.async=!0,r.addEventListener("load",()=>{r.dataset.loaded="true",e()},{once:!0}),r.addEventListener("error",()=>i(r,d),{once:!0}),document.head.appendChild(r)}),d),r=e=>{const n=document.getElementById(e);return n?(n.hidden=!1,n):null},a=()=>new Promise((e,n)=>{const t=15e3,d=100,i=Date.now(),o=()=>{window.SeqView&&window.SeqView.App&&"function"==typeof window.SeqView.App.findAppByDivId?e():Date.now()-i>t?n(new Error("NCBI SeqViewer initialization timed out")):window.setTimeout(o,d)};o()}),c=e=>a().then(()=>{if(window.SeqView.App.findAppByDivId(e))return;new window.SeqView.App(e).load()});for(const n of e){const e=(n.dataset.ncbiLoad||"").trim(),t=n.parentElement&&n.parentElement.querySelector("[data-ncbi-error]");e&&n.addEventListener("click",()=>{r(e)&&(t&&(t.hidden=!0),n.disabled=!0,o().then(()=>c(e)).then(()=>{n.remove()}).catch(()=>{n.disabled=!1,t&&(t.hidden=!1)}))})}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.