gateways.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>PrUn gateways</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="gateways"></div>
  20. </main>
  21. <div id="popover" popover="hint"></div>
  22. <script type="module">
  23. import {setupProduction} from './production.js';
  24. const blueprint = {
  25. 'SEA': 5000,
  26. 'LIT': 440,
  27. 'PSH': 2200,
  28. 'RSH': 600,
  29. 'TSH': 600,
  30. 'TRU': 4000,
  31. 'ABH': 400,
  32. 'ADE': 260,
  33. 'ASE': 360,
  34. 'ATA': 260,
  35. 'HSE': 160,
  36. 'LBH': 400,
  37. 'LDE': 160,
  38. 'LSE': 400,
  39. 'LTA': 80,
  40. 'RBH': 560,
  41. 'RDE': 200,
  42. 'RSE': 560,
  43. 'RTA': 200,
  44. 'ADS': 5,
  45. 'COM': 5,
  46. 'CBL': 240,
  47. 'SP': 8000,
  48. 'GWS': 10,
  49. 'SST': 1,
  50. 'SPT': 2600,
  51. 'TRS': 140,
  52. 'IMM': 5,
  53. }
  54. const buy = new Set([
  55. 'ADS', 'AMM', 'BBH', 'BSE', 'COM', 'GAL', 'HE', 'IMM', 'NE', 'O', 'SEA',
  56. ])
  57. setupProduction(blueprint, buy, 'CI1', document.querySelector('#gateways'));
  58. </script>
  59. </body>
  60. </html>