更多操作
小无编辑摘要 |
小无编辑摘要 |
||
第70行: | 第70行: | ||
} | } | ||
document.addEventListener('DOMContentLoaded', updateOutput) | //初始化 | ||
document.addEventListener('DOMContentLoaded', function () { | |||
const diffDiv = document.getElementById('difficulty') | |||
const firstDiff = JSON.parse(diffDiv.getAttribute('data-states'))[0]; | |||
const diffType = firstDiff.split(' ')[0] | |||
diffDiv.textContent = firstDiff | |||
diffDiv.style.backgroundColor = difficultyColors[diffType] | |||
diffDiv.parentElement.style.backgroundColor = difficultyColors[diffType] | |||
updateOutput(); | |||
}); | |||
</script> | </script> | ||
</html> | </html> |
2025年7月6日 (日) 23:34的版本
EZ 1
|
|
16:9
|