模块:Countdown:修订间差异
MJ Hamster(留言 | 贡献) 无编辑摘要 |
MJ Hamster(留言 | 贡献) 无编辑摘要 |
||
| 第10行: | 第10行: | ||
-- Color and bold the numbers, because it makes them look important. | -- Color and bold the numbers, because it makes them look important. | ||
timeLeft = string.gsub(timeLeft, '(.-)', '<span style="color: ' .. (color or '#000') .. '; font-weight: bold;">%1</span>') | timeLeft = string.gsub(timeLeft, '(.-)', '<span style="color: ' .. (color or '#000') .. '; font-weight: bold;">%1</span>') | ||
return string. | return string.format('%s', timeLeft) | ||
end | end | ||