var clickNamespace={registerPageLoad:function(){$.ajax({type:"POST",url:"/api/clicks/RegisterPageLoad",data:JSON.stringify({page:window.location.pathname,querystring:window.location.search}),contentType:"application/json; charset=utf-8",dataType:"json"})},registerLinkClick:function(){$(document).on("click","a, button",function(){var n;$(this).prop("nodeName")==="BUTTON"?n="Button: "+$(this).text():$(this).prop("nodeName")==="A"&&(n=$(this).attr("href"),n===null&&(n=$(this).attr("class")+": "+$(this).text()));$.ajax({type:"POST",url:"/api/clicks/RegisterLinkClick",data:JSON.stringify({RequestedResource:n,page:window.location.pathname,querystring:window.location.search}),contentType:"application/json; charset=utf-8",dataType:"json"})})},registerLoginAttempt:function(){$(document).on("click",".olb-login",function(){var t=$(this).closest("form").find("#user_id"),n=t.val(),i=t.data("logintype");n===null||n.length<=0||($.ajax({type:"POST",url:"/api/clicks/RegisterLogin",data:JSON.stringify({Login:n,LoginType:i,page:window.location.pathname,querystring:window.location.search}),contentType:"application/json; charset=utf-8",dataType:"json"}),localStorageWriter("login_type",i))})}};clickNamespace.registerPageLoad();clickNamespace.registerLinkClick();clickNamespace.registerLoginAttempt()