GitHub - ottolu/jQuery-Toast: A Simple Android Style MessageBox(Toast)

Skip to content

Navigation Menu

Sign in

Appearance settings

jQuery-Toast

Introduction

A Simple Android Style MessageBox(Toast).

Rely on jQuery.

Quick Start

Remember to call init function in order to insert the style

Then You can try

Toast("hello, world").show();

Further

Toast({
   text: "hello, world", 
   time: 2000, 
   autoPos: false, 
   x: function(){ return 100;},
   y: 200 
}).show();

Tips

The default position is calculated automaticly.

If you want to control by yourself, please set autoPos to false, then input the x and y as you want ( function can be accept, too ) .