Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"
Line 86: | Line 86: | ||
$(".face").on("click", facepalm) | $(".face").on("click", facepalm) | ||
− | $(".profile").on(" | + | $(".profile").on("mouseover", facepalm) |
+ | $(".profile").on("mouseout", function(){ | ||
+ | |||
+ | $(".blur").removeClass("facehovered"); | ||
+ | $(".profile").removeClass("profilehovered"); | ||
+ | $(".profile").css("opacity", 0); | ||
+ | }) | ||
}); | }); | ||
function facepalm(){ | function facepalm(){ | ||
− | |||
$(".blur").removeClass("facehovered"); | $(".blur").removeClass("facehovered"); | ||
$(".profile").removeClass("profilehovered"); | $(".profile").removeClass("profilehovered"); |
Revision as of 11:14, 28 July 2015