summaryrefslogtreecommitdiffstats
path: root/example/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'example/index.html')
-rw-r--r--example/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/example/index.html b/example/index.html
new file mode 100644
index 0000000..0afff9b
--- /dev/null
+++ b/example/index.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
+ <script src="../jquery.once.js"></script>
+ </head>
+ <body>
+ <h1>jQuery Once</h1>
+ <p>This is some text, which is turned green only once.</p>
+ <script>
+ $('p').once('greenify', function() {
+ $(this).css('color', 'green');
+ });
+ </script>
+ </body>
+</html>