Created
June 26, 2017 13:54
-
-
Save svenliebig/d49c16617e30c32c879b6862e3f2016c 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
// pseudocode of doom | |
function login(username, pw, callback) { | |
$.ajax(url).success(function(response) { | |
if(response.code != 404 && response.code == 200) { // redundant, such dir was aus | |
callback(JSON.parse(response.data)); | |
} | |
} | |
} | |
// aufruf | |
login("ced", "laier321", function(data) { | |
console.log("erfolgreicher aufruf"); | |
console.log(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment