Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c3f50b

Browse files
authored
Merge pull request gridstack#1045 from adumesny/develop
code cleanup
2 parents dbe5850 + af5cb5f commit 1c3f50b

File tree

4 files changed

+110
-161
lines changed

4 files changed

+110
-161
lines changed

demo/anijs.html

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,10 @@
3737
<body>
3838
<div class="container-fluid">
3939
<h1>AniJS demo</h1>
40-
41-
<div>
42-
<a class="btn btn-default" id="add-widget" href="#">Add Widget</a>
43-
</div>
44-
45-
<div>
46-
<h4>Widget added</h4>
47-
</div>
48-
49-
<br/>
50-
51-
<div class="grid-stack">
52-
</div>
40+
<button id="add-widget" href="#">Add Widget</button>
41+
<h4>Widget added</h4>
42+
<br>
43+
<div class="grid-stack"></div>
5344
</div>
5445

5546
<script src="https://cdnjs.cloudflare.com/ajax/libs/AniJS/0.9.3/anijs.js"></script>

demo/float.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,9 @@
3535
<body>
3636
<div class="container-fluid">
3737
<h1>Float grid demo</h1>
38-
39-
<div>
40-
<a class="btn btn-default" id="add-new-widget" href="#">Add Widget</a>
41-
</div>
42-
43-
<br/>
44-
45-
<div class="grid-stack">
46-
</div>
38+
<button id="add-widget" href="#">Add Widget</button>
39+
<br><br>
40+
<div class="grid-stack"></div>
4741
</div>
4842

4943

@@ -79,7 +73,7 @@ <h1>Float grid demo</h1>
7973
return false;
8074
}.bind(this);
8175

82-
$('#add-new-widget').click(this.addNewWidget);
76+
$('#add-widget').click(this.addNewWidget);
8377
};
8478
});
8579
</script>

demo/serialization.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,12 @@
3535
<body>
3636
<div class="container-fluid">
3737
<h1>Serialization demo</h1>
38-
39-
<div>
40-
<a class="btn btn-default" id="save-grid" href="#">Save Grid</a>
41-
<a class="btn btn-default" id="load-grid" href="#">Load Grid</a>
42-
<a class="btn btn-default" id="clear-grid" href="#">Clear Grid</a>
43-
</div>
44-
45-
<br/>
46-
47-
<div class="grid-stack">
48-
</div>
49-
38+
<button id="save-grid" href="#">Save Grid</button>
39+
<button id="load-grid" href="#">Load Grid</button>
40+
<button id="clear-grid" href="#">Clear Grid</button>
41+
<br/><br/>
42+
<div class="grid-stack"></div>
5043
<hr/>
51-
5244
<textarea id="saved-data" cols="100" rows="20" readonly="readonly"></textarea>
5345
</div>
5446

0 commit comments

Comments
 (0)