feat: Add current state from hippie main repo
- commit 86f3c679 - source/view/_includes/hippie
This commit is contained in:
parent
1fe8f9d243
commit
980b611a31
32 changed files with 619 additions and 0 deletions
41
app.liquid
Normal file
41
app.liquid
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{% assign pageId = page.fileSlug -%}
|
||||
{% assign pageClass = 'html_ui' -%}
|
||||
{% layout 'hippie/default.liquid' %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block links %}
|
||||
{{ block.super -}}
|
||||
<link href="/vendor/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet">
|
||||
<link href="/css/ui.css" media="all" rel="stylesheet"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block assets %}
|
||||
<script src="/vendor/jquery.min.js"></script>
|
||||
<script src="/vendor/hippie-script.js"></script>
|
||||
<script src="/js/globals.js"></script>
|
||||
<script src="/js/app.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script>
|
||||
const frameHeader = document.querySelector('body > header.io');
|
||||
const closeActionElements = document.querySelectorAll('[data-action=close]');
|
||||
|
||||
if (frameHeader) {
|
||||
console.log('frame header found', frameHeader);
|
||||
|
||||
frameHeader.addEventListener('click', (e) => {
|
||||
if (e.target.dataset.action === 'close') {
|
||||
console.debug('close', e.target);
|
||||
|
||||
history.back();
|
||||
|
||||
if (closeActionElements.length > 1) {
|
||||
console.debug('other frames present', closeActionElements.length);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
39
default.liquid
Normal file
39
default.liquid
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
{% if pageId %}
|
||||
{%- capture idAttr %} id="{{ pageId }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
{% if pageClass %}
|
||||
{%- capture classAttr %} class="{{ pageClass }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
{% if bodyClass %}
|
||||
{%- capture bodyClassAttr %} class="{{ bodyClass }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
<html{{ idAttr }}{{ classAttr }} lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% block head %}
|
||||
<title>
|
||||
{{- hippie.titlePrefix -}}
|
||||
{% block title %}{% endblock -%}
|
||||
{{ hippie.titlePostfix -}}
|
||||
</title>
|
||||
|
||||
{% block meta -%}
|
||||
{% render 'hippie/partials/meta.liquid' %}
|
||||
{% endblock -%}
|
||||
{% block links -%}
|
||||
{% render 'hippie/partials/links.liquid' %}
|
||||
{% endblock -%}
|
||||
{% block style -%}{% endblock -%}
|
||||
{% endblock -%}
|
||||
</head>
|
||||
|
||||
<body{{ bodyClassAttr }}>
|
||||
{%- block body %}{% endblock -%}
|
||||
{%- block assets %}{% endblock -%}
|
||||
<script>
|
||||
// {{ title }} script using default template
|
||||
</script>
|
||||
{%- block script %}{% endblock -%}
|
||||
</body>
|
||||
</html>
|
||||
49
full.liquid
Normal file
49
full.liquid
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
{% if pageId %}
|
||||
{%- capture idAttr %} id="{{ pageId }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
{% if pageClass %}
|
||||
{%- capture classAttr %} class="{{ pageClass }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
{% if bodyClass %}
|
||||
{%- capture bodyClassAttr %} class="{{ bodyClass }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
<html{{ idAttr }}{{ classAttr }} lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% block head %}
|
||||
<title>
|
||||
{{- hippie.titlePrefix -}}
|
||||
{% block title %}{{ title }}{% endblock -%}
|
||||
{{ hippie.titlePostfix -}}
|
||||
</title>
|
||||
{% block meta -%}
|
||||
{% render 'hippie/partials/meta.liquid', author: 'Interaktionsweise', desc: 'Hippie interweaves preeminent personal interface elements' %}
|
||||
{% comment %}<base href="/">{% endcomment %}
|
||||
{% endblock -%}
|
||||
{% render 'hippie/partials/script-log.liquid' %}
|
||||
{% render 'hippie/partials/log-setup', hippie: hippie, state: true -%}
|
||||
{% render 'hippie/partials/log-start' -%}
|
||||
{% block links -%}
|
||||
{% render 'hippie/partials/links.liquid' %}
|
||||
<link rel="stylesheet" media="all" href="/css/demo.css" type="text/css"/>
|
||||
{% endblock -%}
|
||||
{% render 'hippie/partials/log-log' with 'HEAD end :: Links parsed, starting to load.' as msg -%}
|
||||
{% endblock -%}
|
||||
</head>
|
||||
|
||||
<body{{ bodyClassAttr }}>
|
||||
{% render 'hippie/partials/log-log' with 'BODY start' as msg -%}
|
||||
{%- block body %}{% endblock -%}
|
||||
{% render 'hippie/partials/log-log' with 'BODY :: Loading script assets...' as msg -%}
|
||||
{%- block assets %}{% endblock -%}
|
||||
{% render 'hippie/partials/log-assets', state: true -%}
|
||||
{% render 'hippie/partials/log-log', msg: 'BODY :: Assets loaded, running page specific script...', arg: true -%}
|
||||
<script>
|
||||
// {{ title }} script using full template
|
||||
</script>
|
||||
{%- block script %}{% endblock -%}
|
||||
{% render 'hippie/partials/log-log' with 'BODY end :: Page script might still be loading.' as msg -%}
|
||||
{% render 'hippie/partials/log-log' with 'Application ready... or is it?' as msg -%}
|
||||
</body>
|
||||
</html>
|
||||
15
game.liquid
Normal file
15
game.liquid
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{% assign pageId = page.fileSlug -%}
|
||||
{% layout 'hippie/default.liquid' %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block links %}
|
||||
{{ block.super -}}
|
||||
<link href="/css/ui.css" media="all" rel="stylesheet"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block assets %}
|
||||
<script src="/vendor/hippie-script.js"></script>
|
||||
<script src="/js/globals.js"></script>
|
||||
<script src="/js/app.js"></script>
|
||||
{% endblock %}
|
||||
64
page.liquid
Normal file
64
page.liquid
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{% assign pageId = page.fileSlug -%}
|
||||
{% layout 'hippie/full.liquid' %}
|
||||
|
||||
{% block meta %}
|
||||
{{ block.super -}}
|
||||
{% comment %}<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">{% endcomment %}
|
||||
{% comment %}<meta http-equiv="X-UA-Compatible" content="IE=edge" />{% endcomment %}
|
||||
{% endblock %}
|
||||
|
||||
{% block links %}
|
||||
{{ block.super -}}
|
||||
{% if hippie.legacyMode %}
|
||||
<!--[if lte IE 9]> <script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv.min.js"></script> <![endif]-->
|
||||
<!--[if lte IE 9]> <script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> <![endif]-->
|
||||
{% comment %}<script src="./code/html5shiv.min.js"></script>{% endcomment %}
|
||||
{% comment %}<!--Only use one of the above!-->{% endcomment %}
|
||||
{% endif %}
|
||||
|
||||
{% comment %}<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>{% endcomment %}
|
||||
{% comment %}<link rel="stylesheet" type="text/css" media="print" href="/css/print.css"/>{% endcomment %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{{ block.super -}}
|
||||
{% render 'hippie/partials/nav-page.liquid' %}
|
||||
<div id="root">
|
||||
{% render 'hippie/partials/header-page.liquid' %}
|
||||
|
||||
<main class="main_site">
|
||||
{% block main %}{% endblock %}
|
||||
</main>
|
||||
|
||||
{% render 'hippie/partials/footer-page.liquid' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block assets %}
|
||||
<script src="/vendor/jquery.min.js"></script>
|
||||
<script src="/vendor/hippie-script.js"></script>
|
||||
<script src="/js/globals.js"></script>
|
||||
<script src="/js/app.js"></script>
|
||||
{% endblock %}
|
||||
{% block script %}
|
||||
<script>
|
||||
// Setup global things
|
||||
setup();
|
||||
|
||||
// Create instances of objects made by constructor functions
|
||||
let scrollUi = new HippieScroll($('.js_scrolltop'), $('.js_scrolldown'));
|
||||
let helpUi = new HippieMeta($('.js_showmeta'), $('.js_pop'));
|
||||
|
||||
if (viewHover) {
|
||||
let fadeUi = new HippieFade(document.getElementById('js-toggle-fade'), true);
|
||||
}
|
||||
|
||||
document.addEventListener('scroll', () => {
|
||||
scrollUi.check();
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
logPerf('EVENT :: jQuery \'ready\' event fired.');
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
3
partials/footer-page.liquid
Normal file
3
partials/footer-page.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<footer class="footer_site">
|
||||
<div id="end"></div>
|
||||
</footer>
|
||||
3
partials/footer-pinned.liquid
Normal file
3
partials/footer-pinned.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<footer class="pos_abs pin_{{ pos | default: 'bottom' }} pin_right pin_left">
|
||||
<p class="txt_center">Unten fixiert</p>
|
||||
</footer>
|
||||
9
partials/footer-status.liquid
Normal file
9
partials/footer-status.liquid
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<footer class="pos_abs pin_bottom width_full">
|
||||
<address class="txt_center">Kontakt:
|
||||
<a class="lineLink" href="mailto:{{ email | default: 'admin@domain.tld' }}">{{ email | default: 'admin@domain.tld' }}</a>
|
||||
· Server:
|
||||
{{ app | default: 'Application' }}/{{ version | default: 'ver.s.ion' }}
|
||||
({{ system | default: 'System name' }}) · Domain:
|
||||
{{ domain | default: 'domain.tld:port' }}
|
||||
</address>
|
||||
</footer>
|
||||
20
partials/frame-header.liquid
Normal file
20
partials/frame-header.liquid
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<header class="io">
|
||||
<nav>
|
||||
<button title="menu">
|
||||
<i class="bi bi-three-dots"></i>
|
||||
</button>
|
||||
<span>{{ title | default: 'title-bar' }}</span>
|
||||
</nav>
|
||||
<nav>
|
||||
<div class="spacer a"></div>
|
||||
<button title="minimize">
|
||||
<i class="bi bi-dash"></i>
|
||||
</button>
|
||||
<button title="maximize">
|
||||
<i class="bi bi-fullscreen"></i>
|
||||
</button>
|
||||
<button title="close" data-action="close">
|
||||
<i class="bi bi-x-square"></i>
|
||||
</button>
|
||||
</nav>
|
||||
</header>
|
||||
10
partials/frame-mode.liquid
Normal file
10
partials/frame-mode.liquid
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<footer class="io">
|
||||
<nav>
|
||||
<button>mode</button>
|
||||
<span>{{ title | default: 'mode-bar' }}</span>
|
||||
</nav>
|
||||
<nav>
|
||||
<div class="spacer a"></div>
|
||||
<button>action</button>
|
||||
</nav>
|
||||
</footer>
|
||||
11
partials/frame-status.liquid
Normal file
11
partials/frame-status.liquid
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<footer class="io">
|
||||
<nav>
|
||||
<span>## items</span>
|
||||
<span># selected (size)</span>
|
||||
<span># type(s)</span>
|
||||
<span># shared</span>
|
||||
</nav>
|
||||
<nav>
|
||||
<span>{{ title | default: 'status-bar' }}</span>
|
||||
</nav>
|
||||
</footer>
|
||||
15
partials/game-menu.liquid
Normal file
15
partials/game-menu.liquid
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<div class="sec_main_center">
|
||||
<nav role="doc-toc">
|
||||
<hgroup>
|
||||
<h1>{{ title | default: 'Game title' }}</h1>
|
||||
<p>{{ additional | default: 'Additional name' }}</p>
|
||||
</hgroup>
|
||||
<ul class="link">
|
||||
{% for link in links %}
|
||||
<li>
|
||||
<a href="{{ link.href }}">{{ link.text }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
19
partials/gate-list.liquid
Normal file
19
partials/gate-list.liquid
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<article class="portal__entry">
|
||||
<section>
|
||||
<h2>
|
||||
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
|
||||
</h2>
|
||||
<a class="portal__link portal__link--{{ name | slug }}" href="{{ url }}">
|
||||
<img src="{{ image.src }}" alt="{{ image.alt }}"/>
|
||||
</a>
|
||||
{% if links %}
|
||||
<ul class="portal__list">
|
||||
{% for link in links %}
|
||||
<li>
|
||||
<a href="{{ link.href }}"><img src="{{ link.img }}" width="16" height="16" alt="icon"/>{{ link.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</section>
|
||||
</article>
|
||||
7
partials/gate-simple.liquid
Normal file
7
partials/gate-simple.liquid
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<article class="portal__entry">
|
||||
<section>
|
||||
<h2>
|
||||
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
|
||||
</h2>
|
||||
</section>
|
||||
</article>
|
||||
3
partials/header-page.liquid
Normal file
3
partials/header-page.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<header class="header_site">
|
||||
<div id="begin"></div>
|
||||
</header>
|
||||
21
partials/header-status.liquid
Normal file
21
partials/header-status.liquid
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<div id="top">
|
||||
<h1 class="brand">
|
||||
<a href="#">{{ hippie.brand | upcase }}</a>
|
||||
</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
{% for link in links %}
|
||||
<li>
|
||||
<a href="{{ link.href }}">{{ link.text }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="state">
|
||||
<p>{% render 'hippie/partials/status-coord', id: "log" %}
|
||||
/
|
||||
{% render 'hippie/partials/status-date', id: "date" %}
|
||||
/
|
||||
{% render 'hippie/partials/status-time', id: "time" %}</p>
|
||||
</div>
|
||||
</div>
|
||||
3
partials/links.liquid
Normal file
3
partials/links.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{% comment %}<link rel="icon" href="/favicon.ico" type="image/vnd.microsoft.icon">{% endcomment %}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favic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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB3eGhpamtsbW5vcHFycwt0dXZYWVpbXF1eX2BhYmNkZWZnAktMTU5PUFFRUlNUVVZXAABDREVGJSUlJSUlR0hJSgAAADs8PT4lJSUlP0BBQgAAAAAyMzQ1NiUlJTc4OToAAAAAACorLC0lJS4vMDEAAAAAAAAAISIjJCUmJygpAAAAAAAAABkaGxwdHh8gAAAAAAAAAAAAEhMUFRYXGAAAAAAAAAAAAAANDg8QEQAAAAAAAAAAAAAACAkKCwwAAAAAAAAAAAAAAAAFBgcAAAAAAAAAAAAAAAAAAgMEAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=">
|
||||
3
partials/log-assets.liquid
Normal file
3
partials/log-assets.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
assetsLoaded = {{ state | default: false, allow_false: true }};
|
||||
</script>
|
||||
3
partials/log-log.liquid
Normal file
3
partials/log-log.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
logPerf('{{ msg }}', {{ arg | default: '' }});
|
||||
</script>
|
||||
6
partials/log-setup.liquid
Normal file
6
partials/log-setup.liquid
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{% comment %}{% assign hippie.debugMode = state %}{% endcomment %}
|
||||
<script>
|
||||
debugOn = {{ state }};
|
||||
debugOnScreen = {{ display | default: false }};
|
||||
assetsLoaded = {{ assets | default: false }};
|
||||
</script>
|
||||
4
partials/log-start.liquid
Normal file
4
partials/log-start.liquid
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<script>
|
||||
logAdd('EVENT :: Document \'%s\' event fired.', 'DOMContentLoaded');
|
||||
logPerf('HEAD start :: Debugging performance...', debugOn);
|
||||
</script>
|
||||
7
partials/meta.liquid
Normal file
7
partials/meta.liquid
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<meta name="robots" content="noindex">
|
||||
<meta name="generator" content="{{ eleventy.generator }}">
|
||||
<meta name="author" content="{{ author | default: '' }}">
|
||||
<meta name="description" content="{{ desc | default: '' }}">
|
||||
<meta name="keywords" content="{{ keys | default: '' }}">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
33
partials/nav-page.liquid
Normal file
33
partials/nav-page.liquid
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<div class="pos_rel">
|
||||
<nav class="nav_page_meta">
|
||||
<ul>
|
||||
<li class="js_scrolltop di_none">
|
||||
<a href="#begin" class="a_button_meta">
|
||||
<div class="sprite_img demo__sprite_up"></div>
|
||||
{% comment %}<img src="/art/up.png" alt="" width="32" height="64">{% endcomment %}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
{% comment %}<button class="">Show Meta Information</button>{% endcomment %}
|
||||
{% comment %}<a href="#meta" class="js_showmeta a_button_meta">
|
||||
<div class="sprite_img demo__sprite_meta"></div>
|
||||
</a>{% endcomment %}
|
||||
<button class="js_showmeta button_clear" type="button">
|
||||
<div class="sprite_img demo__sprite_meta"></div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button id="js-toggle-fade">F</button>
|
||||
</li>
|
||||
<li class="js_scrolldown">
|
||||
<a href="#end" class="a_button_meta">
|
||||
<div class="sprite_img demo__sprite_down"></div>
|
||||
{% comment %}<img src="/art/down.png" alt="" width="32" height="32">{% endcomment %}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
{% comment %}<div class="exp_overlay_btn exp_help_btn">
|
||||
<span class="span_solo">?</span>
|
||||
</div>{% endcomment %}
|
||||
43
partials/placeholder-flag.liquid
Normal file
43
partials/placeholder-flag.liquid
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{% assign height = width | divided_by: 1.6 %}
|
||||
|
||||
{% if type == 'svg' or type == '' %}
|
||||
<svg id="{{ id }}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewbox="0 0 1920 1200" preserveaspectratio="xMinYMax slice">
|
||||
{% comment %}<defs>
|
||||
<filter id="turb3">
|
||||
<feColorMatrix type="saturate" values="1" />
|
||||
<feTurbulence type="turbulence" baseFrequency="0.01" numOctaves="2"/>
|
||||
</filter>
|
||||
<symbol id="triangle-5">
|
||||
<rect y="0" fill="#273F8B" width="1920" height="1200"/>
|
||||
</symbol>
|
||||
</defs>
|
||||
<g>
|
||||
<use xlink:href="#triangle-5" style="filter: url(#turb3);" />
|
||||
</g>{% endcomment %}
|
||||
{% if desc %}
|
||||
<desc>{{ desc }}</desc>
|
||||
{% endif %}
|
||||
<rect id="triangle-5" y="0" fill="#273F8B" width="1920" height="1200"/>
|
||||
<polygon id="triangle-6" fill="#8E1F68" points="0,1200 1920,458.25 1920,1200 "/>
|
||||
<polygon id="triangle-7" fill="#D30A51" points="0,1200 1920,522.75 1920,1200 "/>
|
||||
<polygon id="triangle-8" fill="#F2AF13" points="0,1200 1920,741.75 1920,1200 "/>
|
||||
<polygon id="triangle-9" fill="#FAD803" points="0,1200 1920,787.5 1920,1200 "/>
|
||||
<polygon id="triangle-4" fill="#3C579A" points="0,1200 0,0 733.5,0 "/>
|
||||
<polygon id="triangle-3" fill="#B7E0F0" points="0,1200 0,0 688.5,0 "/>
|
||||
<polygon id="triangle-2" fill="#6BC7D9" points="0,1200 0,0 453,0 "/>
|
||||
<polygon id="triangle-1" fill="#52BED1" points="0,1200 0,0 370.5,0 "/>
|
||||
</svg>
|
||||
{% elsif type == 'img' %}
|
||||
{% if src == 'file' %}
|
||||
<picture>
|
||||
<source srcset="/art/flag_websafe_128x80.webp" type="image/webp"/>
|
||||
<img src="/art/flag_websafe_128x80.gif" width="{{ width }}" height="{{ height }}" alt="{{ desc }}"/>
|
||||
</picture>
|
||||
{% else %}
|
||||
<img
|
||||
width="{{ width }}"
|
||||
height="{{ height }}"
|
||||
alt="{{ desc }}"
|
||||
src="data:image/gif;base64,R0lGODlhgABQAIQAMf/MAP+ZM/+ZAP9mM8zM/8xmM8wzM8wAZpnM/5nMzJmZzJkzZpkAZmbMzGaZzGZmmWYzZjNmmTMzmQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAgABQAAQF/mDjiORolug5NiKSEG8Mz68SSbek73zv/8CgcEhkGY/IpBLRcBEQM+hL+nRIHrscLsvVab/drTcMHpvF6DIuxVaxj7I4DZZAE+/4vB6o7PubRgSCUIOCT4YRDxE3jFuNj46RkJOSlZSXlo5tm24nTXKgBA5ae6Wmpz5/qklOU1GvCYqNZ2q1ZLe0uGm6X5y+K0dzoQlWpKjHyHery0wIhIeFgwiLmZjW1djX2pa/viwjw3PUyeTlQct/TCyHru0ENru58vH0tvP29VndnazhMVjGzAkkh06VM2gICdkAmK3htocOI0bYtymQv2kBB2o8VrBPM3dUoDxQdI+XyZIo/vOlnMivJQk4wubA20iTYMcj6l5ESzgKok+JQH8+osivQcw4DezUXFrqJquQsAhQw0f1pMqrVe8RRcHCn6iMTMMqc8qCSUJDUm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whugArvWgrj9YD0+2hnHFkhBvXWlQUmLEc8qyMG9scCBscMS8DpIQg9Oh1JJS1sJV3i4pKQnaz9joQz15gDxzfCGegsBADs=">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
113
partials/script-log.liquid
Normal file
113
partials/script-log.liquid
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
<script>
|
||||
// Entry script at page init
|
||||
let debugOn = {{ hippie.debugMode | default: false, allow_false: true }};
|
||||
let debugOnScreen = false;
|
||||
let assetsLoaded = false;
|
||||
|
||||
// Get the current time difference between page
|
||||
// load and when this func was invoked
|
||||
function getTimeDiff() {
|
||||
return new Date().getTime() - performance.timing.navigationStart;
|
||||
}
|
||||
|
||||
function pad(n, width, z) {
|
||||
z = z || '0';
|
||||
n = n + '';
|
||||
|
||||
return n.length >= width
|
||||
? n
|
||||
: new Array(width - n.length + 1).join(z) + n;
|
||||
}
|
||||
|
||||
// Log message to console and add
|
||||
// performance measuring information
|
||||
function logPerf(msg, arg) {
|
||||
if (debugOn) {
|
||||
if (debugOnScreen && assetsLoaded) {
|
||||
if (!document.getElementById('jsLogPerf')) {
|
||||
let wrap = document.createElement('div');
|
||||
let box = document.createElement('div');
|
||||
|
||||
wrap.style.position = 'relative';
|
||||
box.style.cssText = `position: fixed;
|
||||
bottom: 16px;
|
||||
right: 40px;
|
||||
zIndex: 1000;
|
||||
padding: 0 8px;
|
||||
background: rgba(255,255,255,.6);
|
||||
color: rgb(128);
|
||||
fontSize: 1rem;`;
|
||||
box.id = 'jsLogPerf';
|
||||
|
||||
wrap.prepend(box);
|
||||
document
|
||||
.body
|
||||
.prepend(wrap);
|
||||
|
||||
/*
|
||||
$('<div><div></div></div>')
|
||||
.css('position', 'relative')
|
||||
.find('div')
|
||||
.attr('id', 'jsLogPerf')
|
||||
.css({
|
||||
position: 'fixed',
|
||||
bottom: '16px',
|
||||
right: '40px',
|
||||
zIndex: '1000',
|
||||
padding: '0 8px',
|
||||
background: 'rgba(255,255,255,.6)',
|
||||
color: 'rgb(128)',
|
||||
fontSize: '1rem'
|
||||
})
|
||||
.end()
|
||||
.prependTo('body');
|
||||
*/
|
||||
// $('body').prepend('<div style="position:relative;"></div>');
|
||||
// $('div').first().prepend('<div id="jslogPerf" style="position:fixed;bottom:8px;right:16px;z-index:1000;padding:8px;background:rgb(0,255,255,.5)"></div>');
|
||||
}
|
||||
|
||||
let code = document.createElement('code');
|
||||
|
||||
code.style.cssText = `display: block;
|
||||
margin: 8px 0;
|
||||
padding: 1px 4px;
|
||||
background-color: transparent;
|
||||
color: black;
|
||||
font-size: 12px;
|
||||
line-height: 1.1;`;
|
||||
code.innerHTML = '<b>' + pad(getTimeDiff(), 5) + '</b>ms :: ' + msg + '';
|
||||
|
||||
document
|
||||
.getElementById('jsLogPerf')
|
||||
.append(code);
|
||||
// document.getElementById('jsLogPerf').append('<p class="code_solo txt_smaller"><b>' + pad(getTimeDiff(), 5) + '</b>ms :: ' + msg + '</p>');
|
||||
// $('#jsLogPerf').append('<p class="code_solo txt_smaller"><b>' + pad(getTimeDiff(), 5) + '</b>ms :: ' + msg + '</p>');
|
||||
|
||||
// NOTE: Alternative short-circuit evaluation
|
||||
// needs element in document but prevents error if not
|
||||
// $log = $log || $('#jslogPerf');
|
||||
// $log.append('<p style="margin-bottom:4px;font-size:.75em;"><b>' + getTimeDiff() + '</b>ms :: ' + msg);
|
||||
}
|
||||
|
||||
if (window.console) {
|
||||
const time = pad(getTimeDiff(), 5) + 'ms :: ';
|
||||
|
||||
console.debug(time + msg, (
|
||||
arg
|
||||
? arg
|
||||
: ''));
|
||||
|
||||
// NOTE: Non standard feature. Not available on IE
|
||||
if (console.timeStamp) {
|
||||
console.timeStamp(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function logAdd(msg, listener) {
|
||||
document.addEventListener(listener, function () {
|
||||
logPerf(msg, listener);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
10
partials/song.liquid
Normal file
10
partials/song.liquid
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<article class="songbook_song">
|
||||
<header>
|
||||
<h2>{{ data.title }}</h2>
|
||||
<h6>{{ data.releaseDate }}</h6>
|
||||
<p>{{ data.description }}</p>
|
||||
</header>
|
||||
{% comment %}<pre class="pre_code"><code>{{ content }}</code></pre>{% endcomment %}
|
||||
{{ content }}
|
||||
<footer>{{ index }}</footer>
|
||||
</article>
|
||||
1
partials/status-coord.liquid
Normal file
1
partials/status-coord.liquid
Normal file
|
|
@ -0,0 +1 @@
|
|||
<span id="{{ id }}">{{ text | default: 'X: #, Y: ##' }}</span>
|
||||
6
partials/status-date.liquid
Normal file
6
partials/status-date.liquid
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<span id="{{ id }}">
|
||||
<span id="day">Wochentag</span>,
|
||||
<span id="dayNumb">##</span>.
|
||||
<span id="month">Monat</span>
|
||||
<span id="year">####</span>
|
||||
</span>
|
||||
1
partials/status-time.liquid
Normal file
1
partials/status-time.liquid
Normal file
|
|
@ -0,0 +1 @@
|
|||
<span id="{{ id }}">{{ text | default: '00:00:00' }}</span><span>{{ postfix | default: ' Uhr' }}</span>
|
||||
9
simple.liquid
Normal file
9
simple.liquid
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% assign pageId = page.fileSlug -%}
|
||||
{% layout 'hippie/default.liquid' %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block links %}
|
||||
{{ block.super -}}
|
||||
<link href="/css/demo.css" media="all" rel="stylesheet"/>
|
||||
{% endblock %}
|
||||
37
status.liquid
Normal file
37
status.liquid
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
{% if pageClass %}
|
||||
{%- capture classAttr %} class="{{ pageClass }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
{% if bodyClass %}
|
||||
{%- capture bodyClassAttr %} class="{{ bodyClass }}"{% endcapture -%}
|
||||
{% endif -%}
|
||||
<html id="{{ page.fileSlug }}"{{ classAttr }} lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% block head %}
|
||||
<title>
|
||||
{{- hippie.titlePrefix -}}
|
||||
{% block title %}{{ title }}{% endblock -%}
|
||||
{{ hippie.titlePostfix -}}
|
||||
</title>
|
||||
{% block meta -%}
|
||||
{% render 'hippie/partials/meta.liquid' %}
|
||||
{% endblock -%}
|
||||
{% block links -%}
|
||||
<link rel="shortcut icon" type="image/x-icon"
|
||||
href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAH7SURBVDiNldM/aJNBGMfx71viH7TqIoLiIOoiSJRu0qE4uIiDm5OI4ODk4uYioqBuUkR0kKJNFC1mqUltlbZSqE3RYt+2SUyTppCmeU2bkiZ907z3vnfnUEU0NrXPeMd97p6H+xlaa02D0oDRYL+p4WEN9yZm8dT6dzQEQtkCuiIJxHKbBxZrLiNWmc8vRxn7lMGRanPAw0QW49Uwp8ODJEZmCCSt/wcGrCWavte44LRz7FyYnd+yxMZz2J7cGKh6kvczRUp3X9BnmFyLzHNVRpkeShNM1b+iDngUn2Oue4qLLV3cf+YST2tiLf3sj04wmypSEt76wFixwoJpcbKnh/ZMmuXK2vqdYJXLxyPMDiTpTOX/DbhK88bMMh4Y5sSZt3R2/+53aRkCzgT+oX4Kls2i49YDT+M5JkMmV+aj3BrII/+a15MuSevZEPl3UzxP5/8EMiurfO1L0hyNU27tZehL/c/zJNzsLXB+uoNySZBfFQD4tIbHHxJMfoxxu2pi7rK5fsm3FgL5MwXKQAPaMzh8JMbg61E6mn3c8B/CF5yx2L1tC/5TR4nsAS/RhlNzcR0P6TggFVoDGrYqyYMkLOybZ4fQZFZqGOHsgi4KF1tIakrhKIXj/WrBQAuJV3EQtsBbEQjbQVQEB/0HUHu3Y2wU5/XKVRqhFD8AgpYX2M9TNGcAAAAASUVORK5CYII=">
|
||||
<link rel="stylesheet" type="text/css" media="all" href="/css/demo_basic.css"/>
|
||||
{% endblock -%}
|
||||
{% endblock -%}
|
||||
</head>
|
||||
|
||||
<body{{ bodyClassAttr }}>
|
||||
{%- block body %}
|
||||
<main class="main_site">
|
||||
<h1>{{ title }}</h1>
|
||||
{% block main %}{% endblock -%}
|
||||
</main>
|
||||
{% render 'hippie/partials/footer-status' %}
|
||||
{% endblock -%}
|
||||
</body>
|
||||
</html>
|
||||
11
world.liquid
Normal file
11
world.liquid
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ content }}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue