felquis / x-2048

:horse: Web Component wrapper for 2048 game

Home Page:http://felquis.github.io/x-2048/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<x-2048>

Web Component wrapper for 2048 game, check out the demo!

Original repository

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130816/polymer.min.js"></script>
  2. Download using bower bower install x-2048

  3. Import the component

    <link rel="import" href="bower_components/x-2048/x-2048.html">

    Note: Remember! You need to call Polymer before import the x-2048 component

    <!-- Importing Web Component's Polyfill -->
    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130816/polymer.min.js"></script>
  4. Start using it!

    <x-2048></x-2048>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

About

:horse: Web Component wrapper for 2048 game

http://felquis.github.io/x-2048/

License:MIT License


Languages

Language:CSS 57.4%Language:JavaScript 42.1%Language:Ruby 0.5%