Improve your fitness and strength with the Pilates classes at BillionSmiles.fit. Our Pilates sessions focus on toning your muscles, strengthening your core, and helping you achieve flat abs. Whether you're a beginner or an experienced practitioner, our classes are designed to help you get stronger and achieve your fitness goals.
Upcoming Sessions
Contact Details
Prestige Kew Gardens, Yemalur Main Road, Yemalur, Bellandur, Bengaluru, Karnataka, India
bottom of page
document.addEventListener('DOMContentLoaded', function() {
console.log('🚀 Wix Mobile Tabs Loaded');
const tabItems = document.querySelectorAll('.wix-tab-item');
// Navigate to your Wix pages
function navigateToWixPage(pageSlug) {
// Add loading state
const clickedTab = document.querySelector(`.wix-tab-item[data-page="${pageSlug}"]`);
if (clickedTab) {
clickedTab.classList.add('wix-tab-loading');
}
// YOUR WIX PAGE URLS - UPDATE THESE!
const pageUrls = {
'home': '/', // Home page
'about': '/account/calorie-tracker', // About page
'services': '/services', // Services page
'contact': '/contact', // Contact page
'shop': '/shop', // Shop page
'portfolio': '/portfolio', // Portfolio page
'blog': '/blog', // Blog page
'booking': '/booking', // Booking page
// ADD YOUR PAGES HERE:
// 'yourpage': '/your-page-url',
};
// Navigate to the page
if (pageUrls[pageSlug]) {
window.location.href = pageUrls[pageSlug];
} else {
console.error('Page not found:', pageSlug);
// Remove loading state if page not found
if (clickedTab) {
clickedTab.classList.remove('wix-tab-loading');
}
}
}
// Add click handlers to all tabs
tabItems.forEach(function(tab) {
tab.addEventListener('click', function(e) {
e.preventDefault();
const pageSlug = this.getAttribute('data-page');
console.log('Navigating to:', pageSlug);
navigateToWixPage(pageSlug);
});
});
// Highlight current page tab
function setActiveTab() {
const currentPath = window.location.pathname.toLowerCase();
// Remove active class from all tabs
tabItems.forEach(function(tab) {
tab.classList.remove('active');
});
// Determine active tab based on current URL
let activePageSlug = 'home'; // default
if (currentPath.includes('/about')) {
activePageSlug = 'about';
} else if (currentPath.includes('/services')) {
activePageSlug = 'services';
} else if (currentPath.includes('/contact')) {
activePageSlug = 'contact';
} else if (currentPath.includes('/shop')) {
activePageSlug = 'shop';
} else if (currentPath.includes('/portfolio')) {
activePageSlug = 'portfolio';
} else if (currentPath.includes('/blog')) {
activePageSlug = 'blog';
} else if (currentPath.includes('/booking')) {
activePageSlug = 'booking';
}
// ADD MORE PAGE CHECKS HERE IF NEEDED
// Add active class to matching tab
const activeTab = document.querySelector(`.wix-tab-item[data-page="${activePageSlug}"]`);
if (activeTab) {
activeTab.classList.add('active');
console.log('Active tab set:', activePageSlug);
}
}
// Set active tab on page load
setActiveTab();
// Optional: Update badge counts dynamically
function updateBadgeCount(tabName, count) {
const tab = document.querySelector(`.wix-tab-item[data-page="${tabName}"] .wix-tab-badge`);
if (tab) {
if (count > 0) {
tab.textContent = count;
tab.style.display = 'block';
} else {
tab.style.display = 'none';
}
}
}
// Example: Update contact badge (you can call this from your Wix code)
// updateBadgeCount('contact', 3);
console.log('✅ Wix Mobile Tabs Ready');
});
// Optional: Expose function globally for Wix Corvid/Velo
window.updateTabBadge = function(tabName, count) {
const badge = document.querySelector(`.wix-tab-item[data-page="${tabName}"] .wix-tab-badge`);
if (badge) {
if (count > 0) {
badge.textContent = count;
badge.style.display = 'block';
} else {
badge.style.display = 'none';
}
}
};