Template
HSK-Vorlage aus der Olzinger-Website ableiten
Firmendaten durch Platzhalter ersetzt (Mustermann Haustechnik GmbH, Musterstraße 1, 12345 Musterstadt, 01234 567890, example.com), Design und Funktionen unverändert. - Feiertage im Öffnungsstatus per BUNDESLAND (alle 16 Länder) statt fest Bayern - Datenschutz: Aufsichtsbehörde als TODO je Bundesland - Skript-Namensraum olz -> hsk, Logo-SVG und OG-Bild neu - .webklar-preview.json von Olzinger entfernt (sonst Deploy auf olzinger) - .gitea/template: neue Repos aus der Vorlage erben die Preview-Datei nicht - README: Anleitung für neue HSK-Seiten, Platzhalter-Tabelle, Checkliste Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad155124b1
commit
8da5102333
21 files changed
+238
-180
No files matched your search
+6
-6
@@ -1,5 +1,5 @@
|
||||
/* ==========================================================================
|
||||
Olzinger – Hauptskript
|
||||
HSK-Vorlage – Hauptskript
|
||||
Navigation, mobiles Menü, dezente Einblendungen, Leistungs-Karussell (mobil)
|
||||
und Kartenstapel (Desktop). Bewusst ohne Bibliotheken.
|
||||
========================================================================== */
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
var reduce = w.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
var hasIO = 'IntersectionObserver' in w;
|
||||
w.__olzReady = true;
|
||||
w.__hskReady = true;
|
||||
|
||||
/* ---------- Dynamische Jahreszahlen ---------- */
|
||||
var nowYear = new Date().getFullYear();
|
||||
$$('[data-current-year]').forEach(function (el) { el.textContent = nowYear; });
|
||||
$$('[data-years]').forEach(function (el) { el.textContent = nowYear - 1985; });
|
||||
$$('[data-years]').forEach(function (el) { el.textContent = nowYear - 1990; });
|
||||
|
||||
/* ---------- Wärmebild (ruhiger Hintergrund im Hero) ---------- */
|
||||
var canvas = $('[data-thermal]');
|
||||
if (canvas && w.OlzThermal) {
|
||||
var thermal = w.OlzThermal.init(canvas, {
|
||||
if (canvas && w.HskThermal) {
|
||||
var thermal = w.HskThermal.init(canvas, {
|
||||
hero: $('[data-hero]'),
|
||||
calm: $('.hero__aside'),
|
||||
reduceMotion: reduce
|
||||
@@ -64,7 +64,7 @@
|
||||
d.addEventListener('click', function (e) {
|
||||
var a = e.target.closest('a[href*="#"]');
|
||||
if (!a) return;
|
||||
if (a.dataset.topic) w.dispatchEvent(new CustomEvent('olz:topic', { detail: a.dataset.topic }));
|
||||
if (a.dataset.topic) w.dispatchEvent(new CustomEvent('hsk:topic', { detail: a.dataset.topic }));
|
||||
if (menuOpen) setMenu(false);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user