Skip to content

Instantly share code, notes, and snippets.

View ajhaupt7's full-sized avatar

Andrew Haupt ajhaupt7

View GitHub Profile
@ajhaupt7
ajhaupt7 / Adapter.js
Created February 4, 2016 19:36
Adapter Pattern
// Cross browser opacity:
// opacity: 0.9; Chrome 4+, FF2+, Saf3.1+, Opera 9+, IE9, iOS 3.2+, Android 2.1+
// filter: alpha(opacity=90); IE6-IE8
// Setting opacity
$( ".container" ).css( { opacity: .5 } );
// Getting opacity
var currentOpacity = $( ".container" ).css('opacity');