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
{ | |
"correios":{ | |
"erros":[ | |
{ | |
"codigo":"0", | |
"descricao":"Processamento com sucesso" | |
}, | |
{ | |
"codigo":"-1", | |
"descricao":"Código de serviço inválido" |
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
/*HTML5 Placeholders style*/ | |
::-webkit-input-placeholder { | |
color: red; | |
} | |
:-moz-placeholder { /* Firefox 18- */ | |
color: red; | |
} |
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
<!DOCTYPE html> | |
<!-- | |
Copyright 2010 Google Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": false, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 2, | |
"caret_extra_top": 2, | |
"caret_extra_width": 3, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme", | |
"fade_fold_buttons": false, | |
"find_selected_text": true, |
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
function paginationDots(){ | |
//Verifica a paginação | |
if($('.page-wrap').length){ | |
if($('.page-last').length){ | |
var url_split = $('.page-last a').attr('href').split('/').reverse(); | |
totalPagesLast = url_split[0]; | |
} | |
if($('.page-first').length){ | |
var url_split = $('.page-first a').attr('href').split('/').reverse(); | |
totalPagesFirst = url_split[0]; |
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
/* | |
* Regexes | |
* | |
*/ | |
var emailRegExp = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i; | |
//Full Name | |
var fullNameRegExp = /^(?:[\u00c0-\u01ffa-zA-Z'-]){2,}(? |
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
/** | |
* Cálculo para imagens proporcionais foto Retrato | |
*/ | |
$width = <valor>; // Largura da Foto que está sendo feito upload, obtido pelo getimagesize | |
$height = <valor>; // Altura da Foto que está sendo feito upload, obtido pelo getimagesize | |
$newWidth = <valor>; // Nova Largura Definida para a foto de acordo com o documento | |
$newHeight = ($newWidth/$width) * $height; |
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
var Validate = { | |
email: function( valor ) { | |
regex = new RegExp( /^([a-z0-9_\.\+-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ ); | |
return regex.test( valor ); | |
}, | |
string: function ( valor ) { | |
return (typeof valor === "string"); | |
}, | |
float: function( valor ) { | |
valor = replaceAll( ',', '.', valor ); |
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
function calcYtoCenter(imageHeight,containerHeight){ | |
return imageHeight - ( (imageHeight - containerHeight) / 2); | |
} |
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
.outer{ | |
float: left; | |
width: 150px; | |
background:red; | |
height: 220px; | |
position: relative; | |
margin: 15px; | |
overflow: hidden; | |
text-align: center; | |
line-height: 220px; |
OlderNewer