Skip to content

Instantly share code, notes, and snippets.

@coffeejay
Created October 14, 2019 16:03
Show Gist options
  • Save coffeejay/a3d8633a7ff93cf813d8d93f49b4e9cc to your computer and use it in GitHub Desktop.
Save coffeejay/a3d8633a7ff93cf813d8d93f49b4e9cc to your computer and use it in GitHub Desktop.
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