Skip to content

Instantly share code, notes, and snippets.

@austinpray
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinpray/303f21574b8894c04244 to your computer and use it in GitHub Desktop.
Save austinpray/303f21574b8894c04244 to your computer and use it in GitHub Desktop.
var jq = document.createElement('script');
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(jq);
var b, engine;
jq.onload = function () {
var ballscript = document.createElement('script');
ballscript.src = 'https://rawgit.com/austinpray/pro-grid-utils/master/ball_mod.js';
document.getElementsByTagName('head')[0].appendChild(ballscript);
ballscript.onload = function () {
b = new ball();
engine = new ballEngine(b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment