“Widget:欢迎”与“File:FGO 即死耐性下降.png”:页面之间的差异

H萌娘,万物皆可H的百科全书!
(页面间差异)
跳到导航 跳到搜索
imported>=海豚=
无编辑摘要
 
(Maintenance script上传File:FGO 即死耐性下降.png
标签服务器端上传
 
第1行: 第1行:
<noinclude><nowiki>QvQ</nowiki></noinclude><includeonly><!--{if !isset($wgMainpage) || !$wgMainpage}--><!--{assign var="wgMainpage" value=true scope="global"}--><style type="text/css">
 
@media (min-width: 1480px) {
   .mainpage {
     width: 1404px;
     margin: 0 auto;
   }
   .mainpage-container,
   .mainpage-column {
     display: flex;
     flex-wrap: nowrap;
     justify-content: space-around;
     align-content: stretch;
     align-items: stretch;
   }
   .mainpage-column {
     flex-direction: column;
   }
}
@media (min-width: 1640px) {
   .mainpage {
     width: 1680px;
   }
}
@media (max-width: 1480px) {
   .mainpage,
   .mainpage-column-left,
   .mainpage-column-right {
     max-width: 1360px;
   }
}
.mainpage,
.mainpage * {
   box-sizing: border-box;
   transition: all .37s;
}
.mainpage {
   /*background: url(./zhMoegirl15.2.png) no-repeat center center;*/
   background-size: contain;
}
.mainpage-counter {
   background: url(https://www.hmoegirl.com/images/thumb/7/7a/64304271.png/689px-64304271.png) top right;
   background-repeat: no-repeat;
   background-size: 327px 288px;
   min-height: 250px;
   padding: 0!important;
   display: flex;
}
.mainpage-counter-container {
   background: rgba(255, 255, 255, .7);
   padding: .5em;
   flex: 1;
}
</style>
<script>
window.RLQ.push(function() {
   window.RLQ = window.RLQ || [];
   $(function() {
     $(window).on('resize', function() {
       $('.mainpage-banner-page').width($('.mainpage-banner').width());
     }).resize();
     var marginLeft = $('.mainpage').offset().left - $('.mainpage').parent().offset().left;
     /* $('.mainpage').css('margin-left', marginLeft - (marginLeft - (($(window).width() - $('.mainpage').width()) / 2 - $('.mainpage').parent().offset().left)) / 2 + 'px'); // 计算合理的偏差,其中【($(window).width() - $('.mainpage').width()) / 2】用以计算主体居中时的实际offsetLeft值,减去父元素offset即是主体margin-left值,再用【marginLeft - (marginLeft - 主体margin-left值 / 2】来计算缓和后的margin-left值 */
     var length = $('.mainpage-banner-page').length;
     if (!length) return;
     $('.mainpage-banner-container').width(length + '00%');
     while (length--) $('.mainpage-banner-control').append('<span class="mainpage-banner-control-triggle"></span>');
     var bannerCount = 25;
     $('.mainpage-banner-control-triggle').on('click', function() {
       bannerCount = 25;
       $(this).addClass('on').siblings().removeClass('on');
       var index = $(this).parent().children().index(this);
       var target = $('.mainpage-banner-page').eq(index);
       var left = target.prevAll().length || 0;
       if (left) $('.mainpage-banner-container').css('margin-left', '-' + left + '00%');
       else $('.mainpage-banner-container').css('margin-left', '0');
     }).first().click();
     setInterval(function() {
       if (bannerCount-- > 0) return;
       var next = $('.mainpage-banner-control-triggle.on').next();
       if (!next.length) next = $('.mainpage-banner-control-triggle:first');
       next.click();
     }, 200);
   });
});
</script><!--{/if}--></includeonly>

2022年11月20日 (日) 09:13的最新版本