Adding Speaker Bauchbinde
This commit is contained in:
parent
b9a50d2a68
commit
4c324e9072
11 changed files with 6037 additions and 10 deletions
|
@ -42,6 +42,8 @@ build assets
|
|||
```bash
|
||||
source lektor/bin/activate
|
||||
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule.js --bundle --outfile=assets/rendered_schedule.js
|
||||
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule-vortragsraum.js --bundle --outfile=assets/rendered_schedule-vortragsraum.js
|
||||
./node_modules/.bin/esbuild assets/js/custom/nodes/speaker-info-vortragsraum.js --bundle --outfile=assets/rendered_speaker-info-vortragsraum.js
|
||||
```
|
||||
|
||||
# Get latest schedule
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Fake 'now' date time for testing
|
||||
const fakeNow = null;
|
||||
|
||||
// const fakeNow = Date.parse("2023-11-04T07:30:00");
|
||||
// const fakeNow = Date.parse("2023-11-04T13:10:00");
|
||||
|
||||
|
||||
const fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
|
||||
|
|
42
assets/js/custom/nodes/speaker-info-vortragsraum.js
Normal file
42
assets/js/custom/nodes/speaker-info-vortragsraum.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
'use strict';
|
||||
|
||||
|
||||
import * as fe from "../core/fetcher.js";
|
||||
|
||||
import * as ti from "../core/time.js";
|
||||
|
||||
import * as sc from "../core/screen.js";
|
||||
|
||||
// Import services
|
||||
import * as serv from "../services/general.js";
|
||||
|
||||
// Import views
|
||||
import * as dom from "../dom/speaker-info.js";
|
||||
|
||||
|
||||
// Empty JSON lists for data
|
||||
let storage = {
|
||||
scheduleData: undefined
|
||||
};
|
||||
|
||||
let cfg = {
|
||||
"roomName": "Vortragsraum"
|
||||
};
|
||||
|
||||
|
||||
|
||||
let do_fetch = fe.configure({}, serv);
|
||||
|
||||
do_fetch(storage);
|
||||
|
||||
|
||||
// Main Loop
|
||||
let screen_update = sc.configure(serv, dom);
|
||||
|
||||
// Just do it
|
||||
function main_loop() {
|
||||
screen_update(storage, ti, cfg);
|
||||
setTimeout(main_loop, 1 * 1000);
|
||||
};
|
||||
|
||||
main_loop();
|
5960
assets/rendered_speaker-info-vortragsraum.js
Normal file
5960
assets/rendered_speaker-info-vortragsraum.js
Normal file
File diff suppressed because it is too large
Load diff
3
assets/scss/css/custom/nodes/speaker-info.scss
Normal file
3
assets/scss/css/custom/nodes/speaker-info.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
@import "../styles/_base";
|
||||
|
||||
@import "../styles/_banner-speaker";
|
|
@ -2,9 +2,6 @@ _model: html5infobeamer
|
|||
---
|
||||
title: Vortragsraum Schedule Aalen Geekend 23
|
||||
---
|
||||
body:
|
||||
|
||||
This is a basic demo website that shows how to use Lektor for a basic
|
||||
website with some pages.
|
||||
body: Der HTML5 InfoBeamer des Vortragsraum
|
||||
---
|
||||
schedule: rendered_schedule-vortragsraum.js
|
||||
|
|
|
@ -2,7 +2,4 @@ _model: html5infobeamer
|
|||
---
|
||||
title: Overview Schedule Aalen Geekend 23
|
||||
---
|
||||
body:
|
||||
|
||||
This is a basic demo website that shows how to use Lektor for a basic
|
||||
website with some pages.
|
||||
body: Der Standard Infobeamer des Geekend in Aalen
|
||||
|
|
11
content/speaker-info-vortragssaal/contents.lr
Normal file
11
content/speaker-info-vortragssaal/contents.lr
Normal file
|
@ -0,0 +1,11 @@
|
|||
_model: html5infobeamer
|
||||
---
|
||||
title: Overview Schedule Aalen Geekend 23
|
||||
---
|
||||
body: Die Speaker Bauchbinden der jetzt aktiven Talk
|
||||
---
|
||||
schedule: /rendered_speaker-info-vortragsraum.js
|
||||
---
|
||||
include_image: no
|
||||
---
|
||||
type: bauchbinde
|
|
@ -8,7 +8,13 @@ type = string
|
|||
|
||||
[fields.body]
|
||||
label = Body
|
||||
type = markdown
|
||||
type = string
|
||||
|
||||
[fields.type]
|
||||
label = Select Page Type
|
||||
type = select
|
||||
choices = infobeamer, bauchbinde
|
||||
default = infobeamer
|
||||
|
||||
[fields.schedule]
|
||||
label = Schedule Javascript Address
|
||||
|
|
|
@ -14,11 +14,17 @@
|
|||
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
|
||||
<meta name="author" content="L3D">
|
||||
<link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css">
|
||||
{% if this.type == 'infobeamer' %}
|
||||
<link rel="stylesheet" href="{{ '/css/schedule.css'|asseturl }}" rel="stylesheet" type="text/css">
|
||||
{% elif this.type == 'bauchbinde' %}
|
||||
<link rel="stylesheet" href="{{ '/css/speaker-info.css'|asseturl }}" rel="stylesheet" type="text/css">
|
||||
{% endif %}
|
||||
<script src="/config.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% if this.type == 'infobeamer' %}
|
||||
<img class="header" src="{{ '/images/geekend_23.svg' | asseturl }}" />
|
||||
{% endif %}
|
||||
<main id="main">
|
||||
|
||||
</main>
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
<li>
|
||||
<span class="fa fa-hand-o-right bullet"></span><b>HTML5 InfoBeamer "Vortragssaal":</b><a class="infopoint" href="/schedule-vortragssaal/">/schedule-vortragssaal/</a>
|
||||
</li>
|
||||
<li>
|
||||
<span class="fa fa-hand-o-right bullet"></span><b>HTML5 Bauchbinden aktueller Speaker "Vortragssaal":</b><a class="infopoint" href="/speaker-info-vortragssaal/">/speaker-info-vortragssaal/</a>
|
||||
</li>
|
||||
</ul>
|
||||
<footer>
|
||||
<small>© {{ none|datetimeformat('YYYY') }} L3D <a href="https://winkekatze.tv">winkekatze.tv</a></small>
|
||||
|
|
Loading…
Reference in a new issue