diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..bad7b9f --- /dev/null +++ b/Rakefile @@ -0,0 +1,4 @@ +desc "Compress javascripts into /public/javascripts/application.min.js" +task :compress_scripts do + `closure --js=public/javascripts/json.js --js=public/javascripts/dataset.js --js=public/javascripts/application.js --compilation_level=SIMPLE_OPTIMIZATIONS --js_output_file=public/javascripts/application.min.js` +end \ No newline at end of file diff --git a/public/javascripts/application.min.js b/public/javascripts/application.min.js new file mode 100644 index 0000000..a1479ac --- /dev/null +++ b/public/javascripts/application.min.js @@ -0,0 +1,15 @@ +if(!this.JSON){if(!this.JSON)this.JSON={};(function(){function a(e){return e<10?"0"+e:e}function c(e){o.lastIndex=0;return o.test(e)?'"'+e.replace(o,function(j){var f=s[j];return typeof f==="string"?f:"\\u"+("0000"+j.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function b(e,j){var f,g,k,p,n=l,h,d=j[e];if(d&&typeof d==="object"&&typeof d.toJSON==="function")d=d.toJSON(e);if(typeof q==="function")d=q.call(j,e,d);switch(typeof d){case "string":return c(d);case "number":return isFinite(d)?String(d): +"null";case "boolean":case "null":return String(d);case "object":if(!d)return"null";l+=r;h=[];if(Object.prototype.toString.apply(d)==="[object Array]"){p=d.length;for(f=0;f
1)){this.className="active";this.addEventListener("touchmove",c=function(){},false)}},false);this.addEventListener("touchend",function(b){b.preventDefault();this.className="";this.removeEventListener("touchmove",c);a&&a.apply(this,[b])},false)}else this.addEventListener("click",a)}; +for(var $=function(a,c){c=c||document;var b=c.querySelectorAll(a);return b.length>1?b:b[0]},Converter={draw_currencies:function(){var a="",c=window.currencies,b;for(b in c)if(window.currencies.hasOwnProperty(b)){a+="