A simple toast notification script written in JavaScript
Call the toast with
popToast(PARAMS)
{
'text':'Toast',
'timeOut':5000,
'clickRemove':true,
'front':'Front'
}
- 'text' => Main content
- 'timeOut' => Time in milliseconds before toast is removed (defaults to 2000, or 2 seconds)
- 'clickRemove' => Can the toast be removed by clicking?
- 'front' => Content shown before the main text