Professional Documents
Culture Documents
Ee
Ee
Authors &
copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD
license */
/*! NOTE: If you're already including a window.matchMedia polyfill via
Modernizr or otherwise, you don't need this part */
window.matchMedia=window.matchMedia||function(a){"use strict";var
c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createEleme
nt("body"),g=a.createElement("div");return g.id="mq-test-
1",g.style.cssText="position:absolute;top:-
100em",f.style.background="none",f.appendChild(g),function(a){return
g.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px;
}</style>',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{mat
ches:c,media:a}}}(document);