# HG changeset patch # User Eugene Ostroukhov # Date 1288719845 25200 # Node ID 2da62bb639105684659b9d0e9053f31c0b541834 # Parent 8452783e79803100475d4cfb9e5326549f341c01 Minor enhancements diff -r 8452783e7980 -r 2da62bb63910 Eggtimer/basic.css --- a/Eggtimer/basic.css Mon Nov 01 14:47:36 2010 -0700 +++ b/Eggtimer/basic.css Tue Nov 02 10:44:05 2010 -0700 @@ -9,16 +9,6 @@ font-size: xx-large; } -#pausestart { - height: 32px; - width: 32px; - position: relative; - right: -138px; - top: -32px; - background-image: url('images/button.png'); - background-position: 0px 32px -} - .digits { width: 3ex; text-align: center; diff -r 8452783e7980 -r 2da62bb63910 Eggtimer/basic.js --- a/Eggtimer/basic.js Mon Nov 01 14:47:36 2010 -0700 +++ b/Eggtimer/basic.js Tue Nov 02 10:44:05 2010 -0700 @@ -4,8 +4,8 @@ var SETUP_ID = 1; -var timervalue = 60; -var initialTimer = 60; +var timervalue = 30; +var initialTimer = 30; var timeoutId = null; var paused = true; var displayUp = true; @@ -15,6 +15,7 @@ showMainWindow(); widget.setDisplayPortrait(); watchSensorNotifications(); + startTimer(); } // Call this function to add a callback that will be notified of orientation @@ -123,9 +124,6 @@ if (timervalue > 0) { timervalue = timervalue - 1; showValues(); - if (timervalue == 0) { - cancelTimer(); - } } } @@ -161,20 +159,4 @@ var item = menu.getMenuItemById(SETUP_ID); menu.remove(item); menu.setRightSoftkeyLabel("Cancel", showMainWindow); -} - - -function pauseStart() { - if (paused) { - startCountdown(); - document.getElementById("pausestart").style.backgroundPosition = "0px 0px"; - paused = false; - } else { - if (timeoutId) { - window.clearInterval(timeoutId); - timeoutId = null; - } - document.getElementById("pausestart").style.backgroundPosition = "0px 32px"; - paused = true; - } } \ No newline at end of file diff -r 8452783e7980 -r 2da62bb63910 Eggtimer/images/button.png Binary file Eggtimer/images/button.png has changed diff -r 8452783e7980 -r 2da62bb63910 Eggtimer/index.html --- a/Eggtimer/index.html Mon Nov 01 14:47:36 2010 -0700 +++ b/Eggtimer/index.html Tue Nov 02 10:44:05 2010 -0700 @@ -11,8 +11,7 @@
- -
 
+
 
@@ -22,7 +21,7 @@
Specify time: - :: + ::