Getting startedΒΆ

To insert the game in your page you should follow these simple steps:

  1. Upload the content of the game folder to your server
  2. Load the stylesheet in the document <head>
  3. Include a canvas tag with the id “color-memory”
  4. Load preloadjs.js and splash.js before the </body>
<!DOCTYPE html>
<html lang="en">
    <head>
        <!-- 1) Load the stylesheet -->
        <link rel="stylesheet" type="text/css" href="css/style.css">
    </head>
    <body>

    <!-- ...more content here -->

    <!-- 2) the <canvas> tag -->
    <canvas id="color-memory" width="500" height="700"></solitaire>

    <!-- 3) Load preloadjs.js and splash.js -->
    <script src="js/preloadjs.js" data-main="build/app"></script>
    <script src="js/splash.js" data-main="build/app"></script>
    </body>
</html>

You can see the available options here.

Related Topics

This Page