Game Instructions

Tap a tile to toggle its color. When a tile changes nearby tiles may change as well. Each move affect multiple tiles. The target is to turn all tiles into yellow in the fewest steps possible.

Press 'j' to show/hide the game. Press 'i' to show/hide the instructions. Press 't' to show/hide the top score table.

Steps: 0

Top Scores

Name Steps
Press J to toggle the game, I to toggle instructions, and T to toggle the top scores

Congratulations!

You solved the puzzle in 0 steps!

Success!

Score submitted successfully!

Error

Failed to submit score. Please try again.

Swipe.js Jump Start PRO

Swipe.js is one of the most popular JavaScript libraries that allow us to get a responsive slider in our web page.

The following code sample shows how simple it is to use this JavaScript library. It includes 4 images that were prepared in advance.

<!DOCTYPE html>
<html>
<head>
    <title>swipe.js demo</title>
    <script type="text/javascript" src="swipe.js"></script>
    <style>
        .swipe {
            overflow: hidden;
            visibility: hidden;
            position: relative;
        }
        .swipe-wrap {
            overflow: hidden;
            position: relative;
        }
        .swipe-wrap > div {
            float:left;
            width:100%;
            position: relative;
        }
    </style>
</head>
<body>
<h2>our simple swipe.js demo</h2>
<div id='ourslider' class='swipe'>
    <div class='swipe-wrap'>
        <div><img src="pix/pix1.jpg"></div>
        <div><img src="pix/pix2.jpg"></div>
        <div><img src="pix/pix3.jpg"></div>
        <div><img src="pix/pix4.jpg"></div>
        <div><img src="pix/pix5.jpg"></div>
    </div>
</div>
<script type="text/javascript">
    ob = new Swipe(document.getElementById('ourslider'), {
        startSlide: 4,
        speed: 500,
        auto: 3000,
        continuous: true
    });
</script>
</body>
</html>

The following video clip overviews this code sample, shows its execution and explains it step by step.

You can find more video clips, training material and code samples for learning how to use this library in my free online courses website at http://abelski.lifemichael.com.

Share:

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Update cookies preferences