用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第36行: | 第36行: | ||
<script> | <script> | ||
document.addEventListener('DOMContentLoaded', () => { | document.addEventListener('DOMContentLoaded', () => { | ||
fetch('https://rizwiki.cn/api.php?action=query&titles=曲目列表&prop=revisions&rvprop=content&format=json') | fetch('https://rizwiki.cn/api.php?action=query&titles=曲目列表&prop=revisions&rvprop=content&format=json'.replace(/&/g, '&')) | ||
.then(r => r.text()) | .then(r => r.text()) | ||
.then(text => { | .then(text => { | ||
| 第43行: | 第43行: | ||
const parser = new DOMParser() | const parser = new DOMParser() | ||
const doc = parser.parseFromString(text, 'text/html') | const doc = parser.parseFromString(text, 'text/html') | ||
const preElement = doc.querySelector('pre') | |||
if (preElement) { | if (preElement) { | ||
try { | try { | ||
| 第63行: | 第63行: | ||
} | } | ||
} else { | } else { | ||
console.error(' | console.error('未找到pre元素') | ||
useMockData() | |||
} | } | ||
}) | }) | ||
| 第117行: | 第98行: | ||
function loadSongColors(song) { | function loadSongColors(song) { | ||
const url = `https://rizwiki.cn/api.php?action=query&titles=${encodeURIComponent(song.title)}&prop=revisions&rvprop=content&format=json`.replace(/&/g, '&') | |||
fetch(url) | |||
.then(r => r.text()) | .then(r => r.text()) | ||
.then(text => { | .then(text => { | ||
2025年10月19日 (日) 22:27的版本
| 曲目 | |
|---|---|
|
|
|
| 限制 | |
| 难度 | a |
| 流速 | b |
| MOD | c |
| 其他 | d |
神秘的随机挑战!
| 曲目 | |
|---|---|
|
| |
| 限制 | |
| 难度 | a |
| 流速 | b |
| MOD | c |
| 其他 | d |
User:RedDragon/Test User:RedDragon/Test1 User:RedDragon/Test2