Skip to content

Commit 7d0ca5e

Browse files
committed
Button demo: Replace anchors with more appropriate buttons
1 parent e5008c2 commit 7d0ca5e

File tree

8 files changed

+8
-15
lines changed

8 files changed

+8
-15
lines changed

demos/effect/addClass.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
$(function() {
1818
$( "#button" ).click(function() {
1919
$( "#effect" ).addClass( "newClass", 1000, callback );
20-
return false;
2120
});
2221

2322
function callback() {
@@ -36,7 +35,7 @@
3635
</div>
3736
</div>
3837

39-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
38+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
4039

4140
<div class="demo-description">
4241
<p>This demo adds a class which animates: text-indent, letter-spacing, width, height, padding, margin, and font-size.</p>

demos/effect/animate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h3 class="ui-widget-header ui-corner-all">Animate</h3>
4646
</div>
4747
</div>
4848

49-
<a href="#" id="button" class="ui-state-default ui-corner-all">Toggle Effect</a>
49+
<button id="button" class="ui-state-default ui-corner-all">Toggle Effect</button>
5050

5151
<div class="demo-description">
5252
<p>Click the button above to preview the effect.</p>

demos/effect/hide.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
// set effect from select menu value
5555
$( "#button" ).click(function() {
5656
runEffect();
57-
return false;
5857
});
5958
});
6059
</script>
@@ -86,7 +85,7 @@ <h3 class="ui-widget-header ui-corner-all">Hide</h3>
8685
<option value="slide">Slide</option>
8786
</select>
8887

89-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
88+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
9089

9190
<div class="demo-description">
9291
<p>Click the button above to preview the effect.</p>

demos/effect/removeClass.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
$(function() {
1818
$( "#button" ).click(function() {
1919
$( "#effect" ).removeClass( "newClass", 1000, callback );
20-
return false;
2120
});
2221

2322
function callback() {
@@ -36,7 +35,7 @@
3635
</div>
3736
</div>
3837

39-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
38+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
4039

4140
<div class="demo-description">
4241
<p>Click the button above to preview the effect.</p>

demos/effect/show.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
// set effect from select menu value
5555
$( "#button" ).click(function() {
5656
runEffect();
57-
return false;
5857
});
5958

6059
$( "#effect" ).hide();
@@ -88,7 +87,7 @@ <h3 class="ui-widget-header ui-corner-all">Show</h3>
8887
<option value="slide">Slide</option>
8988
</select>
9089

91-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
90+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
9291

9392
<div class="demo-description">
9493
<p>Click the button above to preview the effect.</p>

demos/effect/switchClass.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
$( "#button" ).click(function(){
2020
$( ".newClass" ).switchClass( "newClass", "anotherNewClass", 1000 );
2121
$( ".anotherNewClass" ).switchClass( "anotherNewClass", "newClass", 1000 );
22-
return false;
2322
});
2423
});
2524
</script>
@@ -31,7 +30,7 @@
3130
Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede.
3231
</div>
3332
</div>
34-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
33+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
3534

3635
<div class="demo-description">
3736
<p>Click the button above to preview the effect.</p>

demos/effect/toggle.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
// set effect from select menu value
6363
$( "#button" ).click(function() {
6464
runEffect();
65-
return false;
6665
});
6766
});
6867
</script>
@@ -94,7 +93,7 @@ <h3 class="ui-widget-header ui-corner-all">Toggle</h3>
9493
<option value="slide">Slide</option>
9594
</select>
9695

97-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
96+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
9897

9998
<div class="demo-description">
10099
<p>Click the button above to preview the effect.</p>

demos/effect/toggleClass.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
$(function() {
1818
$( "#button" ).click(function() {
1919
$( "#effect" ).toggleClass( "newClass", 1000 );
20-
return false;
2120
});
2221
});
2322
</script>
@@ -30,7 +29,7 @@
3029
</div>
3130
</div>
3231

33-
<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a>
32+
<button id="button" class="ui-state-default ui-corner-all">Run Effect</button>
3433

3534
<div class="demo-description">
3635
<p>Click the button above to preview the effect.</p>

0 commit comments

Comments
 (0)