Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert Messages Pretty Fade #11

Closed
steventhanna opened this issue Oct 22, 2015 · 1 comment
Closed

Alert Messages Pretty Fade #11

steventhanna opened this issue Oct 22, 2015 · 1 comment
Milestone

Comments

@steventhanna
Copy link
Owner

Trying to incorporate JQuery...

ipc.on('error', errorMessage => {
  var type = errorMessage.type;
  var message = errorMessage.message;
  document.getElementById('error').innerHTML = '<div style="margin-right: 10px;" class="alert alert-' + type + ' alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' + message + '</div>';
  window.setTimeout(function() {
    var alertT = '.alert-' + type;
    $("#error").fadeOut();
    $(alertT).alert('close');
  }, 2000);
});
@steventhanna
Copy link
Owner Author

Closed with #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant