/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#CoffeeScript code gl = (msg,title) -> title = ' ' if !title $.gritter.add({title: title,time: 3000, text: msg}); gerror = (msg) -> $.gritter.add({title: 'ERROR',sticky: true, image: '/images/error.png', text: msg});