Team:Wageningen UR/JS/scripts.js
From 2013.igem.org
$=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(4) a').prepend('<img src="">'); $('.sub-project li:nth-child(5) a').prepend('<img src="">');
$('.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-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'});
$('#filters a').click(function () {
var ourClass = $(this).attr('class'); $('#container').children('div.' + ourClass).hide(); $('#container div.item').masonry();
});
$("#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();
$('#topmenu .project, ul.sub-project').hover( function() { $('ul.sub-project').toggleClass('active'); } ); $('#topmenu .modeling, 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'); } ); });
});