68 lines
2.0 KiB
HTML
68 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>HelloWorld - Ritz Framework</title>
|
||
<link rel="stylesheet" href="../runtime/ritz-debug.css">
|
||
<style>
|
||
body {
|
||
font-family: system-ui, sans-serif;
|
||
background: #f5f5f5;
|
||
}
|
||
#app {
|
||
max-width: 800px;
|
||
margin: 50px auto;
|
||
padding: 40px;
|
||
background: white;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||
}
|
||
#app p {
|
||
font-size: 24px;
|
||
color: #333;
|
||
text-align: center;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div id="app"></div>
|
||
|
||
<div id="ritz-debug" class="ritz-debug hidden">
|
||
<div class="debug-header">
|
||
<h3>🎭 Ritz Debug</h3>
|
||
<button onclick="ritzDebug.toggle()">×</button>
|
||
</div>
|
||
<div id="status" class="status">Loading...</div>
|
||
<div class="debug-content">
|
||
<div class="debug-section">
|
||
<h4>Component</h4>
|
||
<pre>HelloWorld.py</pre>
|
||
</div>
|
||
<div class="debug-section">
|
||
<h4>Pipeline</h4>
|
||
<pre>Python → AST → IR → LLVM → WASM</pre>
|
||
</div>
|
||
<div class="debug-section">
|
||
<h4>Console Commands</h4>
|
||
<pre>ritzRuntime.getLog()
|
||
ritzInstance.exports</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="../runtime/ritz-runtime.js"></script>
|
||
<script src="../runtime/ritz-debug.js"></script>
|
||
<script>
|
||
// Wait for DOM to be ready
|
||
if (document.readyState === 'loading') {
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
new RitzLoader().load('HelloWorld.wasm', 'HelloWorld');
|
||
});
|
||
} else {
|
||
new RitzLoader().load('HelloWorld.wasm', 'HelloWorld');
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|