mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 08:39:58 +09:00
Initial implementation of auto-minify
This commit is contained in:
parent
422e0657e0
commit
6a08c10f2d
3 changed files with 39 additions and 19 deletions
|
|
@ -1,31 +0,0 @@
|
|||
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();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue