jQuery minesweeper plugin
http://nejiko96.github.io/jquery-minesweeper/index.html
Download the latest version.
In your web page:
<link rel="stylesheet" href="styles/jquery.minesweeper.css" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="lib/jquery.timers.js" ></script>
<script src="scripts/jquery.minesweeper.min.js" ></script>
<script>
jQuery(function ($) {
$("#minesweeper1").minesweeper();
});
</script>
...
<div id="minesweeper1"></div>
bower install jquery-minesweeper --save
<link rel="stylesheet" href="bower_components/jquery-minesweeper/styles/jquery.minesweeper.css">
<script src="bower_components/jquery-minesweeper/scripts/jquery.minesweeper.min.js"></script>
<script>
jQuery(function ($) {
$("#minesweeper1").minesweeper();
});
</script>
...
<div id="minesweeper1"></div>
- In your Gemfile, add the 'rails-assets-jquery-minesweeper' gem:
source 'https://rails-assets.org' do
gem 'rails-assets-jquery-minesweeper'
end
-
run 'bundle install' command
-
In 'app/assets/stylesheets/application.css':
*= require jquery-minesweeper
- In 'app/assets/javascripts/application.js':
//= require jquery-minesweeper
<script src="scripts/i18n/jquery.minesweeper-ja.js" ></script>
It uses jQuery(>=1.4.4) and jquery.timers(>=1.2)(optional)
Released under the MIT license.