async function sendToSheet(band, domainscores) { await
fetch("https://script.google.com/macros/s/AKfycbwgyIBYzcQlYBC7qJVbsrVRdzq4KpY6SnRBDSVeXGJRtm_9i38aPYPZsuWLrG9P_SsG/exec")
{ method: "POST", mode: "no-cors", headers: { "Content-Type": "text/plain"
}, body: JSON.stringify({ date: new Date().toLocaleDateString(), // Today's
date ip: studentIP, // IP address solo: answers.solo, q1: answers.q1, q2:
answers.q2, q3: answers.q3, q4: answers.q4, q5: answers.q5, q6: answers.q6,
q7: answers.q7, q8: answers.q8, q9: answers.q9, band: bandKey, load:
domainScores.load, base: domainScores.base, buffer: domainScores.buffer,
sustainability: domainScores.sustainability, ociTotal: answers.ociTotal })
}); }