## Features - Fullscreen button (⛶) in header to toggle fullscreen mode - Wake Lock API integration to keep screen on while using the app - Sun icon (☀) indicator shows wake lock status (bright = active) ## Wake Lock behavior - Automatically requests wake lock when page loads - Re-acquires wake lock when returning to the page - Visual indicator pulses when active - Gracefully hidden if Wake Lock API not supported ## Fullscreen - Works on Android Chrome and desktop browsers - iOS Safari has limited support (no fullscreen API) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
62 lines
2.3 KiB
HTML
62 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
|
|
<meta name="theme-color" content="#007acc">
|
|
<meta name="description" content="Remote macro control for your desktop">
|
|
|
|
<!-- PWA / iOS specific -->
|
|
<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">
|
|
<meta name="apple-mobile-web-app-title" content="MacroPad">
|
|
<meta name="application-name" content="MacroPad">
|
|
<meta name="msapplication-TileColor" content="#007acc">
|
|
<meta name="msapplication-tap-highlight" content="no">
|
|
|
|
<title>MacroPad</title>
|
|
|
|
<link rel="manifest" href="/manifest.json">
|
|
<link rel="icon" type="image/png" sizes="192x192" href="/static/icons/icon-192.png">
|
|
<link rel="icon" type="image/png" sizes="512x512" href="/static/icons/icon-512.png">
|
|
<link rel="apple-touch-icon" href="/static/icons/icon-192.png">
|
|
<link rel="apple-touch-icon" sizes="512x512" href="/static/icons/icon-512.png">
|
|
<link rel="stylesheet" href="/static/css/styles.css">
|
|
</head>
|
|
<body>
|
|
<!-- Header -->
|
|
<header class="header">
|
|
<h1>MacroPad</h1>
|
|
<div class="header-actions">
|
|
<div class="connection-status">
|
|
<div class="status-dot"></div>
|
|
<span>Disconnected</span>
|
|
</div>
|
|
<div class="wake-lock-status" id="wake-lock-status" title="Screen wake lock">
|
|
<span class="wake-icon">☀</span>
|
|
</div>
|
|
<button class="header-btn icon-btn" id="fullscreen-btn" onclick="app.toggleFullscreen()" title="Toggle fullscreen">⛶</button>
|
|
<button class="header-btn secondary" onclick="app.refresh()">Refresh</button>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Tabs -->
|
|
<nav class="tabs" id="tabs-container">
|
|
<!-- Tabs rendered dynamically -->
|
|
</nav>
|
|
|
|
<!-- Macro Grid -->
|
|
<main class="macro-grid" id="macro-grid">
|
|
<div class="loading">
|
|
<div class="spinner"></div>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Toast Container -->
|
|
<div class="toast-container" id="toast-container"></div>
|
|
|
|
<script src="/static/js/app.js"></script>
|
|
</body>
|
|
</html>
|