Selaa lähdekoodia

GEN production

raylu 1 viikko sitten
vanhempi
sitoutus
c006227373
1 muutettua tiedostoa jossa 40 lisäystä ja 0 poistoa
  1. 40 0
      www/gen.html

+ 40 - 0
www/gen.html

@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+	<meta charset="UTF-8">
+	<title>PrUn GEN STL</title>
+	<link rel="stylesheet" type="text/css" href="style.css">
+	<link rel="icon" href="https://www.raylu.net/hammer-man.svg" />
+	<meta name="viewport" content="width=device-width, initial-scale=1">
+	<meta name="theme-color" content="#222">
+</head>
+<body>
+	<a href="/">← back</a>
+	<main class="production">
+		<form>
+			<label>PUNoted API key: <input type="password" size="30" id="api-key"></label>
+			<input type="button" value="fetch" id="fetch">
+		</form>
+		<section id="loader"></section>
+		<div id="gen"></div>
+	</main>
+	<div id="popover" popover="hint"></div>
+	<script type="module">
+		import {setupProduction} from './production.js';
+		const blueprint = {
+			'GEN': 1,
+			'MCB': 1,
+			'SSL': 1,
+			'LHP': 60,
+			'SSC': 65,
+			'BRS': 1,
+			'CQS': 1,
+		};
+		const buy = new Set([
+			'AL', 'AWF', 'BAC', 'BMF', 'BSE', 'C', 'DEC', 'FLX', 'H2O', 'HCP', 'HE', 'LI', 'LST', 'MG', 'MFK', 'N',
+			'NA', 'NCS', 'NFI', 'NS', 'O', 'PCB', 'PE', 'PG', 'REA', 'ROM', 'SEN', 'SFK', 'STL', 'S', 'SWF', 'TCL', 'THF'
+		])
+		setupProduction(blueprint, buy, 'IC1', 4, document.querySelector('#gen'));
+	</script>
+</body>
+</html>