Skip to content

Commit

Permalink
fix(js): Show Carlock lights UI
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Sep 6, 2021
1 parent f0936a1 commit 8103d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renzu_hud/ui/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function setSpeed(s) {
val = to / 1000
//e.style.strokeDashoffset = to;
//$('#speedpath').velocity({ 'stroke-dashoffset': to }, {duration: 20, delay: 20}).velocity({ 'stroke-dashoffset': to }, {duration: 15, delay: 23}).velocity({ 'stroke-dashoffset': to }, {duration: 20, delay: 23})
$('#speedpath').velocity({ 'stroke-dashoffset': to }, {duration: 5, delay: 15}).velocity({ 'stroke-dashoffset': to }, {duration: 5, delay: 15}).velocity({ 'stroke-dashoffset': to }, {duration: 5, delay: 15})
$('#speedpath').velocity({ 'stroke-dashoffset': to }, {duration: 2, delay: 5}).velocity({ 'stroke-dashoffset': to }, {duration: 2, delay: 5}).velocity({ 'stroke-dashoffset': to }, {duration: 1, delay: 5})
//$('#speedpath').velocity({ 'stroke-dashoffset': to }, {duration: 30, delay: 60})
}

Expand Down Expand Up @@ -2348,7 +2348,6 @@ var keystring = `<div id="lockbg" style="background:#1f1717; height:220px;width:
<img id="keyless_renzu" style="z-index:1101;position:absolute;right:10px;bottom:10px;opacity:1.0;height:300px;" src="img/carlock.png" />`
function setShowKeyless(bool) {
if (bool) {
$('#keyless').append(keystring)
document.getElementById("keyless").style.display = 'block';
} else {
$('#keyless').html('')
Expand Down Expand Up @@ -2403,6 +2402,7 @@ function setKeyless(table) {
var vehicle = table['vehicle']
var plate = table['plate']
var doorstatus = table['state']
$('#keyless').append(keystring)
if (type == 'connect') {
currentvehicle = vehicle
document.getElementById("foundcar").style.display = 'block';
Expand Down

0 comments on commit 8103d55

Please sign in to comment.