function insertActionLogGAAjax(n,t,i,r,u){u===undefined&&(u="");r==""?ga("send","event",i,t,window.location.href):ga("send","event",i+"_"+r,t,window.location.href)}function insertActionLogAjax(n,t,i,r,u,f){f==""&&(f=window.location.href,f=f.replace("&","%26"));$.ajax({cache:!1,type:"POST",url:"/Base/InsertActionLog",dataType:"json",data:JSON.stringify({action:n,region:t,banner_name:i,id:r,id2:u,url:f,user_id:localStorage.getItem("memberLogin")}),contentType:"application/json; charset=utf-8",async:!1,cache:!1,timeout:8e3,complete:function(){return!0},error:function(){return!1}})}function insertCookieAgreementLog(){$.ajax({cache:!1,type:"POST",url:"/Base/CookieAgreementLog",dataType:"json",contentType:"application/json; charset=utf-8",async:!1,cache:!1,timeout:8e3,complete:function(){return!0},error:function(){return!1}})}$(function(){var n=$(".cookies .accept-btn");n.on("click",function(){insertCookieAgreementLog();setCookie("CookieAgree","1",365,".ctgoodjobs.hk");$(".cookies").remove()});getCookie("CookieAgree")=="1"?$(".cookies").remove():$(".cookies").show()})