GithubHelp home page GithubHelp logo

diogomoretti / nilsleter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.73 MB

A jQuery plugin for create newsletter subscription

Home Page: http://diogomoretti.github.io/nilsleter

JavaScript 7.44% CSS 92.56%

nilsleter's Introduction

nilsleter

A jQuery plugin for create newsletter subscription automatically and send data to a end-point by Ajax.

Dependencies

The plugin require Twitter Bootstrap and jQuery md5.

Installation

Include script's after the jQuery library (prefer before </body> tag).

 <script src="/path/to/bootstrap.min.js"></script>
 <script src="/path/to/jquery.md5.js"></script>
 <script src="/path/to/jquery.nilsleter.js"></script>

Usage

Include any element in page, for example:

 <div id="integration-form"></div>

Then call the plugin, after all <script> tags:

 <script>
   $("#integration-form").nilsleter({
     modal:  false,
     fields: { 
       estado: ['PR','SC','SP','RS'], 
       nivel:  ['Iniciante','Intermediário','Avançado','Ninja']
     }
   });
 </script>

Options

###options.modal

Value Description
false (default) Form inline on page
true Button on page for the open modal with form

###options.estado

Array with the location for the user select.

Default: ['PR','SC','SP','RS']

###options.nivel

Array with the level for the user select.

Default: ['Iniciante','Intermediário','Avançado','Ninja']

Additional Notes

Thanks to the jQuery Boilerplate project.

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.