A simple jQuery plugin for creating simple pop-ups simply.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
README.md
jquery.tent.html

README.md

jquery.tent

A simple jQuery plugin for creating simple pop-ups simply.

Usage

Set defaults:

$.tent.setDefaults(left: 0, top: 0});

Initialization:

$("#pop-up").tent();

Change options:

$("#pop-up").tent('option', {left: 0, top: 0});

Show the popup:

$("#pop-up").tent('show');

Hide the popup:

$("#pop-up").tent('hide');

Simple demo here:

http://www.annuit.com/jquerytent

Options

left: where to display the left edge of the popup element (pixel)

top: where to display the top edge of the popup element (pixel)

Credits

Thanks to Keith Wood for an awesome jQuery Plugin Tutorial which I shamelessly hacked apart to make this: http://keith-wood.name/pluginFramework.html