Public
Edited
Oct 24, 2022
Insert cell
Insert cell
Insert cell
url = "https://docs.google.com/spreadsheets/d/1NePucs8ajnEE1CRxJV8TmYX4p2vb7JYvSOgp3CyGCBU/"
Insert cell
Insert cell
gid = 384770719
Insert cell
Insert cell
frequency = 2000
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { usaMapCoordinates } from "@jashkenas/inputs"
Insert cell
Insert cell
Insert cell
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";
}
}
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more