http
HTTP/1.1 200 OK
Content-Type: text/html
Permissions-Policy: window-management=(self), fullscreen=(self)
<!DOCTYPE html>
<html>
<head><title>Trading Platform</title></head>
<body>
<button id="setup-monitors">Setup Multi-Monitor Layout</button>
<script>
document.getElementById('setup-monitors').addEventListener('click', async () => {
const screens = await window.getScreenDetails();
const primaryScreen = screens.screens.find(s => s.isPrimary);
const secondaryScreen = screens.screens.find(s => !s.isPrimary);
// Open charts on secondary monitor
if (secondaryScreen) {
window.open('/charts', 'charts', `left=${secondaryScreen.availLeft},top=${secondaryScreen.availTop},width=1920,height=1080`);
}
});
</script>
</body>
</html>