Template:Team:Bonn:Network

From 2013.igem.org

(Difference between revisions)
Line 32: Line 32:
         case "network":
         case "network":
         if(document.getElementById(divContent)) {
         if(document.getElementById(divContent)) {
 +
         } else {
         } else {
         mainContent.innerHTML = "<div id='networkTop' style='position:absolute;top:200px;height:220px;left:-50px;width:800px;z-index:1;'></div><div id='networkBottom' style='position:absolute;top:450px;left:-160px;height:800px;width:1250px;z-index:1;overflow:hidden;'></div><div id='subpage' style='z-index:2;position:relative;margin-top:400px;width=900px;'><div id='subpage-middle'>    <div>      <div style='float:right;display:inline; '>      <img src='https://static.igem.org/mediawiki/2013/a/a4/Bonn_sponsors_uniBonn.png' class='bottom-sponsor' height='50px' id='sponsor-unibonn' style='margin-right:10px;'>      <img src='https://static.igem.org/mediawiki/2013/7/79/Bonn_sponsors_limes.gif' class='bottom-sponsor' height='50px' id='sponsor-limes'>    </div>      <div class='subpage-head-link'><a href='javascript:history.back();'>Back</a></br> <span id='type'>Category: <span id='subpage-type'>Project</span></span></div>      <div id='subpage-title'></div>      <div id='subpage-summary'></div>        <div id='subpage-text'>        </div>      </div>    </div>  </div></div>";
         mainContent.innerHTML = "<div id='networkTop' style='position:absolute;top:200px;height:220px;left:-50px;width:800px;z-index:1;'></div><div id='networkBottom' style='position:absolute;top:450px;left:-160px;height:800px;width:1250px;z-index:1;overflow:hidden;'></div><div id='subpage' style='z-index:2;position:relative;margin-top:400px;width=900px;'><div id='subpage-middle'>    <div>      <div style='float:right;display:inline; '>      <img src='https://static.igem.org/mediawiki/2013/a/a4/Bonn_sponsors_uniBonn.png' class='bottom-sponsor' height='50px' id='sponsor-unibonn' style='margin-right:10px;'>      <img src='https://static.igem.org/mediawiki/2013/7/79/Bonn_sponsors_limes.gif' class='bottom-sponsor' height='50px' id='sponsor-limes'>    </div>      <div class='subpage-head-link'><a href='javascript:history.back();'>Back</a></br> <span id='type'>Category: <span id='subpage-type'>Project</span></span></div>      <div id='subpage-title'></div>      <div id='subpage-summary'></div>        <div id='subpage-text'>        </div>      </div>    </div>  </div></div>";
-
        initiateNetwork(1);
 
         }
         }
         var content = document.getElementById(divContent);
         var content = document.getElementById(divContent);
         getElements(node);
         getElements(node);
 +
        if(parents) {
 +
         
 +
        } else {
 +
            var parents = content.parents;
 +
            var childs = content.childs;
 +
            var titleShort = content.titleShort;
 +
            var titleLong = content.titleLong;
 +
            var summary = content.summary;
 +
            var text = content.text;
 +
          }
         var contentTitle = document.getElementById(divTitle);
         var contentTitle = document.getElementById(divTitle);
         var contentSummary = document.getElementById(divSummary);
         var contentSummary = document.getElementById(divSummary);

Revision as of 03:18, 5 October 2013