|
@@ -3,8 +3,7 @@
|
|
|
menu_off = 1
|
|
|
|
|
|
if $ARGS[0] = 'start':
|
|
|
- cla
|
|
|
- clr
|
|
|
+ *clr & cla
|
|
|
gs 'stat'
|
|
|
'<center><img <<$set_imgh>> src="images/shared/home/bedroom/bed2.jpg"></center>'
|
|
|
*nl
|
|
@@ -21,13 +20,15 @@ if $ARGS[0] = 'start':
|
|
|
'<center><b><a href="exec:gt ''budilnik'', ''4''">4</a> <a href="exec:gt ''budilnik'', ''5''">5</a> <a href="exec:gt ''budilnik'', ''6''">6</a></b></center>'
|
|
|
'<center><b><a href="exec:gt ''budilnik'', ''7''">7</a> <a href="exec:gt ''budilnik'', ''8''">8</a> <a href="exec:gt ''budilnik'', ''9''">9</a></b></center>'
|
|
|
'<center><b><a href="exec:gt ''budilnik'', ''0''">0</a></b></center>'
|
|
|
- '<center><b><a href="exec:gt ''budilnik'', ''Reset''">Reset</a> <a href="exec:gt ''budilnik'', ''Time''">Set Alarm</a></b></center>'
|
|
|
+ '<center><b><a href="exec: bud_weekend = 0 & gt ''budilnik'', ''Reset''">Reset (week)</a> <a href="exec: bud_weekend = 0 & gt ''budilnik'', ''Time''">Set this time for the week</a></b></center>'
|
|
|
+ '<center><b><a href="exec: bud_weekend = 1 & gt ''budilnik'', ''Reset''">Reset (weekend)</a> <a href="exec: bud_weekend = 1 & gt ''budilnik'', ''Time''">Set this time for the weekend</a></b></center>'
|
|
|
+
|
|
|
*nl
|
|
|
if budilnikOn = 0:
|
|
|
'<center>Your alarm is currently turned <a href="exec: budilnikOn = 1 & gt ''budilnik'', ''start''"><b>off</a></b></center>'
|
|
|
else
|
|
|
'<center>Your alarm is currently turned <a href="exec: budilnikOn = 0 & gt ''budilnik'', ''start''"><b>on</b></a></center>'
|
|
|
- '<center>The alarm is set to '+iif(timer < 10,'0<<timer>>','<<timer>>')+':'+iif(timerM < 10,'0<<timerM>>','<<timerM>>')+'.</center>'
|
|
|
+ '<center>The alarm is set to '+iif(timer < 10,'0<<timer>>','<<timer>>')+':'+iif(timerM < 10,'0<<timerM>>','<<timerM>>')+' during the week and to '+iif(timerEnd < 10,'0<<timerEnd>>','<<timerEnd>>')+':'+iif(timerEndM < 10,'0<<timerEndM>>','<<timerEndM>>')+' during the weekend.</center>'
|
|
|
end
|
|
|
act 'Finish':
|
|
|
cla
|
|
@@ -44,11 +45,19 @@ if $ARGS[0] = 'Time':
|
|
|
cla
|
|
|
budilnikOn = 1
|
|
|
|
|
|
- timer = bud1 * 10 + bud2
|
|
|
- timerM = bud3 * 10 + bud4
|
|
|
+ if bud_weekend = 1:
|
|
|
+ timerEnd = bud1 * 10 + bud2
|
|
|
+ timerEndM = bud3 * 10 + bud4
|
|
|
+
|
|
|
+ if timerEnd > 23:timerEnd = 0
|
|
|
+ if timerEndM > 60:timerEndM = 0
|
|
|
+ else
|
|
|
+ timer = bud1 * 10 + bud2
|
|
|
+ timerM = bud3 * 10 + bud4
|
|
|
|
|
|
- if timer > 23:timer = 0
|
|
|
- if timerM > 60:timerM = 0
|
|
|
+ if timer > 23:timer = 0
|
|
|
+ if timerM > 60:timerM = 0
|
|
|
+ end
|
|
|
|
|
|
gt 'budilnik', 'start'
|
|
|
end
|
|
@@ -174,9 +183,13 @@ end
|
|
|
|
|
|
if $ARGS[0] = 'Reset':
|
|
|
cla
|
|
|
- budilnikOn = 0
|
|
|
- timer = 0
|
|
|
- timerM = 0
|
|
|
+ if bud_weekend = 1:
|
|
|
+ timerEnd = 0
|
|
|
+ timerEndM = 0
|
|
|
+ else
|
|
|
+ timer = 0
|
|
|
+ timerM = 0
|
|
|
+ end
|
|
|
bud1 = 0
|
|
|
bud2 = 0
|
|
|
bud3 = 0
|
|
@@ -186,10 +199,7 @@ if $ARGS[0] = 'Reset':
|
|
|
gt 'budilnik', 'start'
|
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'fin':
|
|
|
- cla
|
|
|
- gt $loc, $metka
|
|
|
-end
|
|
|
+if $ARGS[0] = 'fin': gt $loc, $metka
|
|
|
|
|
|
--- budilnik ---------------------------------
|
|
|
|