Team:UCLondon/Templates/timeline-struct

From 2012e.igem.org

(Difference between revisions)
Line 108: Line 108:
<script type="text/javascript">  
<script type="text/javascript">  
-
/*
+
 
$(document).ready(function(event) {   
$(document).ready(function(event) {   
     // get all the elements which meet the {{{class}}} and .tl-item
     // get all the elements which meet the {{{class}}} and .tl-item
-
     var list = $('.tl-item.</html>{{{class}}}<html> > ul');
+
     var list = $('.tl-item.</html>{{{class}}}<html> > ul li');
     //alert(list.length);
     //alert(list.length);
-
     var target = $('.acknow.</html>{{{1}}}<html>');
+
     var target = $('#timeline.</html>{{{class}}}<html>');
-
     var str = "";
+
     $(target).children('#dates').append(list[0]);
-
    var i = 0;
+
     $(target).children('#issues').append(list[0]);
-
 
+
-
     for (i=0; i<list.length;++i){
+
-
    str += list[i].innerHTML;
+
   }
   }
-
 
+
  /*
   target.children('ul').html( str );
   target.children('ul').html( str );
   var nHeight = $('.MBContent').height();
   var nHeight = $('.MBContent').height();
   $('.MBWikiStyle').css('height', nHeight);
   $('.MBWikiStyle').css('height', nHeight);
 +
  */
 +
 +
 
 +
  $(function(){
 +
$().timelinr()
 +
});
    
    
});
});
-
*/
 
Line 140: Line 142:
-
$(function(){
+
 
-
$().timelinr()
+
-
});
+
</script>
</script>
</html>
</html>

Revision as of 06:52, 20 October 2012

  • Lorem ipsum.

  • Lorem ipsum.

  • Lorem ipsum.

  • Lorem ipsum.

  • Lorem ipsum.

  • Lorem ipsum.

  • Lorem ipsum.

  • Lorem ipsum.