Permalink
Browse files

Added a new sample showing the proper externs for jQuery psuedo selec…

…tors.
  • Loading branch information...
1 parent cd1d151 commit 4500f4f1d786a3f1562f1a4156bc9844d1b7cd24 @zgrossbart committed Jul 24, 2012
Showing with 9,438 additions and 0 deletions.
  1. +6 −0 jquery_selector_sample/externs.txt
  2. +23 −0 jquery_selector_sample/index.html
  3. +4 −0 jquery_selector_sample/main.js
  4. +9,405 −0 libs/jquery-1.7.2.js
View
6 jquery_selector_sample/externs.txt
@@ -0,0 +1,6 @@
+find
+NAME
+TAG
+ID
+CHILD
+odd
View
23 jquery_selector_sample/index.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <style>
+ p { margin: 4px; font-size:16px; font-weight:bolder; }
+ .blue { color:blue; }
+ .under { text-decoration:underline; }
+ .highlight { background:yellow; }
+ </style>
+ <!--<script src="../libs/jquery-1.6.4.js" type="text/javascript" charset="utf-8"></script>-->
+ <!--<script src="main.js" type="text/javascript" charset="utf-8"></script>-->
+ <script src="out.js" type="text/javascript" charset="utf-8"></script>
+ </head>
+ <body>
+ <p class="blue under">Hello</p>
+ <p class="blue under highlight">and</p>
+ <p class="blue under">then</p>
+ <p class="blue under">Goodbye</p>
+ </body>
+
+</html>
+
View
4 jquery_selector_sample/main.js
@@ -0,0 +1,4 @@
+jQuery(document).ready(function() {
+ $("p:odd").removeClass("blue").removeClass("under");
+});
+
View
9,405 libs/jquery-1.7.2.js
9,405 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit 4500f4f

Please sign in to comment.