Example – game bonus

See also: Examples List



This example is based on nice 2D breakout game using pure JavaScript.
For the switching the game and the faucet you can use jQuery, something like:
function ShowFaucet()
{
  game_in_progress = false;
  jQuery("#game_wrap").fadeOut('slow',
    function(){
      jQuery("#faucet_wrap").fadeIn('slow',
      function(){wmexp_render_faucet_123456();
      })
  });
}

Or pure Javascript:
function ShowFaucet()
{
  game_in_progress = false;
  document.getElementById("game_wrap").style.display="none";
  document.getElementById("faucet_wrap").style.display="block";
  wmexp_render_faucet_123456();
}

more examples