Giter Site home page Giter Site logo

jquery.meiomask.9digito's Introduction

jquery.meiomask.9digito

Adaptation of jquery.meiomask plugin for mobile phones with 9th digit in Brazil. Currently these are the area codes that contains the 9th digit:

  • SP 11 - 19
  • RJ 21,22 and 24
  • ES 27 and 28
  • PA 91, 93 and 94
  • AM 92 and 97
  • RR 95
  • AP 96
  • MA 98 and 99

Requirements

  • JQuery

Installation

  • Clone this repository to your project's plugin path
  • Add files to your html template that will make use of masks (after jQuery), adjusting the paths as necessary: <script src="/meio-mask/jquery.meio.mask.min.js"></script> <script src="/meio-mask/meio-mask-init.js"></script>

Or include the direct path to these files:

<script src="https://raw.githubusercontent.com/zejuniortdr/jquery.meiomask.9digito/master/jquery.meio.mask.min.js"></script> <script src="https://raw.githubusercontent.com/zejuniortdr/jquery.meiomask.9digito/master/meio-mask-init.js"></script>

How to use

In htmls which need input masks, add the attribute alt = "MASK_NAME", as the examples below:

  • phone : (99) 9999-9999
  • phone-us : (999) 9999-9999
  • cpf : 999.999.999-99
  • cnpj : 99.999.999/9999-99
  • date : 39/19/9999
  • date-us : 19/39/9999
  • cep : 99999-999
  • time : 29:69
  • cc : 9999 9999 9999 9999
  • integer : 999.999.999.999
  • decimal : 99,999.999.999.999
  • decimal-us : 99.999,999,999,999
  • signed-decimal : 99,999.999.999.999
  • signed-decimal-us : 99,999.999.999.999
  • msk : 999-999
  • other_msk : 6666
  • another_one : 7777 , type:reverse
  • dose : 99
  • termina_em : 39/19/9999, autoTab:false
  • phone_9digito : (99) 99999-9999
  • inteiros : 999999999999

It is also possible to create new masks as seen in the file meio-mask-init.js, with default values​​, reverse entry, tab control, among other options.


jquery.meiomask.9digito PT-BR

Adaptação do plugin jquery.meio.mask para celulares com 9º dígito no Brasil. Atualmente esses são os DDDs que contém o 9º dígito:

  • SP (11 ao 19)
  • RJ (21,22 e 24)
  • ES (27 e 28)

Requisitos

  • JQuery

Instalação

  • Clone este repositório para junto dos plugins do seu projeto
  • Adicone os arquivos no seu template html (após a inclusaão do jQuery) que fará uso das máscaras, adequando os caminhos conforme necessário: <script src="/meio-mask/jquery.meio.mask.min.js"></script> <script src="/meio-mask/meio-mask-init.js"></script>

Ou inclua o caminho direto para estes arquivos:

<script src="https://raw.githubusercontent.com/zejuniortdr/jquery.meiomask.9digito/master/jquery.meio.mask.min.js"></script> <script src="https://raw.githubusercontent.com/zejuniortdr/jquery.meiomask.9digito/master/meio-mask-init.js"></script>

Uso

Nos htmls que precisar das máscaras nos inputs, adicione o atributo alt="NOME_DA_MASCARA", conforme os exemplos abaixo:

  • phone : (99) 9999-9999
  • phone-us : (999) 9999-9999
  • cpf : 999.999.999-99
  • cnpj : 99.999.999/9999-99
  • date : 39/19/9999
  • date-us : 19/39/9999
  • cep : 99999-999
  • time : 29:69
  • cc : 9999 9999 9999 9999
  • integer : 999.999.999.999
  • decimal : 99,999.999.999.999
  • decimal-us : 99.999,999,999,999
  • signed-decimal : 99,999.999.999.999
  • signed-decimal-us : 99,999.999.999.999
  • msk : 999-999
  • other_msk : 6666
  • another_one : 7777 , type:reverse
  • dose : 99
  • termina_em : 39/19/9999, autoTab:false
  • phone_9digito : (99) 99999-9999
  • inteiros : 999999999999

Também é possível a criação de novas máscaras como visto no arquivo meio-mask-init.js, com opções de valores padrões, entrada reversa, controle de tabulação, entre outras opções.

jquery.meiomask.9digito's People

Contributors

zejuniortdr avatar

Watchers

James Cloos avatar  avatar

Forkers

ftxavier

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.