mine-sweeper-tag
v1.0.6
Published
Minesweeper for Web Components
Downloads
6,991
Maintainers
Readme
MineSweeper Tag
Minesweeper for Web Components
Demo
https://kurehajime.github.io/minesweeper_tag/
Installation
npm install mine-sweeper-tag
Usage
npm
Define custom element.
import { mine_sweeper } from 'mine-sweeper-tag'
customElements.define('mine-sweeper', mine_sweeper)
Insert tag.
<mine-sweeper cols="10" bomb="10" beep />
CDN
insert your HTML.
<script type="module">
import { mine_sweeper } from 'https://unpkg.com/mine-sweeper-tag@latest/dist/mine-sweeper.es.js';
customElements.define('mine-sweeper', mine_sweeper)
</script>
<mine-sweeper cols="10" bomb="10" beep />
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
https://github.com/kurehajime/minesweeper/commits/main
Credits
@kurehajime
License
MIT