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