1 | <html>
|
2 | <head>
|
3 | <title>look ma! query, but no Dojo!</title>
|
4 |
|
5 | <!-- we pull in query.js, but not the rest of Dojo -->
|
6 | <script type="text/javascript" src="../../_base/query.js"></script>
|
7 |
|
8 | <!-- test it out! -->
|
9 | <script type="text/javascript">
|
10 | $ = acme.query;
|
11 | window.onload = function(){
|
12 | alert($("p.stranger")[1].innerHTML + " stranger");
|
13 | }
|
14 | </script>
|
15 | </head>
|
16 | <body class="tundra">
|
17 | <p>howdy!</p>
|
18 | <p class="stranger">howdy!</p>
|
19 | <p class="stranger">howdy</p>
|
20 | <p>howdy!</p>
|
21 | <div>thinger</div>
|
22 | <!-- ... -->
|
23 | </body>
|
24 | </html>
|