Site Notice
hello, world
Difference between revisions of "MediaWiki:Js-blog.js"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
toastr['warning']($('#sq-middle-footer .license-description').html(),'您刚刚复制了'+$('.sq-site-title a').text()+'上的内容!'); | toastr['warning']($('#sq-middle-footer .license-description').html(),'您刚刚复制了'+$('.sq-site-title a').text()+'上的内容!'); | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}); | }); | ||
/** 变更管理工具条的位置 **/ | /** 变更管理工具条的位置 **/ | ||
Line 45: | Line 22: | ||
} | } | ||
}); | }); | ||
+ | /** 右侧滑轨 **/ | ||
$(function(){ | $(function(){ | ||
if ($(window).width() < 750) return; | if ($(window).width() < 750) return; | ||
Line 51: | Line 29: | ||
top: '100px' | top: '100px' | ||
}); | }); | ||
− | $('#secondary.widget-area').css('height',$('. | + | $('#secondary.widget-area').css('height',$('.sq-container').height()); |
}); | }); |
Latest revision as of 18:49, 18 November 2019
/**
*『Wjghj Project Static』
* This _JavaScript_ code is from https://common.wjghj.cn
* CC BY-NC-SA
* For Wjghj Wordpress https://blog.wjghj.cn
**/
/** 复制时版权声明 **/
$(window).on('copy',function(){
if ($('#wpadminbar').length == 0) {
toastr['warning']($('#sq-middle-footer .license-description').html(),'您刚刚复制了'+$('.sq-site-title a').text()+'上的内容!');
}
});
/** 变更管理工具条的位置 **/
$(function(){
if ($('body.wp-admin').length == 0) {
$('#wpadminbar').prependTo('body:not(.post-php) [role="main"]').css({
'position':'inherit',
'top':'0px',
'margin':'8px 0'
});
}
});
/** 右侧滑轨 **/
$(function(){
if ($(window).width() < 750) return;
$('.widget_recent_entries').css({
position: 'sticky',
top: '100px'
});
$('#secondary.widget-area').css('height',$('.sq-container').height());
});