Team:Alberta/application.js
From 2010.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
document.location="https://2010.igem.org/Team:Alberta/Achievements"; | document.location="https://2010.igem.org/Team:Alberta/Achievements"; | ||
}); | }); | ||
+ | |||
$('.software-link').click(function(){ | $('.software-link').click(function(){ | ||
document.location="https://2010.igem.org/Team:Alberta/Software"; | document.location="https://2010.igem.org/Team:Alberta/Software"; | ||
}); | }); | ||
+ | |||
$('.kit-link').click(function(){ | $('.kit-link').click(function(){ | ||
document.location="https://2010.igem.org/Team:Alberta/Kit"; | document.location="https://2010.igem.org/Team:Alberta/Kit"; | ||
}); | }); | ||
+ | |||
$('.biobytes-link').click(function(){ | $('.biobytes-link').click(function(){ | ||
document.location="https://2010.igem.org/Team:Alberta/BioBytes"; | document.location="https://2010.igem.org/Team:Alberta/BioBytes"; | ||
}); | }); | ||
+ | |||
+ | alert("HeY"); | ||
}); | }); |
Revision as of 00:34, 26 October 2010
// This file for javascript that we want to include on all pages
$(document).ready(function(){
// show the drop down list on hover $('li.headlink').hover( function() { $('ul', this).show(); }, function() { $('ul', this).hide(); } );
$('.achieve-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/Achievements"; });
$('.software-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/Software"; });
$('.kit-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/Kit"; });
$('.biobytes-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/BioBytes"; });
alert("HeY");
});