Adex Modal Plugin

Introduction

Tired of those fat! tedious!! and useless!!! scripts. Here ADEX MODAL Plugin has come to help you. We have reduced its size upto 4KB!!. Not even that we have also tried to make it more easy to use. No need to access the html! Plugins are created to reduce the work. The plugin just requires you to provide jQuery from which it will automatically generate the HTML, css and jquery scripts for the related modals. All you need to do is just provide a element. A click on this element will show up the modal? Sounds hard?? It's Easy lets see how.

Use it in 3 Steps!

Step 1 : Give some food! (Attach the JS to page)

First of all we need to attach the resources file. The resources file the plugin requires is just a Jquery.js and adexmodal.js or adexmodal.min.js . Just attach both the plugins to the page.

<script type="text/javascript" src="../jquery.min.js"></script> <script type="text/javascript" src="../adexmodal.js"></script>
Note: Make sure jQuery is on top.

Step 2 : HAHA It WORKS! (Put jquery code to apply the modal)

Now we have applied the jQuery and adexmodal to the page. Now we need to tell the plugin that when to display modal. That is which element shall user click to display the modal. Look on the following code i will explain each of the term.
  $('elem').adexmodal({
    header : 'something',
    mtype :'default',
    background : '#000',
    bg_opacity : '60',  //Range it from 0 to 100
    content : '<h1>Adex Modal plugin</h1><ul><li>It is integrated for html</li><li>Easy to use</li></ul>',
    closebtn : 'close',
    speed: 800,
    customheader: 'purple'
    });

That's the whole code you need to create the modal. Let's see what each param indicates in the plugin.

elem : The clickable element by clicking on which we will see the modal.

header : The header title of the modal (HTML compatible.)

mtype : This is the type of modal you want to show. There are 4 types of themes available in the modal. Those are 1)default 2)success 3)warning 4)error. The themes name are incase sensitive. (keep it small).

background: The background of the cover which appears on the back of the modal. (rgb() compatible.).

bg_opacity: The opacity of the provided background. (Range from 0 to 100).

content: The content of the modal. (HTML compatible).

closebtn : The button class (CSS CLASS) to close the modal.

speed: The speed of showing and closing the modal.

customheader: If you want custom header background. (optional param). (compatible with rgb()).

Step 3: Done! Its Easy!

Liked it? or found a bug!! Tell me ;)

Download

http://abhibagul.github.io/Adex-Modal-Plugin/index.html

Letv Le 1S Flipkart Hack!


Letv Le 1S a new band launching it's awesome #superphone in India. While it's first launch all of the pieces (70,000) got sold out just in 2 seconds. Technically looking at it this can't be achieved by using your fingers only. Don't get depressed, I have a awesome thing which will help you to get Letv Le 1s. What you want to do i will tell you soon. But remember this post will help you to get Le1S within a second.

Code:

What this code do is, It adds the device into your cart after 5mili seconds of visibility of the button. I don't think your fingers can do this in 5mili seconds. I have myself used this trick to get the device.

How to use?
Using this script is quite easier. All you have to do is:
  1. 1) Open your browser.
  2. 2) Right click and go to developer options/inspect element. (In case of internet explorer go to settings and there you will find developers option.)
  3. 3) Go to the console tab inside. and put the above code and press enter.
  4. 4) The code will start to work.
Proof (some people just don't believe):
 
IMP THINGS!!!
Before using script clear cache and cookies from browser. (clearing cookies will make you to again login into your account.)! And one more thing be ready 15 minuites  before the sell starts(with running script!)!! If possible use 3G or 4G.

Thanks? 
Nah.. Don't thank me.. I just love to help.

Getting Latitude & Longitude from Google Maps using drag and drop marker



Recently i was working on a website of real estate selling. For that i have created a simple code which enables users to drag and drop the marker and make it easy to understand where the property or land is located. For that i have used the google maps api as well as my some simple code and finally it started to work.