Team:Wageningen UR/Templates/Page Footer

From 2013.igem.org

(Difference between revisions)
 
(28 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<script type="text/javascript">
 
 +
<script>
$=jQuery.noConflict();
$=jQuery.noConflict();
Line 10: Line 10:
     jQuery(document).ready(function ($) {
     jQuery(document).ready(function ($) {
-
$('.sub-project li:first-child a').prepend('<img src="https://static.igem.org/mediawiki/2013/6/65/Petri_dish.png">');
+
$('.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').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(4) a').prepend('<img src="https://static.igem.org/mediawiki/2013/8/87/Atp-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(5) a').prepend('<img src="https://static.igem.org/mediawiki/2013/6/6f/Ph-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-modeling li:nth-child(2) a').prepend('<img src="https://static.igem.org/mediawiki/2013/3/33/Database-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-parts li:first-child a').prepend('<img src="https://static.igem.org/mediawiki/2013/7/7c/Biobricks-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-parts li:nth-child(2) a').prepend('<img src="https://static.igem.org/mediawiki/2013/f/f3/Imprbiobricks-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-human-practices li:nth-child(3) a').prepend('<img src="https://static.igem.org/mediawiki/2013/c/c8/Conference-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-human-practices li:nth-child(4) a').prepend('<img src="https://static.igem.org/mediawiki/2013/5/59/Collaborations-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'});
$('.subs .extern').css({'background-image': 'none', 'padding-right': '0'});
Line 27: Line 47:
$("#footer-box #footer:nth-child(2) ul").clone(true, true).contents().appendTo('#footer-box #footer:first-child ul');
$("#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();
$("#footer-box #footer:nth-child(2)").remove();
-
         $('#topmenu .project, ul.sub-project').hover(
+
 
 +
$('.subs').removeClass('active');
 +
// Project
 +
         $('#topmenu .project, ul.sub-project').mouseover(
             function() {
             function() {
-
                 $('ul.sub-project').toggleClass('active');
+
                 $('ul.sub-project').addClass('active');
             }
             }
         );
         );
-
         $('#topmenu .modeling, ul.sub-modeling').hover(
+
         $('#topmenu .project, ul.sub-project').mouseout(
             function() {
             function() {
-
                 $('ul.sub-modeling').toggleClass('active');
+
                 $('ul.sub-project').removeClass('active');
             }
             }
         );
         );
-
         $('#topmenu .parts, ul.sub-parts').hover(
+
// Achievements
 +
         $('#topmenu .achievements, ul.sub-achievements').mouseover(
             function() {
             function() {
-
                 $('ul.sub-parts').toggleClass('active');
+
                 $('ul.sub-achievements').addClass('active');
             }
             }
         );
         );
-
         $('#topmenu .notebook, ul.sub-notebook').hover(
+
         $('#topmenu .achievements, ul.sub-achievements').mouseout(
             function() {
             function() {
-
                 $('ul.sub-notebook').toggleClass('active');
+
                 $('ul.sub-achievements').removeClass('active');
             }
             }
         );
         );
-
         $('#topmenu .safety, ul.sub-safety').hover(
+
// Safety
 +
         $('#topmenu .safety, ul.sub-safety').mouseover(
             function() {
             function() {
-
                 $('ul.sub-safety').toggleClass('active');
+
                 $('ul.sub-safety').addClass('active');
             }
             }
         );
         );
-
         $('#topmenu .team, ul.sub-team').hover(
+
         $('#topmenu .safety, ul.sub-safety').mouseout(
             function() {
             function() {
-
                 $('ul.sub-team').toggleClass('active');
+
                 $('ul.sub-safety').removeClass('active');
             }
             }
         );
         );
-
         $('#topmenu .menuright, ul.sub-human-practices').hover(
+
// Human practices
 +
         $('#topmenu .human, ul.sub-human-practices').mouseover(
             function() {
             function() {
-
                 $('ul.sub-human-practices').toggleClass('active');
+
                 $('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>
+
 
 +
 
 +
</script>
 +
 
 +
</html>

Latest revision as of 22:12, 4 October 2013