Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (44 sloc) 1.78 KB
<!DOCTYPE html>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="css/style.css">
<script data-main="js/demo" src=""></script>
<h1><img src="img/lego.png" alt="lego">js</h1>
<p class="main">HTML from CSS-like selectors</p>
<div class="ide">
<label for="code">write a <em>legojs</em> expression below and click <strong>run</strong></label>
<textarea id="code">
div > (
(h1 > (img[src="img/lego.png" alt="lego"] + {js})) +
p.main {HTML from CSS-like selectors} +
(p > ({write a } + em {legojs} + { expression below and click } + strong {run}))
<div class="buttons">
<select id="snippets"></select>
<button id="load">load</button>
<button id="run">run</button>
<div class="output">
<label for="html">result</label>
<div id="html"></div>
<label for="raw">html</label>
<pre id="raw" class="prettyprint lang-html"></div>
<label for="tree">tree</label>
<pre id="tree" class="prettyprint lang-js"></pre>
<div id="footer">
<span><a href="test/">run tests</a></span> <em>|</em>
<span><strong>reference:</strong> tag [attr1="value" attr2="value"] #id .class1.class2 * 3 {text} &gt; (childtag1 + childtag2) </a></span>
<a href=""><img style="position: absolute; top: 0; right: 0; border: 0;" src="" alt="Fork me on GitHub"></a>