raylu 1 tháng trước cách đây
mục cha
commit
eba3482f42
1 tập tin đã thay đổi với 53 bổ sung0 xóa
  1. 53 0
      www/tcb.html

+ 53 - 0
www/tcb.html

@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+	<meta charset="UTF-8">
+	<title>PrUn TCB</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="shipbuilding"></div>
+	</main>
+	<div id="popover" popover="hint"></div>
+	<script type="module">
+		import {setupProduction} from './production.js';
+		const blueprint = {
+			'FFC': 1,
+			'FSE': 1,
+			'HYR': 1,
+			'MFE': 2,
+			'SFE': 2,
+			'LFL': 1,
+			'SSL': 1,
+			'TCB': 1,
+			'BGS': 1,
+			'LHP': 38,
+			'SSC': 33,
+			'BR2': 1,
+			'CQT': 1,
+		};
+		const buy = new Set([
+			// definitely buy
+			'C', 'FLX', 'H', 'H2O', 'HAL', 'HCP', 'HE', 'LST', 'MG', 'N', 'NA', 'NCS', 'NS', 'O', 'PE', 'PG', 'S', 'TCL', 'THF',
+			// maybe buy
+			'AIR', 'AU', 'BE', 'BRM', 'BOR', 'BTS', 'CU', 'EES', 'FAN', 'FC', 'FE', 'FIR', 'HCC', 'HD', 'LDI', 'LI', 'MFK', 'MWF',
+			'NV2', 'REA', 'RG', 'RGO', 'ROM', 'SFK', 'SI', 'STL', 'TCO', 'TPU',
+			// import
+			'AAR', 'AWF', 'CAP', 'CF', 'RAD',
+			// skip
+			'BGS', 'LFE', 'LHP', 'MFE', 'SFE', 'SSC',
+		])
+		setupProduction(blueprint, buy, 'IC1', 5, document.querySelector('#shipbuilding'));
+	</script>
+</body>
+</html>