_ _
| | | |
| | _ _|_ __ | |
|/ |/ | / |/ \
|__/|__/|_/\___/| |_/
|\
|/
Created by: Graham Robertson
OH MY GOD!!! That is so fetch!
...okay maybe not.
<!-- In yo' HTML -->
<script type="text/javascript" src="path/to/your/fetch/file/fetch.js"></script>
<!-- Then, at the bottom of your body... -->
<script type="text/javascript">
// If you're in development, set the following:
fetch.dev_mode = true;
fetch('app.js');
</script>
And then:
/* In app.js */
['./utils/Maths.js', './stuff.js', './lib/jquery.js'];
// Include your dependencies above as so.
// Then use your code below:
var whatever = utils.Maths.get_random_int(0, 10);