(页面间差异)
无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
$(function(){ | |||
/* 头图 */ | |||
var page = document.querySelector("body"); | |||
if (page.classList.contains('page-首页')) { | |||
var mwBody = document.getElementById('content'); | |||
var newDiv = document.createElement('div'); | |||
newDiv.setAttribute('class', 'header-image'); | |||
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>'; | |||
mwBody.parentNode.insertBefore(newDiv, mwBody); | |||
} | |||
}()); |
2024年1月3日 (三) 16:23的版本
$(function(){
/* 头图 */
var page = document.querySelector("body");
if (page.classList.contains('page-首页')) {
var mwBody = document.getElementById('content');
var newDiv = document.createElement('div');
newDiv.setAttribute('class', 'header-image');
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>';
mwBody.parentNode.insertBefore(newDiv, mwBody);
}
}());
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2023年10月20日 (五) 16:04 | 819 × 772(106 KB) | Kuina(留言 | 贡献) |
您不可以覆盖此文件。
文件用途
以下页面使用本文件: