Skip to content

Instantly share code, notes, and snippets.

/* table-container.css v1 */
.table-container{
display: table;
height: 100%;
margin-left: auto;
margin-right: auto;
}
.table-container > *{
display: table-cell;
vertical-align: middle;
// getBootstrap4Grid.js v1.2.1
function getBootstrap4Grid( windowWidth = window.outerWidth ){
if( typeof windowWidth == 'string' ){
windowWidth = +windowWidth;
};
if( windowWidth == 1 ){
windowWidth = window.outerWidth;
windowWidth = ( windowWidth < 576 ) ? windowWidth = 1 : windowWidth;
windowWidth = ( windowWidth >= 576 && windowWidth < 768 ) ? windowWidth = 2 : windowWidth;
windowWidth = ( windowWidth >= 768 && windowWidth < 992 ) ? windowWidth = 3 : windowWidth;
<!-- eqcss-tests.html v1 -->
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
// lightcase-default-options.js v1
$('.is-lightcase').lightcase({
'video': {
'width': 16000,
'height': 9000,
'poster': '',
'preload': 'auto',
'controls': true,
'autobuffer': true,
'autoplay': true,
// noty-default-options.json v1
new Noty({
"text": "ABC",
"type": "success",
"layout": "topRight",
"theme": "sunset",
"timeout": 5000,
"visibilityControl": true
}).show();
// mergeArray.js v1.0.1
function mergeArray(arrayA, arrayB) {
newArray = [];
for (let i = 0; i < arrayA.length; i++) {
newArray.push(arrayA[i]);
};
for (let i = 0; i < arrayB.length; i++) {
newArray.push(arrayB[i]);
};
return newArray;
// excelMoneyFormat.js v1.0.1
function excelMoneyFormat(number, prefix = '', suffix = '', toFixedNumber = 2) {
return prefix + number.toFixed(toFixedNumber).replace('.', ',') + suffix;
};
//js-youtube-speeds alpha.js v0.1
let waitJquery = setInterval(function() {
if ($ == jQuery && jQuery != undefined) {
clearInterval(waitJquery);
$('.ytp-button.ytp-settings-button').on('click', function() {
setTimeout(function() {
$('.ytp-menuitem').each(function() {
if ($(this).text().indexOf('Velocidade') > -1) {
$(this).css('background', 'red');
$(this).attr('onclick', 'jsVelocidade()');
//array-prototypes.js v1
// isArray v1
function isArray(array) {
return Object.prototype.toString.call(array) == '[object Array]';
};
if (!Array.isArray) {
Array.isArray = function(array) {
return isArray(array);
};
// json-prototypes.js v1
// isJSON.js v1
function isJSON(json) {
let realJSON = {};
if (json.constructor == realJSON.constructor) {
return true;
};
return false;
};