Coder Social home page Coder Social logo

jpop-1's Introduction

jPop - v.01

Popups when visitor scrolls downs

jPop is Popup jQuery plugin that helps you to make awesome popup. jPop renders when a visitor scrolls down.
After visitor scrolls down to 200px (As a default but you can change it). You can change its title,paragraph,Button text and class and input through initializing plugin.

Demo

Usage

Link Css file:

<link rel="stylesheet" type="text/css" href="dist/css/plugin.css">

#### Template:
<div class="popup gee-popup">
	<div class="popup-inner">
		<a class="close-button popup-close-button">
			&times;
		</a>
		<div class="popup-header">
			<h3 class="popup-title"></h3>
		</div>
		<p class="paragraph" ></p>
		<div class="user-content"></div>
		<button class="btn btn-info btn-block btn-lg" ></button>
	</div>
</div>

Link js files:

	<script type="text/javascript" src="dist/js/plugin.js" ></script>

Call the plugin:

	<script type="text/javascript">
		$("html").jPopup({
			paragraph: "This is dummy paragraph for jPop plugin ",
			buttonText : "Click Me",
			buttonClass : "btn btn-info",
		});
	</script>

The default options:

Option Value
Popup Parent gee-popup
Scroll Top Px 200
Popup Close Button .popup-close-button
Heading heading - You can change
Paragraph You can paragraph it from options. You can also change the input into your own template
User Content <div class="input"> <input class="form-control" type="text" placeholder="Your Email" > </div>
Button Text Click me
Button Class btn btn-info btn-block btn-lg

Version 0.2 Released

I've released 0.2 version for jPop plugin. I've added one more feature. Now you can call the plugin by your own code so i've changed the slogan to 'The Awesome jQuery Popup plugin'. You can call plugin by following code:

    $("html").jPopup({
	    paragraph: "This is dummy paragraph for jPop",
		buttonText : "Click Me",
		buttonClass : "btn btn-info",
		initThrough : function () {
			$(".click-me").click(function(e) {
				e.preventDefault();
				$.fn.jPopup.openPopup();
			});
		}
    });

Click Demo

Contributors

Ilyas Karim
http://www.twitter.com/iksdatoo
http://www.facebook.com/iksdatu

jpop-1's People

Contributors

ilyaskarim avatar

Watchers

 avatar

Forkers

frankie-666

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.