Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"

Line 86: Line 86:
  
 
$(".face").on("click", function(){
 
$(".face").on("click", function(){
$(".blur").addClass("facehovered");
+
$(".blur").removeClass("facehovered");
$(".profile").addClass("profilehovered");
+
$(".profile").removeClass("profilehovered");
$(".profile").css("opacity", 1);
+
$(".profile").css("opacity", 0);
 +
 
 +
$(this).children(".blur").addClass("facehovered");
 +
$(this).children(".profile").addClass("profilehovered");
 +
$(this).children(".profile").css("opacity", 1);
  
 
})
 
})

Revision as of 11:01, 28 July 2015