Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"
Line 85: | Line 85: | ||
}).resize(); | }).resize(); | ||
− | $(".face").on("click", function(){ | + | $(".face").on("click", facepalm) |
+ | $(".face").on("hover", facepalm) | ||
+ | |||
+ | }); | ||
+ | |||
+ | function facepalm(){ | ||
$(".blur").removeClass("facehovered"); | $(".blur").removeClass("facehovered"); | ||
$(".profile").removeClass("profilehovered"); | $(".profile").removeClass("profilehovered"); | ||
Line 93: | Line 98: | ||
$(this).children(".profile").addClass("profilehovered"); | $(this).children(".profile").addClass("profilehovered"); | ||
$(this).children(".profile").css("opacity", 1); | $(this).children(".profile").css("opacity", 1); | ||
− | + | } | |
− | } | + | |
− | + | ||
− | + | ||
</script> | </script> | ||
Revision as of 11:04, 28 July 2015