Team:Wageningen UR/Templates/Page Footer
From 2013.igem.org
(Difference between revisions)
Karrenbelt (Talk | contribs) |
Karrenbelt (Talk | contribs) |
||
(9 intermediate revisions not shown) | |||
Line 11: | Line 11: | ||
$('.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: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=" | + | $('.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="">'); | + | $('.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(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-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: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: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=" | + | $('.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=" | + | $('.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:first-child a, .sub-team li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/b/bd/Members-icon.png">'); | ||
Line 29: | Line 26: | ||
$('.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-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- | + | $('.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- | + | |
- | + | ||
- | + | ||
- | $('.sub-human-practices li:first-child a, .sub-human-practices li:first-child .selflink').prepend('<img src="https://static.igem.org/mediawiki/2013/ | + | $('.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(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/ | + | $('.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/ | + | $('.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(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/ | + | $('.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 47: | 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'). | + | $('.subs').removeClass('active'); |
+ | // Project | ||
+ | $('#topmenu .project, ul.sub-project').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub-project'). | + | $('ul.sub-project').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | $('#topmenu .project, ul.sub-project').mouseout( |
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-project').removeClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | // Achievements |
+ | $('#topmenu .achievements, ul.sub-achievements').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-achievements').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | $('#topmenu .achievements, ul.sub-achievements').mouseout( |
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-achievements').removeClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu .safety, ul.sub-safety'). | + | // Safety |
+ | $('#topmenu .safety, ul.sub-safety').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub-safety'). | + | $('ul.sub-safety').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | $('#topmenu .safety, ul.sub-safety').mouseout( |
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-safety').removeClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu .human, ul.sub-human-practices'). | + | // Human practices |
+ | $('#topmenu .human, ul.sub-human-practices').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub-human-practices'). | + | $('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'); | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | |||
}); | }); | ||
}); | }); |
Latest revision as of 22:12, 4 October 2013