diff options
author | cyfraeviolae <cyfraeviolae> | 2022-02-23 00:25:13 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2022-02-23 00:25:13 -0500 |
commit | 4d7af541a1279597249b16abec27c92657dadc97 (patch) | |
tree | 22a4b133418bcbfa15965035591917b5c123dbf5 | |
parent | e718a1723e81f60adcfafc434b3c674b1771a98b (diff) |
links
-rw-r--r-- | index.html | 313 | ||||
-rw-r--r-- | static/script.js | 2 |
2 files changed, 305 insertions, 10 deletions
@@ -4,8 +4,8 @@ <title>Well-Ordered</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <link rel="stylesheet" type="text/css" href="/static/styles.css"> - <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico"> + <link rel="stylesheet" type="text/css" href="/well-ordered/static/styles.css"> + <link rel="shortcut icon" type="image/x-icon" href="/well-ordered/static/favicon.ico"> </head> <body> <div class="container"> @@ -18,7 +18,7 @@ The bibulous sorcerer Roseacrucis has depleted our distilled reserves. You must journey to obtain the myriad ingredients necessary to recreate the seventy-seven official IBA cocktails—but your wallet runs light, and your thirst grows deep. In what order do you obtain ingredients to make the most - drinks with the fewest drachma? + drinks for the fewest drachma? </p> <noscript>Sorry, JavaScript is required to run Well-Ordered.</noscript> <div id="form"> @@ -298,7 +298,7 @@ </div> <div> <label for="limit">Time limit in seconds:</label> - <input id="limit" name="limit" type="number" value="120" min="10"></input> + <input id="limit" name="limit" type="number" value="60" min="10"></input> </div> <div> <button type="submit" id="optimal">Compute ordering</button> @@ -306,7 +306,302 @@ </form> </div> <div id="waiting"></div> - <div id="solution"></div> + <div id="solution"> + <p>The sample solution given the pre-selected ingredients:</p> + <ol> + <li>On-hand</li> + <li> + Vodka + <ul> + <li>Sea Breeze, Screwdriver, Bloody Mary, Moscow Mule</li> + </ul> + </li> + <li> + White rum + <ul> + <li>Mojito, Cuba Libre, Pina Colada, Daiquiri</li> + </ul> + </li> + <li> + Triple Sec + <ul> + <li>Lemon Drop Martini, Cosmopolitan, Kamikaze</li> + </ul> + </li> + <li> + Tequila + <ul> + <li>Margarita, Tommy's Margarita, Vampiro</li> + </ul> + </li> + <li> + Gin + <ul> + <li>Long Island Iced Tea, Gin Fizz, John Collins, White Lady</li> + </ul> + </li> + <li> + Cognac + <ul> + <li>Horse's Neck, Sidecar, Between the Sheets</li> + </ul> + </li> + <li> + Galliano + <ul> + <li>Yellow Bird, Golden Dream, Harvey Wallbanger</li> + </ul> + </li> + <li> + Grenadine + <ul> + <li>Bacardi, Tequila Sunrise</li> + </ul> + </li> + <li> + Cherry liqueur + <ul> + <li>Aviation, Mary Pickford, Hemingway Special</li> + </ul> + </li> + <li> + Bourbon + <ul> + <li>Whiskey Sour, Mint Julep</li> + </ul> + </li> + <li> + Dry vermouth + <ul> + <li>Dirty Martini, Dry Martini</li> + </ul> + </li> + <li> + Champagne + <ul> + <li>Mimosa, French 75</li> + </ul> + </li> + <li> + Angostura bitters + <ul> + <li>Old Fashioned, Champagne Cocktail</li> + </ul> + </li> + <li> + Dark rum + <ul> + <li>Planter's Punch, Dark 'n' Stormy</li> + </ul> + </li> + <li> + Coffee liqueur + <ul> + <li>Espresso Martini, Black Russian</li> + </ul> + </li> + <li> + DiSaronno + <ul> + <li>God Mother, French Connection</li> + </ul> + </li> + <li> + Créme de Cacao + <ul> + <li>Alexander</li> + </ul> + </li> + <li> + Créme de Menthe + <ul> + <li>Grasshopper, Stinger</li> + </ul> + </li> + <li> + Lillet Blonde + <ul> + <li>Vesper</li> + </ul> + </li> + <li> + Absinthe + <ul> + <li>Monkey Gland</li> + </ul> + </li> + <li> + Apricot brandy + <ul> + <li>Paradise</li> + </ul> + </li> + <li> + Pisco + <ul> + <li>Pisco Sour</li> + </ul> + </li> + <li> + Raspberry syrup + <ul> + <li>Clover Club</li> + </ul> + </li> + <li> + Orange bitters + <ul> + <li>Casino</li> + </ul> + </li> + <li> + Maraschino + <ul> + <li>Tuxedo</li> + </ul> + </li> + <li> + Red Port + <ul> + <li>Porto Flip</li> + </ul> + </li> + <li> + Scotch + <ul> + <li>God Father</li> + </ul> + </li> + <li> + Drambuie + <ul> + <li>Rusty Nail</li> + </ul> + </li> + <li> + Calvados + <ul> + <li>Angel Face</li> + </ul> + </li> + <li> + Prosecco + <ul> + <li>Barracuda</li> + </ul> + </li> + <li> + Peach puree + <ul> + <li>Bellini</li> + </ul> + </li> + <li> + Peach schnapps + <ul> + <li>Sex on the Beach</li> + </ul> + </li> + <li> + Cream liqueur + <ul> + <li>B52</li> + </ul> + </li> + <li> + Cachaca + <ul> + <li>Caipirinha</li> + </ul> + </li> + <li> + Raspberry liqueur + <ul> + <li>French Martini</li> + </ul> + </li> + <li> + Peach bitters + <ul> + <li>Derby</li> + </ul> + </li> + <li> + Aperol + <ul> + <li>Spritz Veneziano</li> + </ul> + </li> + <li> + Blackberry liqueur + <ul> + <li>Bramble</li> + </ul> + </li> + <li>Sweet vermouth</li> + <li> + Campari + <ul> + <li>Negroni, Americano</li> + </ul> + </li> + <li> + Rye + <ul> + <li>Manhattan</li> + </ul> + </li> + <li> + Orgeat + <ul> + <li>Mai-tai</li> + </ul> + </li> + <li> + Irish whiskey + <ul> + <li>Irish Coffee</li> + </ul> + </li> + <li> + DOM Bénédictine + <ul> + <li>Singapore Sling</li> + </ul> + </li> + <li> + Créme de Cassis + <ul> + <li>Russian Spring Punch</li> + </ul> + </li> + <li> + Peychaud's bitters + <ul> + <li>Sazerac</li> + </ul> + </li> + <li> + Orange flower water + <ul> + <li>Ramos Fizz</li> + </ul> + </li> + <li> + Dry white wine + <ul> + <li>Kir</li> + </ul> + </li> + <li>Kirsch</li> + <li> + Strawberry syrup + <ul> + <li>Rose</li> + </ul> + </li> + </ol> + </div> <details> <summary>Explain.</summary> <p> @@ -360,9 +655,9 @@ </p> </details> </div> - <script id="MathJax-script" async src="/static/mathjax.js"></script> - <script src="/static/glpk.js"></script> - <script src="/static/recipes.js"></script> - <script src="/static/script.js"></script> + <script id="MathJax-script" async src="/well-ordered/static/mathjax.js"></script> + <script src="/well-ordered/static/glpk.js"></script> + <script src="/well-ordered/static/recipes.js"></script> + <script src="/well-ordered/static/script.js"></script> </body> </html> diff --git a/static/script.js b/static/script.js index fdea89f..d8dbf77 100644 --- a/static/script.js +++ b/static/script.js @@ -78,7 +78,7 @@ function renderSolution(glpk, sol, ret) { li.appendChild(document.createTextNode('On-hand')) if (origbatch.length) { let ul = document.createElement('ul') - drinks = origbatch.map(b => allRecipes[b].name).join(', ') + let drinks = origbatch.map(b => allRecipes[b].name).join(', ') let sli = document.createElement('li') sli.appendChild(document.createTextNode(drinks)) ul.appendChild(sli) |