Team:Heidelberg/Notebook

From 2014.igem.org

(Difference between revisions)
Line 53: Line 53:
       <div class="col-lg-12">
       <div class="col-lg-12">
         <h2 class="titles">
         <h2 class="titles">
-
           <span class="label label-default" id="dnmt1" >DNMT I</span>
+
           <span class="label label-default active" id="dnmt1" >DNMT I</span>
           <span class="label label-default" id="lov" >LOV</span>
           <span class="label label-default" id="lov" >LOV</span>
           <span class="label label-default" id="lysozyme" >Lysozyme</span>
           <span class="label label-default" id="lysozyme" >Lysozyme</span>
Line 77: Line 77:
$(document).ready(function(){
$(document).ready(function(){
   $(".titles span").click(function(event){
   $(".titles span").click(function(event){
 +
    $('.titles span').removeClass("active");
 +
    $(event.target).addClass("active");
     $('#project-description').html(projects[event.target.id]);
     $('#project-description').html(projects[event.target.id]);
   });
   });

Revision as of 12:27, 13 October 2014