javascript - Pines Notify closing notice and stacks -


i'm trying use jquery pines notify 1.2.

1) there close button in notice popup, can close notice it. or when timer reaches delay value closes automatically. possible close notice clicking on point in notice ?

2) tried , runned basic ones. tried demo page's "examples of custom stacks" part. didn't work. example this:

show_stack_topleft('notice');  function show_stack_topleft(type) {     var opts = {         title: "over here",         text: "check me out. i'm in different stack.",         addclass: "stack-topleft",         stack: stack_topleft     };     switch (type) {     case 'error':         opts.title = "oh no";         opts.text = "watch out water tower!";         opts.type = "error";         break;     case 'info':         opts.title = "breaking news";         opts.text = "have met ted?";         opts.type = "info";         break;     case 'success':         opts.title = "good news everyone";         opts.text = "i've invented device bites shiny metal asses.";         opts.type = "success";         break;     }     $.pnotify(opts); } 

when run code stack_topleft undefined.
if remove stack: stack_topleft line can't see notice in topleft still.

1) have add similar to: $('.ui-pnotify').click(function(){ $(this).remove(); });

2) have define stack_topleft (found on page: https://github.com/sciactive/pnotify):

var stack_topleft = {"dir1": "down", "dir2": "right", "push": "top"};


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -