INNER CODE UNIT · JavaScript

pct

LeyckerS/moondownloader · web/app.js:381

    const pct = ((Number(input.value) - min) / (max - min)) * 100;
    label.style.setProperty("--pct", pct.toFixed(2) + "%");
    out.textContent = input.value + suffix;
    if (rec !== null) {
      label.classList.add("has-rec");
      label.style.setProperty("--rec", (((rec - min) / (max - min)) * 100).toFixed(2) + "%");
    }
  };
  input.addEventListener("input", () => { paint(); scheduleSettingsSave(); });
  paint();
  return input;
}

function syncExtractorScope() {
  const hint = $("#extractorScope");
  const workers = $("#workers");
  const pages = $("#pages");
  if (!hint || !workers || !pages) return;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…