Template:Team:TU Munich/ExCol

From 2012.igem.org

(Difference between revisions)
(Blanked the page)
(Undo revision 159468 by Fabian Froehlich (talk))
Line 1: Line 1:
 +
<html>
 +
<script>
 +
$(document).ready(function() {
 +
$('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').hide()
 +
$('h2').next('hr').next('div').prev().prev().click(function() {
 +
  if( $(this).children('.excol').html() == ' [Expand]') {
 +
  $(this).children('.excol').html(' [Collapse]')
 +
  }else {
 +
  $(this).children('.excol').html(' [Expand]')
 +
  }
 +
  $(this).next('hr').next('div').fadeToggle()
 +
});
 +
$('h3').next('div').prev().append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
 +
$('h3').next('div').not('.show').hide()
 +
$('h3').next('div').prev().click(function() {
 +
  if( $(this).children('.excol').html() == ' [Expand]') {
 +
  $(this).children('.excol').html(' [Collapse]')
 +
  }else {
 +
  $(this).children('.excol').html(' [Expand]')
 +
  }
 +
  $(this).next('div').fadeToggle()
 +
});
 +
$('h3').next('div').prev().attr({ onMouseOver: "this.style.cursor='pointer'"})
 +
$('h2').next('hr').next('div.show').prev().prev().click()
 +
});
 +
 +
</script>
 +
</html>

Revision as of 16:01, 26 September 2012