模块:Countdown:修订间差异

无编辑摘要
无编辑摘要
第9行: 第9行:


-- 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, '(%d+)', '<span style="color: ' .. (color or '#F00') .. '; font-weight: bold;">%1</span>')
timeLeft = string.gsub(timeLeft, '(%d+)', '<span style="color: ' .. (color or '#000') .. '; font-weight: bold;">%1</span>')
return string.format('距离 %s 还有 %s.', event, timeLeft)
return string. Format('%s', timeLeft)
end
end