Notifications are iOS-styled messages that appear at the top of the screen.

Notification with autoclose

Ensure the empty notification container is added after the opening body tag.

<div class="notification hide"></div>
// message: string containing the text to be displayed
// type: "success" or "error"
// autoClose: true or false, true will close the notification
// after the time specified in notificationTimeout in notification.js
// the default is 2.5 seconds

showNotification(message, type, autoClose)