156 lines
4.3 KiB
HTML
156 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<title>HexFlagGen</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="https://cdn.abtmtr.link/cdn/css/normal.css" />
|
|
<style>
|
|
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
|
|
|
:root {
|
|
--base-scale: 16px;
|
|
|
|
--background-color: hsl(0, 0%, 15%);
|
|
--color: hsl(0, 0%, 85%);
|
|
--accent-color: #808080;
|
|
--accent-color-fg: hsl(0, 0%, 95%);
|
|
--font-family: "Lexend Deca";
|
|
--document-width: 40em;
|
|
}
|
|
|
|
* {
|
|
<<<<<<< HEAD
|
|
transition: background-color 0.125s, color 0.125s;
|
|
=======
|
|
transition: background-color 0.125s, color 0.125s, opacity 0.125s;
|
|
>>>>>>> d5e5502 (SteamTheWoz v2)
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section>
|
|
<<<<<<< HEAD
|
|
<h1>HexFlagGen</h1>
|
|
=======
|
|
<h1>SteamTheWoz</h1>
|
|
>>>>>>> d5e5502 (SteamTheWoz v2)
|
|
<label for="size_width"
|
|
><input
|
|
type="number"
|
|
style="width: 8ch"
|
|
min="0"
|
|
max="64"
|
|
value="16"
|
|
onchange="document.documentElement.style.setProperty('--base-scale', event.target.value + 'px')"
|
|
/>
|
|
UI scale</label
|
|
><br /><label for="checkbox" class="checkbox">
|
|
<input
|
|
type="checkbox"
|
|
id="checkbox"
|
|
onchange="event.target.checked ? document.documentElement.classList.add('base') : document.documentElement.classList.remove('base')"
|
|
/>
|
|
<span class="checkbox">O</span>
|
|
Base style
|
|
</label>
|
|
<p>by <a href="https://abtmtr.link/">MeowcaTheoRange</a></p>
|
|
<<<<<<< HEAD
|
|
<p>Make a flag out of the hexadecimal bytes of your choice.</p>
|
|
</section>
|
|
<hr />
|
|
<section>
|
|
<label for="data">Generator string</label><br />
|
|
<input
|
|
type="text"
|
|
id="data"
|
|
value="5BCEFAF5A9B8FFFFFFF5A9B85BCEFABA53"
|
|
style="width: 100%"
|
|
/><br />
|
|
<button id="generateButton">Generate!</button>
|
|
</section>
|
|
<section>
|
|
<input
|
|
type="number"
|
|
id="size_width"
|
|
style="width: 8ch"
|
|
min="0"
|
|
max="3000"
|
|
value="300"
|
|
/>
|
|
<label for="size_width">Width (px)</label><br />
|
|
<input
|
|
type="number"
|
|
id="size_height"
|
|
style="width: 8ch"
|
|
min="0"
|
|
max="3000"
|
|
value="200"
|
|
/>
|
|
<label for="size_height">Height (px)</label><br />
|
|
<select id="flag_type">
|
|
<option value="horiz">Horizontal</option>
|
|
<option value="vert" selected>Vertical</option>
|
|
</select>
|
|
<label for="flag_type">Flag type</label>
|
|
</section>
|
|
<hr />
|
|
<section>
|
|
<p>
|
|
Hex: <code><span id="hexdisplay">...</span></code>
|
|
</p>
|
|
<canvas id="canvas" width="300" height="200"></canvas>
|
|
=======
|
|
<p>Make a Scott The Woz thumbnail out of any Steam game.</p>
|
|
</section>
|
|
<hr />
|
|
<section>
|
|
<input
|
|
type="number"
|
|
id="steam_game"
|
|
style="width: 8ch"
|
|
min="10"
|
|
value="620"
|
|
/>
|
|
<label for="steam_game">Steam Game ID</label><br />
|
|
<button id="generateButton">Generate!</button>
|
|
</section>
|
|
<section>
|
|
<label for="scott_index">Extras</label><br />
|
|
<input
|
|
type="number"
|
|
id="scott_index"
|
|
style="width: 8ch"
|
|
min="0"
|
|
max="9"
|
|
value="0"
|
|
/>
|
|
<label for="scott_index">Scott Index</label>
|
|
<small
|
|
>(
|
|
<label for="stash" class="checkbox">
|
|
<input
|
|
type="checkbox"
|
|
id="stash"
|
|
onchange="scott_index.disabled = event.target.checked"
|
|
/>
|
|
<span class="checkbox">O</span>
|
|
Scott's Stash </label
|
|
>)</small
|
|
><br />
|
|
<select id="align">
|
|
<option value="left">Left</option>
|
|
<option value="center" selected>Center</option>
|
|
<option value="right">Right</option>
|
|
</select>
|
|
<label for="align">Background Alignment</label>
|
|
</section>
|
|
<hr />
|
|
<section>
|
|
<canvas id="canvas" width="1280" height="720"></canvas>
|
|
>>>>>>> d5e5502 (SteamTheWoz v2)
|
|
</section>
|
|
<script src="scripts/index.js"></script>
|
|
</body>
|
|
</html>
|