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:\/\/www.drmonicacrooks.com","is_cart":"","cart_redirect_after_add":"yes"};
var wp_megamenu_ajax_auth_object = {"ajaxurl":"https:\/\/www.drmonicacrooks.com\/wp-admin\/admin-ajax.php","redirecturl":"https:\/\/www.drmonicacrooks.com","loadingmessage":"Sending user info, please wait..."};
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"ajaxurl":"https:\/\/www.drmonicacrooks.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","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
var highend_vars = {"ajaxurl":"https:\/\/www.drmonicacrooks.com\/wp-admin\/admin-ajax.php","nonce":"fd6f041cb7","paged":"2","search_header":"1","cart_url":"https:\/\/www.drmonicacrooks.com","cart_count":"0","responsive":"1","header_height":"80","sticky_header_height":"60","texts":{"load-more":"Load More Posts","no-more-posts":"No More Posts","day":"day","days":"days","hour":"hour","hours":"hours","minute":"minute","minutes":"minutes","second":"second","seconds":"seconds"}};
var sv_wc_payment_gateway_payment_form_params = {"card_number_missing":"Card number is missing","card_number_invalid":"Card number is invalid","card_number_digits_invalid":"Card number is invalid (only digits allowed)","card_number_length_invalid":"Card number is invalid (wrong length)","cvv_missing":"Card security code is missing","cvv_digits_invalid":"Card security code is invalid (only digits are allowed)","cvv_length_invalid":"Card security code is invalid (must be 3 or 4 digits)","card_exp_date_invalid":"Card expiration date is invalid","check_number_digits_invalid":"Check Number is invalid (only digits are allowed)","check_number_missing":"Check Number is missing","drivers_license_state_missing":"Drivers license state is missing","drivers_license_number_missing":"Drivers license number is missing","drivers_license_number_invalid":"Drivers license number is invalid","account_number_missing":"Account Number is missing","account_number_invalid":"Account Number is invalid (only digits are allowed)","account_number_length_invalid":"Account number is invalid (must be between 5 and 17 digits)","routing_number_missing":"Routing Number is missing","routing_number_digits_invalid":"Routing Number is invalid (only digits are allowed)","routing_number_length_invalid":"Routing number is invalid (must be 9 digits)"};
var wp_megamenu_params = {"wpmm_mobile_toggle_option":"toggle_accordion","wpmm_enable_rtl":"0","wpmm_event_behavior":"click_submenu","wpmm_ajaxurl":"https:\/\/www.drmonicacrooks.com\/wp-admin\/admin-ajax.php","wpmm_ajax_nonce":"aca299a93a","check_woocommerce_enabled":"true","wpmm_mlabel_animation_type":"none","wpmm_animation_delay":"","wpmm_animation_duration":"","wpmm_animation_iteration_count":"1","enable_mobile":"0","wpmm_sticky_opacity":"1","wpmm_sticky_offset":"0px","wpmm_sticky_zindex":"9999"};
document.addEventListener('DOMContentLoaded', function() {
// Targeting all elements with class 'wpmm-custom-image'
var wpmmDivs = document.querySelectorAll('.wpmm-custom-image');
// Iterating through each element with the class
wpmmDivs.forEach(function(wpmmDiv) {
// Finding the img tag inside each div
var imgTag = wpmmDiv.querySelector('img');
// Checking if the img tag is found
if (imgTag) {
// Extracting the image name from the image source URL
var imageName = getImageName(imgTag.src);
// Setting alt text with the image name
imgTag.alt = imageName;
}
});
});
// Define a function to extract image name from the image source URL
function getImageName(imageSrc) {
// Splitting the image source URL by '/'
var parts = imageSrc.split('/');
// Getting the last part (which should be the image name)
var imageName = parts[parts.length - 1];
// Removing file extension (if any)
imageName = imageName.split('.')[0];
// Replace dashes with spaces
imageName = imageName.replace(/-/g, ' ');
// Capitalizing the first letter of each word
imageName = imageName.replace(/\b\w/g, function(char) {
return char.toUpperCase();
});
return imageName;
}
document.addEventListener('DOMContentLoaded', function() {
// Targeting all elements with class 'wpmm-custom-image'
var wpmmDivs = document.querySelectorAll('.wpmm-image-link-wrapper');
// Iterating through each element with the class
wpmmDivs.forEach(function(wpmmDiv) {
// Finding the img tag inside each div
var imgTag = wpmmDiv.querySelector('img');
// Checking if the img tag is found
if (imgTag) {
// Extracting the image name from the image source URL
var imageName = getImageName(imgTag.src);
// Setting alt text with the image name
imgTag.alt = imageName;
}
});
});
// Define a function to extract image name from the image source URL
function getImageName(imageSrc) {
// Splitting the image source URL by '/'
var parts = imageSrc.split('/');
// Getting the last part (which should be the image name)
var imageName = parts[parts.length - 1];
// Removing file extension (if any)
imageName = imageName.split('.')[0];
// Replace dashes with spaces
imageName = imageName.replace(/-/g, ' ');
// Capitalizing the first letter of each word
imageName = imageName.replace(/\b\w/g, function(char) {
return char.toUpperCase();
});
return imageName;
}
document.addEventListener('DOMContentLoaded', function() {
// Targeting all elements with class 'wpmm-custom-image'
var wpmmDivs = document.querySelectorAll('.hb-dark-logo');
// Iterating through each element with the class
wpmmDivs.forEach(function(wpmmDiv) {
// Finding the img tag inside each div
var imgTag = wpmmDiv.querySelector('img');
// Checking if the img tag is found
if (imgTag) {
// Extracting the image name from the image source URL
var imageName = getImageName(imgTag.src);
// Setting alt text with the image name
imgTag.alt = imageName;
}
});
});
// Define a function to extract image name from the image source URL
function getImageName(imageSrc) {
// Splitting the image source URL by '/'
var parts = imageSrc.split('/');
// Getting the last part (which should be the image name)
var imageName = parts[parts.length - 1];
// Removing file extension (if any)
imageName = imageName.split('.')[0];
// Replace dashes with spaces
imageName = imageName.replace(/-/g, ' ');
// Capitalizing the first letter of each word
imageName = imageName.replace(/\b\w/g, function(char) {
return char.toUpperCase();
});
return imageName;
}
// Get the div element by its id
var logoDiv = document.getElementById("logo");
// Check if the div exists
if (logoDiv) {
// Remove the div from its parent node
logoDiv.parentNode.removeChild(logoDiv);
}