Initial commit after re-install
This commit is contained in:
31
js/foggyLayer.js
Normal file
31
js/foggyLayer.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user