1function insertLogAction(varAction, varRegion, varBanner_name, varId){ 2 url="/include/action_log_insert.asp?action="+varAction+"®ion="+varRegion+"&banner_name="+varBanner_name+"&id="+varId+"&my_url="+window.location.pathname; 3 makeLogRequest(url); 4} 5 6function makeLogRequest(url) { 7 http_request = false; 8 if (window.XMLHttpRequest) { // Mozilla, Safari,... 9 http_request = new XMLHttpRequest(); 10 if (http_request.overrideMimeType) { 11 http_request.overrideMimeType('text/xml'); 12 } 13 } else if (window.ActiveXObject) { // IE 14 try { 15 http_request = new ActiveXObject("Msxml2.XMLHTTP"); 16 } catch (e) { 17 try { 18 http_request = new ActiveXObject("Microsoft.XMLHTTP"); 19 } catch (e) {} 20 } 21 } 22 if (!http_request) { 23 //alert('Giving up :( Cannot create an XMLHTTP instance'); 24 return false; 25 } 26 //http_request.onreadystatechange = alertContents; 27 http_request.open('GET', url, true); 28 http_request.send(null); 29} 30 31$(document).ready(function() { 32 $(".ct-home").on("click",function(){ 33 var params = Array(); 34 params["part"] = "header-logo"; 35 params["link"] = ""; 36 insert_ajax_by_param(params, "header"); 37 }); 38 39 $(".member-sec>a").on("click",function(){ 40 if ($(this).attr("id")!= undefined){ 41 var postion = $(this).attr("id").trim(); 42 var params = Array(); 43 if (postion.includes("login")){ 44 params["part"] = "login"; 45 params["link"] = ""; 46 insert_ajax_by_param(params, "header"); 47 } 48 else if (postion.includes("myhr")){ 49 params["part"] = "myhr"; 50 params["link"] = ""; 51 insert_ajax_by_param(params, "header"); 52 } 53 else if (postion.includes("reg")){ 54 params["part"] = "reg"; 55 params["link"] = ""; 56 insert_ajax_by_param(params, "header"); 57 } 58 } 59 }); 60 61 //member prof 62 $(".prof-links>li").on("click",function(){ 63 var postion = $(this).attr("class"); 64 var params = Array(); 65 params["part"] = postion; 66 params["link"] = ""; 67 insert_ajax_by_param(params, "header"); 68 }); 69 70 //main nav 71 $(".visible-links>li, .hidden-links>li").on("click",function(){ 72 var params = Array(); 73 var postion = $(this).children("a").attr("class"); 74 if (postion == "lang") { 75 params["lang"] = $(this).text().includes("Eng") ? "E" : "C"; 76 } 77 params["part"] = postion; 78 params["link"] = ""; 79 insert_ajax_by_param(params, "header"); 80 }); 81 82 //sub nav 83 $(".visible-links>li>ul>li, .hidden-links>li>ul>li").on("click",function(){ 84 var params = Array(); 85 var postion = $(this).children("a").attr("href"); 86 params["part"] = postion; 87 params["link"] = ""; 88 insert_ajax_by_param(params, "header"); 89 }); 90 91 /* 92 $(".visible-links .lang").on("click", function(){ 93 var params = Array(); 94 if ($(this).text().includes("Eng")) 95 params["lang"] = "E"; 96 else 97 params["lang"] = "C"; 98 insert_ajax_by_param(params, "lang-switch"); 99 }); 100 */ 101 102 //cv reminder popup 103 $("div.extractcv--cta-head > a").on("click", function(){ 104 var params = Array(); 105 var postion = ""; 106 if($(this).attr("class").includes("upload")) 107 { 108 postion = "upload_cv_reminder_popup_close" 109 }else 110 { 111 postion = "update_cv_reminder_popup_close" 112 } 113 params["part"] = postion; 114 params["link"] = ""; 115 insert_ajax_by_param(params, "header"); 116 }); 117 118 $("div.extractcv--cta-footer > a button").on("click", function(){ 119 var params = Array(); 120 var postion = ""; 121 if($(this).attr("class").includes("upload")) 122 { 123 postion = "upload_cv_reminder_popup_btn" 124 }else 125 { 126 postion = "update_cv_reminder_popup_btn" 127 } 128 params["part"] = postion; 129 params["link"] = ""; 130 insert_ajax_by_param(params, "header"); 131 }); 132 133 function insert_ajax_by_param(obj, component){ 134 //Language switch 135 if (component == "header" && obj["part"] == "lang") { 136 var lang = obj["lang"]; 137 insertLogAction('click','header','language-switch',lang); 138 } 139 else { 140 part = obj["part"]; 141 link = obj["link"]; 142 insertLogAction('click',component,part + link,''); 143 } 144 } 145});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.