Skip to content

Instantly share code, notes, and snippets.

View ignacioricci's full-sized avatar

Ignacio Ricci ignacioricci

View GitHub Profile
@ignacioricci
ignacioricci / gist:57f38f5111b27f77dec4
Created October 15, 2015 19:12
JS+CSS animation concatenation
<html>
<head>
<title>Test Animations</title>
<style type="text/css">
body {padding:50px;}
#login {
width:200px;
height:200px;
@ignacioricci
ignacioricci / pins.js
Created August 28, 2012 21:53
Lightweight Pinterest Column JS (Jquery)
var colCount = 0;
var colWidth = 0;
var margin = 20;
var windowWidth = 0;
var blocks = [];
$(function(){
$(window).resize(setupBlocks);
});
@ignacioricci
ignacioricci / select-to-dropdown.js
Created February 6, 2012 18:52
Change select to dropdown list
$('#selectJob').children().hide();
var sel_list = $('<div id="jobDropdown"><strong class="cta"><span></span></strong><ul></ul></div>');
sel_list.find('span').text($('#selectJob label').text());
$('#selectJob select').children('option').each(function(){
sel_list.children('ul').append('<li>' + $(this).text() + '</li>');
});
$('#selectJob').append(sel_list);
$('#jobDropdown').find('li').live('click',function(e){
$('#selectJob select option').eq($(this).index()).attr('selected','selected').siblings('option').removeAttr('selected');
$(this).addClass('selected');