jQuery – A simple game with JQuery events

Working with JQuery becomes interesting, after you get some ideas what to do and you see how easy it is to build it. Although the code below can be made about 8 times less, I have really enjoyed copying and pasting to build a simple game for it.

Thus, imagine that you have to learn the colors in a new language – e.g. in Bulgarian 🙂

These are quite important to learn, thus an app for them would be quite useful. At least, if you are a person, who is interested in apps. 🙂 So, let’s start from the beginning. What do we have in the code?

  1. 8 squares, which change their color onhover, with the assistance from CSS;
  2. The same produce result in the rectangular below, if they are clicked or rolled over.
  3. The rectangular is also a link to my site.
  4. That is all. With a little bootstrap, to make it a little more beautiful 🙂

color_game2 color_game3

Here comes the code:

Also in GitHub

Enjoy it or try to make it smaller! 😉

Tagged with: , , ,