forked from padolsey/mini
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
35 lines (27 loc) · 948 Bytes
/
demo.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>title</title>
<script type="text/javascript" src="mini.js"></script>
<style type="text/css">
body {background:#222;color:#EEE;font:0.8em Arial,Verdana,Sans-Serif;margin:0;padding:20px;}
</style>
</head>
<body>
<!-- <body content> -->
<h1>Mini CSS Selector Engine</h1>
<div>
<p class="bbb aaa eee">Para<span>Span</span></p>
<span></span>
</div>
<!-- </body content> -->
<script type="text/javascript">
try {
alert(mini('div > p').length);
} catch(e) {
alert(e.message);
}
</script>
</body>
</html>