Will Zalatoris Stats | Data Golf (2024)

') } if (s['data']['category'] != 'Tournaments' & s['data']['category'] != 'Trending Tournaments') { return; } var tttour = s['data']['tour']; if (s['data']['tour'] == 'pga' & s['data']['t_num'] == 14) { var tttour = 'masters'; } if (s['data']['tour'] == 'pga' & s['data']['t_num'] == 26) { var tttour = 'uso'; } if (s['data']['tour'] == 'pga' & s['data']['t_num'] == 33) { var tttour = 'pgachamp'; } if (s['data']['tour'] == 'pga' & s['data']['t_num'] == 100) { var tttour = 'openchamp'; } $('.autocomplete-suggestion[data-index="' + k + '"]').prepend('

') }) }, onSelect: function(suggestion) { if (suggestion['data']['category'] == 'Players' | suggestion['data']['category'] == 'Trending Players') { if (suggestion['data']['amateur'] == 'yes') { window.location.href = "/true-strokes-gained-am?dg_id=" + suggestion['data']['dg_id']; } else { window.location.href = "/player-profiles?dg_id=" + suggestion['data']['dg_id']; } } else { // window.location.href = "/historical-tournament-stats?event_id=" + suggestion['data']['t_num']; if (suggestion['data']['tour'] == 'pga' & (suggestion['data']['t_num'] == '14' | suggestion['data']['t_num'] == '26' | suggestion['data']['t_num'] == '33'| suggestion['data']['t_num'] == '100')) { window.location.href = '/past-results/majors/' + suggestion['data']['t_num']; } else if (suggestion['data']['category'] == 'Trending Tournaments') { window.location.href = '/past-results/' + suggestion['data']['tour'].replace('pga', 'pga-tour').replace('liv', 'liv-golf').replace('euro', 'european-tour').replace('kft', 'korn-ferry-tour') + '/' + suggestion['data']['t_num']; } else { if (suggestion['data']['t_year'] == 3023) { window.location.href = '/past-results/' + suggestion['data']['tour'].replace('pga', 'pga-tour').replace('liv', 'liv-golf').replace('euro', 'european-tour').replace('kft', 'korn-ferry-tour') + '/' + suggestion['data']['t_num'] + '/2023B'; } else { window.location.href = '/past-results/' + suggestion['data']['tour'].replace('pga', 'pga-tour').replace('liv', 'liv-golf').replace('euro', 'european-tour').replace('kft', 'korn-ferry-tour') + '/' + suggestion['data']['t_num'] + '/' + suggestion['data']['t_year']; } } } } }); document.addEventListener("DOMContentLoaded", function(){ // make it as accordion for smaller screens if (window.innerWidth > 992) { document.querySelectorAll('.navbar .nav-item').forEach(function(everyitem){ everyitem.addEventListener('mouseover', function(e){ let el_link = this.querySelector('a.nav-link'); if(el_link != null){ let nextEl = el_link.nextElementSibling; el_link.classList.add('show'); nextEl.classList.add('show'); } }); everyitem.addEventListener('mouseleave', function(e){ let el_link = this.querySelector('a.nav-link'); if(el_link != null){ let nextEl = el_link.nextElementSibling; el_link.classList.remove('show'); nextEl.classList.remove('show'); } }) }); } // end if innerWidth }); // DOMContentLoaded endvar sub_expanded = 'none';$('.banner-pop').popover({ trigger: 'manual', html: true, animation: false }) .on('mouseenter', function () { var _this = this; $(this).popover('show'); $('.popover').on('mouseleave', function () { $(_this).popover('hide'); }); }).on('mouseleave', function () { var _this = this; $(_this).popover('hide');});// $('.sub-menu-parent').on('mouseover', function() {// var sub_id = $(this).attr('id');// subsub_timeout = setTimeout(function() {//// $('#' + sub_expanded).removeClass('sub-parent-selected');// $('.' + sub_expanded).css('display', 'none');// sub_expanded = $('#' + sub_id + '.sub-menu-parent').attr('id')// $('#' + sub_id + '.sub-menu-parent').addClass('sub-parent-selected', 0)// $('.' + sub_id).css('display', 'flex');//// }, 350)// })// .on('mouseleave', function() {// clearTimeout(subsub_timeout);//// })$('.sub-menu-parent').on('click', function() { if (sub_expanded != $(this).attr('id')) { $('#' + sub_expanded).removeClass('sub-parent-selected'); $('.' + sub_expanded).css('display', 'none'); sub_expanded = $(this).attr('id') $(this).addClass('sub-parent-selected') $('.' + sub_expanded).css('display', 'flex'); } else { $(this).removeClass('sub-parent-selected') $('.' + sub_expanded).css('display', 'none'); sub_expanded = 'none'; }})// $('#tsg-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('#' + sub_expanded).removeClass('sub-parent-selected');// $('.' + sub_expanded).css('display', 'none');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })//// $('#rankings-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// $('.' + sub_expanded).css('display', 'none');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })//// $('#live-model-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// $('.' + sub_expanded).css('display', 'none');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#pre-preds-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#archives-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#more-preds-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#sg-tool-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#viz-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#more-tools-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// $('#ch-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })//// $('#pga-betting-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })//// $('#euro-betting-parent').on('click', function() {// if (sub_expanded != $(this).attr('id')) {// $('.' + sub_expanded).removeClass('sub-parent-selected');// sub_expanded = $(this).attr('id')// $(this).addClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'block');// } else {// $(this).removeClass('sub-parent-selected')// $('.' + sub_expanded).css('display', 'none');// sub_expanded = 'none';// }// })// BANNER STOP!!! --------------------------------------------------// mini live model!$( document ).ready(function() { if(window.matchMedia("(max-width: 575px)").matches){ $('.banner-lb-banner-container').remove(); if (window.location.pathname == '/player-profiles') { $.ajax({ type: 'GET', url: 'https://letzig.datagolf.com/live-model/get-main-data/mini', dataType: 'jsonp', success: function(response) { var lb_id = reload_data['dg_id']; $.each(response['active'], function(o, t) { if (response[t]['info']['event_name'].replace('LIV ', '').split(' at ')[0] == reload_data['year_data']['last25']['data'][0]['event_name'].split(' at ')[0]) { return; } var pot_lb = response[t]['lb']; $.each(pot_lb, function(b, p) { if (p['d'] == lb_id) { $('.player-name-top').addClass('bump-me-up'); if (p['t'] == 'F') { $('.top-row').append('

