mirror of
https://github.com/hi-language/transpiler.git
synced 2026-01-13 16:18:04 +00:00
Refactor: Use type=module for browser scripts
This commit is contained in:
18
browser/index.html
Normal file
18
browser/index.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Hi Language Playground</title>
|
||||
<style>
|
||||
body { font-family: sans-serif; display: flex; height: 100vh; margin: 0; gap: 10px; padding: 10px; box-sizing: border-box; }
|
||||
textarea { width: 50%; height: 95%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: monospace; font-size: 14px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="hi-input" placeholder="Enter .hi code here..."></textarea>
|
||||
<textarea id="js-output" readonly placeholder="JavaScript output..."></textarea>
|
||||
|
||||
<script type="module" src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user