Template:Team:Waterloo/JS/baseWiki

From 2014.igem.org

(Difference between revisions)
Line 42: Line 42:
   $("#"+id).attr('src', image);
   $("#"+id).attr('src', image);
}
}
 +
 +
/*$('ul.tabs').each(function(){
 +
    var $active, $content, $links = $(this).find('a');
 +
 +
    $active = $($links.filter('[href="'+location.hash+'"]')[0] || $links[0]);
 +
    $active.addClass('selected');
 +
 +
    $content = $($active[0].hash);
 +
 +
    $links.not($active).each(function () {
 +
      $(this.hash).hide();
 +
    });
 +
 +
    $(this).on('click', 'a', function(e){
 +
 +
      $active.removeClass('selected');
 +
      $content.hide();
 +
 +
      $active = $(this);
 +
      $content = $(this.hash);
 +
 +
      $active.addClass('selected');
 +
      $content.show();
 +
 +
      e.preventDefault();
 +
    });
 +
  });*/
</script>
</script>
</html>
</html>

Revision as of 03:50, 16 October 2014