Skip to content
Open

why #97

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions diabetes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
(() => {
window.addEventListener('load', () => {
// Add dexcom_g7 ingredient if not already present
addIngredient("dexcom_g7", {
shape: "rectangle",
color: ["#4a90e2", "#0f64c1"],
glow: "#7fd1ff",
adj: "smart",
hidden: false
});

// Add glucose ingredient (if needed)
addIngredient("glucose", {
shape: "hexagon",
color: ["#f5deb3", "#deb887"],
glow: "#ffe4b5",
adj: "sweet",
hidden: false
});

// Add a recipe combining dexcom_g7 + glucose => calibrated_glucose_monitor
addRecipe(["dexcom_g7", "glucose"], "calibrated_glucose_monitor");

// Add the new ingredient calibrated_glucose_monitor
addIngredient("calibrated_glucose_monitor", {
shape: "rectangle",
color: ["#5dade2", "#2e86c1"],
glow: "#a9cce3",
adj: "calibrated",
hidden: false
});

console.log("Added recipe: dexcom_g7 + glucose = calibrated_glucose_monitor");
});
})();