Skip to content

Instantly share code, notes, and snippets.

View dwolfhub's full-sized avatar

Daniel Wolf dwolfhub

View GitHub Profile
@dwolfhub
dwolfhub / gist:5774932
Last active December 18, 2015 11:19
CSS: cross-browser opacity styles
-moz-opacity: 0.60;
filter: alpha(opacity=60);
opacity:0.60;
@dwolfhub
dwolfhub / gist:5774898
Last active December 18, 2015 11:19
Javascript: Detect IE and Return Version
/**
* Detect IE and Return Version
* @return {int} 0 if not IE, version if IE
*/
function ieVersion() {
var rv = 0; // Return value assumes failure.
if (navigator.appName == 'Microsoft Internet Explorer')
{
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");