Web code updated

This commit is contained in:
Vion
2022-01-28 18:19:40 +08:00
parent 61c365c3fc
commit 6725fb9961
11 changed files with 514 additions and 316 deletions

View File

@@ -13,6 +13,23 @@
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
function bindTracking(ele,timeout)
{
var eventName=ele.getAttribute('evt-name');
var eventCat=ele.getAttribute('evt-cat');
var eventVal=ele.getAttribute('evt-val');
var eventParams={};
eventParams[eventCat]=eventVal;
_hmt.push(['_trackEvent', eventName, eventCat, eventVal]); //Baidu Analytics Event Push
if(timeout)
{
setTimeout(function(){
window.location.href=ele.href;
},timeout);
return false;
}
return true;
}
</script>
</body>
</html>