feat: Change usage of templates
- Remove unnecessary super blocks - Use simple templates - Remove pageBase variable from templates
This commit is contained in:
parent
78a761f9cf
commit
0daf19bd87
7 changed files with 12 additions and 17 deletions
|
|
@ -3,13 +3,12 @@ title: Clock
|
|||
tags:
|
||||
- demoExample
|
||||
---
|
||||
{% assign pageBase = "../../" -%}
|
||||
{% assign bodyClass = "body_clock" -%}
|
||||
{% layout "hippie/full.liquid" %}
|
||||
{% layout "hippie/simple.liquid" %}
|
||||
|
||||
{% block body %}
|
||||
<main>
|
||||
<canvas id="clock" width="512" height="512"></canvas>
|
||||
<canvas id="rings" width="512" height="512"></canvas>
|
||||
<p>
|
||||
<button id="tglFormat">12-Stunden-Format</button>
|
||||
</p>
|
||||
|
|
@ -17,10 +16,9 @@ tags:
|
|||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
{{ block.super -}}
|
||||
<script>
|
||||
// Page script
|
||||
const canvas = document.getElementById('clock');
|
||||
const canvas = document.getElementById('rings');
|
||||
const ctx = canvas.getContext('2d');
|
||||
let is24HourFormat = true;
|
||||
const colorDayOfWeek = getComputedStyle(document.documentElement).getPropertyValue('--clock-color-yellow').trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue