From 639c6d527461b4a9b8b948c470197849201f2a03 Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Fri, 29 Apr 2011 11:58:55 +0000 Subject: finalize home page sample --- .../gwtquery/samples/client/HomePageSample.java | 5 ++-- .../gwtquery/samples/public/HomePageSample.html | 28 ---------------------- 2 files changed, 3 insertions(+), 30 deletions(-) (limited to 'samples/src') diff --git a/samples/src/main/java/gwtquery/samples/client/HomePageSample.java b/samples/src/main/java/gwtquery/samples/client/HomePageSample.java index a66f057b..ca845aff 100644 --- a/samples/src/main/java/gwtquery/samples/client/HomePageSample.java +++ b/samples/src/main/java/gwtquery/samples/client/HomePageSample.java @@ -34,9 +34,10 @@ public class HomePageSample implements EntryPoint { $("button").click(new Function(){ public void f() { + //display the text with effects and animate its background color $("#text").as(Effects) - .clipDown() - .animate("backgroundColor: 'yellow'", 500) + .clipDown(1000) + .animate("backgroundColor: 'yellow'", 1000) .delay(1000) .animate("backgroundColor: '#fff'", 1500); } diff --git a/samples/src/main/java/gwtquery/samples/public/HomePageSample.html b/samples/src/main/java/gwtquery/samples/public/HomePageSample.html index a3dcfdec..a2a59266 100644 --- a/samples/src/main/java/gwtquery/samples/public/HomePageSample.html +++ b/samples/src/main/java/gwtquery/samples/public/HomePageSample.html @@ -3,37 +3,9 @@ GQuery - -

Java Code :

-
-  public void onModuleLoad() {
-    //Hide the text and set the width and append an h1 element
-    $("#text").hide().css(CSS.WIDTH.with(Length.px(400))).prepend("

GwtQuery Rocks !

"); - - //add a click handler on the button - $("button").click(new Function(){ - - public void f() { - $("#text").as(Effects) - .clipDown() - .animate("backgroundColor: 'yellow'", 500) - .delay(1000) - .animate("backgroundColor: '#fff'", 1500); - } - - }); - } -
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ac ultricies lorem. Integer erat nibh, semper eget -- cgit v1.2.3