nicolewhite / algebra.js

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

Can algebra.js file work in browser? #57

Closed pvnr0082t closed 8 years ago

pvnr0082t commented 8 years ago

Hi @nicolewhite , We are cdnjs team. We want to host this library. Because the algebra.js file includes files in src folder, we want to know if it can work in browser without files in src folder. Could you please tell us whether files in src folder need to be added in cdnjs? Thank you.

https://github.com/cdnjs/cdnjs/issues/7971 https://github.com/cdnjs/cdnjs/pull/8152

nicolewhite commented 8 years ago

Hello, sorry, I don't have a lot of free time to maintain this project anymore. Can you help me understand what's changed recently with browsers loading JavaScript files? My current setup worked when I built this project a few months ago. I simply loaded the minified js like so:

<script src="javascripts/algebra.min.js"></script>

Now this no longer works and I get undefined errors.

pvskand commented 8 years ago

@nicolewhite exactly! This is the problem that I am facing! It shows Equation is not defined or Expression is not defined even though I load the minified js file properly.

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).