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').hide()
+
  $('h2').next('hr').next('div').not('.show').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 15: Line 15:
  });
  });
  $('h3').next('div').prev().append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
  $('h3').next('div').prev().append("<span style='font-size:50%;float:right;'class='excol'> [Expand]</span>")
-
  $('h3').next('div').hide()
+
  $('h3').next('div').not('.show').hide()
  $('h3').next('div').prev().click(function() {
  $('h3').next('div').prev().click(function() {
   if( $(this).children('.excol').html() == ' [Expand]') {
   if( $(this).children('.excol').html() == ' [Expand]') {

Revision as of 21:32, 23 September 2012