Skip to content

Instantly share code, notes, and snippets.

View dziudek's full-sized avatar

Tomasz Dziuda dziudek

View GitHub Profile
@dziudek
dziudek / dabblet.css
Created June 12, 2013 08:17
CSS Loader - timer
/**
* CSS Loader - timer
*/
#loader {
animation-name: timer;
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-timing-function: linear;
border: 2px solid #aaa;
@dziudek
dziudek / jQuery.placeholder.polyfill.js
Created June 11, 2013 12:54
jQuery placeholder polyfill
jQuery(document).ready(function() {
jQuery('*[placeholder]').each(function(i, el) {
el = jQuery(el);
if(el.val() === '') {
el.val(el.attr('placeholder'));
}
el.focus(function() {
if(el.val() == el.attr('placeholder')) {
@dziudek
dziudek / dabblet.css
Created June 10, 2013 08:08
CSS Loader - blocks
/**
* CSS Loader - blocks
*/
#loader {
animation-name: timer;
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-timing-function: linear;
background: transparent;
@dziudek
dziudek / dabblet.css
Created June 4, 2013 07:01
CSS Loader - bordered dot
/**
* CSS Loader - bordered dot
*/
#loader {
animation-name: timer;
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-timing-function: linear;
border: 2px solid #aaa;
@dziudek
dziudek / mootools.placeholder.polyfill.js
Created May 26, 2013 21:45
IE <= 9 placeholder polyfill in MooTools
window.addEvent('domready', function() {
document.getElements('*[placeholder]').each(function(el) {
if(el.get('value') === '') {
el.set('value', el.getProperty('placeholder'));
}
el.addEvents({
'focus': function() {
if(el.get('value') === el.getProperty('placeholder')) {
el.set('value', '');
@dziudek
dziudek / dabblet.css
Created May 24, 2013 08:20
CSS Loader - bubble
/**
* CSS Loader - bubble
*/
#loader {
animation-duration: .75s;
animation-iteration-count: infinite;
animation-name: loader;
animation-timing-function: linear;
background: #fc9;
@dziudek
dziudek / dabblet.css
Created May 23, 2013 09:10
CSS Loader - timer without pulse
/**
* CSS Loader - timer without pulse
*/
#loader {
border: 3px solid #aaa;
border-radius: 50%;
box-sizing: border-box;
height: 48px;
position: relative;
@dziudek
dziudek / dabblet.css
Created May 23, 2013 09:07
CSS Loader - timer
/**
* CSS Loader - timer
*/
#loader {
animation-name: timer;
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-timing-function: linear;
border: 3px solid #aaa;
@dziudek
dziudek / dabblet.css
Created May 23, 2013 08:56
File icon in CSS
/**
* File icon in CSS
*/
.file {
background: #fa8;
border-radius: 10px 40px 10px 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, .4);
height: 200px;
margin: 0 auto;
@dziudek
dziudek / dabblet.css
Created May 20, 2013 19:33
File icon in CSS
/**
* File icon in CSS
*/
.file {
background: #fa8;
border-radius: 10px 40px 10px 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, .4);
height: 200px;
margin: 0 auto;