Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 65c3bc466ea6c15aeea4756e16fd4b74af988642 2 parents eabb716 + b0613b7
@Sohl-Dickstein Sohl-Dickstein authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 utils/khanscript.js
View
9 utils/khanscript.js
@@ -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();
+ };
+})();
Please sign in to comment.
Something went wrong with that request. Please try again.