some unrealated code from function. need to display current in progress when active time…
Jump to turn (13)
- 1some unrealated code from function. need to display current in progress when act
- 2can you do it all without backticks in templierals used, as through + and '?
- 3done as you said but it seems it doesn't live updating value inside in seconds w
- 4and "updateProgress();" call I should place at the end of generate image funct o
- 5is it possible to add simple anim for "progressBarFilled.innerText = 'processing
- 6don't understand the logic in switchings inbetween these 3 dots. can you apply s
- 7and if set it to over 9001 dots, then what?
- 8the problem that it resets dots anim together with actual live updating timer to
- 9so, any ideas you has on that matter in overall concept in progression/processio
- 10maybe just some styling for dots as emojicons? the longer it takes, the more exp
- 11maybe you can fill that array with more emojicons? express yourself,gpt.
- 12that looks destructive. maybe there's some thematic range specific in concept an
- 13maybe food and computer theme is adequate here for a progbar. try output more fo
- User
some unrealated code from function. need to display current in progress when active time onto this progress bar filled element and then switch back to fixed as it is right now.:
let startTime = null; let overallStartTime = null; let previousGenerationTime = null; let isFirstGeneration = true; function handleProgressBar() { const progressBarFilled = document.querySelector('.progress-bar-filled'); const currentTime = Date.now(); const secondsPassed = ((currentTime - overallStartTime) / 1000 - 1.5).toFixed(0); progressBarFilled.innerText = `done: ${secondsPassed} sec`; } async function generateImage() { if (isGenerating || autoQueueActive) { return; } if (galleryArray.length >= totalLimit) { if (autoSaveEnabled) { saveAllImages().then(() => { clearGallery(); }); } else { clearGallery(); } return; } function clearGallery() { galleryArray.length = 0; updateImageCounter(); bufferContainer.innerHTML = ''; if (autoQueueActive) { generateInterval = setInterval(generateImage, interval); } } isGenerating = true; startTime = Date.now(); overallStartTime = Date.now(); - Assistant