$(function() { $('.the-team').hover(function() { $(this).find(".mask-btn").show(); }, function() { $(this).find(".mask-btn").hide(); }) $(".dnl_right").bind("selectstart", function() { return false }); $(".dnl_left").bind("selectstart", function() { return false }) $('.zq-zhibo-open').click(function(){ $('.zq-zhibo-item').toggleclass('open-close'); $('.zq-luxiang-item').toggleclass('open-close'); }); }); $(document).ready(function() { var a = 0; var b; b = $(".temaizq .pic").length; $(".dnl_left").click(function() { if (b > 4) { a++; b = $(".temaizq .pic").length; if (a > b - 4) { $(".scrcont").stop(); a = b - 4; $(".scrcont").css("left", -a * 199) } else { if (a == 1) { $(".scrcont").animate({ left: -a * 199, }, 700) } else { $(".scrcont").animate({ left: -a * 199, }, 700) } } } }); $(".dnl_right").click(function() { if (b > 4) { if (a == 0) { $(".scrcont").stop(); $(".scrcont").css("left", "0px") } else { a--; if (a == 0) { $(".scrcont").animate({ left: 0, }, 700) } else { $(".scrcont").animate({ left: -a * 199, }, 700) } } } }) }); if ($(".zhixinlb").length) { if ($(".zclb_qh").length) { $(this).find(".zhixun_zhong").eq(0).show() }; $(".zx_title li").click(function() { $(this).addclass("zchove").siblings().removeclass("zchove"); $(".zclb_qh").find(".zhixun_zhong").eq($(this).index()).show().siblings().hide() }) }; if ($(".zblist-info").length) { chariqi() }; zhuangtai(); wuxingbs(); function wuxingbs() { var b = getdatestr(0)[0]; var c = math.floor((new date()).gettime() / 1000); var d = $('.temaizq .pic[data-matchtime^=' + b + ']'); $.each(d, function(i, n) { var a = datetounix($(n).attr("data-matchtime")); if (a < c) { $(n).find(".bs_ztai span").removeclass("nobing").html("比赛中") } }); var e = getdatestr(-1)[0]; var f = $('.temaizq .pic[data-matchtime^=' + e + ']'); $.each(f, function(i, n) { $(n).find(".bs_ztai span").html("高清直播") }) }; $(document).ready(function() { setinterval(function() { zhuangtai(); wuxingbs() }, 60000) }); var domainwww = $("body").attr("data-domainwww"); var domainstatic = $("body").attr("data-domainstatic"); var zburl = domainwww + "get/"; var pagezb = 1; var morcan = {}; if ($(".zblist-info").length) { $(".zhibo-more-btn").click(function() { if ($(".zhibo-more-btn").html() != "没有更多数据了") { morcan = {}; morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = $(".zhibo-more-btn").attr("data-sort"); if ($(".zhibo-more-btn").attr("data-sort") == "all") { morcan.page = pagezb; morcan.act = 101 }; if ($(".zhibo-more-btn").attr("data-sort") == "re") { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0 }; if ($(".zhibo-more-btn").attr("data-sort") == 1) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 1 }; if ($(".zhibo-more-btn").attr("data-sort") == 2) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 2 }; if ($(".zhibo-more-btn").attr("data-sort") == 3) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 3 }; if ($(".zhibo-more-btn").attr("data-sort") == 4) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 4 }; zbqhajax(morcan); pagezb += 1 } }) }; $(".content-bottom-left-zb-fllist li").click(function() { pagezb = 1; $(this).addclass("sszhibo-active").siblings().removeclass("sszhibo-active"); $(".zblist-info").html(''); var a = $(this).attr("data-sort"); $(".zhibo-more-btn").attr("data-sort", a); $(".zhibo-more-btn").html("查看更多直播"); zbqhdata(); zbqhajax(qhcan) }); var qhcan = {}; function zbqhdata() { qhcan = {}; if ($(".zhibo-more-btn").attr("data-sort") == "all") { qhcan.act = 101 }; if ($(".zhibo-more-btn").attr("data-sort") == "re") { qhcan.act = 101; qhcan.competid = 1 }; if ($(".zhibo-more-btn").attr("data-sort") == 1) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 1 }; if ($(".zhibo-more-btn").attr("data-sort") == 2) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 2 }; if ($(".zhibo-more-btn").attr("data-sort") == 3) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 3 }; if ($(".zhibo-more-btn").attr("data-sort") == 4) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 4 } }; function zbqhajax(f) { $.ajax({ url: zburl, cache: false, type: 'post', async: false, datatype: 'json', data: f, success: function(r) { var b = r.data.paperlist; var c = r.competitionarr; var d = r.teamarr; if (b != undefined && b.length) { $.each(b, function(i, v) { var a = ''; a ='
  • ' + v.matchtime.substring(11, 16) + '' + v.name + '

    '+ v.title + '高清直播
  • '; $('.zblist-info').append(a) }); chariqi(); zhuangtai(); if ($(".zblist-info").find("li").length >= 30) { $(".zhibo-more-btn").show() } else { $(".zhibo-more-btn").hide() } }; if (b == undefined) { $(".zhibo-more-btn").html("没有更多数据了"); if ($('.zblist-info li').length == 0) { $(".zblist-info").html("
    "); $(".zhibo-more-btn").hide() } } }, error: function(e) {}, }) }; $(".zhankaigjc").click(function() { if ($(this).find("span").html() == "展开") { $(this).siblings(".gjc_rlist").css("height", "auto"); $(this).find("span").html("收起"); $(this).find("cite").addclass("upjiantou") } else { $(this).siblings(".gjc_rlist").css("height", "187px"); $(this).find("span").html("展开"); $(this).find("cite").removeclass("upjiantou") } }); $(".team-open").click(function() { if ($(this).text() == "展开 ﹀") { $("#intro").css("height", "auto"); $(this).text("收起 ︿"); } else { $("#intro").css("height", "20px"); $(this).text("展开 ﹀"); } }); if ($(".zblist-info").find("li").length > 0) { moreshow() }; function moreshow() { var a = $(".zblist-info").find("li").length; if (a >= 30) { $(".zhibo-more-btn").show() } }; if ($(".keywordr").length > 0) { keywordrnav() }; function keywordrnav() { var a = math.floor(($(window).width() - 1220) / 2) - (120); if (a < 0) { $(".keywordr").css("right", "0px") } else { $(".keywordr").css("right", a / 2 + "px") } };