Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
clusslin authored Feb 8, 2024
1 parent d580c23 commit 88add7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ function updateValues() {
const injectionRate = parseFloat(document.getElementById('injectionRate').value);
const scanTime = parseFloat(document.getElementById('scanTime').value);
const enhancementPercent = parseFloat(document.getElementById('enhancementPercent').value); // 更新


document.getElementById('enhancementPercentDisplay').textContent = enhancementPercent + '%';
const ptd1 = ((contrastTotal / injectionRate) - (scanTime * (enhancementPercent / 100))).toFixed(1);
const ptd2 = (parseFloat(ptd1) + scanTime + 4).toFixed(1);
const ptd3 = (parseFloat(ptd2) + scanTime + 4).toFixed(1);
Expand Down

0 comments on commit 88add7c

Please sign in to comment.