function isElemInViewPort(c){var b=$(window).scrollTop();var e=b+$(window).height();var a=$(c).offset().top;var d=a+$(c).height();return((a<=e)&&(d>=b))}$(document).ready(function(){window.addEventListener("blur",function(){var b=$("#wimbledoniframe");$.each(b,function(c,d){if(d.getAttribute("gasentclick")!="true"){d.setAttribute("gasentclick",true);ga("send","event","Wimbeldon_Widget ","click",window.location.href)}})});var a=$(".social_header");$.each(a,function(b,c){if(isElemInViewPort(c)&&c.getAttribute("gasent")!="true"){c.setAttribute("gaSent",true) }});$(window).scroll(function(){var b=$(".footer_social");$.each(b,function(e,f){if(isElemInViewPort(f)&&f.getAttribute("gasent")!="true"){f.setAttribute("gaSent",true)}});var c=$(".social_header");$.each(c,function(e,f){if(isElemInViewPort(f)&&f.getAttribute("gasent")!="true"){f.setAttribute("gaSent",true)}});var d=$("#wimbledoniframe");$.each(d,function(e,f){if(isElemInViewPort(f)&&f.getAttribute("gasent")!="true"){f.setAttribute("gaSent",true);ga("send","event","Wimbeldon_Widget ","seen",window.location.href,{nonInteraction:1}) }})})});