User:Xenwolf/vector.js: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
testing...
Xenwolf (talk | contribs)
testing...
Line 3: Line 3:
var diffButton = $("#wpDiff").text();
var diffButton = $("#wpDiff").text();


$("#firstHeading").text(header + " (" + numWords + " words) "+((typeof diffButton !== 'undefined')? "*" : ""));
$("#firstHeading").text(header + " (" + numWords + " words) "+diffButton);

Revision as of 16:12, 29 May 2020

var numWords = $("#mw-content-text > div").text().split(" ").length;
var header = $("#firstHeading").text();
var diffButton = $("#wpDiff").text();

$("#firstHeading").text(header + " (" + numWords + " words) "+diffButton);