Just another good old burger button.
A Pen by Nathan Jacobs on CodePen.
/* CSS */ | |
.background { | |
position: fixed; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
background: #333; | |
z-index: -1; |
// JavaScript | |
(function(){ | |
$(document).ready(function(){ | |
var $background = $('div.background'), | |
backgroundWidth = $background.width(), | |
backgroundHeight = $background.height(), | |
canvasBack = document.getElementById('canvas-back'), |
<!-- HTML --> | |
<div class="background"> | |
<div class="canvas back"> | |
<canvas id="canvas-back"></canvas> | |
</div> | |
<div class="canvas mid"> | |
<canvas id="canvas-mid"></canvas> |
main.col | |
.row.row-top | |
h1.animated HELLO | |
.row.row-bottom | |
.row.toolbar | |
.row.select-bar | |
select.animation-selector | |
option zoomInFlip | |
option springOutEntrance | |
option springInExit |
Just another good old burger button.
A Pen by Nathan Jacobs on CodePen.
A Pen by iAmNathanJ on CodePen.
function addMathTo(obj) { | |
Object.getOwnPropertyNames(Math).forEach((prop) => { | |
let constName = String(prop).toUpperCase(); | |
Object.defineProperty(obj, constName, { | |
value: Math[prop], | |
writable: false, | |
configurable: false | |
}); | |
}); | |
} |
function doSomethingWithTextFile(filePath, doThing) { | |
var text = readFile(filePath); | |
doThing(text); | |
} | |
doSomethingWithTextFile(‘my-file.txt’, console.log); |
#!/bin/bash | |
# Usage examples: | |
# ./update-all-repos.sh | |
# ./update-all-repos.sh ~/Sites ~/Projects | |
HIGHLIGHT="\e[01;34m" | |
NORMAL='\e[00m' | |
function update { |