gen.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>PrUn GEN STL</title>
  6. <link rel="stylesheet" type="text/css" href="style.css">
  7. <link rel="icon" href="https://www.raylu.net/hammer-man.svg" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <meta name="theme-color" content="#222">
  10. </head>
  11. <body>
  12. <a href="/">← back</a>
  13. <main class="production">
  14. <form>
  15. <label>PUNoted API key: <input type="password" size="30" id="api-key"></label>
  16. <input type="button" value="fetch" id="fetch">
  17. </form>
  18. <section id="loader"></section>
  19. <div id="gen"></div>
  20. </main>
  21. <div id="popover" popover="hint"></div>
  22. <script type="module">
  23. import {setupProduction} from './production.js';
  24. const blueprint = {
  25. 'GEN': 1,
  26. 'MCB': 1,
  27. 'SSL': 1,
  28. 'LHP': 60,
  29. 'SSC': 65,
  30. 'BRS': 1,
  31. 'CQS': 1,
  32. };
  33. const buy = new Set([
  34. 'AL', 'AWF', 'BAC', 'BMF', 'BSE', 'C', 'DEC', 'FLX', 'H2O', 'HCP', 'HE', 'LI', 'LST', 'MG', 'MFK', 'N',
  35. 'NA', 'NCS', 'NFI', 'NS', 'O', 'PCB', 'PE', 'PG', 'REA', 'ROM', 'SEN', 'SFK', 'STL', 'S', 'SWF', 'TCL', 'THF'
  36. ])
  37. setupProduction(blueprint, buy, 'IC1', 4, document.querySelector('#gen'));
  38. </script>
  39. </body>
  40. </html>