Team:TU Munich/lab/notebook

From 2011.igem.org

(Difference between revisions)
Line 76: Line 76:
</style>
</style>
<script>
<script>
-
$(function () {
 
-
    var tabContainers = $('div.tabs > div');
 
-
   
 
-
    $('div.tabs ul.tabNavigation a').click(function () {
 
-
        tabContainers.hide().filter(this.hash).show();
 
-
       
 
-
        $('div.tabs ul.tabNavigation a').removeClass('selected');
 
-
        $(this).addClass('selected');
 
-
       
 
-
        return false;
 
-
    }).filter(':first').click();
 
-
});
 
-
$(function () {
 
-
    var tabs = [];
 
-
    var tabContainers = [];
 
-
    $('ul.tabs a').each(function () {
 
-
      // note that this only compares the pathname, not the entire url
 
-
      // which actually may be required for a more terse solution.
 
-
        if (this.pathname == window.location.pathname) {
 
-
            tabs.push(this);
 
-
            tabContainers.push($(this.hash).get(0));
 
-
        }
 
-
    });
 
-
   
 
-
    $(tabs).click(function () {
 
-
        // hide all tabs
 
-
        $(tabContainers).hide().filter(this.hash).show();
 
-
       
 
-
        // set up the selected class
 
-
        $(tabs).removeClass('selected');
 
-
        $(this).addClass('selected');
 
-
       
 
-
        return false;
 
-
    });
 
-
});
 
</script>
</script>
</head>
</head>
Line 134: Line 99:
<script>
<script>
$(document).ready(function() {
$(document).ready(function() {
 +
$('#tabs').click(function() {
 +
  $('.labcheckbox').each(function() {
 +
    console.log(this);
 +
  if ($(this).is(':checked')){
 +
    $('.'+this.value).css({display: 'block'})
 +
  } else {
 +
    $('.'+this.value).css({display: 'none'})
 +
  }
 +
  });
 +
});
  $('.labcheckbox').each(function() {
  $('.labcheckbox').each(function() {
   console.log(this);
   console.log(this);

Revision as of 12:43, 15 September 2011

Labbook

Display:

Results
Cloning
Testing
Other Work

Date: