Skip to content

Instantly share code, notes, and snippets.

@diessica
diessica / FizzBuzz.js
Created April 25, 2016 01:09
FizzBuzz.js
for (var n = 0; n < 100; n++) {
var word = ''
if (n % 3 === 0) word += 'Fizz'
if (n % 5 === 0) word += 'Buzz'
console.log(word || n)
}

CSS floating labels

Just an CSS-only experiment that I wanted to share. =) I'm still improving it.

Tested on Google Chrome, Firefox and Opera.

Check out on CodePen.

function verificar() {
var dados = document.getElementById("dados"),
t1 = document.getElementById("t1").value,
t2 = document.getElementById("t2").value,
t3 = document.getElementById("t3").value;
if (t1 == t2 && t2 == t3 && t1 == t3) {
dados.triangulo.value = "Isosceles";
}
@diessica
diessica / A fixed side or corner box.markdown
Created September 3, 2013 04:13
A solution for fixed side/corner box with only HTML/CSS.

A fixed side/corner box

Opened with :hover.

See the result of this example on CodePen.