Commit da95f7975d42b7283c1bf858ddb19834a4fc97cf

Authored by Nitai Silva
1 parent 5e1abe34
Exists in master

Removendo o +1 no contador...

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
recipes/copa2014/assets/counter.coffee 100644 → 100755
... ... @@ -9,7 +9,7 @@ window._barrabrasil.copa_counter = () ->
9 9 t = new Date()
10 10 c = new Date(2014, 5, 12, 0, 0, 0)
11 11 h = ""
12   - e = String(Math.round(Math.abs((t.getTime() - c.getTime()) / (24 * 60 * 60 * 1000))) + 1)
  12 + e = String(Math.round(Math.abs((t.getTime() - c.getTime()) / (24 * 60 * 60 * 1000))))
13 13 a = (e).split("")
14 14  
15 15 i = 0
... ... @@ -20,6 +20,6 @@ window._barrabrasil.copa_counter = () ->
20 20 if t.getTime() < c.getTime()
21 21 if parseInt(e) > 1
22 22 r.innerHTML = "Faltam " + h + " dias para a Copa"
23   - else r.innerHTML = "Amanh&atilde; come&ccedil;a a Copa!" if parseInt(e) is 1
  23 + else r.innerHTML = "Amanhã começa a Copa!" if parseInt(e) is 1
24 24 return
25 25  
... ...