Baseball Practice Drill Library
Welcome to the Marietta Baseball Academy Drill Library! Here, you can browse through our comprehensive collection of baseball practice drill packs. If you're wondering which pack to choose, start with our Most Popular Drill Packs listed below. All our drill packs are available in digital PDF format, ensuring instant access on any computer or mobile device immediately after purchase.
"Battery" Drill Pack
$109.97 TODAY ONLY $49.99
"Defense" Drill Pack
$274.93 TODAY ONLY $149.99150 Practices Drills in Total Plus our bestselling Defensive Situations Guide!
The "Ultimate" Drill Pack
$459.88 TODAY ONLY $199.99 225 Practices Drills in Total Plus all of our bestselling Guides!
Or Choose One of Our Individual Products
Marietta Baseball Academy, LLC 8735 DUNWOODY PLACE # 4622 ATLANTA, GA 30350
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[18233] = {"id":"18233","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"18233","sku":18233,"gpf":"woocommerce_gpf_18233","gla":"gla_18233"},"is_variable":false,"type":"simple","name":"Ultimate Catcher Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[18233]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[18429] = {"id":"18429","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"18429","sku":18429,"gpf":"woocommerce_gpf_18429","gla":"gla_18429"},"is_variable":false,"type":"simple","name":"Ultimate 1B Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[18429]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[18570] = {"id":"18570","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"18570","sku":18570,"gpf":"woocommerce_gpf_18570","gla":"gla_18570"},"is_variable":false,"type":"simple","name":"Ultimate 2B Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[18570]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[18633] = {"id":"18633","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"18633","sku":18633,"gpf":"woocommerce_gpf_18633","gla":"gla_18633"},"is_variable":false,"type":"simple","name":"Ultimate SS Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[18633]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19368] = {"id":"19368","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19368","sku":19368,"gpf":"woocommerce_gpf_19368","gla":"gla_19368"},"is_variable":false,"type":"simple","name":"Ultimate 3B Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19368]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19481] = {"id":"19481","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19481","sku":19481,"gpf":"woocommerce_gpf_19481","gla":"gla_19481"},"is_variable":false,"type":"simple","name":"Ultimate Infield Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19481]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19488] = {"id":"19488","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19488","sku":19488,"gpf":"woocommerce_gpf_19488","gla":"gla_19488"},"is_variable":false,"type":"simple","name":"Ultimate Outfield Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19488]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19496] = {"id":"19496","sku":"","price":149.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19496","sku":19496,"gpf":"woocommerce_gpf_19496","gla":"gla_19496"},"is_variable":false,"type":"simple","name":"Defense Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19496]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19655] = {"id":"19655","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19655","sku":19655,"gpf":"woocommerce_gpf_19655","gla":"gla_19655"},"is_variable":false,"type":"simple","name":"Ultimate Pitching Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19655]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19733] = {"id":"19733","sku":"","price":49.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19733","sku":19733,"gpf":"woocommerce_gpf_19733","gla":"gla_19733"},"is_variable":false,"type":"simple","name":"Battery Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19733]['position'] = window.pmw_product_position++;
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products[19844] = {"id":"19844","sku":"","price":29.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"19844","sku":19844,"gpf":"woocommerce_gpf_19844","gla":"gla_19844"},"is_variable":false,"type":"simple","name":"Ultimate Hitting Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false};
window.pmw_product_position = window.pmw_product_position || 1;
window.wpmDataLayer.products[19844]['position'] = window.pmw_product_position++;
window._wca = window._wca || [];
var wcpayAssets = {"url":"https://mbaseballacademy.com/wp-content/plugins/woocommerce-payments/dist/"};
//# sourceURL=WCPAY_ASSETS-js-extra
https://mbaseballacademy.com/wp-includes/js/dist/hooks.min.js
var breeze_prefetch = {"local_url":"https://mbaseballacademy.com","ignore_remote_prefetch":"1","ignore_list":["/?wc-api=wc_facebook_get_feed_data&secret=829612f3e9f51e2f78c233ec80baaee0","/cart/","/checkout/","/my-account/","wp-admin","wp-login.php"]};
//# sourceURL=breeze-prefetch-js-extra
https://mbaseballacademy.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
https://mbaseballacademy.com/wp-includes/js/jquery/jquery.min.js
var wc_add_to_cart_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_view_cart":"View cart","cart_url":"https://mbaseballacademy.com/cart/","is_cart":"","cart_redirect_after_add":"yes"};
//# sourceURL=wc-add-to-cart-js-extra
var wc_cart_fragments_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","cart_hash_key":"wc_cart_hash_1a8b08e70e9a5d82a1f1b69635ee5008","fragment_name":"wc_fragments_1a8b08e70e9a5d82a1f1b69635ee5008","request_timeout":"5000"};
//# sourceURL=wc-cart-fragments-js-extra
var woocommerce_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_password_show":"Show password","i18n_password_hide":"Hide password"};
//# sourceURL=woocommerce-js-extra
https://mbaseballacademy.com/wp-content/boost-cache/static/52bf6f5a7a.min.js
https://mbaseballacademy.com/wp-includes/js/jquery/ui/datepicker.min.js
jQuery(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});});
//# sourceURL=jquery-ui-datepicker-js-after
var WTSmartCouponOBJ = {"ajaxurl":"https://mbaseballacademy.com/wp-admin/admin-ajax.php","wc_ajax_url":"https://mbaseballacademy.com/?wc-ajax=","nonces":{"public":"160c2d7915","apply_coupon":"e660a97d27"},"labels":{"please_wait":"Please wait...","choose_variation":"Please choose a variation","error":"Error !!!"},"shipping_method":[],"payment_method":"","is_cart":""};
//# sourceURL=wt-smart-coupon-for-woo-js-extra
https://mbaseballacademy.com/wp-content/boost-cache/static/76e259436b.min.js
var wpm = {"ajax_url":"https://mbaseballacademy.com/wp-admin/admin-ajax.php","root":"https://mbaseballacademy.com/wp-json/","nonce_wp_rest":"0bb91dae0f","nonce_ajax":"9320c3a7db"};
//# sourceURL=wpm-js-extra
https://mbaseballacademy.com/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/js/public/wpm-public.p1.min.js
var ConvAioGlobal = {"nonce":"515a680403"};
//# sourceURL=enhanced-ecommerce-google-analytics-js-extra
https://mbaseballacademy.com/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/public/js/con-gtm-google-analytics.js
tvc_smd={"tvc_wcv":"10.8.1","tvc_wpv":"7.0","tvc_eev":"7.2.10","tvc_cnf":{"t_cg":"","t_ec":"","t_ee":"on","t_df":"","t_gUser":"1","t_UAen":"on","t_thr":"6","t_IPA":"1","t_PrivacyPolicy":"1"},"tvc_sub_data":{"sub_id":"73153","cu_id":"63050","pl_id":"1","ga_tra_option":"","ga_property_id":"","ga_measurement_id":"","ga_ads_id":"","ga_gmc_id":"","ga_gmc_id_p":"","op_gtag_js":"0","op_en_e_t":"0","op_rm_t_t":"0","op_dy_rm_t_t":"0","op_li_ga_wi_ads":"0","gmc_is_product_sync":"0","gmc_is_site_verified":"0","gmc_is_domain_claim":"0","gmc_product_count":"0","fb_pixel_id":"","tracking_method":"","user_gtm_id":""}};
//# sourceURL=enhanced-ecommerce-google-analytics-js-after
https://mbaseballacademy.com/wp-content/uploads/breeze/google/gtag.js
!function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js",t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document);rdt('init','a2_ghhos7ekuqgn');rdt('track', 'PageVisit');
var ajaxurl = 'https://mbaseballacademy.com/wp-admin/admin-ajax.php';
document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
(window.wpmDataLayer = window.wpmDataLayer || {}).products = window.wpmDataLayer.products || {};
window.wpmDataLayer.products = Object.assign(window.wpmDataLayer.products, {"20240":{"id":"20240","sku":"","price":199.99,"brand":"","quantity":1,"dyn_r_ids":{"post_id":"20240","sku":20240,"gpf":"woocommerce_gpf_20240","gla":"gla_20240"},"is_variable":false,"type":"simple","name":"Ultimate Drill Pack","category":["Digital Products","Drill Packs"],"is_variation":false}});
window.wpmDataLayer = window.wpmDataLayer || {};
window.wpmDataLayer = Object.assign(window.wpmDataLayer, {"cart":{},"cart_item_keys":{},"version":{"number":"1.49.1","pro":false,"eligible_for_updates":false,"distro":"fms","beta":false,"show":true},"pixels":{"google":{"linker":{"settings":null},"user_id":false,"ads":{"conversion_ids":{"AW-1013353367":"pbh1COqgk6EaEJeXmuMD"},"dynamic_remarketing":{"status":true,"id_type":"post_id","send_events_with_parent_ids":true},"google_business_vertical":"retail","phone_conversion_number":"","phone_conversion_label":""},"tag_id":"AW-1013353367","tag_gateway":{"measurement_path":""},"tcf_support":false,"consent_mode":{"is_active":true,"wait_for_update":500,"ads_data_redaction":false,"url_passthrough":true}}},"shop":{"list_name":"","list_id":"","page_type":"","currency":"USD","selectors":{"addToCart":[],"beginCheckout":[]},"order_duplication_prevention":true,"view_item_list_trigger":{"test_mode":false,"background_color":"green","opacity":0.5,"repeat":true,"timeout":1000,"threshold":0.8},"variations_output":true,"session_active":false},"page":{"id":18999,"title":"Practice Drills","type":"ulpb_post","categories":[],"parent":{"id":0,"title":"Practice Drills","type":"ulpb_post","categories":[]}},"general":{"user_logged_in":false,"scroll_tracking_thresholds":[],"page_id":18999,"exclude_domains":[],"server_2_server":{"active":false,"ip_exclude_list":[],"pageview_event_s2s":{"is_active":false,"pixels":[]}},"consent_management":{"explicit_consent":false},"lazy_load_pmw":false}});
var tvc_lc = 'USD';
var tvc_lc = 'USD';
window.dataLayer = window.dataLayer || [];
dataLayer.push({"event":"begin_datalayer","cov_remarketing":false,"conv_track_email":"1","conv_track_phone":"1","conv_track_address":"1","conv_track_page_scroll":"1","conv_track_file_download":"1","conv_track_author":"1","conv_track_signup":"1","conv_track_signin":"1"});
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://mbaseballacademy.com/wp-content/uploads/breeze/google/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NGTQ2D2P');
(window.gaDevIds = window.gaDevIds || []).push('5CDcaG');
var tvc_lc = 'USD';
var tvc_lc = 'USD';
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://mbaseballacademy.com/wp-content/uploads/breeze/facebook/fbevents.js');
window.FacebookSignals = window.FacebookSignals || {
_held: false,
_releasing: false,
_pixelInitialized: false,
_pixelId: null,
_pixelUserInfo: {},
_pixelOptions: {},
_pendingPixelEvents: [],
_queue: [],
_config: {},
_attribution: {},
_seenEventIds: {},
_fbclid: (function() {
try {
var m = window.location.search.match(/[?&]fbclid=([^&]*)/);
return m ? decodeURIComponent(m[1]) : null;
} catch(e) { return null; }
})(),
init: function(config) {
config = config || {};
this._config = config;
this._attribution = config.attribution || {};
var cookieState = this._getCookie('wc_facebook_signals_state');
this._held = cookieState ? cookieState === 'held' : !!config.held;
this._fbclid = this._fbclid || null;
if (typeof fbq === 'function') {
fbq('consent', this._held ? 'revoke' : 'grant');
}
try {
var raw = window.sessionStorage.getItem('wc_facebook_signals_seen_event_ids');
this._seenEventIds = raw ? JSON.parse(raw) : {};
} catch (e) {
this._seenEventIds = this._seenEventIds || {};
}
},
initPixel: function(pixelId, userInfo, options) {
this._pixelId = pixelId;
this._pixelUserInfo = userInfo && typeof userInfo === 'object' && !Array.isArray(userInfo) ? userInfo : {};
this._pixelOptions = options || {};
if (!this._held) {
this._runPixelInit();
}
},
_runPixelInit: function() {
if (this._pixelInitialized || !this._pixelId || typeof fbq !== 'function') return;
fbq('init', this._pixelId, this._pixelUserInfo, this._pixelOptions);
this._pixelInitialized = true;
this._flushPendingPixelEvents();
},
_flushPendingPixelEvents: function() {
var pending = this._pendingPixelEvents;
this._pendingPixelEvents = [];
for (var i = 0; i < pending.length; i++) {
var ev = pending[i];
this._firePixelEvent(ev.name, ev.params, ev.method, ev.eventId);
}
},
_fireOrQueuePixelEvent: function(name, params, method, eventId) {
if (!this._pixelInitialized) {
this._pendingPixelEvents.push({
name: name, params: params || {}, method: method || 'track', eventId: eventId || null
});
return;
}
this._firePixelEvent(name, params || {}, method || 'track', eventId || null);
},
_firePixelEvent: function(name, params, method, eventId) {
method = method || 'track';
if (eventId) {
fbq(method, name, params || {}, { eventID: eventId });
} else {
fbq(method, name, params || {});
}
},
queueEvent: function(eventData) {
if (!eventData || !eventData.event_name) return;
var originalId = eventData.event_id || null;
if (originalId && this._seenEventIds[originalId]) return;
if (!this._held) {
this._fireOrQueuePixelEvent(eventData.event_name, eventData.custom_data || {}, eventData.method || 'track', originalId);
return;
}
eventData = this._cloneEventData(eventData);
eventData.event_id = this._generateEventId();
eventData.event_time = eventData.event_time || Math.floor(Date.now() / 1000);
this._queue.push(eventData);
var idToMark = originalId || eventData.event_id;
if (idToMark) {
this._seenEventIds[idToMark] = 1;
try {
window.sessionStorage.setItem(
'wc_facebook_signals_seen_event_ids',
JSON.stringify(this._seenEventIds)
);
} catch (e) {}
}
},
trackEvent: function(name, params, userData, method, eventId) {
method = method || 'track';
eventId = eventId || (params && params.eventID) || null;
if (this._held) {
this.queueEvent({
event_name: name,
custom_data: params || {},
event_id: eventId,
event_time: Math.floor(Date.now() / 1000),
method: method
});
} else {
this._fireOrQueuePixelEvent(name, params || {}, method, eventId);
}
},
release: function() {
var self = this;
if (!self._held || self._releasing || !self._config.ajaxUrl) {
return Promise.resolve({ success: true, data: { sent_count: 0 } });
}
self._releasing = true;
var attribution = self._collectAttribution();
var payload = JSON.stringify({
events: self._queue,
attribution: {
fbp: attribution.fbp || null,
fbc: attribution.fbc || null
},
fbclid: self._fbclid || null
});
var url = self._config.ajaxUrl +
(self._config.ajaxUrl.indexOf('?') === -1 ? '?' : '&') +
'action=' + encodeURIComponent(self._config.action);
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.open('POST', url, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.onload = function() {
if (xhr.status >= 200 && xhr.status < 300) {
try {
var resp = JSON.parse(xhr.responseText);
self._handleReleaseResponse(resp.data || {}, attribution);
resolve(resp);
} catch(e) { self._releasing = false; reject(e); }
} else {
self._releasing = false;
reject(new Error('Signal release AJAX failed: ' + xhr.status));
}
};
xhr.onerror = function() { self._releasing = false; reject(new Error('Network error')); };
xhr.send(payload);
});
},
_handleReleaseResponse: function(data, attribution) {
this._syncAttributionCookies(data || {}, attribution);
// Override cached user_info with fresh data from the release response.
if (data.user_info && typeof data.user_info === 'object' && !Array.isArray(data.user_info)) {
this._pixelUserInfo = data.user_info;
}
this._held = false;
this._releasing = false;
fbq('consent', 'grant');
this._runPixelInit();
var queue = this._queue;
for (var i = 0; i < queue.length; i++) {
var ev = queue[i];
this._fireOrQueuePixelEvent(ev.event_name, ev.custom_data || {}, ev.method || 'track', ev.event_id || null);
}
this._queue = [];
},
_collectAttribution: function() {
var clientParams = {};
if (typeof clientParamBuilder !== 'undefined') {
try {
clientParams = clientParamBuilder.processAndCollectParams(this._getAttributionUrl()) || {};
} catch (e) {}
}
var fbp = this._getCookie('_fbp') || clientParams._fbp || (typeof clientParamBuilder !== 'undefined' ? clientParamBuilder.getFbp() : null);
var fbc = this._getCookie('_fbc') || clientParams._fbc || (typeof clientParamBuilder !== 'undefined' ? clientParamBuilder.getFbc() : null);
if (!fbc && this._fbclid) {
fbc = 'fb.1.' + Date.now() + '.' + this._fbclid;
}
return { fbp: fbp || null, fbc: fbc || null };
},
_syncAttributionCookies: function(data, attribution) {
var fbp = data.fbp || (attribution && attribution.fbp) || null;
var fbc = data.fbc || (attribution && attribution.fbc) || null;
if (fbp) {
this._setAttributionCookie('_fbp', fbp, data.fbp_domain || null);
}
if (fbc) {
this._setAttributionCookie('_fbc', fbc, data.fbc_domain || null);
}
},
_setAttributionCookie: function(name, value, domain) {
if (!value) return;
var domainAttr = domain ? ';domain=' + domain : '';
document.cookie = name + '=' + encodeURIComponent(value) + ';path=/;max-age=7776000' + domainAttr + ';SameSite=Lax';
},
_getCookie: function(name) {
var match = document.cookie.match(new RegExp('(?:^|;\\s*)' + name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '=([^;]*)'));
if (!match) return null;
try { return decodeURIComponent(match[1]); } catch(e) { return null; }
},
_cloneEventData: function(eventData) {
var clone = {};
for (var key in eventData) {
if (Object.prototype.hasOwnProperty.call(eventData, key)) {
clone[key] = eventData[key];
}
}
return clone;
},
_generateEventId: function() {
if (window.crypto && typeof window.crypto.randomUUID === 'function') {
return window.crypto.randomUUID();
}
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16 | 0;
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
},
_getAttributionUrl: function() {
if (!this._fbclid) return window.location.href;
try {
var url = new URL(window.location.href);
if (!url.searchParams.get('fbclid')) {
url.searchParams.set('fbclid', this._fbclid);
}
return url.toString();
} catch (e) {
return window.location.href;
}
}
};
FacebookSignals.init({
held: false,
ajaxUrl: "https:\/\/mbaseballacademy.com\/wp-admin\/admin-ajax.php",
action: 'facebook_release_signals',
pixelId: "2846271042179391",
attribution: {}
});
FacebookSignals.initPixel(
"2846271042179391",
{},
{"agent":"woocommerce_6-10.8.1-3.7.1"} );
document.addEventListener( 'DOMContentLoaded', function() {
document.body.insertAdjacentHTML( 'beforeend', '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
}, false );
( function( w, d, s, l, i ) {
w[l] = w[l] || [];
w[l].push( {'gtm.start': new Date().getTime(), event: 'gtm.js'} );
var f = d.getElementsByTagName( s )[0],
j = d.createElement( s ), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://mbaseballacademy.com/wp-content/uploads/breeze/google/gtm.js?id=' + i + dl;
f.parentNode.insertBefore( j, f );
} )( window, document, 'script', 'dataLayer', 'GTM-PX3FVZGB' );
tvc_js = new TVC_GTM_Enhanced({"affiliation":"Marietta Baseball Academy","is_admin":"","tracking_option":"","property_id":"","measurement_id":"","google_ads_id":"","fb_pixel_id":"","fb_event_id":"2c3f05185fe74c4f8f52a519bc8c83cd","tvc_ajax_url":"https:\/\/mbaseballacademy.com\/wp-admin\/admin-ajax.php","is_global_fs_enabled":null});
/*
* Contact form 7 - formSubmit event
*/
var wpcf7Elm = document.querySelector('.wpcf7');
if (wpcf7Elm) {
wpcf7Elm.addEventListener('wpcf7submit', function(event) {
if (event.detail.status == 'mail_sent') {
tvc_js.formsubmit_cf7_tracking(event);
}
}, false);
}
/*
* Global - jjQuery event handler that is triggered when an AJAX request completes successfully.
*/
jQuery(document).ajaxSuccess(function(event, xhr, settings) {
// WpForm - formSubmit event
if (settings.data instanceof FormData) {
var formdata = [];
for (var pair of settings.data.entries()) {
if ('form_id' in formdata && 'action' in formdata)
break;
if (pair[0] == 'wpforms[id]')
formdata['form_id'] = pair[1];
if (pair[0] == 'action' && pair[1] == 'wpforms_submit')
formdata['action'] = pair[1];
}
if (formdata['action'] == 'wpforms_submit' && settings.data != 'action=datalayer_push') {
var data = [];
tvc_js.formsubmit_ajax_tracking(formdata);
return;
}
}
});
document.addEventListener('DOMContentLoaded', function() {
var downloadLinks = document.querySelectorAll('a[href]');
downloadLinks.forEach(function(link) {
link.addEventListener('click', function(event) {
var fileUrl = link.href;
var fileName = fileUrl.substring(fileUrl.lastIndexOf('/') + 1);
var linkText = link.innerText || link.textContent;
var linkUrl = link.href;
var fileExtensionPattern = /\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pptx?|ppt|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/i;
if (fileExtensionPattern.test(fileUrl)) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'file_download',
file_name: fileName,
link_text: linkText,
link_url: linkUrl
});
}
});
});
});
window.addEventListener( 'load', function() {
document.querySelectorAll( 'link' ).forEach( function( e ) {'not all' === e.media && e.dataset.media && ( e.media = e.dataset.media, delete e.dataset.media );} );
var e = document.getElementById( 'jetpack-boost-critical-css' );
e && ( e.media = 'not all' );
} );
window.dataLayer = window.dataLayer || [];
dataLayer.push({ecommerce: null});
dataLayer.push({"event":"view_item_list","ecommerce":{"items":[{"item_id":"18233","item_name":"Ultimate Catcher Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":1,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"18429","item_name":"Ultimate 1B Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":2,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"18570","item_name":"Ultimate 2B Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":3,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"18633","item_name":"Ultimate SS Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":4,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"19368","item_name":"Ultimate 3B Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":5,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"19481","item_name":"Ultimate Infield Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":6,"item_category":"Drill Packs","price":29.99,"quantity":1}]}});
window.dataLayer = window.dataLayer || [];
dataLayer.push({ecommerce: null});
dataLayer.push({"event":"view_item_list","ecommerce":{"items":[{"item_id":"19488","item_name":"Ultimate Outfield Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":7,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"19496","item_name":"Defense Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":8,"item_category":"Drill Packs","price":149.99,"quantity":1},{"item_id":"19655","item_name":"Ultimate Pitching Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":9,"item_category":"Drill Packs","price":29.99,"quantity":1},{"item_id":"19733","item_name":"Battery Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":10,"item_category":"Drill Packs","price":49.99,"quantity":1},{"item_id":"19844","item_name":"Ultimate Hitting Drill Pack","affiliation":"Marietta Baseball Academy","currency":"USD","index":11,"item_category":"Drill Packs","price":29.99,"quantity":1}]}});
window.conProductList = window.productList || [];
conProductList.push([{"id":"18233","name":"Ultimate Catcher Drill Pack","sku":"18233","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-catcher-drill-pack\/","listname":"General Product List","listposition":1},{"id":"18429","name":"Ultimate 1B Drill Pack","sku":"18429","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-1b-drill-pack\/","listname":"General Product List","listposition":2},{"id":"18570","name":"Ultimate 2B Drill Pack","sku":"18570","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-2b-drill-pack\/","listname":"General Product List","listposition":3},{"id":"18633","name":"Ultimate SS Drill Pack","sku":"18633","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-ss-drill-pack\/","listname":"General Product List","listposition":4},{"id":"19368","name":"Ultimate 3B Drill Pack","sku":"19368","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-3b-drill-pack\/","listname":"General Product List","listposition":5},{"id":"19481","name":"Ultimate Infield Drill Pack","sku":"19481","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-infield-drill-pack\/","listname":"General Product List","listposition":6},{"id":"19488","name":"Ultimate Outfield Drill Pack","sku":"19488","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-outfield-drill-pack\/","listname":"General Product List","listposition":7},{"id":"19496","name":"Defense Drill Pack","sku":"19496","category":"Drill Packs","price":149.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/defense-drill-pack\/","listname":"General Product List","listposition":8},{"id":"19655","name":"Ultimate Pitching Drill Pack","sku":"19655","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-pitching-drill-pack\/","listname":"General Product List","listposition":9},{"id":"19733","name":"Battery Drill Pack","sku":"19733","category":"Drill Packs","price":49.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/battery-drill-pack\/","listname":"General Product List","listposition":10},{"id":"19844","name":"Ultimate Hitting Drill Pack","sku":"19844","category":"Drill Packs","price":29.99,"stocklevel":null,"productlink":"https:\/\/mbaseballacademy.com\/product\/ultimate-hitting-drill-pack\/","listname":"General Product List","listposition":11}]);
window.addEventListener('load', call_tvc_enhanced_1ist_product, true);
function call_tvc_enhanced_1ist_product() {
tvc_js = new TVC_GTM_Enhanced({"affiliation":"Marietta Baseball Academy","is_admin":"","currency":"USD","tracking_option":"","property_id":"","measurement_id":"","google_ads_id":"","fb_pixel_id":"","fb_event_id":"cf96de764ec5463d8767bb377877f7e2","tvc_ajax_url":"https:\/\/mbaseballacademy.com\/wp-admin\/admin-ajax.php","snapchat_ads_pixel_id":"","linkedin_insight_id":"","snapchat_event_id":"6a30d0a423c63","tiKtok_ads_pixel_id":"","tiktok_event_id":"6a30d0a423c66"});
tvc_js.ListProductaddToCartEventBindings();
tvc_js.ListProductSelectItemEventBindings();
}
document.addEventListener( 'wpcf7submit', function (event) {
fbq('init', '2846271042179391', {}, {
"agent": "woocommerce_6-10.8.1-3.7.1"
});
/* WooCommerce Facebook Integration Event Tracking */
fbq('set', 'agent', 'woocommerce_6-10.8.1-3.7.1', '2846271042179391');
if (window.FacebookSignals && typeof window.FacebookSignals.trackEvent === 'function') {
window.FacebookSignals.trackEvent('Lead', {
"source": "woocommerce_6",
"version": "10.8.1",
"pluginVersion": "3.7.1"
}, null, 'track', null);
} else if (null) {
fbq('track', 'Lead', {
"source": "woocommerce_6",
"version": "10.8.1",
"pluginVersion": "3.7.1"
}, { eventID: null });
} else {
fbq('track', 'Lead', {
"source": "woocommerce_6",
"version": "10.8.1",
"pluginVersion": "3.7.1"
});
} }, false );
https://mbaseballacademy.com/wp-includes/js/dist/i18n.min.js
wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
//# sourceURL=wp-i18n-js-after
https://mbaseballacademy.com/wp-content/boost-cache/static/a2b1177c47.min.js
var wpcf7 = {
"api": {
"root": "https:\/\/mbaseballacademy.com\/wp-json\/",
"namespace": "contact-form-7\/v1"
},
"cached": 1
};
//# sourceURL=contact-form-7-js-before
https://mbaseballacademy.com/wp-content/plugins/contact-form-7/includes/js/index.js
var somdn_script_params = {"somdn_qview_active":""};
//# sourceURL=somdn-script-js-extra
https://mbaseballacademy.com/wp-content/boost-cache/static/56097e3043.min.js
https://mbaseballacademy.com/wp-includes/js/dist/vendor/react.min.js
https://mbaseballacademy.com/wp-includes/js/dist/vendor/react-jsx-runtime.min.js
https://mbaseballacademy.com/wp-includes/js/dist/deprecated.min.js
https://mbaseballacademy.com/wp-includes/js/dist/dom.min.js
https://mbaseballacademy.com/wp-includes/js/dist/vendor/react-dom.min.js
https://mbaseballacademy.com/wp-includes/js/dist/escape-html.min.js
https://mbaseballacademy.com/wp-includes/js/dist/element.min.js
https://mbaseballacademy.com/wp-includes/js/dist/is-shallow-equal.min.js
https://mbaseballacademy.com/wp-includes/js/dist/keycodes.min.js
https://mbaseballacademy.com/wp-includes/js/dist/priority-queue.min.js
https://mbaseballacademy.com/wp-includes/js/dist/undo-manager.min.js
https://mbaseballacademy.com/wp-includes/js/dist/compose.min.js
https://mbaseballacademy.com/wp-includes/js/dist/private-apis.min.js
https://mbaseballacademy.com/wp-includes/js/dist/redux-routine.min.js
https://mbaseballacademy.com/wp-includes/js/dist/data.min.js
( function() {
var userId = 0;
var storageKey = "WP_DATA_USER_" + userId;
wp.data
.use( wp.data.plugins.persistence, { storageKey: storageKey } );
} )();
//# sourceURL=wp-data-js-after
var iconic_wsb_frontend_vars = {"ajax_url":"/wp-admin/admin-ajax.php","nonce":"00a42d8722","fbt_use_ajax":"1","is_checkout":"","i18n":{"error":"Please Try Again","success":"Added to Cart","add_selected":"Add Selected to Cart","disabled_add_to_cart":"Please select a variation before adding the selected products to your cart."},"modal_options":{"showCloseBtn":false}};
//# sourceURL=iconic_wsb_frontend_scripts-js-extra
https://mbaseballacademy.com/wp-content/plugins/iconic-woo-sales-booster/assets/frontend/js/main.js
var awdr_params = {"ajaxurl":"https://mbaseballacademy.com/wp-admin/admin-ajax.php","nonce":"92760b1df8","enable_update_price_with_qty":"show_when_matched","refresh_order_review":"0","custom_target_simple_product":"","custom_target_variable_product":"","js_init_trigger":"","awdr_opacity_to_bulk_table":"","awdr_dynamic_bulk_table_status":"1","awdr_dynamic_bulk_table_off":"on","custom_simple_product_id_selector":"","custom_variable_product_id_selector":""};
//# sourceURL=awdr-main-js-extra
var wc_facebook_signals_params = {"ajax_url":"https://mbaseballacademy.com/wp-admin/admin-ajax.php","nonce":"8d08d3a81f","action":"wc_facebook_update_signals_state"};
//# sourceURL=wc-facebook-signals-js-extra
https://mbaseballacademy.com/wp-content/boost-cache/static/fa546689c8.min.js
https://mbaseballacademy.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/woocommerce-analytics/build/woocommerce-analytics-client.js
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"base64":false,"ajaxurl":"https://mbaseballacademy.com/wp-admin/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
//# sourceURL=wc-order-attribution-js-extra
https://mbaseballacademy.com/wp-content/boost-cache/static/12bcbd40d0.min.js
if (typeof clientParamBuilder !== "undefined" && !/(?:^|;\s*)wc_facebook_signals_state=held(?:;|$)/.test(document.cookie)) {
clientParamBuilder.processAndCollectAllParams(window.location.href);
}
//# sourceURL=facebook-capi-param-builder-js-after
https://mbaseballacademy.com/wp-content/plugins/wp-smushit/app/assets/js/smush-lazy-load.min.js
_stq = window._stq || [];
_stq.push([ "view", {"v":"ext","blog":"214105619","post":"18999","tz":"-4","srv":"mbaseballacademy.com","j":"1:15.9"} ]);
_stq.push([ "clickTrackerInit", "214105619", "18999" ]);
//# sourceURL=jetpack-stats-js-before
var cuw_template = {"data":{"woocommerce":{"price":{"format":"%1$s%2$s","symbol":"$","decimals":2,"decimal_separator":".","thousand_separator":","}}},"i18n":{"add_to_cart":{"text":"Add to cart","items":"items","all_items":"all items","selected_items":"selected items","number_to_text":{"1":"one","2":"both","3":"all three","4":"all four","5":"all five"}},"free":"Free"},"is_rtl":""};
//# sourceURL=cuw_template-js-extra
var cuw_frontend = {"ajax_url":"https://mbaseballacademy.com/wp-admin/admin-ajax.php","ajax_nonce":"63a6ab520b","is_cart":"","is_checkout":"","has_cart_block":"","has_checkout_block":"","dynamic_offer_display_enabled":""};
//# sourceURL=cuw_frontend-js-extra
https://mbaseballacademy.com/wp-content/boost-cache/static/3daaee7b40.min.js
/* WooCommerce Facebook Integration Event Tracking */
fbq('set', 'agent', 'woocommerce_6-10.8.1-3.7.1', '2846271042179391');
if (window.FacebookSignals && typeof window.FacebookSignals.trackEvent === 'function') {
window.FacebookSignals.trackEvent('PageView', {
"source": "woocommerce_6",
"version": "10.8.1",
"pluginVersion": "3.7.1"
}, null, 'track', "a7457dee-c396-4c37-962c-b9350e2ab6f5");
} else if ("a7457dee-c396-4c37-962c-b9350e2ab6f5") {
fbq('track', 'PageView', {
"source": "woocommerce_6",
"version": "10.8.1",
"pluginVersion": "3.7.1"
}, { eventID: "a7457dee-c396-4c37-962c-b9350e2ab6f5" });
} else {
fbq('track', 'PageView', {
"source": "woocommerce_6",
"version": "10.8.1",
"pluginVersion": "3.7.1"
});
}
//# sourceURL=facebook-for-woocommerce-inline-js-after
https://mbaseballacademy.com/wp-content/boost-cache/static/3515cff3ce.min.js
https://mbaseballacademy.com/wp-content/plugins/page-builder-add/public/scripts/scripts.js
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2006, 2014 Klaus Hartl
* Released under the MIT license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD (Register as an anonymous module)
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
var pluses = /\+/g;
function encode(s) {
return config.raw ? s : encodeURIComponent(s);
}
function decode(s) {
return config.raw ? s : decodeURIComponent(s);
}
function stringifyCookieValue(value) {
return encode(config.json ? JSON.stringify(value) : String(value));
}
function parseCookieValue(s) {
if (s.indexOf('"') === 0) {
// This is a quoted cookie as according to RFC2068, unescape...
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
}
try {
// Replace server-side written pluses with spaces.
// If we can't decode the cookie, ignore it, it's unusable.
// If we can't parse the cookie, ignore it, it's unusable.
s = decodeURIComponent(s.replace(pluses, ' '));
return config.json ? JSON.parse(s) : s;
} catch(e) {}
}
function read(s, converter) {
var value = config.raw ? s : parseCookieValue(s);
return $.isFunction(converter) ? converter(value) : value;
}
var config = $.cookie = function (key, value, options) {
// Write
if (arguments.length > 1 && !$.isFunction(value)) {
options = $.extend({}, config.defaults, options);
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
}
return (document.cookie = [
encode(key), '=', stringifyCookieValue(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// Read
var result = key ? undefined : {},
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all. Also prevents odd result when
// calling $.cookie().
cookies = document.cookie ? document.cookie.split('; ') : [],
i = 0,
l = cookies.length;
for (; i < l; i++) {
var parts = cookies[i].split('='),
name = decode(parts.shift()),
cookie = parts.join('=');
if (key === name) {
// If second argument (value) is a function it's a converter...
result = read(cookie, value);
break;
}
// Prevent storing a cookie that we couldn't decode.
if (!key && (cookie = read(cookie)) !== undefined) {
result[name] = cookie;
}
}
return result;
};
config.defaults = {};
$.removeCookie = function (key, options) {
// Must not alter options, thus extending a fresh object...
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
return !$.cookie(key);
};
}));
( function( $ ) {
if ($.cookie) {
$.cookie("ulpb_count18999", 'yes', {path: '/', expires : 30 });
}
})(jQuery);
(function($){
$('.responsiveNavBtninActive').on('click',function(){
$('#pb_navMenu_369512 .menuItemListContainer').show();
$('#pb_navMenu_369512 .menuItemListContainer').css('display','block');
$('#pb_navMenu_369512 .responsiveNavBtninActive').css('display','none');
$('#pb_navMenu_369512 .responsiveNavBtnActive').css('display','inline-block');
});
$('.responsiveNavBtnActive').on('click',function(){
$('#pb_navMenu_369512 .menuItemListContainer').hide();
$('#pb_navMenu_369512 .menuItemListContainer').css('display','none');
$(this).css('display','none');
$('#pb_navMenu_369512 .responsiveNavBtninActive').css('display','inline-block');
});
$('.menu-item .fa-caret-down').on('click', (e) => {
e.preventDefault();
} )
})(jQuery);
jQuery(document).ready(function(){
jQuery(".pb_img_thumbnail").on("click",function(){
var clikedElID = jQuery(this).attr("id");
jQuery("#pb_lightbox"+clikedElID).css("display","block");
});
jQuery(".pb_single_img_lightbox").on("click",function(){
jQuery(this).css("display","none");
});
jQuery(window).scroll();
});
(function($) {
/**
* Copyright 2012, Digital Fusion
* Licensed under the MIT license.
* http://teamdf.com/jquery-plugins/license/
*
* @author Sam Sehnert
* @desc A small plugin that checks whether elements are within
* the user visible viewport of a web browser.
* only accounts for vertical position, not horizontal.
*/
$.fn.visible = function(partial) {
var $t = $(this),
$w = $(window),
viewTop = $w.scrollTop(),
viewBottom = viewTop + $w.height(),
_top = $t.offset().top,
_bottom = _top + $t.height(),
compareTop = partial === true ? _bottom : _top,
compareBottom = partial === true ? _top : _bottom;
return ((compareBottom <= viewBottom) && (compareTop >= viewTop));
};
jQuery(document).on("click", 'a[href^="#"]', function (event) {
event.preventDefault();
var clickedLinkElAttr = jQuery(this ).attr("href");
if(typeof(jQuery(clickedLinkElAttr).offset() ) != "undefined"){
jQuery("html, body").animate({
scrollTop: jQuery(jQuery.attr(this, "href")).offset().top
}, 500);
}
});
})(jQuery);
if(typeof pluginOpsCheckElViewFrame != "function" ){
function pluginOpsCheckElViewFrame (el) {
if (typeof jQuery === "function" && el instanceof jQuery) {
el = el[0];
}
if( typeof(el.getBoundingClientRect) == "function" ){
var rect = el.getBoundingClientRect();
windowInnerHeight = window.innerHeight;
if(rect.height >= windowInnerHeight){
rect.height = windowInnerHeight - 50;
}
docClientHeight = document.documentElement.clientHeight;
if( rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (windowInnerHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth) ) {
return "InView";
}else{
return "NotInView";
}
}else{
return "Function didnt work";
}
}
}
jQuery(window).scroll();
//# sourceURL=pluginops-landingpage-scripts-inline-js-footer-js-after
window.ga4w = { data: {"cart":{"items":[],"coupons":[],"totals":{"currency_code":"USD","total_price":0,"currency_minor_unit":2}},"list_name":"Product List","products":[{"id":18233,"name":"Ultimate Catcher Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"18233"}}},{"id":18429,"name":"Ultimate 1B Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"18429"}}},{"id":18570,"name":"Ultimate 2B Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"18570"}}},{"id":18633,"name":"Ultimate SS Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"18633"}}},{"id":19368,"name":"Ultimate 3B Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19368"}}},{"id":19481,"name":"Ultimate Infield Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19481"}}},{"id":19488,"name":"Ultimate Outfield Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19488"}}},{"id":19496,"name":"Defense Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":14999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19496"}}},{"id":19655,"name":"Ultimate Pitching Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19655"}}},{"id":19733,"name":"Battery Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":4999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19733"}}},{"id":19844,"name":"Ultimate Hitting Drill Pack","categories":[{"name":"Digital Products"},{"name":"Drill Packs"}],"prices":{"price":2999,"currency_minor_unit":2},"extensions":{"woocommerce_google_analytics_integration":{"identifier":"19844"}}}],"events":["view_item_list"]}, settings: {"tracker_function_name":"gtag","events":["purchase","add_to_cart","remove_from_cart","view_item_list","select_content","view_item","begin_checkout","add_shipping_info","add_payment_info"],"identifier":"product_id","currency":{"decimalSeparator":".","thousandSeparator":",","precision":2}} }; document.dispatchEvent(new Event("ga4w:ready"));
//# sourceURL=woocommerce-google-analytics-integration-data-js-after
(function() {
window.wcAnalytics = window.wcAnalytics || {};
const wcAnalytics = window.wcAnalytics;
// Set the assets URL for webpack to find the split assets.
wcAnalytics.assets_url = 'https://mbaseballacademy.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/woocommerce-analytics/src/../build/';
// Set the REST API tracking endpoint URL.
wcAnalytics.trackEndpoint = "https://mbaseballacademy.com/wp-json/woocommerce-analytics/v1/track";
// Set common properties for all events.
wcAnalytics.commonProps = {"session_id":null,"landing_page":null,"is_engaged":null,"ui":0,"blog_id":214105619,"store_id":"9e9485fd-e095-4895-b00c-6f417d1ee0ad","url":"https://mbaseballacademy.com","woo_version":"10.8.1","wp_version":"7.0","store_admin":0,"device":"mobile","store_currency":"USD","timezone":"-04:00","is_guest":1,"_via_ua":"Mozilla/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Mobile/15E148 Safari/604.1","_via_ip":"104.28.124.151","_lg":"en-US","_dr":"https://www.google.com/","_dl":"http://mbaseballacademy.com/practice-drills/","_via_ref":"https://www.google.com/"};
// Set the event queue.
wcAnalytics.eventQueue = [];
// Features.
wcAnalytics.features = {
ch: false,
sessionTracking: false,
proxy: false,
};
wcAnalytics.breadcrumbs = ["Practice Drills"];
// Page context flags.
wcAnalytics.pages = {
isAccountPage: false,
isCart: false,
};
})();
// Listen for clicks on the entire document
document.addEventListener('click', function(event) {
console.log(event.target.dataset)
// Check if the clicked element has the 'track-click' class
if (event.target.classList.contains('trk-clk-ulbp')) {
// Get the unique ID from the data-id attribute
const elementTxt = event.target.dataset.btntxt;
const elementUrl = event.target.dataset.btnhref;
// Create a FormData object to send data
const formData = new FormData();
formData.append('clicked_element_text', elementTxt);
formData.append('clicked_element_url', elementUrl);
formData.append('clicked_element_psid', 18999);
//console.log(formData.get('clicked_element_psid'));
// Use the Fetch API to send the data to our PHP script
fetch(
"https://mbaseballacademy.com/wp-admin/admin-ajax.php?action=ulpb_rc_current_usr_click&POPB_CTA_Nonce=f52b96cb8b"
, {
method: 'POST',
body: formData
})
.then(response => response.text())
.then(data => {
console.log(data); // Log the response from PHP (e.g., "Success!")
})
.catch(error => {
console.error('Error tracking click:', error);
});
}
});