From f2c9265d5ffc6d05dd7399c1b6a75a1c499cb3b1 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 16 Dec 2015 23:11:36 +0100 Subject: [PATCH] Longer reloading time --- .../molez/mandlm/fotostream/client/FotoStream.java | 5 +++-- war/FotoStream.css | 12 +++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/net/molez/mandlm/fotostream/client/FotoStream.java b/src/net/molez/mandlm/fotostream/client/FotoStream.java index ca9dc34..e819a20 100644 --- a/src/net/molez/mandlm/fotostream/client/FotoStream.java +++ b/src/net/molez/mandlm/fotostream/client/FotoStream.java @@ -14,7 +14,8 @@ public class FotoStream implements EntryPoint { private final CurrentImageURLServiceAsync imageURLService = GWT.create(CurrentImageURLService.class); - public void onModuleLoad() { + public void onModuleLoad() + { final Image image = new Image(); image.setVisible(false); image.addLoadHandler(new LoadHandler() @@ -56,7 +57,7 @@ public class FotoStream implements EntryPoint } }; - imageReloadTimer.scheduleRepeating(2000); + imageReloadTimer.scheduleRepeating(5000); RootPanel.get("imageContainer").add(image); } diff --git a/war/FotoStream.css b/war/FotoStream.css index c128d57..64d2075 100644 --- a/war/FotoStream.css +++ b/war/FotoStream.css @@ -1,8 +1,6 @@ -/** Add css rules here for your application. */ - - -body { - background-color: black; -} - +div +{ + padding: 20px; + background-color: black; +} \ No newline at end of file