Template:Team:TU Munich/ExCol

From 2012.igem.org

(Difference between revisions)
Line 3: Line 3:
$(document).ready(function() {
$(document).ready(function() {
-
$('h3').parent('div.bezel').children('h3').append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
+
$('h4').parent('div.bezel').children('h4').append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
-
  $('h3').parent('div.bezel').children().not('h3').hide()
+
  $('h4').parent('div.bezel').children().not('h4').hide()
-
  $('h3').parent('div.bezel').children('h3').click(function() {
+
  $('h4').parent('div.bezel').children('h4').click(function() {
-
   if( $(this).parent('div.bezel').children().not('h3').html() == ' [Expand]') {
+
   if( $(this).parent('div.bezel').children().not('h4').html() == ' [Expand]') {
-
   $(this).parent('div.bezel').children('h3').children('span').html(' [Collapse]')
+
   $(this).parent('div.bezel').children('h4').children('span').html(' [Collapse]')
   }else {
   }else {
-
   $(this).parent('div.bezel').children('h3').children('span').html(' [Expand]')
+
   $(this).parent('div.bezel').children('h4').children('span').html(' [Expand]')
   }
   }
-
   $(this).parent('div.bezel').children().not('h3').fadeToggle()
+
   $(this).parent('div.bezel').children().not('h4').fadeToggle()
  });
  });
-
  $('h3').parent('div.bezel').children('h3').attr({ onMouseOver: "this.style.cursor='pointer'"})
+
  $('h4').parent('div.bezel').children('h4').attr({ onMouseOver: "this.style.cursor='pointer'"})
});
});
</script>
</script>
</html>
</html>

Revision as of 16:14, 26 September 2012