Template:Team:TU Munich/ExCol

From 2012.igem.org

(Difference between revisions)
Line 5: Line 5:
  $('h2').next('hr').next('div').prev().prev().append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
  $('h2').next('hr').next('div').prev().prev().append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
  $('h2').next('hr').next('div').prev().prev().attr({ onMouseOver: "this.style.cursor='pointer'"})
  $('h2').next('hr').next('div').prev().prev().attr({ onMouseOver: "this.style.cursor='pointer'"})
-
  $('h2').next('hr').next('div').not('.show').hide()
+
  $('h2').next('hr').next('div').hide()
  $('h2').next('hr').next('div').prev().prev().click(function() {
  $('h2').next('hr').next('div').prev().prev().click(function() {
   if( $(this).children('.excol').html() == ' [Expand]') {
   if( $(this).children('.excol').html() == ' [Expand]') {
Line 25: Line 25:
  });
  });
  $('h3').next('div').prev().attr({ onMouseOver: "this.style.cursor='pointer'"})
  $('h3').next('div').prev().attr({ onMouseOver: "this.style.cursor='pointer'"})
 +
$('h2').next('hr').next('div.show').click()
});
});
</script>
</script>
</html>
</html>

Revision as of 22:05, 23 September 2012