gammatools/web/encounter.html

69 lines
2.1 KiB
HTML
Raw Normal View History

2024-06-26 07:45:20 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="styles.css">
2024-07-02 23:00:10 +00:00
<style>
#resultSection {
font-family: Arial, sans-serif;
font-size: 14pt;
}
.container {
display: grid;
grid-template-columns: 1.1fr 1fr 0.9fr;
grid-template-rows: 1.2fr 0.5fr 1.3fr;
gap: 0px 0px;
grid-auto-flow: row;
}
.container.android {
display: flex;
flex-direction: column;
gap: 20px;
}
2024-07-03 07:16:37 +00:00
/* Container for each type (thinker, worker, warrior) */
.typeContainer {
display: flex; /* Use flexbox for layout */
justify-content: space-between; /* Space out the child elements evenly */
margin-bottom: 20px; /* Add some bottom margin for separation between types */
}
/* Profile and abilities within each type */
.creature_profile,
.creature_abilities {
width: 45%; /* Give them each about half the container's width */
}
2024-07-02 23:00:10 +00:00
.creature_id { grid-area: 1 / 1 / 2 / 2; }
.creature_profile { grid-area: 1 / 2 / 2 / 3; }
.creature_abilities { grid-area: 1 / 3 / 2 / 4; }
.creature_attacks { grid-area: 2 / 1 / 3 / 4; }
.creature_mutations { grid-area: 2 / 2 / 3 / 2; }
.creature_description { grid-area: 3 / 1 / 4 / 4; }
</style>
2024-06-28 22:00:49 +00:00
<title>Gamma World Encounter Check</title>
<script src="config.js"></script>
2024-06-26 07:45:20 +00:00
<script src="encounter.js" defer></script>
</head>
<body>
2024-06-28 22:26:42 +00:00
<h2>Check For An Encounter</h2>
2024-06-26 07:45:20 +00:00
<form id="terrainForm">
<select id="terrainType">
<option value="clear">Clear</option>
<option value="mountains">Mountainous</option>
<option value="forest">Forest</option>
<option value="desert">Desert</option>
<option value="watery">Watery</option>
<option value="ruins">Ruins</option>
<option value="deathlands">Death Lands</option>
</select>
<button type="submit">Check For Encounter</button>
</form>
<hr/>
<div id="resultSection"></div>
</body>
</html>