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

Line 86: Line 86:
  
 
$(".face").on("click", facepalm)
 
$(".face").on("click", facepalm)
$(".profile").on("mouseover", facepalm)
+
$(".profile").on("mouseover", function(){
$(".profile").on("mouseout", function(){
+
facepalm()
 +
$(this).addClass("profilehovered");
 +
$(this).css("opacity", 1);
 +
})
  
 +
$(".profile").on("mouseout", function(){
 
$(".blur").removeClass("facehovered");
 
$(".blur").removeClass("facehovered");
 
$(".profile").removeClass("profilehovered");
 
$(".profile").removeClass("profilehovered");
Line 104: Line 108:
 
$(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:17, 28 July 2015