用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第108行: | 第108行: | ||
author: columns[2].replace(/^\|/, '').trim(), | author: columns[2].replace(/^\|/, '').trim(), | ||
duration: columns[3].replace(/^\|/, '').trim(), | duration: columns[3].replace(/^\|/, '').trim(), | ||
ez | } | ||
hd | if (song.title === "BRAVE: ROAD") { | ||
in | song.ez = "" | ||
song.hd = columns[4].replace(/^\|/, '').trim() | |||
song.in = columns[5].replace(/^\|/, '').trim() | |||
song.at = columns[6].replace(/^\|/, '').trim() | |||
} else { | |||
song.ez = columns[4].replace(/^\|/, '').trim() | |||
song.hd = columns[5].replace(/^\|/, '').trim() | |||
song.in = columns[6].replace(/^\|/, '').trim() | |||
} | } | ||
| 第225行: | 第232行: | ||
container.innerHTML = `<a href="${data.pageUrl}" target="_blank"><img id="song-image" width="300" height="300" src="${data.imageUrl || '/images/thumb/4/41/插画图标.png/300px-插画图标.png'}"></a>` | container.innerHTML = `<a href="${data.pageUrl}" target="_blank"><img id="song-image" width="300" height="300" src="${data.imageUrl || '/images/thumb/4/41/插画图标.png/300px-插画图标.png'}"></a>` | ||
if (song.ez) availableDifficulties.push({ type: "EZ", value: song.ez }) | |||
if (song.hd) availableDifficulties.push({ type: "HD", value: song.hd }) | |||
if (song.in) availableDifficulties.push({ type: "IN", value: song.in }) | |||
if (song.at) availableDifficulties.push({ type: "AT", value: song.at }) | |||
'<span style="width:max-content;text-align:center;display:inline-block;border-radius:1em;color:white;background:#53D6FF;padding:0 0.80em;margin:0.1em 0.50em">无限制</span>' | window.difficultyArray = availableDifficulties.map(function (diff) { | ||
return createDiffSpan(diff.type, diff.value); | |||
}); | |||
window.difficultyArray.push('<span style="width:max-content;text-align:center;display:inline-block;border-radius:1em;color:white;background:#53D6FF;padding:0 0.80em;margin:0.1em 0.50em">无限制</span>'); | |||
generateRandomRestrictions() | generateRandomRestrictions() | ||
| 第236行: | 第245行: | ||
function createDiffSpan(diff, level) { | function createDiffSpan(diff, level) { | ||
var colors = { EZ: '#57E4C4', HD: '#FDBA61', IN: '#FE8661' } | var colors = { | ||
EZ: '#57E4C4', HD: '#FDBA61', IN: '#FE8661', AT: '#4C364B' | |||
} | |||
return `<span style="width:max-content;text-align:center;display:inline-block;border-radius:1em;color:white;background:${colors[diff]};padding:0 0.80em;margin:0.1em 0.50em">${diff} ${level}</span>` | return `<span style="width:max-content;text-align:center;display:inline-block;border-radius:1em;color:white;background:${colors[diff]};padding:0 0.80em;margin:0.1em 0.50em">${diff} ${level}</span>` | ||
} | } | ||
| 第387行: | 第398行: | ||
var belowElement = document.querySelector('.infobox-below') | var belowElement = document.querySelector('.infobox-below') | ||
var belowText = "" | var belowText = "" | ||
var difficultyStr = typeof difficulty === 'string' ? difficulty : difficulty.outerHTML || '' | var difficultyStr = typeof difficulty === 'string' ? difficulty : difficulty.outerHTML || '' | ||
2025年10月23日 (四) 00:46的版本
| 曲目 | |
|---|---|
|
|
|
| 限制 | |
| 难度 | a |
| 流速 | b |
| MOD | c |
| 其他 | d |
神秘的随机挑战!
Ver.1.6
{{Infobox
|name = 随机挑战
|title = 曲目
|titlestyle = background:#ccc
|image = [[File:插画图标.png|100px]]
|headerstyle = background:#ccf
|labelstyle = background:#ddf
|header1 = 限制
|label2 = 难度
|data2 = a
|label3 = 流速
|data3 = b
|label4 = MOD
|data4 = c
|label5 = 其他
|data5 = d
|belowstyle = background:#ddf;
|below = e
}}
User:RedDragon/Test User:RedDragon/Test1 User:RedDragon/Test2