post = {
const formUrl =
"https://docs.google.com/forms/d/e/1FAIpQLSevxkmcpBU3y45rvxDx5UpQV1HtyGGgV7WqxLoFOIXzTU4QaA/formResponse";
var data =
"entry.1872738748=" +
md5(input[0] + "-" + input[1]) +
"&entry.948504390=" +
input[0] +
"&entry.991729326=" +
input[1];
var xhr = new XMLHttpRequest();
xhr.open("POST", formUrl, true);
xhr.setRequestHeader(
"Content-Type",
"application/x-www-form-urlencoded; charset=UTF-8"
);
if (submit) {
xhr.send(data);
return "posting data on change";
} else {
return "not posting data";
}
}