Skip to content

Commit b88ffc2

Browse files
authored
Update index.html
Modification of wordsPerHour formula
1 parent b14fa86 commit b88ffc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2>カスタムモード</h2>
8383
"wordsToWrite"
8484
).innerHTML = `要求文字数: ${needWordCount}字`;
8585

86-
let wordsPerHour = Math.round(targetWordCount / differenceInHours);
86+
let wordsPerHour = Math.round(targetWordCount - offsetWordCount / differenceInHours);
8787
document.getElementById(
8888
"wordsPerHour"
8989
).innerHTML = `時速: ${wordsPerHour}字`;
@@ -143,4 +143,4 @@ <h2>カスタムモード</h2>
143143
</script>
144144
</body>
145145

146-
</html>
146+
</html>

0 commit comments

Comments
 (0)