-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
52 lines (46 loc) · 1.44 KB
/
test.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
52
<!DOCTYPE html>
<html>
<head>
<title>SlimJS Tests</title>
</head>
<body>
<div id='test' class='top'>
<span class='whatever'></span>
<span class='whatever'></span>
<span class='whatever'></span>
<span class='whatever'></span>
</div>
<span class='whatever'></span>
<span class='whatever'></span>
<span class='whatever'></span>
<span class='whatever'></span>
<span class='whatever'></span>
<div class='top'>
<span class='whatever'>
<a href='#'>Nested Link</a>
<a href='#'>Nested Link</a>
</span>
<span class='whatever'></span>
<span class='whatever'></span>
<span class='whatever'>
<a href='#'>Nested Link</a>
</span>
</div>
<div class='new'>
<a href='#'>Nested Link</a>
</div>
<script src='html_protos.js'></script>
<script src='js.js'></script>
<script src='ajax.js'></script>
<script>
console.log($$('#test'))
console.log($$('a'))
console.log($$('.top .whatever'))
console.log($$('.top .whatever a'))
$$.ajax.get('http://localhost:8000/', function (req) {
console.log(req)
console.log(req.response)
})
</script>
</body>
</html>