popup message
If any one is familiar with the "toast" API call from Android you will like this pop up message in Javascript.
Comes from github
Also includes a variable to delay the message as well.
I find it much better than the JQM popup
var toast=function(msg){
$(""+msg+"")
.css({ display: "block",
opacity: 0.90,
position: "fixed",
padding: "7px",
"text-align": "center",
width: "270px",
left: ($(window).width() - 284)/2,
top: $(window).height()/2 })
.appendTo( $.mobile.pageContainer ).delay( 2000 )
.fadeOut( 400, function(){
$(this).remove();
});
};
usage: toast("Help");