Permalink
Browse files

Added vanilla Word Math section in readme

  • Loading branch information...
1 parent 69aff19 commit f307611ac1b77ee151667806c33e54aee75ee641 @peterolson committed Mar 23, 2012
Showing with 15 additions and 1 deletion.
  1. +15 −1 Readme.md
View
@@ -37,4 +37,18 @@ Setting up Word Math
You need to already have jQuery loaded before you run Word Math. All you need to do is copy the [Word Math script](https://raw.github.com/peterolson/Word-Math/master/wordMath.jquery.min.js) and reference it in your page, like this:
<script src="http://code.jquery.com/jquery.min.js"></script>
- <script src="js/wordMath.jquery.min.js"></script>
+ <script src="js/wordMath.jquery.min.js"></script>
+
+Word Math sans jQuery
+---
+
+If you are one of the few who prefers to use Word Math without dependency on jQuery (and thus without the namespacing advantages that jQuery provides), you may prefer the vanilla Javascript version of Word Math.
+
+The usage for Word Math sans jQuery is identical to the usage of Word Math with jQuery, except that you do not need to prefix your calls with `$.`. In other words, instead of doing
+
+ $.wordMath("fifteen").add("eighteen")
+
+you would instead do
+
+ wordMath("fifteen").add("eighteen")
+

0 comments on commit f307611

Please sign in to comment.