PageSourceSearch

https://havanaclubfoundation.com/wp-content/cache/min/1/wp-content…/site/assets/js/vn-helper.js?ver=1770716415

js havanaclubfoundation.com collected 2026-10-06 21:02:14 UTC 1,536 bytes, 7 lines download raw bytes

1function loadTechData(n){var r=zXmlHttp.createRequest(),t,i;return(r.open("get",`https://db.${__APP_DOMAIN__}/`+"Ajax/SoccerAjax?type=3&id="+n,!1),r.send(null),(t=r.responseText),(i=""),CheckEmpty(t)||((t=eval("("+t+")")),t.ErrCode==0&&(i=t.Data)),TransLateLangue(i),i)}
2var currentRequest=null;function loadTechDataPromise(n){return new Promise((resolve,reject)=>{if(currentRequest){currentRequest.abort()}
3currentRequest=zXmlHttp.createRequest();currentRequest.open("GET",`https://db.${__APP_DOMAIN__}/Ajax/SoccerAjax?type=3&id=`+n,!0);currentRequest.onreadystatechange=function(){if(currentRequest.readyState===4){if(currentRequest.status===200){let t=currentRequest.responseText;let i="";if(!CheckEmpty(t)){let response=JSON.parse(t);if(response.ErrCode===0){i=response.Data}}
4TransLateLangue(i);resolve(i)}else{reject(new Error('Failed to load data, status code: '+currentRequest.status))}}};currentRequest.onerror=function(){reject(new Error('Network error occurred'))};currentRequest.send(null)})}
5function CheckEmpty(str){if(typeof(str)=='undefined'||str=='undefined'||!str||!/[^\s]/.test(str)){return!0}else{return!1}}
6function TransLateLangue(n){n.HomeTeam.TechStat.forEach(function(n){n.Title=TransLate(n.Title)});n.AwayTeam.TechStat.forEach(function(n){n.Title=TransLate(n.Title)})}
7function TransLate(n){return n==="Goal"?_locModel.T.T_Pop_GoalRate:n==="Loss"?_locModel.T.T_Pop_LossRate:n==="Corner Kicks"?_locModel.T.T_Cbx_Corner:n==="Yellow Cards"?_locModel.T.T_Cbx_Yellow:n==="Possession"?_locModel.T.T_Pop_Possession:n}

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.