Team:Dundee
From 2014.igem.org
(Difference between revisions)
Line 77: | Line 77: | ||
} | } | ||
+ | .speech{ | ||
+ | opacity: 0; | ||
+ | } | ||
/* Smartphones (portrait and landscape) ----------- */ | /* Smartphones (portrait and landscape) ----------- */ | ||
Line 308: | Line 311: | ||
$( '.detail' ).hover(function(){ | $( '.detail' ).hover(function(){ | ||
$( this ).css({"opacity":"1"}); | $( this ).css({"opacity":"1"}); | ||
+ | |||
+ | var id = $(this).attr('id'); | ||
+ | |||
+ | if(id == "school") | ||
+ | { | ||
+ | $("#schoolSpk").css({"opacity":"1"}); | ||
+ | } | ||
+ | else if(id == "library") | ||
+ | { | ||
+ | $("#librarySpk").css({"opacity":"1"}); | ||
+ | |||
+ | } | ||
+ | else if(id == "saloon") | ||
+ | { | ||
+ | $("#saloonSpk").css({"opacity":"1"}); | ||
+ | } | ||
},function(){ | },function(){ | ||
$( '.detail' ).css({"opacity":"0"}); | $( '.detail' ).css({"opacity":"0"}); | ||
Line 386: | Line 405: | ||
school.node.addEventListener("click", function(){location.assign("https://2014.igem.org/Team:Dundee/Project")}, false); | school.node.addEventListener("click", function(){location.assign("https://2014.igem.org/Team:Dundee/Project")}, false); | ||
+ | var schoolSpk = paper.image("https://static.igem.org/mediawiki/2014/0/00/Speach.png",250,200,300,150); | ||
+ | schoolSpk.node.setAttribute("class","speech"); | ||
+ | schoolSpk.node.setAttribute("id","schoolSpk"); | ||
+ | |||
+ | |||
var library = paper.image("https://static.igem.org/mediawiki/2014/9/9b/Library.png",336,318,284,400); | var library = paper.image("https://static.igem.org/mediawiki/2014/9/9b/Library.png",336,318,284,400); | ||
- | library.node.setAttribute("class","detail"); | + | library.node.setAttribute("class","detail"); |
- | + | library.node.setAttribute("id","library"); | |
+ | |||
+ | var librarySpk = paper.image("https://static.igem.org/mediawiki/2014/0/00/Speach.png",600,200,300,150); | ||
+ | librarySpk.node.setAttribute("class","speech"); | ||
+ | librarySpk.node.setAttribute("id","librarySpk"); | ||
+ | |||
var saloon = paper.image("https://static.igem.org/mediawiki/2014/6/69/Saloon.png",637,330,414,397); | var saloon = paper.image("https://static.igem.org/mediawiki/2014/6/69/Saloon.png",637,330,414,397); | ||
- | saloon.node.setAttribute("class","detail"); | + | saloon.node.setAttribute("class","detail"); |
+ | saloon.node.setAttribute("id","saloon"); | ||
+ | |||
+ | var saloonSpk = paper.image("https://static.igem.org/mediawiki/2014/0/00/Speach.png",950,200,300,150); | ||
+ | saloonSpk.node.setAttribute("class","speech"); | ||
+ | saloonSpk.node.setAttribute("id","saloonSpk"); | ||
var t =paper.text(-200, 500, "Abstract"); | var t =paper.text(-200, 500, "Abstract"); |
Revision as of 16:34, 26 August 2014