24直播网【月关】推荐实时篮球免费直播在线直播,提供全天不间断24小时篮球直播免费观看直播在线,本站郑重承诺全场篮球直播赛程安排在线免费观看篮球直播网站精准的NBA篮球赛事预测分析稳定的篮球直播信号源高清无延迟不卡顿的直播画质带您畅享每一场精彩的NBA比赛!
当前位置:
document.cookie = cookieString; } function page_access(e, j=0) { if (e.preventDefault) { e.preventDefault(); } else { e.returnValue = false; // 兼容IE } if (e.stopPropagation) { e.stopPropagation(); } else { e.cancelBubble = true; // 兼容IE } if (j===1) { var xhr = new XMLHttpRequest(); xhr.open('GET', '/statistic/zhiboclick', true); xhr.responseType = 'json'; xhr.send(); } // 获取元素 const element = e.currentTarget || e.target; // 获取URL并跳转 const url = element.getAttribute('page-data'); if (url) { window.location.href = url; } return false; } document.querySelectorAll('.liver_open_url').forEach(item => { item.addEventListener('click', function() { const url = this.getAttribute('title'); ECMSSetCookie('vlu', url); const CTM = Math.floor(new Date().getTime()/1000); const API_HOST = window.location.host; const API_PATH = url; const REFERRER = window.location.href; const UA = navigator.userAgent; const API_ROUTE_TJ = '//' + API_HOST +'/statistic/tj'; fetch(API_ROUTE_TJ, { method: 'POST', headers: { 'Accept': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ 'h': API_HOST, 'r': REFERRER, 't': CTM, 'p': API_PATH, 'u': UA, 'e': 1, 'l': 2 }) }) .then(response => { if (response.ok) { return response.json().catch(() => response.text()); } else { throw new Error("请求失败,状态码: " + response.status); } }) .then(data => {console.log('success'); }) .catch(err => { console.error('请求发生错误:', err); }); if (url) { if(url.indexOf('statistic/zhiboclick?d=')>0) { var xhr = new XMLHttpRequest(); xhr.open('GET', '/statistic/zhiboclick', true); xhr.responseType = 'json'; xhr.send(); } window.open(url, '_blank'); } }); });