This file contains 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 installment(value, minInstallmentValue, maxInstallmentsNumber) { | |
minInstallmentValue = minInstallmentValue ? minInstallmentValue : 1; | |
maxInstallmentsNumber = maxInstallmentsNumber ? maxInstallmentsNumber : 12; | |
var installments = []; | |
var Installment = {quantity: 0, value: 0}; | |
var installmentsNumber = Math.floor(value / minInstallmentValue); | |
if (!installmentsNumber) |
This file contains 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
.notificacao { | |
width: 100%; | |
min-height: 20px; | |
position: fixed; | |
top: -1000px; | |
left: 0; | |
z-index: 250; | |
min-width: 250px; | |
} |
This file contains 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
Rest = function () | |
{ | |
var entitySufix = "Entity"; | |
var dataTransformer = new DataTransformer(); | |
this.get = function (entityName, data) { | |
var entity = new window[entityName + entitySufix](data); | |
dataTransformer.setFields(entity.fields); | |
dataTransformer.setHide(entity.hide); |
This file contains 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
/** | |
* Config classes which will be used at gulp-setup. | |
*/ | |
module.exports = function () { | |
var gRoutes = require("./gulp-routes")(); | |
function getPath(path, type) | |
{ | |
if (typeof path === "undefined") { | |
path = ""; |
This file contains 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
/** | |
* Created by klaus.machado on 25/06/2015. | |
*/ | |
function SimpleDebug() | |
{ | |
var labels = { | |
"APP": { | |
"color": "#000000" | |
}, | |
"EXAMPLE": { |
This file contains 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 Plugin - Loader | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
(function($) { | |
/** | |
* Plugin to retrieve all attributes of a element | |
* @returns {Object} | |
*/ | |
$.fn.attrs = function(){ |
This file contains 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 Plugin - Loader | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
// - Centralize >> https://gist.github.com/klauskpm/fc25fef2b4c94131d854 | |
(function($) { | |
/** | |
* Plugin to create an waiting page until something is done | |
* @param {Object.<array, integer, boolean>} options Object with waiting | |
* texts(texts), time span between actions(interval), and the option to |
This file contains 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
.cursor-box, div, h3{ | |
float: left; | |
clear: left; | |
} | |
.cursor-box .title::after { | |
content: ""; | |
padding: 0px 4px; | |
background: black; | |
margin: 0 0 0 3px; |
This file contains 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 Plugin - Centralize | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
(function($) { | |
/** | |
* Plugin to centralize the element according to the window | |
* @param {boolean} resize If true, it will resize everytime the window | |
* resizes | |
* @returns {jQuery.this} |
This file contains 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 Plugin - ScrollToMe | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
(function($) { | |
/** | |
* Plugin to scroll the page till it element | |
* @param {Object.<(string|integer), string>} options Object with | |
* duration time(duration) and animation style(easing) | |
* @returns {jQuery.this} |