Template:Team:Bonn:Network

From 2013.igem.org

(Difference between revisions)
Line 37: Line 37:
         case "network":
         case "network":
-
        if(document.getElementById(divContent)) {
 
-
        } 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>";
 
-
        initiateNetwork(1);
 
-
        }
 
-
        if(mainnode=0) {
 
-
         
 
-
          getElements(1);
 
-
        } else {
 
-
            getElements(node);
 
-
          }
 
         var content = document.getElementById(divContent);
         var content = document.getElementById(divContent);
-
        if(parents) {
+
            getElements(node);
-
         
+
-
        } 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 mainnode = node;
+
-
          }
+
         var contentTitle = document.getElementById(divTitle);
         var contentTitle = document.getElementById(divTitle);
         var contentSummary = document.getElementById(divSummary);
         var contentSummary = document.getElementById(divSummary);

Revision as of 03:37, 5 October 2013