Team:Wageningen UR/Templates/Page Footer

From 2013.igem.org

(Difference between revisions)
(Created page with "<script type="text/javascript"></script>")
 
(95 intermediate revisions not shown)
Line 1: Line 1:
-
<script type="text/javascript"></script>
+
<html>
 +
 
 +
<script>
 +
$=jQuery.noConflict();
 +
 
 +
$('h1.firstHeading, #contentSub').remove();
 +
$('#topmenu .menucenter li .selflink').parent().addClass('active');
 +
 
 +
$(function ($) {
 +
    jQuery(document).ready(function ($) {
 +
 
 +
$('.sub-project li:first-child a, .sub-project li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/2/20/Aspergillus-icon.png">');
 +
$('.sub-project li:nth-child(2) a, .sub-project li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/5/54/Metabolites-icon.png">');
 +
$('.sub-project li:nth-child(3) a, .sub-project li:nth-child(3) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/2/29/Toolbox-icon.png">');
 +
$('.sub-project li:nth-child(4) a, .sub-project li:nth-child(4) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/6/63/Host-icon.png">');
 +
$('.sub-project li:nth-child(5) a, .sub-project li:nth-child(5) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/8/8e/Applications-icon.png">');
 +
 
 +
$('.sub-parts li:first-child a, .sub-parts li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/7/7c/Biobricks-icon.png">');
 +
$('.sub-parts li:nth-child(2) a, .sub-parts li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/f/f3/Imprbiobricks-icon.png">');
 +
 
 +
$('.sub-notebook li:first-child a, .sub-notebook li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/c/c7/Lablog-icon.png">');
 +
$('.sub-notebook li:nth-child(2) a, .sub-notebook li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/e/ee/Protocols-icon.png">');
 +
 
 +
$('.sub-team li:first-child a, .sub-team li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/b/bd/Members-icon.png">');
 +
$('.sub-team li:nth-child(2) a, .sub-team li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/c/c8/Profile-icon.png">');
 +
$('.sub-team li:nth-child(3) a, .sub-team li:nth-child(3) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/b/b5/Sponsors-icon.png">');
 +
 
 +
$('.sub-achievements li:first-child a, .sub-achievements li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/c/c7/Achievements-icon.png">');
 +
$('.sub-achievements li:nth-child(2) a, .sub-achievements li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/8/8c/Attributions-icon.png">');
 +
 
 +
$('.sub-safety li:first-child a, .sub-safety li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/3/3b/Safetyintro-icon.png">');
 +
$('.sub-safety li:nth-child(2) a, .sub-safety li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/7/76/General-safety-icon.png">');
 +
$('.sub-safety li:nth-child(3) a, .sub-safety li:nth-child(3) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/d/d9/Fungi-safety-icon.png">');
 +
$('.sub-safety li:nth-child(4) a, .sub-safety li:nth-child(4) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/f/f3/Regulations-icon.png">');
 +
$('.sub-safety li:nth-child(5) a, .sub-safety li:nth-child(5) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/1/10/Suggestion-icon.png">');
 +
$('.sub-safety li:nth-child(6) a, .sub-safety li:nth-child(6) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/8/8e/Applications-icon.png">');
 +
 
 +
$('.sub-human-practices li:first-child a, .sub-human-practices li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/6/69/Masterclass-icon.png">');
 +
$('.sub-human-practices li:nth-child(2) a, .sub-human-practices li:nth-child(2) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/9/98/Cafe-icon.png">');
 +
$('.sub-human-practices li:nth-child(3) a, .sub-human-practices li:nth-child(3) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/c/c6/Igemnl-icon.png">');
 +
$('.sub-human-practices li:nth-child(4) a, .sub-human-practices li:nth-child(4) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/5/59/Collaborations-icon.png">');
 +
$('.sub-human-practices li:nth-child(5) a, .sub-human-practices li:nth-child(5) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/c/c8/Conference-icon.png">');
 +
$('.sub-human-practices li:nth-child(6) a, .sub-human-practices li:nth-child(6) .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/b/b6/Vitruvian-icon.png">');
 +
 
 +
$('.subs .extern').css({'background-image': 'none', 'padding-right': '0'});
 +
 
 +
$("#footer-box #footer:nth-child(2) ul").clone(true, true).contents().appendTo('#footer-box #footer:first-child ul');
 +
$("#footer-box #footer:nth-child(2)").remove();
 +
 
 +
$('.subs').removeClass('active');
 +
// Project
 +
        $('#topmenu .project, ul.sub-project').mouseover(
 +
            function() {
 +
                $('ul.sub-project').addClass('active');
 +
            }
 +
        );
 +
        $('#topmenu .project, ul.sub-project').mouseout(
 +
            function() {
 +
                $('ul.sub-project').removeClass('active');
 +
            }
 +
        );
 +
// Achievements
 +
        $('#topmenu .achievements, ul.sub-achievements').mouseover(
 +
            function() {
 +
                $('ul.sub-achievements').addClass('active');
 +
            }
 +
        );
 +
        $('#topmenu .achievements, ul.sub-achievements').mouseout(
 +
            function() {
 +
                $('ul.sub-achievements').removeClass('active');
 +
            }
 +
        );
 +
// Safety
 +
        $('#topmenu .safety, ul.sub-safety').mouseover(
 +
            function() {
 +
                $('ul.sub-safety').addClass('active');
 +
            }
 +
        );
 +
        $('#topmenu .safety, ul.sub-safety').mouseout(
 +
            function() {
 +
                $('ul.sub-safety').removeClass('active');
 +
            }
 +
        );
 +
// Human practices
 +
        $('#topmenu .human, ul.sub-human-practices').mouseover(
 +
            function() {
 +
                $('ul.sub-human-practices').addClass('active');
 +
            }
 +
        );
 +
        $('#topmenu .human, ul.sub-human-practices').mouseout(
 +
            function() {
 +
                $('ul.sub-human-practices').removeClass('active');
 +
            }
 +
        );
 +
// Team
 +
        $('#topmenu .team, ul.sub-team').mouseover(
 +
            function() {
 +
                $('ul.sub-team').addClass('active');
 +
            }
 +
        );
 +
        $('#topmenu .team, ul.sub-team').mouseout(
 +
            function() {
 +
                $('ul.sub-team').removeClass('active');
 +
            }
 +
        );
 +
// Notebook
 +
        $('#topmenu .notebook, ul.sub-notebook').mouseover(
 +
            function() {
 +
                $('ul.sub-notebook').addClass('active');
 +
            }
 +
        );
 +
        $('#topmenu .notebook, ul.sub-notebook').mouseout(
 +
            function() {
 +
                $('ul.sub-notebook').removeClass('active');
 +
            }
 +
        );
 +
 
 +
 
 +
    });
 +
});
 +
 
 +
 
 +
</script>
 +
 
 +
</html>

Latest revision as of 22:12, 4 October 2013