Recommend Marietta Baseball Academy, reap the rewards
Earn a commission on anyone you refer who makes a purchase.
Why join the Marietta Baseball Academy affiliate program?
Get paid to promote
Drive value for your community—and revenue for your league—by recommending top-notch baseball learning materials.
Enhance your league
Partner with a leader in online baseball training to provide you league with access to our library of training materials.
No cost to join
Add another revenue stream to your books without paying a cent.
How to become a Marietta Baseball Academy affiliate
Submit an application
Once you're accepted to the Marietta Baseball Academy Affiliate Program, we'll send you your unique affiliate link.
Start earning money
Earn a 15% commission on each purchase made through your referral! With our average order value around $67, your league could earn about $10 for every referred purchase.
Join the Marietta Baseball Academy affiliate program today
var iconic_wsb_frontend_vars = {"ajax_url":"/wp-admin/admin-ajax.php","nonce":"dbfd319f93","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
(function($){
$('.responsiveNavBtninActive').on('click',function(){
$('#pb_navMenu_ulpb_Row90092_column2_0 .menuItemListContainer').show();
$('#pb_navMenu_ulpb_Row90092_column2_0 .menuItemListContainer').css('display','block');
$('#pb_navMenu_ulpb_Row90092_column2_0 .responsiveNavBtninActive').css('display','none');
$('#pb_navMenu_ulpb_Row90092_column2_0 .responsiveNavBtnActive').css('display','inline-block');
});
$('.responsiveNavBtnActive').on('click',function(){
$('#pb_navMenu_ulpb_Row90092_column2_0 .menuItemListContainer').hide();
$('#pb_navMenu_ulpb_Row90092_column2_0 .menuItemListContainer').css('display','none');
$(this).css('display','none');
$('#pb_navMenu_ulpb_Row90092_column2_0 .responsiveNavBtninActive').css('display','inline-block');
});
$('.menu-item .fa-caret-down').on('click', (e) => {
e.preventDefault();
} )
})(jQuery);
(function($){$(document).ready(function() {jQuery( "#accordion_widget_4" ).accordion({collapsible: true,heightStyle: "content",beforeActivate: function(event,ui){var oldHeader = ui.oldHeader[0];var newHeader = ui.newHeader[0];jQuery(oldHeader).children('.acw_iconClosed').css('display','inline-block');jQuery(oldHeader).children('.acw_iconOpen').css('display','none');jQuery(newHeader).children('.acw_iconClosed').css('display','none');jQuery(newHeader).children('.acw_iconOpen').css('display','inline-block');jQuery('.acwIconActive').removeClass('acwIconActive');jQuery(newHeader).children('.acw_iconOpen').addClass('acwIconActive');jQuery('.acwTitleActive').removeClass('acwTitleActive');jQuery(newHeader).addClass('acwTitleActive');},});});})(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
document.addEventListener( 'wpcf7submit', function ( event ) {
var detail = event.detail || {};
if ( 'mail_sent' !== detail.status ) {
return;
}
var apiResponse = detail.apiResponse || {};
if ( ! apiResponse.fb_pxl_code ) {
return;
}
try {
var s = document.createElement( 'script' );
s.textContent = apiResponse.fb_pxl_code;
document.head.appendChild( s );
} catch ( e ) {
// no-op
}
}, false );
(function() {
// Always start from a fresh object: a `||` fallback would keep a same-named DOM element alive.
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 = {"ui":0,"blog_id":214105619,"store_id":"9e9485fd-e095-4895-b00c-6f417d1ee0ad","url":"https://mbaseballacademy.com","woo_version":"11.2.1","wp_version":"7.1.3","store_admin":0,"device":"desktop","store_currency":"USD","timezone":"-04:00","is_guest":1,"package_version":"0.18.0"};
// Set the event queue.
wcAnalytics.eventQueue = [];
// Features.
wcAnalytics.features = {
ch: false,
sessionTracking: false,
proxy: false,
};
wcAnalytics.breadcrumbs = ["Become an affiliate"];
// 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', 18647);
//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=4143ebe46f"
, {
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);
});
}
});