Sonnensystem: einheitliche Kopfzeile oben, #ui + Top-Elemente nach unten
- ggs-header (Overlay) oben: Titel-Pille + Toolbar-Buttons (Home/Reset/BGM/ Hilfe iconisiert, Easy/Light/Theme als Sim-Buttons) rechts oben. - Toolbar + Titel aus #ui entfernt; #ui nach unten (top 62). - Datums-Banner (top 64) und Lupe (top 104, inkl. renderInspect-Offset) unter den Header geschoben. - Komponente: cockpit-link/home, reset-defaults-toggle/reset, help-toggle/ help, bgm-toggle/music erkannt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -71,11 +71,11 @@
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var SOUND_IDS = ['btn-sound', 'btn-mute', 'btnVoiceToggle', 'btnAudioToggle', 'btnAudio', 'audio-toggle', 'btnSound', 'btn-ton', 'btn-audio'];
|
var SOUND_IDS = ['btn-sound', 'btn-mute', 'btnVoiceToggle', 'btnAudioToggle', 'btnAudio', 'audio-toggle', 'btnSound', 'btn-ton', 'btn-audio'];
|
||||||
var RESET_IDS = ['btn-reset', 'btnReset', 'btn-restart', 'btn-neustart'];
|
var RESET_IDS = ['btn-reset', 'btnReset', 'btn-restart', 'btn-neustart', 'reset-defaults-toggle'];
|
||||||
var HELP_IDS = ['btn-info', 'btnHelp', 'btn-help', 'btn-anleitung', 'btn-hilfe'];
|
var HELP_IDS = ['btn-info', 'btnHelp', 'btn-help', 'btn-anleitung', 'btn-hilfe', 'help-toggle'];
|
||||||
var GLOSSAR_IDS = ['glossar-btn', 'btn-glossar', 'btnGlossar', 'btnGlossary'];
|
var GLOSSAR_IDS = ['glossar-btn', 'btn-glossar', 'btnGlossar', 'btnGlossary'];
|
||||||
var MUSIC_IDS = ['btnMusic', 'btnMusik', 'music-toggle-btn']; // sim-eigener Musik-Toggle (öffnet eigenes Panel)
|
var MUSIC_IDS = ['btnMusic', 'btnMusik', 'music-toggle-btn', 'bgm-toggle']; // sim-eigener Musik-Toggle
|
||||||
var HOME_IDS = ['btnHome', 'btn-home', 'ggs-home-link'];
|
var HOME_IDS = ['btnHome', 'btn-home', 'ggs-home-link', 'cockpit-link'];
|
||||||
|
|
||||||
/* Glyph-Buttons (Ton), die die Sim per textContent umschaltet:
|
/* Glyph-Buttons (Ton), die die Sim per textContent umschaltet:
|
||||||
Icon nach jeder Änderung nachziehen, Mute-Zustand als Icon spiegeln. */
|
Icon nach jeder Änderung nachziehen, Mute-Zustand als Icon spiegeln. */
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||||
<title>Sonne · Erde · Mond – Finsternisse</title>
|
<title>Sonne · Erde · Mond – Finsternisse</title>
|
||||||
|
<link rel="stylesheet" href="../../assets/fonts/inter.css">
|
||||||
|
<link rel="stylesheet" href="../../assets/css/ggs-header.css">
|
||||||
|
<script src="../../assets/js/ggs-header.js"></script>
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0; padding: 0;
|
margin: 0; padding: 0;
|
||||||
@@ -15,7 +18,7 @@
|
|||||||
canvas { display: block; }
|
canvas { display: block; }
|
||||||
#ui {
|
#ui {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 12px; left: 12px;
|
top: 62px; left: 12px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
background: rgba(15, 23, 42, .88);
|
background: rgba(15, 23, 42, .88);
|
||||||
backdrop-filter: blur(6px);
|
backdrop-filter: blur(6px);
|
||||||
@@ -52,13 +55,7 @@
|
|||||||
#ui.light #info { border-top-color: #cbd5e1; }
|
#ui.light #info { border-top-color: #cbd5e1; }
|
||||||
#ui.light #info .value { color: #b45309; }
|
#ui.light #info .value { color: #b45309; }
|
||||||
#ui.light #eclipse-badge.none { background: #e2e8f0; color: #475569; }
|
#ui.light #eclipse-badge.none { background: #e2e8f0; color: #475569; }
|
||||||
#theme-toggle {
|
#theme-toggle { position: static; }
|
||||||
position: absolute;
|
|
||||||
top: 14px; right: 14px;
|
|
||||||
padding: 4px 10px;
|
|
||||||
font-size: 12px;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
#ui h3 {
|
#ui h3 {
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -342,7 +339,7 @@
|
|||||||
/* ---------- Datums-Banner oben rechts ---------- */
|
/* ---------- Datums-Banner oben rechts ---------- */
|
||||||
#date-banner {
|
#date-banner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px; right: 12px;
|
top: 64px; right: 12px;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
background: rgba(15, 23, 42, 0.88);
|
background: rgba(15, 23, 42, 0.88);
|
||||||
color: #fbbf24;
|
color: #fbbf24;
|
||||||
@@ -357,7 +354,7 @@
|
|||||||
/* ---------- Inspect-Inset (Lupe + Wien-Sicht) — unter Datums-Banner ---------- */
|
/* ---------- Inspect-Inset (Lupe + Wien-Sicht) — unter Datums-Banner ---------- */
|
||||||
#inspect-frame {
|
#inspect-frame {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50px; right: 12px;
|
top: 104px; right: 12px;
|
||||||
width: 480px; height: 210px;
|
width: 480px; height: 210px;
|
||||||
border: 2px solid #f59e0b;
|
border: 2px solid #f59e0b;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@@ -821,19 +818,20 @@
|
|||||||
<div id="month-labels" style="position:absolute; inset:0; pointer-events:none"></div>
|
<div id="month-labels" style="position:absolute; inset:0; pointer-events:none"></div>
|
||||||
<div id="date-banner">📆 1. Jan</div>
|
<div id="date-banner">📆 1. Jan</div>
|
||||||
|
|
||||||
<div id="ui">
|
<header class="ggs-header" data-ggs-sim="sonnensystem" data-ggs-home="/schueler" data-ggs-overlay="1">
|
||||||
<h3>☀️ 🌍 🌙 <span data-i18n="title">Sonnensystem</span></h3>
|
<span class="ggs-header-module">Sonnensystem</span>
|
||||||
|
<div class="ggs-header-actions">
|
||||||
<div class="ui-toolbar">
|
|
||||||
<a id="cockpit-link" href="/schueler" class="icon-btn" title="Zurück zur Schülerseite" style="text-decoration:none">🏠</a>
|
<a id="cockpit-link" href="/schueler" class="icon-btn" title="Zurück zur Schülerseite" style="text-decoration:none">🏠</a>
|
||||||
<button id="reset-defaults-toggle" class="icon-btn" title="Standard-Setup wiederherstellen">🔄</button>
|
<button id="reset-defaults-toggle" class="icon-btn" title="Standard-Setup wiederherstellen">🔄</button>
|
||||||
<button id="bgm-toggle" class="icon-btn" title="Hintergrund-Klang an/aus">🎵</button>
|
<button id="bgm-toggle" class="icon-btn" title="Hintergrund-Klang an/aus">🎵</button>
|
||||||
<button id="easy-toggle" class="icon-btn" title="Leichte Sprache">📖</button>
|
<button id="easy-toggle" class="icon-btn" title="Leichte Sprache">📖</button>
|
||||||
<button id="light-toggle" class="icon-btn" title="Lights on">💡</button>
|
<button id="light-toggle" class="icon-btn" title="Lights on">💡</button>
|
||||||
<button id="theme-toggle" class="icon-btn" title="Light/dark UI">☀️</button>
|
<button id="theme-toggle" class="icon-btn" title="Light/dark UI">☀️</button>
|
||||||
<button id="help-toggle" class="icon-btn" title="Help">❓</button>
|
<button id="help-toggle" class="icon-btn" title="Help">❓</button>
|
||||||
</div>
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div id="ui">
|
||||||
<details class="section" open>
|
<details class="section" open>
|
||||||
<summary>⏱️ <span data-i18n="secTime">Time</span></summary>
|
<summary>⏱️ <span data-i18n="secTime">Time</span></summary>
|
||||||
<div class="section-body">
|
<div class="section-body">
|
||||||
@@ -2986,7 +2984,7 @@ function renderInspect() {
|
|||||||
// CSS-Frame-Position: top:50px, right:12px (siehe #inspect-frame im <style>).
|
// CSS-Frame-Position: top:50px, right:12px (siehe #inspect-frame im <style>).
|
||||||
// Three.js misst y von unten — also umrechnen, sonst rutscht der Render-Inhalt
|
// Three.js misst y von unten — also umrechnen, sonst rutscht der Render-Inhalt
|
||||||
// gegen den Frame-Border (Mond ragt sichtbar oben heraus).
|
// gegen den Frame-Border (Mond ragt sichtbar oben heraus).
|
||||||
const cssTop = 50;
|
const cssTop = 104;
|
||||||
const cssRight = 12;
|
const cssRight = 12;
|
||||||
const x = window.innerWidth - w - cssRight;
|
const x = window.innerWidth - w - cssRight;
|
||||||
const yFromBottom = window.innerHeight - h - cssTop;
|
const yFromBottom = window.innerHeight - h - cssTop;
|
||||||
|
|||||||
Reference in New Issue
Block a user