// Page Code — paste into the Wix Editor's page code panel (click "Dev Mode" first) // Requires the elements and Data Collection described above. import wixData from 'wix-data'; let currentUnit = 'metric'; let lastBMI = null; let lastCategory = null; $w.onReady(function () { showMetric(); resetReadout(); $w('#unitToggleMetric').onClick(() => { currentUnit = 'metric'; showMetric(); computeBMI(); }); $w('#unitToggleImperial').onClick(() => { currentUnit = 'imperial'; showImperial(); computeBMI(); }); ['#heightCmInput', '#weightKgInput', '#heightFtInput', '#heightInInput', '#weightLbInput'].forEach((id) => { $w(id).onInput(() => computeBMI()); }); $w('#sendToFormButton').onClick(sendToForm); $w('#submitButton').onClick(handleSubmit); $w('#formErrorText').hide(); $w('#bmiChipText').hide(); $w('#successBox').hide(); }); function showMetric() { $w('#metricBox').expand(); $w('#imperialBox').collapse(); } function showImperial() { $w('#imperialBox').expand(); $w('#metricBox').collapse(); } // BMI 15–40 mapped to 0–100% for the progress bar function bmiToPercent(bmi) { const clamped = Math.max(15, Math.min(40, bmi)); return ((clamped - 15) / 25) * 100; } function categoryFor(bmi) { if (bmi < 18.5) { return { label: 'Underweight', color: '#6C93B0', note: 'Below typical range — a nutritionist can help build toward a sustainable weight.' }; } if (bmi < 25) { return { label: 'Normal weight', color: '#5C8A5F', note: 'Within the typical range for most adults.' }; } if (bmi < 30) { return { label: 'Overweight', color: '#E0A93E', note: 'Above typical range — worth a conversation about sustainable changes.' }; } return { label: 'Obese', color: '#D8654B', note: 'Well above typical range — a nutritionist can help build a realistic plan.' }; } function computeBMI() { let heightM, weightKg; if (currentUnit === 'metric') { const cm = Number($w('#heightCmInput').value); const kg = Number($w('#weightKgInput').value); if (!cm || !kg) { resetReadout(); return; } heightM = cm / 100; weightKg = kg; } else { const ft = Number($w('#heightFtInput').value) || 0; const inch = Number($w('#heightInInput').value) || 0; const lb = Number($w('#weightLbInput').value); if ((!ft && !inch) || !lb) { resetReadout(); return; } heightM = ((ft * 12) + inch) * 0.0254; weightKg = lb * 0.453592; } if (heightM <= 0) { resetReadout(); return; } const bmi = weightKg / (heightM * heightM); const cat = categoryFor(bmi); lastBMI = bmi; lastCategory = cat.label; $w('#bmiValueText').text = bmi.toFixed(1); $w('#bmiCategoryText').text = cat.label; $w('#bmiCategoryText').style.color = cat.color; $w('#bmiNoteText').text = cat.note; $w('#bmiProgressBar').value = bmiToPercent(bmi); } function resetReadout() { lastBMI = null; lastCategory = null; $w('#bmiValueText').text = '—'; $w('#bmiCategoryText').text = 'Enter your numbers'; $w('#bmiCategoryText').style.color = '#7C907F'; $w('#bmiNoteText').text = 'Fill in height and weight to see where you fall.'; $w('#bmiProgressBar').value = 0; } function sendToForm() { if (lastBMI) { $w('#bmiChipText').text = `Your BMI: ${lastBMI.toFixed(1)} · ${lastCategory}`; $w('#bmiChipText').show(); } $w('#consultSection').scrollTo(); } function handleSubmit() { const name = $w('#nameInput').value.trim(); const email = $w('#emailInput').value.trim(); const goal = $w('#goalDropdown').value; $w('#formErrorText').hide(); if (!name || !email || !goal) { $w('#formErrorText').text = 'Please fill in your name, email, and goal.'; $w('#formErrorText').show(); return; } const record = { name, email, phone: $w('#phoneInput').value, goal, notes: $w('#notesInput').value, bmi: lastBMI ? Number(lastBMI.toFixed(1)) : null, bmiCategory: lastCategory, submittedDate: new Date() }; $w('#submitButton').disable(); wixData.insert('NutritionistLeads', record) .then(() => { $w('#consultForm').hide(); $w('#successBox').show(); $w('#successNameText').text = `Request received, ${name.split(' ')[0]}`; }) .catch((err) => { console.error('Insert failed:', err); $w('#formErrorText').text = 'Something went wrong — please try again.'; $w('#formErrorText').show(); $w('#submitButton').enable(); }); }
top of page

