cruncher / acoustics.io

Environmental acoustics
1 stars 1 forks source link

Needs a heading that says "Construction Noise Calculator" or something similar #9

Closed goodhandd closed 11 years ago

goodhandd commented 11 years ago

Hi Stephen,

The title is great, but I have pushed a change from "environmental" to "construction" so as not to mislead the user. Reason being is that BS 5228 (which the predictions are based on) is specifically construction noise and ISO 9613 (which we are not using) is for environmental noise. Are you able to push to web?

Ta

stephband commented 11 years ago

Ok, done.

Also in that commit you had a console.log() in AcousticFunctions.js. You have to be careful with those because IE does not have a console by default, so it stops executing the program when it gets to a console.log. That is why, at the top of my files I have:

var debug = false;

And then, whenever I want to log:

if (debug) console.log('whatever');

And then, to debug a file, I just switch debug to true, but put it back to false when the file is ready for deployment, so that IE never gets to the console statement. A bit annoying, I know, but hey-ho.