Team:Wageningen UR/JS/scripts.js
From 2013.igem.org
Karrenbelt (Talk | contribs) |
Karrenbelt (Talk | contribs) |
||
Line 14: | Line 14: | ||
$('.sub-project li:nth-child(7) a').prepend('<img src="http://beauvillemedia.nl/igem/chromo-icon.png">'); | $('.sub-project li:nth-child(7) a').prepend('<img src="http://beauvillemedia.nl/igem/chromo-icon.png">'); | ||
$('.sub-project li:nth-child(8) a').prepend('<img src="http://beauvillemedia.nl/igem/morphology-icon.png">'); | $('.sub-project li:nth-child(8) a').prepend('<img src="http://beauvillemedia.nl/igem/morphology-icon.png">'); | ||
+ | $('.sub-project li:nth-child(9) a').prepend('<img src="http://beauvillemedia.nl/igem/applications1-icon.png">'); | ||
$('.sub-modeling li:first-child a').prepend('<img src="http://beauvillemedia.nl/igem/flux-icon.png">'); | $('.sub-modeling li:first-child a').prepend('<img src="http://beauvillemedia.nl/igem/flux-icon.png">'); |
Revision as of 19:07, 30 July 2013
$=jQuery.noConflict();
$('h1.firstHeading, #contentSub').remove(); $('#topmenu .menucenter li .selflink').parent().addClass('active');
$(function ($) {
jQuery(document).ready(function ($) {
$('.sub-project li:first-child a').prepend('<img src="">'); $('.sub-project li:nth-child(2) a').prepend('<img src="">'); $('.sub-project li:nth-child(3) a').prepend('<img src="http://beauvillemedia.nl/igem/lovastatin-icon.png">'); $('.sub-project li:nth-child(4) a').prepend('<img src="">'); $('.sub-project li:nth-child(5) a').prepend('<img src="">'); $('.sub-project li:nth-child(7) a').prepend('<img src="http://beauvillemedia.nl/igem/chromo-icon.png">'); $('.sub-project li:nth-child(8) a').prepend('<img src="http://beauvillemedia.nl/igem/morphology-icon.png">'); $('.sub-project li:nth-child(9) a').prepend('<img src="http://beauvillemedia.nl/igem/applications1-icon.png">');
$('.sub-modeling li:first-child a').prepend('<img src="http://beauvillemedia.nl/igem/flux-icon.png">'); $('.sub-modeling li:nth-child(2) a').prepend('<img src="">');
$('.sub-parts li:first-child a').prepend('<img src="">'); $('.sub-parts li:nth-child(2) a').prepend('<img src="">');
$('.sub-team li:first-child a').prepend('<img src="http://beauvillemedia.nl/igem/members-icon.png">'); $('.sub-team li:nth-child(2) a').prepend('<img src="http://beauvillemedia.nl/igem/profile-icon.png">'); $('.sub-team li:nth-child(3) a').prepend('<img src="http://beauvillemedia.nl/igem/sponsors-icon.png">');
$('.sub-human-practices li:nth-child(3) a').prepend('<img src="">'); $('.sub-human-practices li:nth-child(4) a').prepend('<img src="">');
$('.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();
$(window).load(function(){ $('#topmenu .project, ul.sub-project').hover( function() { $('ul.sub-project').toggleClass('active'); } ); $('#topmenu .modeling a, ul.sub-modeling').hover( function() { $('ul.sub-modeling').toggleClass('active'); } ); $('#topmenu .parts, ul.sub-parts').hover( function() { $('ul.sub-parts').toggleClass('active'); } ); $('#topmenu .notebook, ul.sub-notebook').hover( function() { $('ul.sub-notebook').toggleClass('active'); } ); $('#topmenu .safety, ul.sub-safety').hover( function() { $('ul.sub-safety').toggleClass('active'); } ); $('#topmenu .team, ul.sub-team').hover( function() { $('ul.sub-team').toggleClass('active'); } ); $('#topmenu .menuright, ul.sub-human-practices').hover( function() { $('ul.sub-human-practices').toggleClass('active'); } ); }); });
});