' + p['p'] + ' thru R' + response[t]['info']['current_round'] + ' @' + response[t]['info']['event_name'] + '

') } else if (p['p'] == 'CUT' | p['p'] == 'DQ' | p['p'] == 'WD') { $('.top-row').append('

' + p['p'] + ' @' + response[t]['info']['event_name'] + '

') } else if (p['t'].toString().includes(':')) { $('.top-row').append('

' + p['p'] + ' (' + p['t'] + ') @' + response[t]['info']['event_name'] + '

') } else { $('.top-row').append('

' + p['p'] + ' thru ' + p['t'] + ' @' + response[t]['info']['event_name'] + '

') } } }) }) }, error: function(response) { console.log('Data not returned.') $('.banner-lb-banner-container').remove(); } }); } } else { $.ajax({ type: 'GET', url: 'https://letzig.datagolf.com/live-model/get-main-data/mini', dataType: 'jsonp', success: function(response) { gen_mini_lb(response); if (window.location.pathname == '/player-profiles') { var lb_id = reload_data['dg_id']; $.each(response['active'], function(o, t) { if (response[t]['info']['event_name'].replace('LIV ', '').split(' at ')[0] == reload_data['year_data']['last25']['data'][0]['event_name'].split(' at ')[0]) { return; } var pot_lb = response[t]['lb']; $.each(pot_lb, function(b, p) { if (p['d'] == lb_id) { $('.player-name-top').addClass('bump-me-up'); if (p['t'] == 'F') { $('.top-row').append('

' + p['p'] + ' thru R' + response[t]['info']['current_round'] + ' @' + response[t]['info']['event_name'] + '

') } else if (p['p'] == 'CUT' | p['p'] == 'DQ' | p['p'] == 'WD') { $('.top-row').append('

' + p['p'] + ' @' + response[t]['info']['event_name'] + '

') } else if (p['t'].toString().includes(':')) { $('.top-row').append('

' + p['p'] + ' (' + p['t'] + ') @' + response[t]['info']['event_name'] + '

') } else { $('.top-row').append('

' + p['p'] + ' thru ' + p['t'] + ' @' + response[t]['info']['event_name'] + '

