143 lines
No EOL
3.6 KiB
Text
143 lines
No EOL
3.6 KiB
Text
---
|
|
title: TFW
|
|
tags:
|
|
- game
|
|
---
|
|
{% assign bodyClass = 'body_tfw' -%}
|
|
{% layout 'hippie/game.liquid' %}
|
|
|
|
{% block body %}
|
|
<header class="io">
|
|
<button data-action="escape">☰</button>
|
|
<button data-action="previous"><</button>
|
|
<button data-action="quest">Quests</button>
|
|
<button data-action="region">Regions</button>
|
|
<button data-action="vendor">Vendors</button>
|
|
<button data-action="manufacture">Manufacture</button>
|
|
<button data-action="character">Characters</button>
|
|
<button data-action="stash">Stash</button>
|
|
<button data-action="secret">Secret Storage</button>
|
|
<button data-action="squad">Squads</button>
|
|
<button data-action="ready">Ready Room</button>
|
|
<button data-action="next">></button>
|
|
</header>
|
|
<div class="flex_auto">
|
|
<main class="flex_auto">
|
|
<nav>
|
|
<div class="important">Filter</div>
|
|
<input placeholder="Search" type="text">
|
|
<select name="type">
|
|
<option value="" selected>Type</option>
|
|
<option value="all">All</option>
|
|
<option value="assasin">Assasination</option>
|
|
<option value="loot">Looting</option>
|
|
<option value="extract">Extract</option>
|
|
<option value="fetch">Fetch</option>
|
|
<option value="kill">Kill</option>
|
|
</select>
|
|
</nav>
|
|
<div>
|
|
<div>
|
|
<table>
|
|
<colgroup>
|
|
<col class="l">
|
|
<col class="q">
|
|
<col class="t">
|
|
</colgroup>
|
|
<tr>
|
|
<th>Location</th>
|
|
<th>Quest</th>
|
|
<th>Type</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="background">
|
|
<span>Scorched Earth</span>
|
|
</td>
|
|
<td>...</td>
|
|
<td class="subtle">Available</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="background">
|
|
<span>Location name</span>
|
|
</td>
|
|
<td>...</td>
|
|
<td class="subtle">Available</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
<table>
|
|
<colgroup>
|
|
<col class="l">
|
|
<col class="q">
|
|
<col class="s">
|
|
</colgroup>
|
|
<tr>
|
|
<th colspan="3">Active quests (Max.: 4)</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="background"></td>
|
|
<td>King Of Kings</td>
|
|
<td class="subtle">Active</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="background"></td>
|
|
<td>Garage Days Pt. 1</td>
|
|
<td class="subtle success">Complete</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="background">
|
|
<h2>King Of Kings</h2>
|
|
</div>
|
|
<p>A hijacked medium mech dubbed the "Rat King" ...</p>
|
|
<hr class="dotted">
|
|
<p>Collect Rat King residue.</p>
|
|
<hr>
|
|
<p>Multiple rig container upgrades, 5000 CR, 5000 XP, 2 days of water, + Scav faction
|
|
rating</p>
|
|
</div>
|
|
</main>
|
|
<footer class="io">
|
|
<button data-action="back">Back</button>
|
|
<button data-action="accept">Accept</button>
|
|
</footer>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{%- block script %}
|
|
{{ block.super -}}
|
|
<script>
|
|
const menu = document.querySelector('body > header');
|
|
const placeholder = document.querySelectorAll('.background');
|
|
|
|
menu.addEventListener('click', (event) => {
|
|
const buttons = menu.querySelectorAll('button');
|
|
const buttonTarget = event.target.closest('button');
|
|
|
|
if (buttonTarget && event.button === 0) {
|
|
for (button of buttons) {
|
|
button.classList.remove('active');
|
|
}
|
|
|
|
buttonTarget.classList.add('active');
|
|
}
|
|
});
|
|
|
|
placeholder.forEach(element => {
|
|
const hue = randomIntFrom(0, 360);
|
|
const grayscale = randomFloatFrom(0, 1);
|
|
|
|
console.log(hue, grayscale);
|
|
|
|
new RandomPixelCanvas(element, {
|
|
width: Math.floor(element.parentElement.clientWidth),
|
|
height: Math.floor(element.parentElement.clientHeight),
|
|
colors: ['#fad803', '#d30a51', '#273f8b', '#b7e0f0', '#52bed1', '#0c85ff'],
|
|
filter: 'grayscale(' + grayscale + ') hue-rotate(' + hue + 'deg)'
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %} |