Skip to content

Commit

Permalink
newlines->100 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaxbeard committed Jan 28, 2022
1 parent e9d291d commit af400f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<body>
<div class="page">
<div class="char-count" id="char-count">
1611 char. equivalents
1761 char. equivalents
<br/>
23 lines
</div>
Expand Down Expand Up @@ -165,7 +165,7 @@
var text = e.target.textContent;
var numNewlines = (text.match(/[\n]/g)||[]).length;
var withoutNewlines = (text.match(/[^\n]/g)||[]).length;
var cc = withoutNewlines + 75 * numNewlines;
var cc = withoutNewlines + 100 * numNewlines;

var numLines = Math.floor(e.target.offsetHeight / 15);
console.log(numLines);
Expand Down

0 comments on commit af400f2

Please sign in to comment.