Skip to content

Instantly share code, notes, and snippets.

@bdickason
Created March 5, 2014 03:00
Show Gist options
  • Save bdickason/9360359 to your computer and use it in GitHub Desktop.
Save bdickason/9360359 to your computer and use it in GitHub Desktop.
window.onload = function() {
console.log('got here');
getMovements();
//var movementSubmit = document.getElementById("movementSubmit");
//movementSubmit.onclick = movementManager;
getMovementIdByName('Front Squat', function(callback) {
console.log(callback);
});
};
getMovementIdByName = function( movementName, callback ) {
myDataRef.child('movements_to_ids/'+movementName).once('value', function(snap) {
callback( snap.val() );
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment