times & game over page & other cool stuff

This commit is contained in:
s2
2013-04-06 01:54:47 +02:00
parent c2eb8b16db
commit 63ce593a7a
3 changed files with 81 additions and 13 deletions

13
app/views/gameover.ejs Normal file
View File

@@ -0,0 +1,13 @@
<div class="hero-unit" style="text-align: center;">
<h1 class="alert alert-block"><%= result %></h1>
<hr />
<p>
<h2 class="alert alert-info">You did it in <%= time %> seconds</h2>
<h2 class="alert alert-error">You failed <%= wrong + (wrong == 1 ? ' word' : ' words') %></h2>
<h2 class="alert alert-success">Ad did <%= correct + (correct == 1 ? ' word' : ' words') %> right!</h2>
</p>
<hr />
<p>
<a class="btn btn-primary btn-large start"> Play again! </a>
</p>
</div>

View File

@@ -1,3 +1,6 @@
<span class="label label-important pull-right num-of-words-wrong"></span>
<span class="label label-success pull-right num-of-words"></span>
<span class="label label pull-right time-words"></span>
<div class="hero-unit" style="text-align: center;">
<h1><%= word %></h1>
<hr />