Skip to content
forked from LisaSound/Popup

A simple lightweight popup plugin that doesn't require jQuery or any other libraries. It's simple to use.

Notifications You must be signed in to change notification settings

chrisptang/Popup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Popup

A simple lightweight popup plugin that doesn't require jQuery or any other libraries. It's simple to use.

Installation

Place popup.css in your css folder.

add this before your closing head tag:

<link rel="styesheet" href="/your_css_folder/popup.css">

Then, place popup.js in your js folder.

include this in your html:

<script src="/your_js_folder/popup.js"></script>

Usage

Create a Popup instance:

var myPopup = new smq.Popup({
  title: 'Product Description',
  innerHtml: '<img src="product.jpg">'
});

Show your Popup:

myPopup.show();

Close Popup:

myPopup.close();

About

A simple lightweight popup plugin that doesn't require jQuery or any other libraries. It's simple to use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.5%
  • CSS 23.5%