Template:Team:TU Munich/LabHeader

From 2012.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 116: Line 116:
   $('.labbook p').css({display: 'none'})
   $('.labbook p').css({display: 'none'})
   $('.labbook table').css({display: 'none'})
   $('.labbook table').css({display: 'none'})
-
   $('.labbook div').css({display: 'none'})
+
   //$('.labbook div div').css({display: 'none'})
   $("table").addClass("wikitable");
   $("table").addClass("wikitable");
   $("div.vector_design").addClass("experiment");
   $("div.vector_design").addClass("experiment");
Line 162: Line 162:
   $('.'+this.value).removeClass('displayed')
   $('.'+this.value).removeClass('displayed')
   }  
   }  
-
});
 
-
$('.experiment h3 span.mw-headline').click(function() {
 
-
  if ($(this).hasClass('displayed')) {
 
-
  $(this).parent().parent().children('p').css({display: 'none'})
 
-
  $(this).parent().parent().children('table').css({display: 'none'})
 
-
  $(this).parent().parent().children('ul').css({display: 'none'})
 
-
  $(this).parent().parent().children('pre').css({display: 'none'})
 
-
  $(this).parent().parent().children('div').css({display: 'none'})
 
-
  $(this).removeClass('displayed')
 
-
  }else {
 
-
  $(this).parent().parent().children('p').css({display: 'block'})
 
-
  $(this).parent().parent().children('table').css({display: 'table'})
 
-
  $(this).parent().parent().children('ul').css({display: 'block'})
 
-
  $(this).parent().parent().children('pre').css({display: 'block'})
 
-
  $(this).parent().parent().children('div').css({display: 'block'})
 
-
  $(this).addClass('displayed')
 
-
  }
 
-
});
 
-
$('a.WDetails').click(function() {
 
-
  //if($('#W'+this.id).length == 0) {
 
-
  // $(this).append($.get('https://2012.igem.org/Team:TU_Munich/Notebook/Labjournal/'+this.id+'?action=raw').responseText)
 
-
  // console.log($.get('https://2012.igem.org/Team:TU_Munich/Notebook/Labjournal/'+this.id+'?action=raw'))
 
-
  //}
 
-
  $('#W'+this.id).fadeToggle("slow", "linear")
 
-
  if ($(this).hasClass('detailed')){
 
-
    $(this).removeClass('detailed')
 
-
    $(this).text('Show Details...')
 
-
  }else {
 
-
    $(this).addClass('detailed')
 
-
 
-
    $(this).text('Hide Details...')
 
-
  } 
 
-
});
 
-
$('h1 span.mw-headline').click(function() {
 
-
  $('#W'+this.id).fadeToggle("slow", "linear")
 
-
  if ($('a#'+this.id).hasClass('detailed')){
 
-
    $('a#'+this.id).removeClass('detailed')
 
-
    $('a#'+this.id).text('Show Details...')
 
-
  }else {
 
-
    $('a#'+this.id).addClass('detailed')
 
-
 
-
    $('a#'+this.id).text('Hide Details...')
 
-
  }
 
  });
  });
  $('#ExAll').click(function() {
  $('#ExAll').click(function() {
Line 213: Line 170:
   $('.labbook ul').css({display: 'block'})
   $('.labbook ul').css({display: 'block'})
   $('.labbook pre').css({display: 'block'})
   $('.labbook pre').css({display: 'block'})
-
  $('.labbook .week').css({display: 'block'})
 
   $('.labbook .experiment div').css({display: 'block'})
   $('.labbook .experiment div').css({display: 'block'})
  });
  });
Line 223: Line 179:
   $('.labbook ul').css({display: 'none'})
   $('.labbook ul').css({display: 'none'})
   $('.labbook pre').css({display: 'none'})
   $('.labbook pre').css({display: 'none'})
-
  $('.labbook .week').css({display: 'none'})
 
   $('.labbook .experiment div').css({display: 'none'})
   $('.labbook .experiment div').css({display: 'none'})
-
 
 
  });
  });
-
  $('.experiment h3 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"})
+
  $('.experiment h3').attr({ onMouseOver: "this.style.cursor='pointer'"})
  $("table#toc.toc").css({ display: 'none'});
  $("table#toc.toc").css({ display: 'none'});
  $(".experiment ul li ul").css({display: 'block'})
  $(".experiment ul li ul").css({display: 'block'})

Latest revision as of 00:18, 27 October 2012