A Pen by Chris Roberts on CodePen.
Animated isotope like boxes using floats and css3 transition.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/ | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
input.addEventListener('blur', function () { | |
var errors = document.getElementById("errors"); | |
validator.validateField(this); | |
errors.innerHTML = validator.errors[0] || ""; | |
}); |
validatejs = new FormValidator(form, rules, function(errors, events) { | |
if (errors.length > 0) { | |
// show errors | |
event.preventDefault(); // + ie6 equivalent | |
} else { | |
// do stuff before form submission | |
return true; | |
} | |
}); |
<!DOCTYPE html> | |
<html> | |
<body> | |
<div style="width: 100px; height: 100px; margin-right: 30px; background: blue;"> | |
<div style="width: 50px; height: 50px; margin: 0; background: red;"> | |
</div> | |
</div> |
<!DOCTYPE html> | |
<html> | |
<body> | |
<div style="position: relative; width:500px; height:500px;"> | |
<div style="position: relative;"> | |
<img style="position: relative;" src="http://placedog.com/400/300" onclick="alert('image')"> | |
</div> |
# Simple Python Server | |
# -------------------------------------------------- | |
function server() { | |
local port="${1:-8000}" | |
open "http://localhost:${port}/" | |
python -m SimpleHTTPServer "$port" | |
} |
var myobjs = [ | |
{position: null}, | |
{position: null}, | |
{position: 5}, | |
{position: 1}, | |
{position: null}, | |
{position: 6}, | |
{position: 3}, | |
{position: 10}, | |
{position: 2}, |
var myobjs = [ | |
{position: null}, | |
{position: null}, | |
{position: 5}, | |
{position: 1}, | |
{position: null}, | |
{position: 6}, | |
{position: 3}, | |
{position: 10}, | |
{position: 2}, |
// http://less2css.org/ | |
/* CSS Comments */ | |
// Vs Silent Comments | |
/* Importing */ | |
@import 'my-mixins.css'; | |
A Pen by Chris Roberts on CodePen.
Animated isotope like boxes using floats and css3 transition.