aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-07-05 14:21:47 +0200
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:20:13 +0100
commitfae138a4c66f2632e95c29f1137e4649acba9b34 (patch)
tree04538c586f042fb63c8f77cef28ed5dfcac3cb81 /src/index.html
parentebd2a143005566358f4a2356f279386d2470be9a (diff)
OPT Improve chair and fan code
Diffstat (limited to 'src/index.html')
-rw-r--r--src/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.html b/src/index.html
index 45a53d0..17293c9 100644
--- a/src/index.html
+++ b/src/index.html
@@ -12,8 +12,8 @@
</div>
<div class="fanSpeed">
<div class="fanSpeedContainer">
- <input id="FanSpeedInput" type="range" min="1" value="1" max="100" onchange="FANSPEED.update(this.value)">
- <progress id="FanSpeedProgress" value="1" max="100"></progress>
+ <input id="FanSpeed" type="range" min="1" value="1" max="100" onchange="FANSPEED.set(this)">
+ <progress value="1" max="100"></progress>
</div>
<div class="label">
FAN SPEED
@@ -21,7 +21,7 @@
</div>
</div>
<div class="center">
- <a id="LeftChair" value="0" href="#" class="seat left item button" onclick="CHAIR.left()">
+ <a id="LeftChair" value="0" href="#" class="seat left item button" onclick="CHAIR.left(this)">
<img class="off" src="../images/HMI_HVAC_Left_Chair_OFF.svg"/>
<img class="one two" src="../images/HMI_HVAC_Left_Chair_ON.svg"/>
<img class="off" src="../images/HMI_HVAC_ChairIndicator_OFF.svg"/>
@@ -35,7 +35,7 @@
A/C
</div>
</a>
- <a id="RightChair" value="0" href="#" class="seat right item button" onclick="CHAIR.right()">
+ <a id="RightChair" value="0" href="#" class="seat right item button" onclick="CHAIR.right(this)">
<img class="off" src="../images/HMI_HVAC_Right_Chair_OFF.svg"/>
<img class="one two" src="../images/HMI_HVAC_Right_Chair_ON.svg"/>
<img class="off" src="../images/HMI_HVAC_ChairIndicator_OFF.svg"/>