Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Nov 27, 2024
1 parent cb88ad5 commit f4e8125
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/public/resources/js/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ $(document).on('click','#timelapse-play-btn',function () {
* @returns
*/
async function playTimelapse()
{
{
/**
* Retrieve camera id, date, max range and all pictures names
*/
Expand Down Expand Up @@ -461,7 +461,7 @@ async function playTimelapse()
images: pictures,
index: index,
imgElement: $("#timelapse-picture"),
loadNextImage: function() {
loadNextImage: function () {
if (this.index < this.images.length) {
/**
* Quit if timelapse div was closed
Expand Down Expand Up @@ -506,7 +506,7 @@ async function playTimelapse()
var hour = time.split('-')[0];
var min = time.split('-')[1];
var sec = time.split('-')[2];

/**
* Create a new Image object and set its src to the target picture path
*/
Expand All @@ -519,7 +519,7 @@ async function playTimelapse()
nextImage.onload = () => {
// Image is fully loaded, update the slider value
$('#picture-slider').val(this.index);

// Update the picture time
$('#picture-time').text(hour + ':' + min + ':' + sec);

Expand Down

0 comments on commit f4e8125

Please sign in to comment.