Template:Team:TU Munich/LabHeader

From 2012.igem.org

(Difference between revisions)
 
(16 intermediate revisions not shown)
Line 7: Line 7:
     text-align:center;
     text-align:center;
     color:white;
     color:white;
-
     background-color:#0C68AE;
+
     background-color: rgb(0,33,67);
     margin: 15px 0;
     margin: 15px 0;
     padding: 0.5em 0;
     padding: 0.5em 0;
Line 58: Line 58:
     margin: 5px 0;
     margin: 5px 0;
     padding-bottom: 5px;
     padding-bottom: 5px;
-
}
 
-
 
-
 
-
.week {
 
-
    display: none;
 
-
}
 
-
 
-
#WWeek_13, #WWeek_14 {
 
-
    display: block;
 
}
}
Line 77: Line 68:
     right: 0px;
     right: 0px;
     top: 20px;
     top: 20px;
-
     width: 155px;
+
     width: 130px;
 +
    font-size:80%;
     background: rgb(255,255,255);
     background: rgb(255,255,255);
}
}
#labselect:hover {
#labselect:hover {
-
   
 
     position: fixed;
     position: fixed;
     right: 0px;
     right: 0px;
     top: 20px;
     top: 20px;
-
     width: 155px;
+
     width: 130px;
 +
    font-size:80%;
     background: rgb(255,255,255);
     background: rgb(255,255,255);
}
}
Line 112: Line 104:
#labselect fieldset {
#labselect fieldset {
     margin: 0px;
     margin: 0px;
 +
}
 +
 +
h1, h2 {
 +
    text-shadow: 0px 0px 0px;
}
}
Line 117: Line 113:
<script style="text/js">
<script style="text/js">
$(document).ready(function(){
$(document).ready(function(){
-
   //$('.labbook p').css({display: 'none'})
+
   $('.labbook ul').css({display: 'none'})
-
   //$('.labbook table').css({display: 'none'})
+
  $('.labbook p').css({display: 'none'})
 +
  $('.labbook table').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 126: Line 124:
   $("div.constitutive_promoter").addClass("experiment");
   $("div.constitutive_promoter").addClass("experiment");
   $("div.light_switchable_promoter").addClass("experiment");
   $("div.light_switchable_promoter").addClass("experiment");
 +
  $("div.ethanol_inducible_promoter").addClass("experiment");
   $("div.caffeine").addClass("experiment");
   $("div.caffeine").addClass("experiment");
   $("div.integration").addClass("experiment");
   $("div.integration").addClass("experiment");
Line 137: Line 136:
   $('.'+this.value+' ul').css({display: 'block'})
   $('.'+this.value+' ul').css({display: 'block'})
   $('.'+this.value+' pre').css({display: 'block'})
   $('.'+this.value+' pre').css({display: 'block'})
 +
  $('.'+this.value+' div').css({display: 'block'})
   } else {
   } else {
   $('.'+this.value+' p').css({display: 'none'})
   $('.'+this.value+' p').css({display: 'none'})
Line 142: Line 142:
   $('.'+this.value+' ul').css({display: 'none'})
   $('.'+this.value+' ul').css({display: 'none'})
   $('.'+this.value+' pre').css({display: 'none'})
   $('.'+this.value+' pre').css({display: 'none'})
 +
  $('.'+this.value+' div').css({display: 'none'})
   }  
   }  
  });
  });
Line 151: Line 152:
   $('.'+this.value+' ul').css({display: 'block'})
   $('.'+this.value+' ul').css({display: 'block'})
   $('.'+this.value+' pre').css({display: 'block'})
   $('.'+this.value+' pre').css({display: 'block'})
 +
  $('.'+this.value+' div').css({display: 'block'})
   $('.'+this.value).addClass('displayed')
   $('.'+this.value).addClass('displayed')
   } else {
   } else {
Line 156: Line 158:
   $('.'+this.value+' table').css({display: 'none'})
   $('.'+this.value+' table').css({display: 'none'})
   $('.'+this.value+' ul').css({display: 'none'})
   $('.'+this.value+' ul').css({display: 'none'})
 +
  $('.'+this.value+' pre').css({display: 'none'})
   $('.'+this.value+' pre').css({display: 'none'})
   $('.'+this.value+' pre').css({display: 'none'})
   $('.'+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).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).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 208: 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'})
  });
  });
  $('#ColAll').click(function() {
  $('#ColAll').click(function() {
Line 217: 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'})
  });
  });
-
  $('.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'})
});
});
</script>
</script>
</head>
</head>
</html>
</html>

Latest revision as of 00:18, 27 October 2012