Skip to content

Codesnip Template

A codesnippet which you can use to demonstrate APIs, patterns, bugs, or other techniques. (Note that the code is run in an iframe and will have reduced permissions, including only readonly access to the nomad.fs API.)

<!doctype html5>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/ui.css">
</head>
<body>
<main>
<section>
<header>index.js</header>
<div class="editor" id="js"></div>
</section>
<section>
<header>index.html</header>
<div class="editor" id="html"></div>
</section>
<section>
<header>index.css</header>
<div class="editor" id="css"></div>
</section>
<section>
<header>result</header>
<div id="result"></div>
</section>
</main>
<script src="/ace/ace.js"></script>
<script type="module" src="/ui.js"></script>
</body>
</html>