This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Weslley Alves <[email protected]> | |
* Author URI: http://wezo.com.br | |
* Version: 0.0.1 | |
* License: GNU General Public License | |
* License URI: http://www.wezo.com.br/blog/license/gnu-general-public-license/ | |
* | |
* Examples: | |
* <script type="text/javascript"> | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery Masked Input | |
$('#celular').mask("(99) 9999-9999?9").ready(function(event) { | |
var target, phone, element; | |
target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
phone = target.value.replace(/\D/g, ''); | |
element = $(target); | |
element.unmask(); | |
if(phone.length > 10) { | |
element.mask("(99) 99999-999?9"); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name www.zf.local zf.local; | |
index /index.php; | |
charset utf-8; | |
root "/home/workspace/zf/public"; | |
access_log /var/log/nginx/zf/access.log; | |
error_log /var/log/nginx/zf/error.log; |
NewerOlder