Back
Version 3
5/13/2024
/** @jsxImportSource npm:hono@3/jsx */
import { Hono } from "npm:hono";
const app = new Hono();
const players = {
"Mike Trout": { salary: 35450000, stadium: "Angel Stadium", hotDogPrice: 6.5 },
"Gerrit Cole": { salary: 36000000, stadium: "Yankee Stadium", hotDogPrice: 6 },
"Mookie Betts": { salary: 27000000, stadium: "Dodger Stadium", hotDogPrice: 6.75 },
"Manny Machado": { salary: 32000000, stadium: "Petco Park", hotDogPrice: 6.5 },
"Francisco Lindor": { salary: 34100000, stadium: "Citi Field", hotDogPrice: 6.5 },
"Aaron Judge": { salary: 40000000, stadium: "Yankee Stadium", hotDogPrice: 6 },
"Fernando Tatis Jr.": { salary: 34000000, stadium: "Petco Park", hotDogPrice: 6.5 },
"Jacob deGrom": { salary: 37000000, stadium: "Globe Life Field", hotDogPrice: 5.5 },
"Shohei Ohtani": { salary: 30000000, stadium: "Angel Stadium", hotDogPrice: 6.5 },
"Bryce Harper": { salary: 27000000, stadium: "Citizens Bank Park", hotDogPrice: 6 },
"Juan Soto": { salary: 23000000, stadium: "Petco Park", hotDogPrice: 6.5 },
"Ronald Acuña Jr.": { salary: 17000000, stadium: "Truist Park", hotDogPrice: 5 },
"José Altuve": { salary: 29000000, stadium: "Minute Maid Park", hotDogPrice: 5.5 },
"Freddie Freeman": { salary: 27000000, stadium: "Dodger Stadium", hotDogPrice: 6.75 },
"Nolan Arenado": { salary: 35000000, stadium: "Busch Stadium", hotDogPrice: 5 },
"Justin Verlander": { salary: 43000000, stadium: "Citi Field", hotDogPrice: 6.5 },
"Paul Goldschmidt": { salary: 26000000, stadium: "Busch Stadium", hotDogPrice: 5 },
"Trea Turner": { salary: 30000000, stadium: "Citizens Bank Park", hotDogPrice: 6 },
"Corey Seager": { salary: 32000000, stadium: "Globe Life Field", hotDogPrice: 5.5 },
"Yadier Molina": { salary: 10000000, stadium: "Busch Stadium", hotDogPrice: 5 },
};
app.get("/", (c) => {
const playerOptions = Object.keys(players).map(player => `<option value="${player}">${player}</option>`).join("");
return c.html(`
<html>
<head>
<title>What's that in hot dogs?</title>
</head>
<body>
dthyresson-whatsthatinhotdogs.web.val.run
Updated: July 26, 2024