') } } }) }) } }, error: function(response) { console.log('Data not returned.') $('.banner-lb-banner-container').remove(); } }); }})function gen_mini_lb(b) { $('.banner-lb-banner-container').on('click', function() { if ($(this).hasClass('banner-lb-banner-container-selected')) { $('.banner-lb-banner-container').removeClass('banner-lb-banner-container-selected'); setTimeout(function() { $('.banner-lb-mini-container').css('display', 'none'); }, 200); $('.banner-lb-mini-inner').animate({'height': 0}, 200); document.cookie = 'mini_lb_open=no;path=/'; } else { $('.banner-lb-banner-container').addClass('banner-lb-banner-container-selected'); $('.banner-lb-mini-container').css('display', 'block'); $('.banner-lb-mini-inner').animate({'height': 400}, 200); document.cookie = 'mini_lb_open=yes;path=/'; } }) $('.wrapper').append('

\

\

Live Leaderboards

\

\

\

\

\ \

\ \

\

\

\

') $('.banner-lb-minimize-button').on('click', function() { $('.banner-lb-banner-container').removeClass('banner-lb-banner-container-selected'); setTimeout(function() { $('.banner-lb-mini-container').css('display', 'none'); }, 200); $('.banner-lb-mini-inner').animate({'height': 0}, 200); document.cookie = 'mini_lb_open=no;path=/'; }) $('.banner-lb-mini-player-search').on('input', function() { var val = $(this).val().toLowerCase(); if (val == '') { $('.banner-lb-datarow').removeClass('hidden-lb-mini-row'); } else { val = val.replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').replace(', ', ',').split(','); $('.banner-lb-datarow').each(function() { var name = $(this).attr('lb-mini-name').toLowerCase(); var any = 0; for (v in val) { if (val[v] == '') { continue; } if (name.includes(val[v])) { $(this).removeClass('hidden-lb-mini-row'); any = 1; } } if (any == 0) { $(this).addClass('hidden-lb-mini-row'); } }) } }) window.onscroll = function() { var s = document.body.scrollTop; $('.banner-lb-mini-inner').css('top', Math.max(5, 45 - s)) }; if (get_cookie_banner('mini_lb_tour') == '') { var banner_tour = b['active'][0]; } else if (b[get_cookie_banner('mini_lb_tour')] == undefined) { var banner_tour = b['active'][0]; } else { var banner_tour = get_cookie_banner('mini_lb_tour'); } // look for special pages and default to that tour var lb_banner_path = window.location.pathname; if (lb_banner_path == '/live-model/pga-tour' | lb_banner_path == '/betting-tool-finish' | lb_banner_path == '/betting-tool-matchups' | lb_banner_path == '/tournament-props' | lb_banner_path == '/fantasy-projections' | lb_banner_path == '/pga-tour-predictions') { var banner_tour = 'pga'; } else if (lb_banner_path == '/live-model/european-tour' | lb_banner_path == '/betting-tool-finish-euro' | lb_banner_path == '/betting-tool-matchups-euro' | lb_banner_path == '/tournament-props-euro' | lb_banner_path == '/fantasy-projections-euro' | lb_banner_path == '/euro-tour-predictions') { var banner_tour = 'euro'; } else if (lb_banner_path == '/live-model/korn-ferry-tour' | lb_banner_path == '/betting-tool-finish-kft' | lb_banner_path == '/betting-tool-matchups-kft' | lb_banner_path == '/tournament-props-kft' | lb_banner_path == '/fantasy-projections-kft' | lb_banner_path == '/korn-ferry-tour-predictions') { var banner_tour = 'kft'; } else if (lb_banner_path == '/live-model/liv-tour' | lb_banner_path == '/betting-tool-finish-alt' | lb_banner_path == '/betting-tool-matchups-alt' | lb_banner_path == '/tournament-props-alt' | lb_banner_path == '/fantasy-projections-alt' | lb_banner_path == '/alt-tour-predictions') { var banner_tour = 'alt'; } if (b[banner_tour] == undefined) { var banner_tour = b['active'][0]; } $.each(b['active'], function(i, t) { if (i != 0) { $('.banner-lb-mini-selection').append('

'); } if (t == banner_tour) { var ec = ' selected-banner-lb-mini-tour'; } else { var ec = ''; } $('.banner-lb-mini-selection').append('

' + t.replace('pga', 'PGA Tour').replace('euro', 'DP World').replace('kft', 'Korn Ferry Tour').replace('alt', 'LIV Golf').replace('opp', 'PGA Tour (Opp)') + '

