cpred/skills/index.html

237 lines
6.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fertigkeiten - ThePhoenixDivision</title>
<link rel="manifest" href="/cpred/assets/manifest.json">
<meta name="theme-color" content="#ff003c">
<!-- Stylesheets -->
<link rel="stylesheet" href="/cpred/assets/css/normalize.css">
<link rel="stylesheet" href="/cpred/assets/css/main.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="/cpred/assets/css/cyberpunk.css">
</head>
<body>
<header>
<div class="navbar-fixed">
<nav class="cyber-razor-bottom bg-black">
<div class="nav-wrapper">
<a href="/cpred/" class="cyberpunk-font-og f-x2-5">ThePhoenixDivision</a>
<ul id="nav-mobile" class="right hide-on-med-and-down desktop-only">
<li><a href="/cpred/" class="cyber-a">Home</a></li>
<li><a href="/cpred/player-guides" class="cyber-a">Player Guides</a></li>
<li><a href="/cpred/lifepaths/" class="cyber-a">Lebensweg</a></li>
<li><a href="/cpred/characters/" class="cyber-a">Charaktere</a></li>
<li><a href="/cpred/roles/" class="cyber-a">Rollen</a></li>
<li><a href="/cpred/skills/" class="cyber-a fg-yellow">Fertigkeiten</a></li>
</ul>
</div>
</nav>
</div>
<!-- WIP: Breadcrumb
<div class="cyber-att">
<a href="/cpred/">Home</a>
<span>skills</span>
</div>
-->
</header>
<main class="container">
<h1 class="cyber-h">Fertigkeiten</h1>
<p>Fertigkeiten sind Dinge, die dein Charakter kennt oder kann. Sie stehen für Wissen und Leistungen. Jede Fertigkeit ist mit einem Attribut verbunden, das ihre Ausführung beeinflusst.</p>
<div id="skill-overview">
</div>
<script>
fetch("/cpred/assets/game-data/skills.json")
.then(response => response.json())
.then(skills => {
const skillDiv = document.getElementById('skill-overview');
for (const skillgroup of skills.Fertigkeiten) {
const groupSection = document.createElement('section');
const groupTitle = document.createElement('h2');
groupTitle.className = "cyber-h";
groupTitle.textContent = skillgroup.Gruppe;
groupSection.appendChild(groupTitle);
const skillTable = document.createElement('table');
skillTable.className = "cyber-table ac-red";
skillTable.setAttribute("style", "width: auto;");
const tableHeader = document.createElement('tr');
const headerName = document.createElement('th');
headerName.textContent = "Fertigkeit";
const headerType = document.createElement('th');
headerType.textContent = "Attribut";
const headerDescription = document.createElement('th');
headerDescription.textContent = "Beschreibung";
tableHeader.appendChild(headerName);
tableHeader.appendChild(headerType);
tableHeader.appendChild(headerDescription);
skillTable.appendChild(tableHeader);
for (const skill of skillgroup.Fertigkeiten) {
const skillRow = document.createElement('tr');
const skillName = document.createElement('td');
skillName.textContent = skill.Name;
const skillType = document.createElement('td');
skillType.textContent = skill.Attribut;
const skillDescription = document.createElement('td');
skillDescription.textContent = skill.Beschreibung;
skillRow.appendChild(skillName);
skillRow.appendChild(skillType);
skillRow.appendChild(skillDescription);
skillTable.appendChild(skillRow);
}
groupSection.appendChild(skillTable);
skillDiv.appendChild(groupSection);
}
});
</script>
</main>
<footer class="cyber-razor-top bg-black">
<ul class="tabs mobile-tabs">
<li class="tab col s1 bg-dark"><a href="/cpred/" class="cyber-a"><i class="material-icons">home</i></a></li>
<li class="tab col s1 bg-dark">
<a href="/cpred/player-guides" target="_self" class="cyber-a">
<i class="material-icons">assist_walker</i>
</a>
</li>
<li class="tab col s1 bg-dark">
<a href="/cpred/lifepaths/" target="_self" class="cyber-a">
<i class="material-icons">merge</i>
</a>
</li>
<li class="tab col s1 bg-dark">
<a href="/cpred/characters/" target="_self" class="cyber-a">
<i class="material-icons">account_circle</i>
</a>
</li>
<li class="tab col s1 bg-dark">
<a href="/cpred/roles/" target="_self" class="cyber-a">
<i class="material-icons">manage_accounts</i>
</a>
</li>
<li class="tab col s1 bg-red">
<a href="/cpred/skills/" target="_self" class="cyber-a">
<i class="material-icons">fact_check</i>
</a>
</li>
</ul>
<span></span>
</footer>
<script src="/cpred/assets/js/materialize.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
const elems = document.querySelectorAll('.tooltipped');
const instances = M.Tooltip.init(elems, {});
});
document.addEventListener('DOMContentLoaded', function() {
var sidenavElems = document.querySelectorAll('.sidenav');
var sidenavInstances = M.Sidenav.init(sidenavElems, {});
});
document.querySelectorAll("button").forEach(button => {
const href = button.getAttribute("data-href");
if (!href) return;
button.addEventListener("click", () => {
window.location.href = button.getAttribute("data-href");
});
});
</script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("/cpred/assets/js/service-worker.js")
.then((reg) => {
console.log("✅ Service Worker registriert");
if ('SyncManager' in window) {
reg.sync.register('cache-all-pages')
.then(() => console.log("✅ Alle Seiten werden gecached"))
.catch(err => console.error("❌ Fehler beim Sync:", err));
}
})
.catch(error => console.log("❌ Service Worker Fehler:", error));
}
</script>
</body>
</html>