Team:UNITN-Trento/JS/About us
From 2013.igem.org
(Created page with "$(document).ready(function() { //Remove default click of .dot $(".dot").click(function(e) { e.preventDefault(); }); $(".spot").each(function() { // Remove .spot defaul...")
Newer edit →
Revision as of 08:31, 23 September 2013
$(document).ready(function() { //Remove default click of .dot $(".dot").click(function(e) { e.preventDefault(); });
$(".spot").each(function() {
// Remove .spot default click
$(this).click(function(e) { e.preventDefault() });
//Change .dot content when mouseenter spot
$(this).mouseenter(function() {
id = $(this).attr('id');
var url = "", img = "", title = "", desc = "";
switch(id) {
'spot1': {
url = "https://2013.igem.org/Team:UNITN-Trento/Team";
img = "";
title = "FruiTeam";
desc = "In the FruiTeam page you can find the most obscure secrets of the Team: their best skills, the failures that happened in these months and much, much more.";
break;
}
'spot2': {
url = "https://igem.org/Team.cgi?year=2013&team_name=UNITN-Trento";
img = "";
title = "Official Profile";
desc = "The official Team page of iGEM UNITN-Trento 2013.";
break;
}
'spot3': {
url = "https://2013.igem.org/Team:UNITN-Trento/Gallery";
img = "";
title = "Gallery";
desc = "Photo of our life in these months in the lab and during the free time.";
break;
}
'spot4': {
url = "https://2013.igem.org/Team:UNITN-Trento/Notebook";
img = "";
title = "Notebook";
desc = "Description day-to-day of the laboratory work. You can select posts by data, person and tag. Also the filters can be combined!";
break;
}
'spot5': {
url = "https://2013.igem.org/Team:UNITN-Trento/Protocols";
img = "";
title = "Protocols";
desc = "Here you can find the list of protocols that were used to obtain all successful results of our project.";
break;
}
'spot6': {
url = "https://2013.igem.org/Team:UNITN-Trento/Laboratory/Meetings";
img = "";
title = "Meetings";
desc = "The story of the birth of the B. fruity project and the beginning of the the 'Fellowship of the Fruit'";
break;
}
}
//Change dot link $(".dot").click(function(e) { document.location.href = url; }); $(".dot .circle").attr("src" , img); $(".dot .title").html(title); $(".dot .descr").html(desc); }); });
});