|
|
| 第1行: |
第1行: |
| <noinclude>用来给[[模板:替换侧边栏底图]]更好的体验效果的,作者[[User:AnnAngela]],详细地址:https://zh.moegirl.org/Widget:SideBarPic</noinclude><includeonly><!--{if !isset($wgSideBarPic) || !$wgSideBarPic}--><!--{assign var="wgSideBarPic" value=true scope="global"}--><script> | | <noinclude>用法</noinclude><includeonly>!function(url, width, height){ |
| window.RLQ = window.RLQ || [];
| | console.log(url, width, height);//$('#mw-navigation').append($._$.toAppend); |
| window.RLQ.push(function() {
| | }("<!--{$url|escape:'html'}-->", "<!--{$width|escape:'html'}-->", "<!--{$height|escape:'html'}-->")</includeonly> |
| mw.loader.implement('widgetSideBarPic', function () {
| |
| $("body").addClass("sideBarPic");
| |
| $(window).bind('load', function(){
| |
| $("#sidebar-character").appendTo("#mw-navigation").fadeIn().css('user-select', 'none');
| |
| });
| |
| });
| |
| });</script><style>.sideBarPic.skin-vector #mw-panel {
| |
| background-color: rgba(246, 246, 246, 0.73);
| |
| padding-right: 8px;
| |
| /*padding-top: 0;
| |
| top: 212px*/
| |
| } | |
| | |
| .sideBarPic.skin-vector #mw-panel div#p-logo {
| |
| /*background: rgba(246, 246, 246, 0.73);
| |
| left: 0;
| |
| padding: 0 .5em;
| |
| top: -212px*/
| |
| }
| |
| | |
| .sideBarPic #sidebar-character {
| |
| display: none;
| |
| } | |
| </style>
| |
| <!--{/if}--></includeonly> | |