mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
35 lines
918 B
HTML
35 lines
918 B
HTML
<!DOCTYPE html>
|
|
<html {{ HTML_ATTRS }}>
|
|
<head {{ HEAD_ATTRS }}>
|
|
{{ HEAD }}
|
|
</head>
|
|
<body {{ BODY_ATTRS }}>
|
|
{{ APP }}
|
|
<script>
|
|
var _hmt = _hmt || [];
|
|
(function() {
|
|
var hm = document.createElement("script");
|
|
hm.src = "https://hm.baidu.com/hm.js?17dd7dc6178678861e478d02b7a8182e";
|
|
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> |