Clue text goes here...
What is...
Upton Sinclair famously said he "aimed at the public's heart, and by accident hit it in the stomach." Name the 1906 landmark law passed in response that regulated misbranded and adulterated goods, but failed to address worker safety or wages.
What is the Pure Food and Drug Act of 1906?
This will reset all cleared tiles and team scores back to $0. This action cannot be undone.
Open your Google Sheet → Extensions → Apps Script → Replace existing code → Click Save → Deploy as Web App (Execute as: Me, Who has access: Anyone).
function doPost(e) {
try {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
if (sheet.getLastRow() === 0) {
sheet.appendRow(["Timestamp", "Team / Student", "Category", "Clue / Question", "Action", "Score Change", "Total Score"]);
}
var data = JSON.parse(e.postData.contents);
sheet.appendRow([
new Date().toLocaleString(),
data.teamName || "N/A",
data.category || "N/A",
data.clue || "N/A",
data.action || "N/A",
data.scoreChange || 0,
data.totalScore || 0
]);
return ContentService.createTextOutput(JSON.stringify({ status: "success" }))
.setMimeType(ContentService.MimeType.JSON);
} catch (err) {
return ContentService.createTextOutput(JSON.stringify({ status: "error", message: err.toString() }))
.setMimeType(ContentService.MimeType.JSON);
}
}
function doGet(e) {
return ContentService.createTextOutput("Google Apps Script Web App is live!");
}
Paste your deployed Google Apps Script Web App URL below to link this game directly to your live spreadsheet: