Files
f0ckm/views/about.html
2026-05-23 21:51:00 +02:00

32 lines
1.0 KiB
HTML

@include(snippets/header)
<div class="pagewrapper">
<div id="main">
<div class="rules">
@if(about_text)
<div class="dynamic-page-content" id="about-dynamic-content"></div>
<script id="about-raw-data" type="application/json">{{ about_text_b64 }}</script>
<script>
(function() {
var raw = document.getElementById('about-raw-data');
var el = document.getElementById('about-dynamic-content');
function render() {
if (raw && el && typeof marked !== 'undefined') {
var bytes = Uint8Array.from(atob(raw.textContent.trim()), function(c) { return c.charCodeAt(0); });
var text = new TextDecoder('utf-8').decode(bytes);
el.innerHTML = marked.parse(text, { gfm: true, breaks: true });
}
}
if (typeof marked !== 'undefined') {
render();
} else {
document.addEventListener('DOMContentLoaded', render);
}
})();
</script>
@else
<h1>About</h1>
@endif
</div>
</div>
</div>
@include(snippets/footer)