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
| <?php | |
| public static function getAcrescimo($valor, $parcelas, $acrescimo) | |
| { | |
| if (!is_numeric($valor) || $valor <= 0) { | |
| return false; | |
| } | |
| if ((int) $parcelas != $parcelas) { | |
| return false; | |
| } | |
| if (!is_numeric($acrescimo) || $acrescimo < 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
| function ordenaDados(d, c, t) { | |
| // Retorna os dados ordenados | |
| return d.sort(function (a, b) { | |
| // Monta a ordenação com a chave | |
| var x = a[c]; | |
| var y = b[c]; | |
| // caso seja chamada a ordenação em asc |
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
| /** | |
| * Verifica chaves de arrays | |
| * | |
| * Verifica se a chave existe no array e se ela tem algum valor. | |
| * Obs.: Essa função está no escopo global, pois, vamos precisar muito da mesma. | |
| * | |
| * @param array $array O array | |
| * @param string $key A chave do array | |
| * @return string|null O valor da chave do array ou nulo | |
| */ |
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 ($) { | |
| var b = $(document), | |
| d = $(window), | |
| e = null, | |
| c; | |
| function a(a) { | |
| document.title = a; | |
| } | |
| c = b.find("title").text(), |
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() { | |
| /* | |
| * Remove estilos in-line e adiciona no cabeçalho do site | |
| * | |
| * @author Willian Keller | |
| * | |
| * Definições das Variáveis | |
| * | |
| * @variables | |
| * a = Array (saída do laço de repetição) |
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
| <html> | |
| <head> | |
| <title>Checkbox Usando Switch</title> | |
| <style> | |
| *, :after, :before { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| label { |
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 toggleInputPlaceholder = function() { | |
| if ($(".placeholder").val() != '') { | |
| $(".placeholder").next("label").hide(); | |
| } | |
| $(".placeholder").focus(function() { | |
| $(this).next("label").hide(); | |
| }); | |
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 efeito(t, e) { | |
| var a = '.efeito', | |
| c = '<span class="efeito"></span>'; | |
| t.append(c); | |
| $(a).css({'top': e.offsetY, 'left': e.offsetX}); | |
| setTimeout(function () { |
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
| error: function (_jqxhr, text, error) { | |
| switch (_jqxhr.status) { | |
| case 404: | |
| case 500: | |
| console.log("Erro: " + error + " - " + text); | |
| console.log(_jqxhr); | |
| break; | |
| default: | |
| console.log(_jqxhr); | |
| } |
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
| { | |
| "name": "sandbox", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "sass:dev": "./node_modules/.bin/gulp", | |
| "sass:prod": "./node_modules/.bin/gulp sass:prod" | |
| }, | |
| "dependencies": {}, | |
| "devDependencies": { | |
| "breakpoint-sass": "^2.6.1", |
OlderNewer