User:Xenwolf/vector.js: Difference between revisions
Jump to navigation
Jump to search
m testing... |
m testing... |
||
| Line 2: | Line 2: | ||
var headerWords = $("h1").text().split(" ").length; | var headerWords = $("h1").text().split(" ").length; | ||
let totalWords = numWords + headerWords; | let totalWords = numWords + headerWords; | ||
var header = $("h1").text(); | |||
$("h1").text(header + " (" + totalWords + " words)"); | $("h1").text(header + " (" + totalWords + " words)"); | ||