打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

用户:RedDragon/Test2:修订间差异

来自Rizline中文维基
RedDragon
RedDragon留言 | 贡献 (br难度的修复)
第108行: 第108行:
                             author: columns[2].replace(/^\|/, '').trim(),
                             author: columns[2].replace(/^\|/, '').trim(),
                             duration: columns[3].replace(/^\|/, '').trim(),
                             duration: columns[3].replace(/^\|/, '').trim(),
                             ez: columns[4].replace(/^\|/, '').trim(),
                        }
                             hd: columns[5].replace(/^\|/, '').trim(),
                        if (song.title === "BRAVE: ROAD") {
                             in: columns[6].replace(/^\|/, '').trim()
                             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>`


         window.difficultyArray = [
         if (song.ez) availableDifficulties.push({ type: "EZ", value: song.ez })
            createDiffSpan("EZ", song.ez),
        if (song.hd) availableDifficulties.push({ type: "HD", value: song.hd })
            createDiffSpan("HD", song.hd),
        if (song.in) availableDifficulties.push({ type: "IN", value: song.in })
            createDiffSpan("IN", 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