Skip to content

Instantly share code, notes, and snippets.

@featherart
Created October 3, 2013 00:13
Show Gist options
  • Save featherart/6802564 to your computer and use it in GitHub Desktop.
Save featherart/6802564 to your computer and use it in GitHub Desktop.
ATM stub file
// https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers.onload
// The load event fires at the end of the document loading process.
// At this point, all of the objects in the document are in the DOM,
// and all the images and sub-frames have finished loading.
window.onload = function(){
// https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers.onclick
// The click event is raised when the user clicks on an element.
document.getElementById("checkingDeposit").onclick = function(event){
// Any code you put in here will be run when the checkingDeposit button is clicked
};
document.getElementById("savingsDeposit").onclick = function(event){
// Any code you put in here will be run when the savingsDeposit button is clicked
};
document.getElementById("checkingWithdraw").onclick = function(event){
// Any code you put in here will be run when the checkingWithdraw button is clicked
};
document.getElementById("savingsWithdraw").onclick = function(event){
// Any code you put in here will be run when the savingsWithdraw button is clicked
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment