Skip to content

Commit

Permalink
Add hover effect and change cursor for empty cells
Browse files Browse the repository at this point in the history
  • Loading branch information
atilbian committed Feb 15, 2022
1 parent 41996af commit f8ac184
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion views/index.hbs
Expand Up @@ -11,11 +11,20 @@
{{#each gameState.board}}
<div style="margin-left:{{@index}}0px;">
{{#each this}}
<span>{{this.value}}</span>
<span data-color="{{this.value}}">{{this.value}}</span>
{{/each}}
</div>
{{/each}}
</div>
</body>
<style>
span[data-color="empty"] {
cursor: pointer;
}
span[data-color="empty"]:hover {
background-color: yellow;
}
</style>

</html>

0 comments on commit f8ac184

Please sign in to comment.