“MediaWiki:Mainpage.js”与“模板:Main page/jokes”:页面之间的差异

MediaWiki界面页面
(页面间差异)
无编辑摘要
标签手工回退
 
无编辑摘要
 
第1行: 第1行:
$(function(){
<div id="home-jokes" class="home-card home-card--col3 home-card--row1">
    /* 头图 */
<h3 class="home-card__title">日常黑话</h3>
    var page = document.querySelector("body");
<div class="home-card__label">里边儿地方宽敞虱子多,进来看看群友的发电日常?</div>
    if (page.classList.contains('page-首页')) {
<div class="joke-container">
        var mwBody = document.getElementById('content');
<li>“本服来去自由”</li>
        var newDiv = document.createElement('div');
<li>人心所向,天命可知...</li>
        newDiv.setAttribute('class', 'header-image');
<li>星岛区与南湾区在此达成一致...</li>
        newDiv.innerHTML = '<div class="header-image" style="background-image: linear-gradient(to top, var(--color-surface-0), transparent 50%), url(https://wiki.knebulae.com/images/title.png);background-size: cover;background-position: top;height: 36vh;margin-bottom: -37vh;"></div>';
<li>服务器通报:你能怎样</li>
        mwBody.parentNode.insertBefore(newDiv, mwBody);
<li>🌸👀能买管理的钱⭐☁️只能进群,赢</li>
    }
<li>👆🤣</li>
}());
</div></div>
<templatestyles src="Template:Main page/jokes/styles.css"/>
<templatestyles src="Template:Main page/shared/styles.css"/>
<noinclude>{{/doc}}</noinclude>

2024年1月23日 (二) 18:55的最新版本

日常黑话

里边儿地方宽敞虱子多,进来看看群友的发电日常?
  • “本服来去自由”
  • 人心所向,天命可知...
  • 星岛区与南湾区在此达成一致...
  • 服务器通报:你能怎样
  • 🌸👀能买管理的钱⭐☁️只能进群,赢
  • 👆🤣
  • Template documentation[view][edit][history][purge]
    This documentation is transcluded from 模板:Main page/jokes/doc. Changes can be proposed in the talk page.

    This template is used on the main page. It is the on the wiki card in the content section.