";
$(".schedule_detail_ad").append(addhtml);
}
});
} else {
document.getElementById('di'+div_id).style.display = 'none';
document.getElementById('di'+div_id).innerHTML = '';
if (game_category == 'pt1') {
$('#db'+div_id).attr('class', 'a14');
} else if (game_category == 'gl1') {
$('#db'+div_id).removeClass('active');
} else {
$('#db'+div_id).attr('src', "https://storage.wisetoto.com" + '/images/common/btn/btn_detail.jpg');
}
before_game_no = '';
before_div_id = '';
before_detail_tab = '';
}
}
function get_gameinfo_body(tab_type, game_category, game_year, game_round, game_month, game_day, game_info_master_seq, sports, sort) {
var f = document.game_info;
now_sports = sports;
now_sort = sort;
if (
game_category != ''
&& (
(game_category != 'gl1' && game_year != '' && game_round != '' && game_info_master_seq != '')
|| (game_category == 'gl1' && game_year != '' && game_month != '' && game_day != '')
)
) {
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == xhr.DONE) {
if (xhr.status == 200) {
const result = xhr.response;
if ( result.length > 0 ) {
requestToken(result);
}
}
}
}
xhr.open("GET","/util/common/generateNonce.htm", false);
xhr.send(null);
$.ajax({
url:'/util/gameinfo/get_'+tab_type+'_list.htm?game_category='+game_category+'&game_year='+game_year+'&game_round='+game_round+'&game_month='+game_month+'&game_day='+game_day+'&game_info_master_seq='+game_info_master_seq+'&sports='+sports+'&sort='+sort+'&tab_type='+tab_type,
type: 'GET',
dataType: 'html',
timeout: 20000,
beforeSend: function() {
$('#loading_img2').css('display', '');
},
error: function() {
$('#loading_img2').css('display', 'none');
},
success: function(html) {
if (before_div_id != '') {
var di_cache = $('#di' + before_div_id).html();
var _scrollTop = window.scrollY || document.documentElement.scrollTop;
}
document.getElementById('gameinfo_' + game_category).innerHTML = html;
if (before_div_id != '') {
if (document.getElementById('di'+before_div_id) == null) {
before_div_id = null;
} else {
if (game_category == 'pt1') {
$('#db'+before_div_id).attr('class', 'a14o');
} else if (game_category == 'gl1') {
$('#db'+before_div_id).addClass('active');
} else {
$('#db'+before_div_id).attr('src', "https://storage.wisetoto.com" + '/images/common/btn/btn_detail_active.jpg');
}
document.getElementById('di'+before_div_id).style.display = '';
$('#di' + before_div_id).html(di_cache);
if (_scrollTop) window.scrollTo(0, _scrollTop);
}
di_cache = null;
_scrollTop = null;
}
$('#loading_img2').css('display','none');
if (page_type !== 'print') {
clearInterval(intervalHandle);
livegameinfo_run();
} else {
setTimeout(function(){print();}, 300);
}
}
});
}
}
function livegameinfo_run() {
var cache_time = 60;
if (cache_time == '') {
cache_time = 60;
}
intervalHandle = setInterval("get_gameinfo_body('toto','bs5','2019','13','','','21186',now_sports,now_sort);", (cache_time * 1000));
}
function league_filter() {
if ($('.sort a').hasClass('active') === true) {
$('.sort a').removeClass('active');
$('.league_filter').removeClass('active');
set_league_filter();
location.reload();
} else {
$('.sort a').addClass('active');
$('.league_filter').addClass('active');
}
}
function set_filter_chk(chk, sports) {
var before_filter = document.getElementsByName('league_filter_' + sports + '_before')[0];
var chk_list = document.getElementsByName('league_filter_' + sports);
var chk_cnt = chk_list.length;
var tmp_filter = '';
var tmp_arr = before_filter.value.split('|');
var tmp_cnt = tmp_arr.length;
if (chk.checked === true) {
if (chk.value == 'all') {
tmp_filter = 'all';
$('#chk_li_' + chk.id).addClass('checked');
for (var i = 1; i < chk_cnt; i++) {
chk_list[i].checked = true;
$('#chk_li_' + chk_list[i].id).addClass('checked');
}
} else {
if (before_filter.value == 'all') {
tmp_filter = chk.value;
} else if (jQuery.inArray(chk.value, tmp_arr) < 0) {
tmp_filter = before_filter.value + '|' + chk.value;
} else {
tmp_filter = before_filter.value;
}
$('#chk_li_' + chk.id).addClass('checked');
}
} else {
if (chk.value == 'all') {
tmp_filter = '';
$('#chk_li_' + chk.id).removeClass('checked');
for (var i = 1; i < chk_cnt; i++) {
chk_list[i].checked = false;
$('#chk_li_' + chk_list[i].id).removeClass('checked');
}
} else {
chk_list[0].checked = false;
$('#chk_li_' + chk_list[0].id).removeClass('checked');
if (before_filter.value == 'all') {
for (var i = 1; i < chk_cnt; i++) {
if (chk_list[i].checked === true) tmp_filter+= '|' + chk_list[i].value;
}
} else if (jQuery.inArray(chk.value, tmp_arr) < 0) {
tmp_filter = before_filter.value;
} else {
for (var i = 0; i < tmp_cnt; i++) {
if (tmp_arr[i] != '' && tmp_arr[i] != chk.value) tmp_filter+= '|' + tmp_arr[i];
}
}
$('#chk_li_' + chk.id).removeClass('checked');
}
}
before_filter.value = tmp_filter;
}
function set_league_filter() {
var sc_filter = document.getElementsByName('league_filter_sc_before')[0].value;
var bs_filter = document.getElementsByName('league_filter_bs_before')[0].value;
var bk_filter = document.getElementsByName('league_filter_bk_before')[0].value;
var vl_filter = document.getElementsByName('league_filter_vl_before')[0].value;
var ft_filter = document.getElementsByName('league_filter_ft_before')[0].value;
var hk_filter = document.getElementsByName('league_filter_hk_before')[0].value;
var es_filter = document.getElementsByName('league_filter_es_before')[0].value;
var data = {
sc : sc_filter,
bs : bs_filter,
bk : bk_filter,
vl : vl_filter,
ft : ft_filter,
hk : hk_filter,
es : es_filter
}
var json_data = JSON.stringify(data);
document.cookie = "league_filter=" + escape(json_data) + "; path=/;";
}
function get_league_filter() {
var x, y;
var val = document.cookie.split(';');
var json_data = '';
for (var i = 0; i < val.length; i++) {
x = val[i].substr(0, val[i].indexOf('='));
y = val[i].substr(val[i].indexOf('=') + 1);
x = x.replace(/^\s+|\s+$/g, ''); // 앞과 뒤의 공백 제거하기
if (x == 'league_filter') {
json_data = unescape(y); // unescape로 디코딩 후 값 리턴
break;
}
}
}
// 리그, 선수 탭 클릭
function rank_tab_chagne(type) {
if (type == 'team') {
$('#teams_rank').addClass('active');
$('#team_li').addClass('active');
$('#players_rank').removeClass('active');
$('#player_li').removeClass('active');
} else {
$('#teams_rank').removeClass('active');
$('#team_li').removeClass('active');
$('#players_rank').addClass('active');
$('#player_li').addClass('active');
}
}
// 야구 타자 기록
function player_rank_bs_b(sector, thisclass, league_info_seq, league_rank_seq) {
if (thisclass != 'active') {
$('#batter_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_bs_b.htm?sector='+sector+'&active='+active+'&league_info_seq='+league_info_seq+'&league_rank_seq='+league_rank_seq,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_b').remove();
$("#players_rank_batter").append(html);
}
});
}
}
// 야구 투수 기록
function player_rank_bs_p(sector, thisclass, league_info_seq, league_rank_seq, schedule_info_seq) {
if (thisclass != 'active') {
$('#pitcher_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_bs_p.htm?sector='+sector+'&active='+active+'&league_info_seq='+league_info_seq+'&league_rank_seq='+league_rank_seq+'&schedule_info_seq='+schedule_info_seq,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_p').remove();
$("#players_rank_pitcher").append(html);
}
});
}
}
// 농구 선수기록
function player_rank_bk(sector, thisclass, league_rank_seq) {
if (thisclass != 'active') {
$('#bk_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_bk.htm?sector='+sector+'&active='+active+'&league_rank_seq='+league_rank_seq,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_b').remove();
$("#players_rank").append(html);
}
});
}
}
// 배구 선수기록
function player_rank_vl(sector, thisclass, league_rank_seq) {
if (thisclass != 'active') {
$('#vl_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_vl.htm?sector='+sector+'&active='+active+'&league_rank_seq='+league_rank_seq,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_v').remove();
$("#players_rank").append(html);
}
});
}
}
// 하키 선수기록
function player_rank_hk(sector, thisclass, league_rank_seq, record_page_value, orderby) {
if (thisclass != 'active') {
$('#hk_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_hk.htm?sector='+sector+'&active='+active+'&league_rank_seq='+league_rank_seq+'&record_page_value='+record_page_value+'&orderby='+orderby,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_h').remove();
$("#players_rank_player").append(html);
}
});
} else if (thisclass == 't') {
var active = 't';
}
}
// 하키 골리 선수기록
function player_rank_hk_gk(sector, thisclass, league_rank_seq) {
if (thisclass != 'active') {
$('#hk_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_hk_gk.htm?sector='+sector+'&active='+active+'&league_rank_seq='+league_rank_seq,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_hk_gk').remove();
$("#players_rank_gk").append(html);
}
});
}
}
// 풋볼 선수기록
function player_rank_ft(sector, thisclass, league_rank_seq, position) {
if (thisclass != 'active') {
$('#hk_'+sector).addClass('active');
var active = 'y';
$.ajax({
url:'/util/gameinfo/get_player_rank_ft.htm?sector='+sector+'&active='+active+'&league_rank_seq='+league_rank_seq+'&position='+position,
type: 'GET',
dataType: 'html',
timeout: 10000, //10초이상 응답 없을 경우 에러 처리
error: function(){
},
success: function(html) {
$('#players_rank_f').remove();
$("#players_rank").append(html);
}
});
}
}
function tr(home_team_info_seq,away_team_info_seq,game_date,target) {
popupOpen_D('/gameinfo/team_record.htm?game_category=pt1&home_team_info_seq='+home_team_info_seq+'&away_team_info_seq='+away_team_info_seq+'&game_date='+game_date+'&target='+target,'','1023','620','no','yes');
}
function rs(game_year,game_round,game_no,sports,rate_type,game_result, handicap_yn) {
popupOpen_D('/gameinfo/pt1_rate_stats.htm?game_year='+game_year+'&game_round='+game_round+'&game_no='+game_no+'&sports='+sports+'&rate_type='+rate_type+'&game_result='+game_result+'&handicap_yn='+handicap_yn,'','1096','620','no','yes');
}
// 와이즈센터 팝업 함수
function wisecenter_open(url,game_id,league_info_seq,sports) {
// 그래픽중계 제외 리그 이거나 그래픽 중계 유지 = n
$.post( "/util/etc/livematch_check.htm", { game_id: game_id, league_info_seq: league_info_seq }, function(data) {
var json = JSON.parse(data);
if ( json.msg.length > 0 && json.sir == 'n') {
alert(json.msg);
} else {
if (game_id == null || game_id =='')
{
alert('데이터 제공전 입니다.');
} else {
popupOpen_wise(url+game_id,'wisecenter'+game_id,'1100','730','760');
}
}
});
}
// 와이즈센터 리그 순위 툴팁 오버
function tooltip_mouseover(e) {
e.addClass('active');
}
// 와이즈센터 리그 순위 툴팁 호버
function tooltip_mouseleave(e) {
e.removeClass('active');
}
function requestToken(str) {
const xhr = new XMLHttpRequest();
xhr.open("GET","/util/common/requestToken.htm", false);
xhr.setRequestHeader("X-Requested-Token", str);
xhr.send(null);
}
발매기간 : 2019-05-13 09:30 ~ 2019-05-14 18:20
이전
다음
발매기간 : 2019-05-13 09:30 ~ 2019-05-14 18:20
이전
다음
발매기간 : 2019-05-13 09:30 ~ 2019-05-14 18:20
이전
다음
발매기간 : 2019-05-13 09:30 ~ 2019-05-14 18:20
이전
다음
발매기간 : 2019-05-13 09:30 ~ 2019-05-14 18:20
이전
다음
발매기간 : 2019-05-13 09:30 ~ 2019-05-14 18:20
이전
다음
배당률 및 환급금 정보 |
[배당률] 더:884.2배 / 트:82,272.7배 |
※ 본 정보는 공식집계 결과가 아닌 가집계 결과입니다. 공식 배당률 및 결과는 스포츠토토에서 최종 확인하시기 바랍니다.