Team:Uppsala/Templates/top template

From 2014.igem.org

(Difference between revisions)
Line 74: Line 74:
<html>
<html>
-
<script>
 
-
 
-
$(document).ready(function() {
 
-
    $("#section_selector div").hide(); // Initially hide all content
 
-
    $("#tabs li:first").attr("id","current"); // Activate first tab
 
-
    $("#section_selector div:first").fadeIn(); // Show first tab content
 
      
      
-
    $('#tabs a').click(function(e) {
 
-
        e.preventDefault();       
 
-
        $("#section_selector div").hide(); //Hide all content
 
-
        $("#tabs li").attr("id",""); //Reset id's
 
-
        $(this).parent().attr("id","current"); // Activate this
 
-
        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab
 
-
    });
 
-
})();
 
-
 
-
</script>
 
-
 
-
</div>
 
-
           
 
-
         
 
<!-- Content for the page should be put here, 3 on the picture (Mainpage) -->
<!-- Content for the page should be put here, 3 on the picture (Mainpage) -->
<div>
<div>
</html>
</html>

Revision as of 12:12, 16 July 2014

Project

Failed to load tracking. JS is probably not enabled