import { getCurrentMember } from 'wix-members'; export async function submitButton_click(event) { const ftp = $w('#ftpInput').value; const maxHr = $w('#maxHrInput').value; const restHr = $w('#restHrInput').value; const file = $w('#uploadButton').value[0]; // assuming one file const formData = new FormData(); formData.append('ftp', ftp); formData.append('max_hr', maxHr); formData.append('rest_hr', restHr); formData.append('file', file); const response = await fetch('https://your-api.com/analyze', { method: 'POST', body: formData }); const result = await response.json(); $w('#resultText').text = `Z1: ${result.z1}, Z2: ${result.z2}, ...`; }
top of page
  • Black Facebook Icon
Domestique logo white-01.png

We want to enhance your local riding experience

Domestique was created to support our local cycling community. Our goal is to educate riders to help them be safer, healthier and faster, as well as keeping them up to date on the latest cycling news and technology trends.

© 2022 by local-domestique. com

bottom of page