Skip to content

Instantly share code, notes, and snippets.

@jakecraige
Created December 3, 2013 22:19
Show Gist options
  • Select an option

  • Save jakecraige/7778617 to your computer and use it in GitHub Desktop.

Select an option

Save jakecraige/7778617 to your computer and use it in GitHub Desktop.
document.addEventListener('resume', function() {
if(window.ea_timeoutId) {
clearTimeout(window.ea_timeoutId);
}
window.ea_timeoutId = setTimeout(function() {
launchURL = steroids.app.getLaunchURL();
matches = launchURL.toString().match(/\/\/(\w+)\?\w+=(\w+)/);
action = matches[1];
id = matches[2];
if(action && id) {
viewUrl = 'views/user/attending.html?action='+action+'&id='+id;
view = new steroids.views.WebView(viewUrl);
steroids.layers.push({
view: view,
navigationBar: false
});
}
}, 400);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment