This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Fortschritt – SysnaptiK Neural</title>
|
||||
<link rel="stylesheet" href="/css/theme.css">
|
||||
<script src="/js/theme.js"></script>
|
||||
<link rel="stylesheet" href="/css/theme.css?v=3">
|
||||
<script src="/js/theme.js?v=3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<style>
|
||||
.mf-progress-summary { display:flex; flex-wrap:wrap; align-items:center; gap:2rem; }
|
||||
@@ -81,10 +81,10 @@
|
||||
|
||||
<!-- Diagramme -->
|
||||
<script th:inline="javascript">
|
||||
// theme.js setzt die Plattformklasse erst mit DOMContentLoaded. Die Charts müssen
|
||||
// danach entstehen, sonst lesen sie noch die alte globale Akzentfarbe.
|
||||
// theme.js setzt die Plattformklasse noch im head. Die Charts entstehen danach,
|
||||
// damit sie garantiert den bereits aktiven Neural-Akzent lesen.
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
// Die Plattform-Tokens liegen auf body.sn-platform. Von dort lesen, damit die
|
||||
// Die Plattform-Tokens liegen auf html.sn-platform > body. Von dort lesen, damit die
|
||||
// Diagramme nicht auf die alte globale Akzentfarbe zurückfallen.
|
||||
const css = getComputedStyle(document.body);
|
||||
const accent = css.getPropertyValue('--accent').trim() || '#2bd96a';
|
||||
|
||||
Reference in New Issue
Block a user