nicolewhite / algebra.js

Build, display, and solve algebraic equations.
http://algebra.js.org
MIT License
1.34k stars 111 forks source link

No longer able to just link to library? #56

Closed bigteejay closed 8 years ago

bigteejay commented 8 years ago

I was trying to link to the library for a proof of concept using JSFiddle.Net (which also requires an https connection, which github/rawgit would provide.)

However, contrary to what the link in the readme page seemed to suggest, you can't just reference the offered minified js file as it in turns requires additional files expected to be present, correct?

var n=e("./expressions").Expression

Trying either method below results in an error...

var txt = "2x+1-x";
//var expr = new Expression(txt);  //"Expression is not defined"
var expr = new algebra.parse(txt);  //"algebra.parse is not a function"
console.log(expr.toString());

I swear this worked previously (I looked in the history and saw there was once a file in build, but I get the same error when I tried it.)

bigteejay commented 8 years ago

Could the make output also be offered via this repo (so it could be accessed via rawgit?) I know including outputs in source control isn't typically done, but it would provide users with handy access to an https hosted version from the source.

bigteejay commented 8 years ago

Fiddle

nicolewhite commented 8 years ago

I'm not sure what happened here. This always used to work. For example, I have it loaded on the project page and I'm seeing the same error even though it worked when I first built the library: http://algebra.js.org/

Maybe Chrome / browsers in general changed something?

nicolewhite commented 8 years ago

I updated the dependencies and all seems to be well. A new minified file has been uploaded to http://algebra.js.org/ and works correctly in the browser (only tested on Chrome).