Set Faketime and Update plugin
This commit is contained in:
parent
06d130ff83
commit
d159fe0bb0
8 changed files with 10 additions and 7 deletions
|
@ -17,7 +17,7 @@ pip install lektor
|
|||
Run lektor:
|
||||
```bash
|
||||
source lektor/bin/activate
|
||||
lektor server -f scss
|
||||
lektor server
|
||||
```
|
||||
|
||||
esbuild instructions
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
// Fake 'now' date time for testing
|
||||
const fakeNow = null;
|
||||
// const fakeNow = null;
|
||||
|
||||
// const fakeNow = Date.parse("2023-11-04T13:10:00");
|
||||
const fakeNow = Date.parse("2023-11-04T13:10:00");
|
||||
|
||||
|
||||
const fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
__export(time_exports, {
|
||||
now: () => now
|
||||
});
|
||||
var fakeNow = null;
|
||||
var fakeNow = Date.parse("2023-11-04T13:10:00");
|
||||
var fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
|
||||
var nowJS = () => Date.now() + fakeTimeDelta;
|
||||
var now = () => luxon.DateTime.fromMillis(nowJS());
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
__export(time_exports, {
|
||||
now: () => now
|
||||
});
|
||||
var fakeNow = null;
|
||||
var fakeNow = Date.parse("2023-11-04T13:10:00");
|
||||
var fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
|
||||
var nowJS = () => Date.now() + fakeTimeDelta;
|
||||
var now = () => luxon.DateTime.fromMillis(nowJS());
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
__export(time_exports, {
|
||||
now: () => now
|
||||
});
|
||||
var fakeNow = null;
|
||||
var fakeNow = Date.parse("2023-11-04T13:10:00");
|
||||
var fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();
|
||||
var nowJS = () => Date.now() + fakeTimeDelta;
|
||||
var now = () => luxon.DateTime.fromMillis(nowJS());
|
||||
|
|
1
configs/scss.ini
Normal file
1
configs/scss.ini
Normal file
|
@ -0,0 +1 @@
|
|||
use_compile_flag=false
|
|
@ -7,5 +7,7 @@ body:
|
|||
Hier findet ihr mehrere Endpunkte des HTML5 Info-Beamer.
|
||||
Der Infobeamer ist Optimiert auf eine Auflösung von ``1920x1080px`` zum Beispiel zum Einfügen im OBS als BrowserSource.
|
||||
|
||||
Achtung, aktuell läuft der HTML5 Info-Beamer mit einer "Faketime", die angezeigte Uhrzeit und Datum ist also falsch.
|
||||
|
||||
Quelle: [git.l3d.ch](https://git.l3d.ch/voc/html5-infobeamer-aalen-geekend-23.git).
|
||||
*Lizenz: [MIT](https://git.l3d.ch/voc/html5-infobeamer-aalen-geekend-23/raw/branch/main/LICENSE)*
|
||||
|
|
|
@ -18,4 +18,4 @@ primary = yes
|
|||
locale = de_DE
|
||||
|
||||
[packages]
|
||||
lektor-scss = 1.4.2
|
||||
lektor-scss = 1.5.0
|
||||
|
|
Loading…
Reference in a new issue