Jocly Web API - mi-g/jquery-jocly GitHub Wiki

Using the Web API

Check the jquery.jocly README file.

Read source code from examples and chesschal.com.

Usage restrictions

You cannot charge users, for either a fixed or recurrent fee, for having access to Jocly games hosted through your site. Accessing Jocly-based pages must be free and not require any kind of paid membership.

You can however require a free sign-in to access those pages and use your ads around the game applet (or inside it using the Jocly Game API. If you want to do so, contact us.

Attempts to alter the normal behavior of the Jocly Game API in a malicious way will result in accessing the Jocly services being denied.

How does the Jocly Web API work ?

The games plays in an iframe element in the page, the applet. The jquery.jocly plugin hides the construction of the iframe and provides communications ways between the iframe and the hosting page.

The hosting page receives asynchronous messages from the applet, like for instance a new move being played. The plugin provides methods for the hosting code to control the applet, some of those methods may use a callback if an answer is expected from the applet.