Updated
This commit is contained in:
24
master/examples/queryPortability.html
Normal file
24
master/examples/queryPortability.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>look ma! query, but no Dojo!</title>
|
||||
|
||||
<!-- we pull in query.js, but not the rest of Dojo -->
|
||||
<script type="text/javascript" src="../../_base/query.js"></script>
|
||||
|
||||
<!-- test it out! -->
|
||||
<script type="text/javascript">
|
||||
$ = acme.query;
|
||||
window.onload = function(){
|
||||
alert($("p.stranger")[1].innerHTML + " stranger");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body class="tundra">
|
||||
<p>howdy!</p>
|
||||
<p class="stranger">howdy!</p>
|
||||
<p class="stranger">howdy</p>
|
||||
<p>howdy!</p>
|
||||
<div>thinger</div>
|
||||
<!-- ... -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user