/*! bespoke-blackout v0.0.1 © 2013 Luis Nell, Licensed MIT */ !function(e){var t=66,n=87,r=function(){var e=!1,r=document.createElement("div");r.id="bespoke-blackout",r.style.display="none",r.style.position="absolute",r.style.left=r.style.top="0",r.style.zindex=255,document.body.appendChild(r),window.addEventListener("keydown",function(i){if(!!e||i.which!==t&&i.which!==n){if(i.which===27||i.which===13||i.which===t||i.which===n)r.style.display="none",e=!1,i.preventDefault()}else e=!0,r.style.background=i.which===t?"#000":"#fff",r.style.display="block",r.style.width=window.innerWidth+"px",r.style.height=window.innerHeight+"px",i.preventDefault()}),window.addEventListener("resize",function(){if(!e)return;r.style.width=window.innerWidth+"px",r.style.height=window.innerHeight+"px"})};e.plugins.blackout=r}(bespoke);