The app's new port means empty browser storage, so a German app reloaded right after the start and lost the animation. The language now comes with the login. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
5.8 KiB
HTML
71 lines
5.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<meta name="theme-color" content="#0b0c0f">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<title>DSP Control</title>
|
|
<link rel="stylesheet" href="/style.css">
|
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23111418'/%3E%3Cpath d='M7 22V10M13 22V6M19 22V14M25 22V9' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E">
|
|
</head>
|
|
<body>
|
|
<div id="splash" aria-hidden="true">
|
|
<svg viewBox="0 0 32 32" width="72" height="72"><path d="M7 22V10"/><path d="M13 22V6"/><path d="M19 22V14"/><path d="M25 22V9"/></svg>
|
|
<b>DSP Control</b><small>VK-Audio</small>
|
|
</div>
|
|
<script>
|
|
// start animation of the desktop apps: only their login arrives with this parameter, a reload doesn't.
|
|
// The language comes along: on the app's new port the browser storage is empty, and correcting it later needs a reload
|
|
(function () {
|
|
var el = document.getElementById("splash");
|
|
var m = /^\?start=app&lang=(en|de)$/.exec(location.search);
|
|
if (!m) return el.remove();
|
|
try { localStorage.setItem("dsp.lang", m[1]); } catch (e) { /* private mode */ }
|
|
history.replaceState(null, "", "/");
|
|
el.classList.add("show");
|
|
setTimeout(function () { el.remove(); }, 1500);
|
|
})();
|
|
</script>
|
|
<div id="login" hidden></div>
|
|
<div id="app" hidden>
|
|
<header id="top">
|
|
<div class="brand" aria-hidden="true">
|
|
<svg viewBox="0 0 32 32" width="26" height="26"><rect width="32" height="32" rx="7" fill="#161a20"/><path d="M7 22V10M13 22V6M19 22V14M25 22V9" stroke="#38bdf8" stroke-width="3" stroke-linecap="round"/></svg>
|
|
</div>
|
|
<div id="devtabs"></div>
|
|
<nav id="viewtabs" aria-label="View" data-t-label="View">
|
|
<button data-view="dash"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="9" rx="1.5"/><rect x="13" y="3" width="8" height="5" rx="1.5"/><rect x="13" y="10" width="8" height="11" rx="1.5"/><rect x="3" y="14" width="8" height="7" rx="1.5"/></svg><span>Dashboard</span></button>
|
|
<button data-view="mixer"><svg viewBox="0 0 24 24"><path d="M6 3v18M12 3v18M18 3v18"/><rect x="3.5" y="13" width="5" height="3" rx="1"/><rect x="9.5" y="7" width="5" height="3" rx="1"/><rect x="15.5" y="10" width="5" height="3" rx="1"/></svg><span>Mixer</span></button>
|
|
<button data-view="channel"><svg viewBox="0 0 24 24"><path d="M2 14c3 0 3-7 6-7s3 10 6 10 3-6 6-6h2"/></svg><span data-t="Channel">Channel</span></button>
|
|
<button data-view="routing"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16M8 3v18M16 3v18"/><circle cx="8" cy="6" r="2.2" class="f"/><circle cx="16" cy="12" r="2.2" class="f"/><circle cx="8" cy="18" r="2.2" class="f"/></svg><span>Routing</span></button>
|
|
<button data-view="link"><svg viewBox="0 0 24 24"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></svg><span data-t="Channel settings">Channel settings</span><span class="short" data-t="Channels">Channels</span></button>
|
|
<button data-view="fir" hidden><svg viewBox="0 0 24 24"><path d="M2 12h3l2-7 3 14 3-11 2 6 2-3 1 1h4"/></svg><span>FIR</span></button>
|
|
<button data-view="limiter"><svg viewBox="0 0 24 24"><path d="M2 7h20" stroke-dasharray="2.5 2.5"/><path d="M2 14c2 0 3-7 5-7h3c2 0 3 11 6 11s3-5 6-5"/></svg><span>Limiter</span></button>
|
|
<button data-view="soundfield"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M8 7l-2 2 2 2M16 7l2 2-2 2"/><path d="M7 15.5a7 7 0 0 1 10 0" stroke-dasharray="2 2"/><circle cx="12" cy="18" r="1.2" class="f"/></svg><span>SoundField</span><span class="short">Field</span></button>
|
|
<button data-view="lab" hidden><svg viewBox="0 0 24 24"><path d="M9.5 3h5M10.5 3v6.5L5 19a1.3 1.3 0 0 0 1.1 2h11.8a1.3 1.3 0 0 0 1.1-2l-5.5-9.5V3"/><path d="M7.5 15h9"/></svg><span>Sound Lab</span><span class="short">Lab</span></button>
|
|
<button data-view="test"><svg viewBox="0 0 24 24"><path d="M4 9v6h4l5 4V5L8 9z"/><path d="M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12"/></svg><span data-t="Audio test">Audio test</span><span class="short" data-t="Test">Test</span></button>
|
|
</nav>
|
|
<button id="btn-muteall" class="icon" aria-label="Mute all" title="Mute all"></button>
|
|
<button id="btn-guard" class="guard" hidden role="switch"></button>
|
|
<button id="btn-lock" class="icon" hidden aria-label="Lock" title="Lock"></button>
|
|
<button id="btn-settings" class="icon" aria-label="Settings" title="Settings" data-t-label="Settings">
|
|
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/></svg>
|
|
</button>
|
|
</header>
|
|
<div id="statusbar"></div>
|
|
<main id="main"></main>
|
|
</div>
|
|
<div id="modal" hidden></div>
|
|
<div id="toast" hidden></div>
|
|
<script src="/i18n.js"></script>
|
|
<script src="/app.js"></script>
|
|
<script src="/soundfield.js"></script>
|
|
<script src="/dashboard.js"></script>
|
|
<script src="/docs.js"></script>
|
|
<script src="/rew.js"></script>
|
|
</body>
|
|
</html>
|