'); if (t == banner_tour) { if (t == 'pga') { $('.banner-lb-mini-event-name').html('' + b[t]['info']['event_name']) + ''; } else if (t == 'euro') { $('.banner-lb-mini-event-name').html('' + b[t]['info']['event_name']) + ''; } else if (t == 'alt') { $('.banner-lb-mini-event-name').html('' + b[t]['info']['event_name']) + ''; } else if (t == 'kft') { $('.banner-lb-mini-event-name').html('' + b[t]['info']['event_name']) + ''; } else if (t == 'opp') { $('.banner-lb-mini-event-name').html('' + b[t]['info']['event_name']) + ''; } if (b[t]['info']['complete'] == 'yes') { $('.banner-lb-mini-status').addClass('banner-lb-mini-event-complete').html('event complete'); } else { $('.banner-lb-mini-status').html('round ' + b[t]['info']['current_round'] + ''); } $.each(b[t]['lb'], function(p, r) { if (p % 2 == 0) { var drc = ' banner-datarow-evener'; } else { var drc = ''; } var sss = r['s']; if (sss.includes('-')) { var drsc = ' banner-lb-score-under'; } else if (sss == 'E') { var drsc = ' banner-lb-score-even'; } else { var drsc = ''; } var thr = r['t']; if (thr.toString().includes(':')) { var drtc = ' banner-lb-thru-grey'; } else { var drtc = ''; } $('.banner-lb-mini-lb').append('

\

' + r['p'] + '

\

' + r['f'] + ' ' + r['l'] + '

\

' + r['s'] + '

\

' + r['t'] + '

\

' + r['w'] + '

\

') }) } jQuery("time.banner-lb-timeago").timeago(); }) $('.banner-lb-mini-tour-option').on('click', function() { if ($(this).hasClass('selected-banner-lb-mini-tour')) { return; } $('.banner-lb-mini-tour-option').removeClass('selected-banner-lb-mini-tour'); $(this).addClass('selected-banner-lb-mini-tour'); var banner_tour = $(this).attr('id').replace('banner-lb-option-', ''); $('.banner-lb-mini-event-name, .banner-lb-mini-lb, .banner-lb-mini-status').empty(); $('.banner-lb-mini-player-search').val('') if (banner_tour == 'pga') { $('.banner-lb-mini-event-name').html('' + b[banner_tour]['info']['event_name']) + ''; } else if (banner_tour == 'euro') { $('.banner-lb-mini-event-name').html('' + b[banner_tour]['info']['event_name']) + ''; } else if (banner_tour == 'alt') { $('.banner-lb-mini-event-name').html('' + b[banner_tour]['info']['event_name']) + ''; } else if (banner_tour == 'kft') { $('.banner-lb-mini-event-name').html('' + b[banner_tour]['info']['event_name']) + ''; } else if (banner_tour == 'opp') { $('.banner-lb-mini-event-name').html('' + b[banner_tour]['info']['event_name']) + ''; } if (b[banner_tour]['info']['complete'] == 'yes') { $('.banner-lb-mini-status').addClass('banner-lb-mini-event-complete').html('event complete'); } else { $('.banner-lb-mini-status').html('round ' + b[banner_tour]['info']['current_round'] + ''); } jQuery("time.banner-lb-timeago").timeago(); $.each(b[banner_tour]['lb'], function(p, r) { if (p % 2 == 0) { var drc = ' banner-datarow-evener'; } else { var drc = ''; } var sss = r['s']; if (sss.includes('-')) { var drsc = ' banner-lb-score-under'; } else if (sss == 'E') { var drsc = ' banner-lb-score-even'; } else { var drsc = ''; } var thr = r['t']; if (thr.toString().includes(':')) { var drtc = ' banner-lb-thru-grey'; } else { var drtc = ''; } $('.banner-lb-mini-lb').append('

\

' + r['p'] + '

\

' + r['f'] + ' ' + r['l'] + '

\

' + r['s'] + '

\

' + r['t'] + '

\

' + r['w'] + '

\

') }) document.cookie = 'mini_lb_tour=' + banner_tour + ';path=/' }) if (get_cookie_banner('mini_lb_open') == 'yes' & (!lb_banner_path.includes('live-model'))) { $('.banner-lb-banner-container').addClass('banner-lb-banner-container-selected'); $('.banner-lb-mini-container').css('display', 'block'); $('.banner-lb-mini-inner').css({'height': 400}); } else { document.cookie = 'mini_lb_open=no;path=/'; }}function get_cookie_banner(cname) { let name = cname + "="; let decodedCookie = decodeURIComponent(document.cookie); let ca = decodedCookie.split(';'); for(let i = 0; i

Will Zalatoris Stats | Data Golf (2024)

References

Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 5257

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.