#MonthOfCode - Day 25: cursor

My entry for the 25th day of the month of code. The theme for today is: cursor.

You can’t use an animated gif as a custom CSS cursor and you can’t use CSS animations either. So, let’s create a canvas cursor! Move your mouse over the red <div> to see it.

Code after the break.

#MonthOfCode - Day 18: search

My entry for the 18th day of the month of code. The theme for today is: search.

This is a search game. You are looking for a hidden X in the grid. When you click on a cell, an arrow pointing in the general direction of the X is revealed. ←↑→↓ if the X is in the same row/column, ↖↗↘↙ otherwise.

But it’s too late, the X has already moved! After each click, it moves on one of the unrevealed adjacent cells. At the end of the game, all the cells that the X has visited are shown.

And it has horrible colors.

Code after the break.