Skip to content

Instantly share code, notes, and snippets.

@fragje
fragje / gist:2035908
Created March 14, 2012 11:33 — forked from brunofrank/gist:2025969
JavaScript: Popup blocker detector tested on Chrome, Firefox, Safari and IE
var test = window.open(null,"","width=1,height=1");
setTimeout(function(){
if (test && test.innerHeight && test.innerHeight > 0) {
// POPUP BLOCKER DISABLED
test.close();
}
}, 10);
@fragje
fragje / _rounded.sass
Created March 13, 2012 09:29 — forked from maran/_rounded.sass
css: rounded corners
@mixin rounded-corner($radius: 5px)
-moz-border-radius: $radius
-webkit-border-radius: $radius
border-radius: $radius
@mixin rounded-top-left-corner($radius: 5px)
-moz-border-radius-topleft: $radius
-webkit-border-top-left-radius: $radius
border-top-left-radius: $radius
@fragje
fragje / mediaqueries.css
Created March 13, 2012 08:31 — forked from saturngod/mediaqueries.css
css: Media queries
@media screen and (max-width:480px){
#content {
width:470px;
}
}
@media screen and (max-width:320px){
@fragje
fragje / gist:2027581
Created March 13, 2012 08:22 — forked from eculver/gist:530619
JavaScript: Super sexy IE detection
// ----------------------------------------------------------
// 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) {}
// And to detect the version:
// ie === 6 // IE6
// ie > 7 // IE8, IE9 ...