Web Component wrapper for 2048 game, check out the demo!
-
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130816/polymer.min.js"></script>
-
Download using bower
bower install x-2048
-
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>
-
Start using it!
<x-2048></x-2048>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D