Created
October 14, 2019 16:03
-
-
Save coffeejay/a3d8633a7ff93cf813d8d93f49b4e9cc to your computer and use it in GitHub Desktop.
This file contains 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.gidxServiceStatus = function (service, action, json) { | |
for (var i = 0; i < json.length; i++) { | |
for (var key in json[i]) { | |
if (json[i].hasOwnProperty(key)) { | |
//Here you can look at the key and value to make decisions on what you would | |
//like to do with the client side interface. | |
var sItem = key; | |
var sValue = json[i][key]; | |
console.log(sItem +": ", sValue); | |
//Example | |
if (service == "idAcctComplete-plate"){ | |
alert('Verification complete! Please close the deposit modal and re-deposit to start playing now. ') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment