Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am j0n on github.
* I am anderssonjon (https://keybase.io/anderssonjon) on keybase.
* I have a public key ASCcfpSLnINRssXT0H500xV7ZVnyfCvv8GrivXP8Ya738Ao
To claim this, I am signing this object:

Float label

A web component that create a CSS-only floating label for input tags

Usage

The syntax for generating a float-label input is as follows:

@j0n
j0n / gist:7325170
Created November 5, 2013 19:59
Quick example of stream the same sound at the same timemark (bad bad sync) to different devices
var Throttle = require('throttle'),
fs = require('fs'),
change = false,
probe = require('node-ffprobe'),
http = require('http'),
bitRate = 128022;
currentStream = false;
probe(__dirname + '/my.mp3', function(err, data) {
bitRate = data.format.bit_rate;
$(document).ready(function(){
$('.front').bind('click', function(){
$('#cube').css('webkitTransform', "translateZ(-246px) rotateY(0deg)");
});
$('.back').bind('click', function(){
$('#cube').css('webkitTransform', "translateZ(-246px) rotateY(270deg)");
});
$('.cube-left').bind('click', function(){
$('#cube').css('webkitTransform', "translateZ(-246px) rotateY(90deg)");
});