digital-shadow/demo-car/js/webSocketApp.js
//this function will get called when user will click on Headlight checkbox
this function will get called when user will click on Headlight checkbox
this function will get called when user will click on Headlight checkbox
function handleHeadlightCommand(headlightStatus) {
    obj = document.getElementsByClassName("action headlight")[0];
    obj.checked = headlightStatus == "on" ? true : false;
    console.log(obj.getAttribute("data-text") + " : " + obj.checked);
}
function handleHeadlightCommand ( headlightStatus ) { obj = document . getElementsByClassName ( "action headlight" ) [ 0 ] ; obj . checked = headlightStatus == "on" ? true : false ; console . log ( obj . getAttribute ( "data-text" ) + " : " + obj . checked ) ; }
this function will get called when user will click on Headlight checkbox
this function will get called when user will click on Headlight checkbox