Template:Team:Bonn:Network
From 2013.igem.org
(Difference between revisions)
Line 13: | Line 13: | ||
var divSummary = "subpage-summary"; | var divSummary = "subpage-summary"; | ||
var divText = "subpage-text"; | var divText = "subpage-text"; | ||
+ | var divType = "subpage-type"; | ||
var divnetworkBottom = "networkBottom"; | var divnetworkBottom = "networkBottom"; | ||
var divnetworkTop = "networkTop"; | var divnetworkTop = "networkTop"; | ||
+ | var divNetworkTitle = "networkTitle"; | ||
+ | var divNetworkSummary = "networkSummary"; | ||
var content = document.getElementById(divContent); | var content = document.getElementById(divContent); | ||
getElements(node); | getElements(node); | ||
Line 20: | Line 23: | ||
var contentSummary = document.getElementById(divSummary); | var contentSummary = document.getElementById(divSummary); | ||
var contentText = document.getElementById(divText); | var contentText = document.getElementById(divText); | ||
+ | var contentType = document.getElementById(divType); | ||
+ | var networkTitle = document.getElementById(divNetworkTitle); | ||
+ | var networkSummary = document.getElementById(divNetworkSummary); | ||
switch(action) { | switch(action) { | ||
Line 27: | Line 33: | ||
divs.innerHTML = ''; | divs.innerHTML = ''; | ||
} | } | ||
- | contentTitle.innerHTML = titleLong; | + | contentTitle.innerHTML = "<h1>"+titleLong+"</h1>"; |
contentSummary.innerHTML = summary; | contentSummary.innerHTML = summary; | ||
contentText.innerHTML = text; | contentText.innerHTML = text; | ||
+ | contentTitle.innerHTML = titleLong; | ||
+ | contentType.innerHTML = contentType; | ||
+ | networkSummary.innerHTML = summary; | ||
+ | networkTitle.innerHTML = titleLong; | ||
+ | networkTitle.innerHTML = titleLong; | ||
if(parents.length) { | if(parents.length) { | ||
createNetwork({ | createNetwork({ | ||
Line 69: | Line 80: | ||
contentSummary.innerHTML = summary; | contentSummary.innerHTML = summary; | ||
contentText.innerHTML = text; | contentText.innerHTML = text; | ||
+ | contentTitle.innerHTML = titleLong; | ||
+ | contentType.innerHTML = contentType; | ||
+ | networkSummary.innerHTML = summary; | ||
+ | networkTitle.innerHTML = titleLong; | ||
if(parents.length) { | if(parents.length) { | ||
circle({ | circle({ |
Revision as of 21:18, 4 October 2013