Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- $.fn.simplePopup = function(options) {
- var settings = $.extend({
- type: "auto",
- backdrop: 0.4,
- backdropBackground: "#000",
- injectHtml: true,
- inlineCss: true
- }, options );
- function init() {
- startBackdrop(settings.backdrop);
- }
- function startBackdrop(opacity) {
- if (opacity > 1 || opacity < 0) {
- console.log("simplePopup: Please enter a \"backdrop\" value <= 1 of >= 0");
- return false;
- }
- if (settings.injectHtml) {
- insertBackdropHtml(opacity);
- }
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement