-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (44 loc) · 1.78 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>legojs</title>
<link rel="stylesheet" href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css">
<link rel="stylesheet" href="http://css.cdn.tl/normalize.css">
<link rel="stylesheet" href="css/style.css">
<script data-main="js/demo" src="http://requirejs.org/docs/release/2.0.2/minified/require.js"></script>
</head>
<body>
<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}))
)
</textarea>
<div class="buttons">
<select id="snippets"></select>
<button id="load">load</button>
<button id="run">run</button>
</div>
<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>
</div>
<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} > (childtag1 + childtag2) </a></span>
</div>
<a href="https://github.com/marianoguerra/legojs"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>