Files
wehub-resource-sync 91e75e620b
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:19 +08:00

79 lines
2.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Folder Example</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<h1>🗂️ Folder Serving Example</h1>
<p>
This page is served from a folder using the <code>folder=</code> parameter in
<code>launch_window()</code>.
</p>
<div class="info-box">
<h2>How it works:</h2>
<ul>
<li>
The <code>web/</code> folder contains this <code>index.html</code> and a
<code>style.css</code> file
</li>
<li>The folder path is passed to <code>env.launch_window(folder="path/to/web")</code></li>
<li>The provider automatically serves the folder contents</li>
<li>External resources (CSS, JS, images) are loaded relative to index.html</li>
</ul>
</div>
<div class="features">
<h2>Benefits:</h2>
<div class="feature-grid">
<div class="feature-card">
<span class="icon">📁</span>
<h3>File Structure</h3>
<p>Organize your UI in separate files instead of inline HTML</p>
</div>
<div class="feature-card">
<span class="icon">🎨</span>
<h3>External CSS</h3>
<p>Keep your styles in separate CSS files for better maintainability</p>
</div>
<div class="feature-card">
<span class="icon"></span>
<h3>Fast Development</h3>
<p>Edit files directly and reload without rebuilding</p>
</div>
<div class="feature-card">
<span class="icon">🔧</span>
<h3>Multi-Provider</h3>
<p>Works with both webtop and computer providers</p>
</div>
</div>
</div>
<div class="demo-section">
<h2>Interactive Demo:</h2>
<button class="demo-button" onclick="handleClick()">Click Me!</button>
<p id="click-result" class="result"></p>
</div>
</div>
<script>
function handleClick() {
const result = document.getElementById('click-result');
result.textContent = '✅ Button clicked successfully!';
result.style.display = 'block';
setTimeout(() => {
result.style.display = 'none';
}, 3000);
}
// Display current timestamp
const timestamp = new Date().toLocaleString();
console.log('Page loaded at:', timestamp);
</script>
</body>
</html>