Add unit testing for core API, ensure all demos work, and add unit testing to ensure they stay working.

This commit is contained in:
David Morse
2015-04-12 23:26:19 -06:00
parent 385cc757ac
commit 7af6bf7a98
14 changed files with 11982 additions and 11525 deletions

View File

@ -41,21 +41,20 @@
<script type="text/javascript">
var gridster;
$(function () {
gridster = $(".gridster ul").gridster({
widget_base_dimensions: [100, 100],
widget_margins: [5, 5],
helper: 'clone'
}).data('gridster');
gridster.$el.ready(function () {
// resize widgets on hover
gridster.$el
.on('mouseenter', '> li', function () {
.on('mouseenter', 'li', function () {
gridster.resize_widget($(this), 3, 3);
})
.on('mouseleave', '> li', function () {
.on('mouseleave', 'li', function () {
gridster.resize_widget($(this), 1, 1);
});