javascript logging. CoffeeScript, Gritter.


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #CoffeeScript code
  2. gl = (msg,title) ->
  3. title = ' ' if !title
  4. $.gritter.add({title: title,time: 3000, text: msg});
  5.  
  6. gerror = (msg) ->
  7. $.gritter.add({title: 'ERROR',sticky: true, image: '/images/error.png', text: msg});

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.