Skip to content

Instantly share code, notes, and snippets.

View mkykode's full-sized avatar

Jull Weber mkykode

View GitHub Profile
@mkykode
mkykode / gist:3950258
Created October 25, 2012 03:28 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@mkykode
mkykode / dabblet.css
Created March 21, 2013 00:00 — forked from LeaVerou/dabblet.css
Switch-style checkboxes.
/**
* Switch-style checkboxes.
* Inspired by Espresso’s “Tools” switch
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
@mkykode
mkykode / SassMeister-input.scss
Created July 22, 2014 16:46
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
/**
* Generate the carousel animation
* based on the number of frames
* and the pourcentage of a frame spent static
*