Search this site

3 results found with an empty search

  • Home | Online Personal Training & Online Nutrition Consultation

    Discover the best Online Personal Training & Online Nutrition Consultation services on our Home page. Start your journey to health today! Online Personal Training & Online Nutrition Consultation Get expert-led personal training and nutrition coaching designed around your goals, lifestyle, and fitness level. From online coaching and offline personal training to group fitness and personalized nutrition consultation, Protein Work gives you the guidance, accountability, and knowledge to achieve sustainable results. Explore Services Start Your Transformation Why Choose Proteinworkk? Certified Expert Guidance Receive one-on-one support from qualified nutritionists and fitness coaches committed to your success. Sustainable Results, Not Quick Fixes We focus on building healthy habits, improving body composition, and creating lasting lifestyle changes that you can maintain for life. Personalized Training & Accountability Customized workout programs, regular progress reviews, and ongoing support keep you consistent and motivated. Online Personal Training & Online Nutrition Consultation Learn. Apply. Transform. Expand your knowledge with professionally written fitness and nutrition books created by Proteinworkk. Our digital guides help you understand the science behind training, nutrition, recovery, and healthy habits, so you can make informed decisions and achieve lasting results. Sign Up Services Our classes Personalized Nutrition Plans for Healthy Living & Sustainable Results Fuel your body with a personalized nutrition plan designed to match your goals, lifestyle, and dietary preferences. Whether your objective is weight loss, muscle gain, fat loss, improved energy, or overall wellness, our evidence-based nutrition guidance helps you build healthy eating habits that deliver long-term results. Every plan is practical, balanced, and easy to follow, ensuring you stay consistent without restrictive diets. Sign Up Personal Online Training Achieve your fitness goals with personalized online training tailored to your body, lifestyle, and schedule. Receive one-on-one coaching, customized workout plans, progress tracking, and continuous support from certified fitness professionals, helping you build strength, lose fat, improve performance, and create lasting healthy habits from anywhere in the world. Sign Up Group Online Classes Train smarter with expert-led group fitness classes designed to help you build strength, lose weight, and stay consistent. Our certified coaches deliver structured workouts, personalized guidance, motivation, and accountability in a supportive community, helping you achieve sustainable results while making fitness an enjoyable part of your lifestyle. Sign Up

  • Fitness & Nutrition Services | Online & Offline Training | Proteinworkk

    Get personalized fitness and nutrition services from Proteinworkk, including online personal training, offline training, group classes, and nutrition consultation. Premium Fitness & Nutrition Solutions At Protein Work, we provide personalized fitness and nutrition services designed around your unique goals, lifestyle, and fitness level. Whether you’re looking for online personal training, one-to-one offline training, engaging group fitness classes, or professional nutrition consultation, our approach focuses on practical and sustainable results. 1:1 Guidance & Support Science-Based Workout Protocols Personalized Nutrition Strategies Daily Habit & Goal Tracking Weekly Accountability Check-ins Flexible Online & Offline Options Our Services Personal Training Online Classes Custom Workout Apps Weekly Check-ins Form Analysis Book Now 499 / session Ready to Start Your Transformation? Personalized Fitness & Nutrition Services Designed to Help You Build Strength, Improve Health, and Achieve Lasting Results Free Consultation Offline Training Classes In-Person Guidance Gym Access Included Real-time Coaching Book Now 1199 / session Group Classes High Energy Setup Community Support All Levels Welcome Book Now 199/ session Nutrition Consultation Meal Planning Macro Tracking Diet Coaching 999/ session Book Now

  • Contact US | proteinworkk

    Let's Start Your Fitness Journey Have questions about our nutrition plans, personal training, or online group classes? Fill out the form below, and our team will get back to you within 24 hours with the guidance you need. Business Info Address: Kadugodi, Bengaluru, Karnataka , 560067 Email: proteinworkk@gmail.com Phone: 9831153184 Opening Hours Mon - Fri 6:00 am – 8:00 pm Saturday 6:00 am – 6:00 pm Sunday 6:00 am – 6:00 pm Contact Contact us First name* Last name* Email* Write a message Submit

bottom of page