rhymix/common/js/foggyLayer.js
ngleader 2d3f149b5a merge from 1.7.3.5(r13153:r13167)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-09-29 23:32:39 +00:00

31 lines
No EOL
535 B
JavaScript

jQuery(function($){
var $foggyLayer = $("<div>");
$foggyLayer.css({
position: 'absolute',
top:0,
left:0,
backgroundColor:'#000',
opacity: 0,
display:'none',
zIndex:100,
width: $(document).width(),
height: $(document).height()
});
$($.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();
});