We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2e6f9 commit a14fd69Copy full SHA for a14fd69
static/dream_web/index.js
@@ -61,8 +61,8 @@ async function generateSubmit(form) {
61
let formData = Object.fromEntries(new FormData(form));
62
formData.initimg = formData.initimg.name !== '' ? await toBase64(formData.initimg) : null;
63
64
- let strength = 0.75; // TODO let this be specified in the UI
65
- let totalSteps = formData.initimg ? Math.floor(.75 * formData.steps) : formData.steps;
+ let strength = formData.strength;
+ let totalSteps = formData.initimg ? Math.floor(strength * formData.steps) : formData.steps;
66
67
let progressSectionEle = document.querySelector('#progress-section');
68
progressSectionEle.style.display = 'initial';
0 commit comments