Template:Team:Bonn:Network

From 2013.igem.org

(Difference between revisions)
Line 13: Line 13:
   showElements(node,node,div-networkTop,content.parents,content.childs,content.titleShort,content.titleLong,content.summary,content.text);
   showElements(node,node,div-networkTop,content.parents,content.childs,content.titleShort,content.titleLong,content.summary,content.text);
   }
   }
-
  function getElements(node) {
 
-
        var div-content = "subpage-middle";
 
-
        var div-title = "subpage-title";
 
-
        var div-summary = "subpage-summary";
 
-
        var div-text = "subpage-text";
 
-
    var content = document.getElementById(div-content);
 
-
    content.childs = new Array();
 
-
    content.parents = new Array();
 
-
    node = parseInt(node);
 
-
    switch(node) {
 
-
      case 1:
 
-
        content.i = 1;
 
-
        content.parents=[4];
 
-
        content.childs=[2,3];
 
-
        content.titleShort = "A title!1";
 
-
        content.titleLong = "See a title!1";
 
-
        content.summary= "this is a summary1";
 
-
        content.text= "This is my Text!1";
 
-
        content.type="";
 
-
            break;
 
-
      case 2:
 
-
        content.i = 2;
 
-
        content.parents=[1];
 
-
        content.childs=[5];
 
-
        content.titleShort = "A title!2";
 
-
        content.titleLong = "See a title!2";
 
-
        content.summary= "this is a summary2";
 
-
        content.text= "This is my Text!2";
 
-
        content.type="";
 
-
            break;
 
-
      case 3:
 
-
        content.i = 3;
 
-
        content.parents=[1];
 
-
        content.childs=[5];
 
-
        content.titleShort = "A title!3";
 
-
        content.titleLong = "See a title!3";
 
-
        content.summary= "this is a summary3";
 
-
        content.text= "This is my Text!3";
 
-
        content.type="";
 
-
            break;
 
-
      case 4:
 
-
        content.i = 4;
 
-
        content.parents=[6];
 
-
        content.childs=[1];
 
-
        content.titleShort = "A title!4";
 
-
        content.titleLong = "See a title!4";
 
-
        content.summary= "this is a summary4";
 
-
        content.text= "This is my Text!4";
 
-
        content.type="";
 
-
            break;
 
-
      case 5:
 
-
        content.i = 5;
 
-
        content.parents=[3,2];
 
-
        content.childs=[];
 
-
        content.titleShort = "A title!5";
 
-
        content.titleLong = "See a title!5";
 
-
        content.summary= "this is a summary5";
 
-
        content.text= "This is my Text!5";
 
-
        content.type="";
 
-
            break;
 
-
      case 6:
 
-
        content.i = 6;
 
-
        content.parents=[];
 
-
        content.childs=[4];
 
-
        content.titleShort = "A title!6";
 
-
        content.titleLong = "See a title!6";
 
-
        content.summary= "this is a summary6";
 
-
        content.text= "This is my Text!6";
 
-
        content.type="";
 
-
            break;
 
-
    }
 
-
    }
 
     function showElements(node,mainnode,action,parents,childs,titleShort,titleLong,summary,text) {
     function showElements(node,mainnode,action,parents,childs,titleShort,titleLong,summary,text) {
         var div-content = "subpage-middle";
         var div-content = "subpage-middle";

Revision as of 06:04, 1 October 2013