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 is_cellphone(number){ | |
return(/^\(?[0-9]?[0-9]?\)?\s?[5-9][0-9]{7,8}$/i.test(number)); | |
} |
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
String.prototype.FilterBR=function(censura="[censurado]"){return filter=["acefal","anal","ana!","ant","anus","arombad","baba-ovo","babaca","babaq","babaovo","bacanal","bacana!","bacura","bagos","baitol","ba!tol","baito!","ba!to!","bct","bebum","bicha","bichinha","bisca","bixa","bixinha","boazuda","bocet","boiola","boiolinha","bo!ola","bo!olinha","bolagto","bo!agto","boquet","bolcat","bo!cat","boset","bosta","bqt","brioco","br!oco","bronha","bucet","bunda","bunduda","bur","burinh","buset","cachora","cadel","cade!","cacet","caga","cagado","cagona","canalha","cana!ha","caralh","cara!h","caseta","casete","caseto","casetu","chana","chaninh","chavasc","chavask","chavasquinh","chavasqu!nh","chechec","chechek","chechequinh","chechequ!nh","cherec","cherek","cherequinh","cherequ!nh","chererec","chererek","chererequinh","chererequ!nh","chibiu","ch!biu","chib!u","ch!b!u","chibumb","ch!bumb","chifrud","ch!frud","chota","chotinh","chot!nh","chupa","chupe","clitoris","cl!toris","clitor!s","cl!tor!s","corna","corninh","corn! |
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
Array.prototype.moveElement = function(a, b, g = false){ | |
if(typeof a == "undefined" || typeof b == "undefined"){return false} | |
let c = this, d = c.splice(a, 1), e = (g?c.splice(b+a, c.length-b-a):c.splice(b, c.length-b)); | |
c.push(d[0]); | |
for(let f = 0; f < e.length; f++){ | |
c.push(e[f]); | |
} | |
return c; | |
} |
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
/* Esta função requer a biblioteca jQuery */ | |
/* Exemplo de uso: calcularFrete("sedex", "31.130-600", "13.165-000", 8, 350, function(data){console.log(data);}); */ | |
/* Exemplo de uso: calcularFrete(41106, "31.130-600", "13.165-000", 8, 350, function(data){console.log(data);}); */ | |
function calcularFrete(env, orig, dest, qtd, vl, cb){ | |
var URL = "//cors-anywhere.herokuapp.com/ws.correios.com.br/calculador/CalcPrecoPrazo.asmx/"; | |
function codenv(cod){ |