aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorRoger Zanoni <rzanoni@igalia.com>2022-11-02 10:16:03 +0100
committerRoger Zanoni <rzanoni@igalia.com>2022-11-02 14:51:15 +0100
commitb0c869c0461741413af9e6a24f6e156717b6362f (patch)
tree1e7efd54e4c426d1b50dd7676e1186857b88802f /src/index.js
parent6abbe876aee09b225af9329e28b4fa2cc4d4c220 (diff)
Adapt the demo to use kuksa.val service
- The "AUTO" element was removed because there's no compatible VSS signal. - Removed the indicators below the seats and now they work only to toggle the state of the seat warmer. - The air distribution buttons now work as a radio group as there is only one AirDistribution setting per cabin. Bug-AGL: SPEC-4599 Signed-off-by: Roger Zanoni <rzanoni@igalia.com> Change-Id: Ibfaa477a7c27627ac524f39dd809b7a2195c7c9f
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js
index 67f800a..53ee56b 100644
--- a/src/index.js
+++ b/src/index.js
@@ -14,12 +14,25 @@
* limitations under the License.
*/
-/* JS */
-import './js/AFB.js';
-
/* CSS */
import './styles/app.scss';
document.addEventListener('DOMContentLoaded', function(){
+ SEATS.init();
TEMPERATURE.init();
-}); \ No newline at end of file
+ FANSPEED.init();
+ BUTTONS.init();
+
+ KUKSA.init([
+ [PATHS.leftSeatWarmer, SEATS],
+ [PATHS.rightSeatWarmer, SEATS],
+ [PATHS.leftSeatTemperature, TEMPERATURE],
+ [PATHS.rightSeatTemperature, TEMPERATURE],
+ [PATHS.leftFanSpeed, FANSPEED],
+ [PATHS.airConditioning, BUTTONS],
+ [PATHS.recirculation, BUTTONS],
+ [PATHS.frontDefroster, BUTTONS],
+ [PATHS.rearDefroster, BUTTONS],
+ [PATHS.leftAirDistribution, BUTTONS],
+ ]);
+});