180 lines
5.8 KiB
HTML
180 lines
5.8 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Escape the Island</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="icon" type="image/x-icon" href="assets/shipwreck.png" />
|
|
<link rel="stylesheet" href="styles.css" />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
</head>
|
|
<body class="page page-trading">
|
|
<header>
|
|
<div class="header-container">
|
|
<h1>Escape the Island</h1>
|
|
<div class="boat-container">
|
|
<img src="assets/boat-small.png" alt="" class="boat" />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="Content">
|
|
<section class="panel trading-panel">
|
|
<p class="eyebrow">The Trading Post</p>
|
|
<h2>Day <span id="trade-day">-</span> trading</h2>
|
|
<p class="panel-subtitle">
|
|
The day has ended. Compare supplies with the castaways you found
|
|
during the day and make an offer. Trading does not cost any daily
|
|
hours.
|
|
</p>
|
|
|
|
<div class="trade-preview">
|
|
<div class="trade-chip">
|
|
<span>Your Fish</span>
|
|
<strong id="trade-fish">-</strong>
|
|
</div>
|
|
<div class="trade-arrow">⇄</div>
|
|
<div class="trade-chip">
|
|
<span>Your Wood</span>
|
|
<strong id="trade-wood">-</strong>
|
|
</div>
|
|
</div>
|
|
|
|
<p id="trade-status" class="lobby-status" aria-live="polite">
|
|
Connecting...
|
|
</p>
|
|
|
|
<div class="found-block">
|
|
<p class="field-label">Castaways You Know</p>
|
|
<p id="trade-found-list" class="trade-found-list">
|
|
No one yet. You can only trade with castaways you found during the
|
|
day.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="card-grid">
|
|
<section class="panel" id="trade-offer-panel" hidden>
|
|
<p class="eyebrow">Make an Offer</p>
|
|
<h2>Trade supplies</h2>
|
|
<p class="panel-subtitle">
|
|
Choose what you give and what you want back. The other castaway must
|
|
accept before anything changes hands.
|
|
</p>
|
|
|
|
<form
|
|
id="trade-offer-form"
|
|
class="trade-offer-form"
|
|
autocomplete="off"
|
|
>
|
|
<label class="field">
|
|
<span class="field-label">Trade With</span>
|
|
<select id="trade-target"></select>
|
|
</label>
|
|
|
|
<div class="trade-columns">
|
|
<fieldset class="trade-side">
|
|
<legend>You Give</legend>
|
|
<label class="trade-amount">
|
|
<span>Fish</span>
|
|
<input
|
|
type="number"
|
|
id="trade-give-fish"
|
|
min="0"
|
|
step="1"
|
|
value="0"
|
|
/>
|
|
</label>
|
|
<label class="trade-amount">
|
|
<span>Wood</span>
|
|
<input
|
|
type="number"
|
|
id="trade-give-wood"
|
|
min="0"
|
|
step="1"
|
|
value="0"
|
|
/>
|
|
</label>
|
|
</fieldset>
|
|
|
|
<div class="trade-arrow" aria-hidden="true">⇄</div>
|
|
|
|
<fieldset class="trade-side">
|
|
<legend>You Want</legend>
|
|
<label class="trade-amount">
|
|
<span>Fish</span>
|
|
<input
|
|
type="number"
|
|
id="trade-want-fish"
|
|
min="0"
|
|
step="1"
|
|
value="0"
|
|
/>
|
|
</label>
|
|
<label class="trade-amount">
|
|
<span>Wood</span>
|
|
<input
|
|
type="number"
|
|
id="trade-want-wood"
|
|
min="0"
|
|
step="1"
|
|
value="0"
|
|
/>
|
|
</label>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-primary">Send Offer</button>
|
|
</form>
|
|
|
|
<p id="trade-offer-status" class="lobby-status" aria-live="polite"></p>
|
|
</section>
|
|
|
|
<section class="panel" id="trade-incoming-panel" hidden>
|
|
<p class="eyebrow">Incoming</p>
|
|
<h2>Offers for you</h2>
|
|
<div id="trade-incoming-list" class="offer-list"></div>
|
|
</section>
|
|
|
|
<section class="panel" id="trade-outgoing-panel" hidden>
|
|
<p class="eyebrow">Waiting</p>
|
|
<h2>Your offers</h2>
|
|
<div id="trade-outgoing-list" class="offer-list"></div>
|
|
</section>
|
|
|
|
<section class="panel" id="trade-roster-panel" hidden>
|
|
<p class="eyebrow">Supplies Afloat</p>
|
|
<h2>Castaways You Know</h2>
|
|
<div class="table-container">
|
|
<table class="roster-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Fish</th>
|
|
<th>Wood</th>
|
|
<th>Preserver</th>
|
|
<th>Boat</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="trade-roster-body">
|
|
<tr>
|
|
<td colspan="5" class="empty">Waiting for the crew...</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<h3 style="padding: 0px 0px 0px 10px">
|
|
Gamemaker: Mr. J. Walla ~=~ Developer: Andrew H. ~=~ Designer: Logan C.
|
|
</h3>
|
|
</footer>
|
|
<script type="module" src="client/trading.js"></script>
|
|
</body>
|
|
</html>
|