Skip to content

Commit

Permalink
updated tree_d3.html
Browse files Browse the repository at this point in the history
  • Loading branch information
l-singh-biomsu committed Nov 5, 2024
1 parent 024888c commit 7e9698a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CURATED_SET/html/tree_d3.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ <h1>Multiple sequence alignment will appear below</h1>
});

var descDiv = document.getElementById('summary');
var descDiv = document.getElementById('taxonomic_span_id');
var descDiv = document.getElementById('alternate_names');
var taxDiv = document.getElementById('taxonomic_span_id');
var altDiv = document.getElementById('alternate_names');
var rootDiv = document.getElementById("msa");
var menuDiv = document.getElementById("menu");

Expand Down Expand Up @@ -311,12 +311,12 @@ <h1>Multiple sequence alignment will appear below</h1>
// Add taxonomic_span
fetch('https://intbio.org/histonedb/CURATED_SET/classification.json')
.then((response) => response.json())
.then((json) => descDiv.replaceChildren(document.createTextNode('Taxonomic span: '+json['info'][name]['taxonomic_span']+', '+json['info'][name]['taxonomic_span_id'])));
.then((json) => taxDiv.replaceChildren(document.createTextNode('Taxonomic span: '+json['info'][name]['taxonomic_span']+', '+json['info'][name]['taxonomic_span_id'])));

// Add alternate_names
fetch('https://intbio.org/histonedb/CURATED_SET/classification.json')
.then((response) => response.json())
.then((json) => descDiv.replaceChildren(document.createTextNode('Alternate names: '+json['info'][name]['alternate_names'].join(', '))));
.then((json) => altDiv.replaceChildren(document.createTextNode('Alternate names: '+json['info'][name]['alternate_names'].join(', '))));


//Add consensus
Expand Down

0 comments on commit 7e9698a

Please sign in to comment.