diff --git a/common/js/foggyLayer.js b/common/js/foggyLayer.js new file mode 100644 index 000000000..575d98ddf --- /dev/null +++ b/common/js/foggyLayer.js @@ -0,0 +1,29 @@ +jQuery(function($){ + var $foggyLayer = $("
"); + $foggyLayer.css({ + position: 'absolute', + top:0, + left:0, + backgroundColor:'#000', + opacity: 0, + display:'none', + zIndex:100 + }); + $($.find("body")).append($foggyLayer); + + $(window).resize(function(){ + $foggyLayer.css({ + width: 0, + height: 0 + }); + + setTimeout(function(){ + $foggyLayer.css({ + width: $(document).width(), + height: $(document).height() + }); + }, 0); + }); + + $foggyLayer.show(); +} \ No newline at end of file