Code:
<kbd>**[Live Demo](http://jsfiddle.net/)**</kbd>
Preview:
# Regular Colors | |
\[\033[0;30m\] # Black | |
\[\033[0;31m\] # Red | |
\[\033[0;32m\] # Green | |
\[\033[0;33m\] # Yellow | |
\[\033[0;34m\] # Blue | |
\[\033[0;35m\] # Purple | |
\[\033[0;36m\] # Cyan | |
\[\033[0;37m\] # White |
HTML:
<div id="t"></div>
JS:
var console={log:function(t){document.getElementById("t").innerHTML+=t+""}};
"use strict"; | |
let path = require("path"); | |
let fs = require("fs"); | |
//////////////////////////////// | |
//----------------------------// | |
// Copyright (c) 2018 NullDev // | |
//----------------------------// | |
//////////////////////////////// |
JS:
/* -- Pagination -- */
var currPage = 1;
var numsPerPage = 6;
$(document).ready(function(){
$("div.content-single").hide();
$("div.content-single:lt(" + numsPerPage + ")").show();
This is a (temporary fix) for visual composer messing up heights of grid elements on iPads.
Basically, visualcomposer just parses the device width and height very sloppy.
this results in a height property like this:
element {
height: 314x301;
}
Function.prototype.test = function(x){ | |
var arg1 = this(); | |
var arg2 = x; | |
console.log( | |
"Arg1: " + arg1 + | |
"\nArg2: " + arg2 | |
); | |
} |
"use strict"; | |
/** | |
* Formats the current time | |
* | |
* @returns {string} Time | |
*/ | |
let getDate = function(){ | |
const date = new Date(); | |
let hourData = date.getHours(); |
let getRandomString = (length) => [...Array(length)].map(() => Math.random().toString(36)[2]).join(""); | |
let str = getRandomString(10); | |
// -> 225n9b53x6 | |
// --- | |
// Demo: https://jsfiddle.net/fku9y6sm/ |