Permalink
Browse files

Merge branch 'master' of https://github.com/Khan/khan-exercises

  • Loading branch information...
2 parents eabb716 + b0613b7 commit 65c3bc466ea6c15aeea4756e16fd4b74af988642 @Sohl-Dickstein Sohl-Dickstein committed Aug 8, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 utils/khanscript.js
View
@@ -0,0 +1,9 @@
+(function() {
+ $.fn.khanscript = function(problem) {
+ return this.find("script[type='text/khanscript']").each(function() {
+ var code = $(this).text();
+ code = "(function() {" + code + "})()";
+ $.tmpl.getVAR(code);
+ }).end();
+ };
+})();

0 comments on commit 65c3bc4

Please sign in to comment.