helialprofile.png
Welcome to IOPWiki, Commander.
We are lacking editors focused on Girls' Frontline and Girls' Frontline 2. You can contribute without an account. Learn how to contribute and join our Discord server.

Difference between revisions of "Widget:SideBarPic"

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
m
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>原作者[https://zh.moegirl.org/User:AnnAngela AnnAngela]</noinclude>
+
<noinclude></noinclude>
 
<includeonly>
 
<includeonly>
<div id="background-image" class="type=<!--{$type|escape:'html'}--> file=<!--{$file|validate:url}--> style=<!--{$style|escape:'html'}-->"></div>
+
<!--{if !isset($wgSideBarPic) || !$wgSideBarScript.$type}-->
<img src="<!--{$name|validate:url}-->" id="bg-<!--{$type|escape:'html'}-->" class="bg-<!--{$type|escape:'html'}--> nomobile" style="<!--{$style|escape:'html'}-->"/>
+
<!--{if !isset($wgSideBarPic)}-->
<!--{if !isset($wgSideBarPic) || !$wgSideBarPic}--><!--{assign var="wgSideBarPic" value=true scope="global"}-->
+
<!--{assign var=wgSideBarPic value=[]}-->
<script>
+
<!--{/if}-->
window.RLQ = window.RLQ || [];
+
<!--{$wgSideBarPic.$type = true}-->
window.RLQ.push(function() {
+
<div id="background-<!--{$type|escape:'html'}-->" class="file=<!--{$file|escape:'url'}--> style=<!--{$style|escape:'html'}-->"></div>
    mw.loader.implement('widgetSideBarPic', function () {
+
<!--{/if}-->
        $("body").addClass("sideBarPic");
+
</includeonly>
        $(window).bind('load', function(){
 
            $("#bg-character").appendTo("#mw-navigation").fadeIn().css('user-select', 'none');
 
            $("#bg-rarity").appendTo("#mw-navigation").fadeIn().css('user-select', 'none');
 
        });
 
    });
 
 
 
});</script>
 
<!--{/if}--></includeonly>
 

Latest revision as of 05:49, 22 March 2017