• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A super simple jQuery popdown plugin

jQuery Popdown Plugin

What is a popdown? It's a simple dialog that pops down from the top of your browser window once it's loaded HTML in the background. A simple way to load web forms, content, user feedback messages, media and any other in place style content.

It's lightweight (4kb) and fast, take a look at the demo's: http://wixel.github.io/jquery-popdown

How to use it

  1. Add the jquery.popdown.css file to your page.
  2. Add the images inside the img to your images directory.
  3. Add the jquery.popdown.js file to your page.
  4. Make sure jQuery is already included in your page.
  5. Add links to your page and set their href attributes to the pages you want loaded in the Popdowns.
  6. Add class="popdown" to the links you added in step 4.
<a href="/pages/image.html" width="660" class="popdown btn" title="Grumpy Demo">Grumpy Demo</a>
<a href="/pages/youtube.html" class="popdown btn" title="Youtube Demo">Youtube Demo</a>
<a href="/pages/content.html" class="popdown btn" title="Content Demo">Content Demo</a>	
  1. Add the following code:
$(document).ready(function(){
  $('.popdown').popdown();
});

You can also specify the width of the popdown dialog:

$(document).ready(function(){
  $('.popdown').popdown({width:700});
});

Nuts and Bolts

You can buttons (or other elements) that can automatically close the popdown dialog by simply adding: class="close-popdown" to the element inside your popdown content. example :

 <a href="#" class="close-popdown">Close</a>

You can fully style the underlying dialog by adjusting the jquery.popdown.css or even better, the jquery.popdown.less file.

License

The MIT License (MIT)

Copyright (c) 2014 Wixel Development Team

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

GUMP

A fast, extensible & stand-alone PHP input validation class that allows you to validate any data
PHP
1,168
star
2

Frank-Sinatra

A boilerplate for modular MVC style Sinatra (1.4.2^) applications.
CSS
51
star
3

readingbar

A simple progress bar that indicates the length & your current reading position of an article/page
JavaScript
19
star
4

TitaniumPHP-Console

An PHP REPL environment for testing, managing & interacting with your PHP applications
PHP
9
star
5

CodeIgniter-AssetLoader

A CodeIgniter library to create an asset pipeline using a simple manifest file
PHP
6
star
6

Druid

An experimental PHP MVC framework
PHP
4
star
7

share

a simple jQuery plugin for social share buttons.
JavaScript
4
star
8

front-end-guide

Wixel front-end style guide
4
star
9

ContentSlider

A simple jQuery content slider that doesn't suck
JavaScript
4
star
10

Chameleon

Chameleon is a library of popular brand colors which you can use in your JS/Sass projects
CSS
4
star
11

Kaizen

Kaizen is a simple Sass framework to get projects started extremely fast.
HTML
4
star
12

Purrrl

The simplest way to share files using your terminal
Ruby
2
star
13

Kaizen-CLI

A Ruby Gem for the Kaizen front end framework
Ruby
2
star
14

simplest-modal

A drop-dead simple & modern modal library to generate fast inline modal dialogs
JavaScript
2
star
15

TheKeyStone

The official gem for Wixel's hosted user authentication & management service (TheGateKeeper)
JavaScript
1
star
16

NSString-MD5

A simple NSString Category to include on the fly MD5 generation
Objective-C
1
star
17

sanity-server

Highly available ping servers that are reachable via a simple URL requests
Ruby
1
star
18

Design-Element-Templates

Various bits and pieces we use as base design templates
1
star