Created
March 5, 2014 03:00
-
-
Save bdickason/9360359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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