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

Line 86: Line 86:
  
 
$(".face").on("click", facepalm)
 
$(".face").on("click", facepalm)
$(".profile").on("hover", facepalm)
+
$(".profile").on("mouseover", facepalm)
 +
$(".profile").on("mouseout", function(){
 +
 
 +
$(".blur").removeClass("facehovered");
 +
$(".profile").removeClass("profilehovered");
 +
$(".profile").css("opacity", 0);
 +
})
  
 
});
 
});
  
 
function facepalm(){
 
function facepalm(){
alert('test')
 
 
$(".blur").removeClass("facehovered");
 
$(".blur").removeClass("facehovered");
 
$(".profile").removeClass("profilehovered");
 
$(".profile").removeClass("profilehovered");

Revision as of 11:14, 28 July 2015