Added persistence of game state to localstorage after each move
Added rebuilding of game state from localstoage on page load Added New Game button to allow game restarts now that refreshes resume the game
This commit is contained in:
+14
-2
@@ -143,8 +143,21 @@ hr {
|
||||
100% {
|
||||
opacity: 1; } }
|
||||
|
||||
.restart-button {
|
||||
display: inline-block;
|
||||
background: #8f7a66;
|
||||
border-radius: 3px;
|
||||
padding: 0 20px;
|
||||
text-decoration: none;
|
||||
color: #f9f6f2;
|
||||
height: 40px;
|
||||
line-height: 42px;
|
||||
display: block;
|
||||
width: 100px;
|
||||
margin: 10px auto 10px auto;
|
||||
text-align: center; }
|
||||
|
||||
.game-container {
|
||||
margin-top: 40px;
|
||||
position: relative;
|
||||
padding: 15px;
|
||||
cursor: default;
|
||||
@@ -515,7 +528,6 @@ hr {
|
||||
margin-bottom: 10px; }
|
||||
|
||||
.game-container {
|
||||
margin-top: 40px;
|
||||
position: relative;
|
||||
padding: 10px;
|
||||
cursor: default;
|
||||
|
||||
Reference in New Issue
Block a user