mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Issue 3640 X-UA-Compatible ie=edge 추가.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13198 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
66a5039d04
commit
4f4c63ed3d
1 changed files with 7 additions and 6 deletions
|
|
@ -11,6 +11,7 @@
|
|||
<!-- META -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="Generator" content="XpressEngine">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<block loop="Context::getMetaTag() => $no, $val">
|
||||
<meta http-equiv="{$val['name']}"|cond="$val['is_http_equiv']" name="{$val['name']}"|cond="!$val['is_http_equiv']" content="{$val['content']}">
|
||||
</block>
|
||||
|
|
@ -82,16 +83,16 @@ jQuery(function($){
|
|||
function get_body_margin(position){
|
||||
var margin = $('body').css('margin-' + position);
|
||||
var unit = margin.substr(-2);
|
||||
|
||||
|
||||
if(unit == 'px'){
|
||||
margin = parseInt(margin);
|
||||
}else{
|
||||
margin = 0;
|
||||
}
|
||||
|
||||
|
||||
return margin;
|
||||
}
|
||||
|
||||
|
||||
var height = $('#adminBar').outerHeight();
|
||||
var margin_top = get_body_margin('top');
|
||||
var new_margin_top = margin_top + height;
|
||||
|
|
@ -99,11 +100,11 @@ jQuery(function($){
|
|||
$('body').css({
|
||||
'margin-top': new_margin_top + 'px'
|
||||
})
|
||||
|
||||
|
||||
var $fixed_elements = $('*').filter(function(){
|
||||
if($(this).get(0) == $('#adminBar').get(0)) return false;
|
||||
if($(this).css("position") !== 'fixed') return false;
|
||||
|
||||
|
||||
var invisible = false;
|
||||
if(!$(this).is(':visible')){
|
||||
invisible = true;
|
||||
|
|
@ -114,7 +115,7 @@ jQuery(function($){
|
|||
$(this).hide();
|
||||
}
|
||||
if(top > height) return false;
|
||||
|
||||
|
||||
$(this).css('top', top + height);
|
||||
return true;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue