View source for MediaWiki:CharCount.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
$(function () {
var myPlace = document.getElementById('CharCount');
myPlace.innerHTML =$(function getID(id) {
return document.getElementById(id);
}
);
$(function addNumericOptions(id, min, max, defIndex) {
var s = getID(id);
for (ii=min; ii<=max; ii++) {
var option = document.createElement("option");
option.text = ii;
option.value = ii;
s.add(option);
}
s.value = defIndex;
});
$(function getMaxChars() {
var maxChar = getID('chars');
return maxChar.value;
}
);
$(function getLinkDiscount() {
Return to MediaWiki:CharCount.js.