Store best score in localStorage

Dependency injection and hide best score for incompatible browsers
This commit is contained in:
Tim Petricola
2014-03-10 16:02:16 -04:00
parent 57deb5d998
commit 664546ef9a
7 changed files with 86 additions and 17 deletions
+15 -3
View File
@@ -58,11 +58,15 @@ h1.title {
}
}
.score-container {
.scores-container {
float: right;
}
.score-container, .best-container {
$height: 25px;
position: relative;
float: right;
display: inline-block;
background: $game-container-background;
padding: 15px 25px;
font-size: $height;
@@ -72,13 +76,13 @@ h1.title {
border-radius: 3px;
color: white;
margin-top: 8px;
text-align: center;
&:after {
position: absolute;
width: 100%;
top: 10px;
left: 0;
content: "Score";
text-transform: uppercase;
font-size: 13px;
line-height: 13px;
@@ -100,6 +104,14 @@ h1.title {
}
}
.score-container:after {
content: "Score";
}
.best-container:after {
content: "Best"
}
p {
margin-top: 0;
margin-bottom: 10px;