From 7d0ca5e37dcf1b8dd1e201df2693e851da8ebb77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 24 Apr 2014 19:39:08 +0200 Subject: [PATCH] Button demo: Replace anchors with more appropriate buttons --- demos/effect/addClass.html | 3 +-- demos/effect/animate.html | 2 +- demos/effect/hide.html | 3 +-- demos/effect/removeClass.html | 3 +-- demos/effect/show.html | 3 +-- demos/effect/switchClass.html | 3 +-- demos/effect/toggle.html | 3 +-- demos/effect/toggleClass.html | 3 +-- 8 files changed, 8 insertions(+), 15 deletions(-) diff --git a/demos/effect/addClass.html b/demos/effect/addClass.html index f292ec4b6..f435da3a9 100644 --- a/demos/effect/addClass.html +++ b/demos/effect/addClass.html @@ -17,7 +17,6 @@ $(function() { $( "#button" ).click(function() { $( "#effect" ).addClass( "newClass", 1000, callback ); - return false; }); function callback() { @@ -36,7 +35,7 @@ -Run Effect +

This demo adds a class which animates: text-indent, letter-spacing, width, height, padding, margin, and font-size.

diff --git a/demos/effect/animate.html b/demos/effect/animate.html index 5f6d0c22b..e5f45ed3c 100644 --- a/demos/effect/animate.html +++ b/demos/effect/animate.html @@ -46,7 +46,7 @@
-Toggle Effect +

Click the button above to preview the effect.

diff --git a/demos/effect/hide.html b/demos/effect/hide.html index 678aea1e3..75fdd01b3 100644 --- a/demos/effect/hide.html +++ b/demos/effect/hide.html @@ -54,7 +54,6 @@ // set effect from select menu value $( "#button" ).click(function() { runEffect(); - return false; }); }); @@ -86,7 +85,7 @@ -Run Effect +

Click the button above to preview the effect.

diff --git a/demos/effect/removeClass.html b/demos/effect/removeClass.html index a96eb2d86..a5e943d1a 100644 --- a/demos/effect/removeClass.html +++ b/demos/effect/removeClass.html @@ -17,7 +17,6 @@ $(function() { $( "#button" ).click(function() { $( "#effect" ).removeClass( "newClass", 1000, callback ); - return false; }); function callback() { @@ -36,7 +35,7 @@
-Run Effect +

Click the button above to preview the effect.

diff --git a/demos/effect/show.html b/demos/effect/show.html index 03b3e434a..cde360919 100644 --- a/demos/effect/show.html +++ b/demos/effect/show.html @@ -54,7 +54,6 @@ // set effect from select menu value $( "#button" ).click(function() { runEffect(); - return false; }); $( "#effect" ).hide(); @@ -88,7 +87,7 @@ -Run Effect +

Click the button above to preview the effect.

diff --git a/demos/effect/switchClass.html b/demos/effect/switchClass.html index f4ced7ca4..65de87f3c 100644 --- a/demos/effect/switchClass.html +++ b/demos/effect/switchClass.html @@ -19,7 +19,6 @@ $( "#button" ).click(function(){ $( ".newClass" ).switchClass( "newClass", "anotherNewClass", 1000 ); $( ".anotherNewClass" ).switchClass( "anotherNewClass", "newClass", 1000 ); - return false; }); }); @@ -31,7 +30,7 @@ Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede.
-Run Effect +

Click the button above to preview the effect.

diff --git a/demos/effect/toggle.html b/demos/effect/toggle.html index 3af5536c1..5363abe49 100644 --- a/demos/effect/toggle.html +++ b/demos/effect/toggle.html @@ -62,7 +62,6 @@ // set effect from select menu value $( "#button" ).click(function() { runEffect(); - return false; }); }); @@ -94,7 +93,7 @@ -Run Effect +

Click the button above to preview the effect.

diff --git a/demos/effect/toggleClass.html b/demos/effect/toggleClass.html index c74f7bb5d..182f2121c 100644 --- a/demos/effect/toggleClass.html +++ b/demos/effect/toggleClass.html @@ -17,7 +17,6 @@ $(function() { $( "#button" ).click(function() { $( "#effect" ).toggleClass( "newClass", 1000 ); - return false; }); }); @@ -30,7 +29,7 @@
-Run Effect +

Click the button above to preview the effect.