Team:UiOslo Norway/Album

From 2014.igem.org

Revision as of 11:46, 12 August 2014 by StianLagstad (Talk | contribs)

UiOslo IGEM 2014

Album


  • <img class="maxImage" src="images/album/masterpub.jpg" alt="Håkon presented iGEM and our team in a masterpub at the university."/>
  • <img class="maxImage" src="images/album/stand.jpg" alt="Sumaya and William speaking about iGEM and our team with biology students at the university."/>
  • <img class="maxImage" src="images/album/girls-lab.png" alt="The girls having fun in the lab."/>
  • <img class="maxImage" src="images/album/coffee.jpg" alt="We found a relic of a coffee maker in our meeting room. People are sceptical, but people must have coffee."/>
  • <img class="maxImage" src="images/album/meeting.jpg" alt="One of our early planning meetings."/>
Pal

<script> $(document).ready(function(){

   // set default visible category
   $('.albumDiv').hide();
   $('#events').show();
   $('#events-link').parent().attr('class','active');
   // handler for changing categories
   $('.albumLink').on('click', function() {
       var id = $(this).attr('id').split("-");
       id = id[0];
       // hide all categories
       $('.albumDiv').hide();
       // remove class active from all li-elements
       $('.albumLink').parent().removeClass('active');
       // show this specific category
       $('#' + id).show();
       $('#' + id + '-link').parent().attr('class','active');
   });
   // handler for showing modal
   $('li img').on('click',function(){
       var category = $(this).parent().parent().parent().attr('id');
       var src = $(this).attr('src');
       var alt = $(this).attr('alt');
       var img = '<img src="' + src + '" class="img-responsive"/>';
var imgDesc = '
' + alt + '
'
       //start of new code new code
       var index = $(this).parent('li').index();
       var html = ;
       html += img;
       html += imgDesc;
       $('#myModal').modal();
       $('#myModal .modal-body').html(html);
       
  });

})

</script>