반응형
반응형

전화번호 입력 포멧

 

http://firstopinion.github.io/formatter.js/demos.html

Formatter.js: Conform user input to predefined patterns

formatter.js

 

formatter.js Build Status

   ___                    __  __              _   
  / _/__  ______ _  ___ _/ /_/ /____ ____    (_)__
 / _/ _ \/ __/  ' \/ _ `/ __/ __/ -_) __/   / (_-<
/_/ \___/_/ /_/_/_/\_,_/\__/\__/\__/_/ (_)_/ /___/
                                        |___/     

Format user input to match a specified pattern

Demos/Examples

view demo

Why?

Sometimes it is useful to format user input as they type. Existing libraries lacked proper functionality / flexibility. Formatter was built from the ground up with no dependencies. There is however a jquery wrapper version for quick use.

On Bower

bower install formatter

Usage

Vanilla Javascript

  • uncompressed: formatter.js
  • compressed: formatter.min.js

new Formatter(el, opts)

var formatted = new Formatter(document.getElementById('credit-input'), {
  'pattern': '{{999}}-{{999}}-{{999}}-{{9999}}',
  'persistent': true
});

Jquery

  • uncompressed: jquery.formatter.js
  • compressed: jquery.formatter.min.js

$(selector).formatter(opts)

$('#credit-input').formatter({
  'pattern': '{{999}}-{{999}}-{{999}}-{{9999}}',
  'persistent': true
});

Opts

  • pattern (required): String representing the pattern of your formatted input. User input areas begin with {{ and end with }}. For example, a phone number may be represented: ({{999}}) {{999}}-{{999}}. You can specify numbers, letters, or numbers and letters.
    • 9: [0-9]
    • a: [A-Za-z]
    • *: [A-Za-z0-9]
  • persistent: [False] Boolean representing if the formatted characters are always visible (persistent), or if they appear as you type.

 

 

  •  
반응형
반응형
jquery 실행시 jquery~~.min.map이 없다고 에러날때.

 

 

http://jquery.com/download/ 에 가서 버전에 맞는 min.map 파일을 다운 받아라.

 

 

 

 

 

반응형
반응형

Riot.js: A tiny client-side MVP framework

riot

 

The 1kb client side MVP framework

Riot is an incredibly fast, powerful yet tiny client side framework for building large scale web applications. Despite the small size all the building blocks are there: a template engine, router, event library and a strict MVP pattern to keep things organized. Your views are automatically updated when the underlying model changes.

Current frameworks base their existence on false assumptions.

  1. There's a big mass of common problems
  2. MVC (or MVP) requires a framework
  3. jQuery leads to spaghetti

All of these statements are wrong.

Current applications could be faster, simpler and smaller. They could be maintained with less people, less knowledge, and less worries.

Riot is a manifesto for vanilla JavaScript and jQuery.

Release December 2013 • Get notified on Facebook

 

https://moot.it/blog/technology/riotjs-the-1kb-mvp-framework.html

 

 

반응형
반응형

Useful jQuery Tutorials For Web Developers And Designers

 

 

Colorful Sliders With jQuery & CSS3

In this tutorial we are using jQuery and the new transformation features brought by CSS3 to create a three dimensional dynamic slider effect.


usefuljquerytutorial

Animated Form Switching with jQuery

In this tutorial we will create a simple animated form switch with three very common forms. The idea is not to leave the page when the user goes to another form but instead make the new form appear within the same container, expanding or contracting to the dimensions of the new form.


usefuljquerytutorial

How to Make Custom Flat Styled Google Maps with jQuery and Flat UI

In this tutorial we will show you how to make custom flat styled google map with jquery and flat UI.


usefuljquerytutorial

Password strength verification with jQuery

In this tutorial, we’ll construct a form that gives the user live feedback as to whether their password has sufficiently met the complexity requirements we will establish.


usefuljquerytutorial

Vertical Scroll Menu with jQuery Tutorial

In this tutorial we will learn vertical scroll menu with jquery tutorial.


usefuljquerytutorial

Shiny Knob Control with jQuery and CSS3

In this tutorial we will be writing a jQuery plugin for creating a shiny knob control. Aptly named knobKnob, this plugin will use CSS3 transformations and jQuery’s new event handling methods to give visitors of your website a new way of interactively choosing a value from a range.


usefuljquerytutorial

Make Pretty Charts For Your App with jQuery and xCharts

In this tutorial you will learn about pretty charts for your app with jquery and xcharts.


usefuljquerytutorial

How to Create Login Form with CSS3 and jQuery

In this tutorial we will learn how to create login form with CSS3 and jQuery.


usefuljquerytutorial

A Simple Movie Search App w/ jQuery UI

In this tutorial, we are using jQuery UI’s autocomplete widget, to build a simple AJAX movie search form. The script is going to use TheMovieDatabase.org‘s free API, to provide auto suggestions against a vast database of movie titles.


usefuljquerytutorial

In this tutorial you will learn beautiful slide out navigation a CSS and jQuery.


usefuljquerytutorial

Frame Warp jQuery Plugin

There is the option of using one of the numerous lightbox plugins to do this, but the plugin we will be creating in this tutorial has a lot of advantages over a generic lightbox script.


usefuljquerytutorial

How to Create a Responsive Image Slider in jQuery and CSS3

In this tutorial we will code a responsive image slider from the Impressionist UI. We will code it using the FlexSlider plugin for the functionality and style it using CSS3.


usefuljquerytutorial

Animated Content Menu with jQuery

In this we will create a slick animated content menu with jQuery for a restaurant theme. The menu items will be animated and when clicked, a content area with more information will appear.


usefuljquerytutorial



Read more: http://www.smashingapps.com/2013/11/01/useful-jquery-tutorials-for-web-developers-and-designers.html#ixzz2jdeQOSvJ

반응형
반응형

Closure Library: A cross-browser JavaScript library

The Closure Library, from Google, is a well-tested, broad, cross-browser JavaScript library that lets you pull only what you need from a set of reusable UI widgets and controls. It also lets you pull from a variety of lower-level utilities for server communication, unit testing, rich-text editing, animation, DOM manipulation, and more.

closure library

 

반응형
반응형
 Bootstrap Playground - www.bootply.com

 

 

bootstrap 프레임워크로 화면구성을 쉽게 할 수 있다.

 

 

 

 

반응형

+ Recent posts