Code Monkey home page Code Monkey logo

pinpoint.js's Introduction

pinpoint.js

Address validation plugin using geolocation from the Goggle Maps API (Original code by Gabe Summber)

Demo

Click here to see the plugin in action.

Install (in 3 easy steps)

  1. Load up the Google Maps API

     <script src="https://maps.google.com/maps/api/js?sensor=false"></script>
    
  2. Link your page to pinpoint.js (obviously)

     <script src="js/prism.js"></script>
    
  3. Create a form with the relevant class names

     <form>
     	<div class="help"></div>
     	<div>
     		<label>Name</label>
     		<input class="name">
             <span class="go">Go</span><br>
             <textarea class="address"></textarea><br>
     	</div>
     </form>	
    

Class names

.help - where the help message will go

.name - where the name of the location will go

.go - the button you click to register the searched location

.address - where the full address will show up after 'yes' is clicked

Documentation

Luckily for me, Gabe Summer (who wrote the original code) has a comment on what every single line of the code does so if you want a bit more info just visit his site here.

pinpoint.js's People

Watchers

Eliu Florez avatar James Cloos avatar

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.