MediaWiki:CharCount.js: Difference between revisions
Richardpruen (talk | contribs) Added identifier |
Richardpruen (talk | contribs) Forgot the identifier |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
$( function () { | |||
var myPlace = document.getElementById('CharCount'); | |||
function getID(id) { | function getID(id) { | ||
return document.getElementById( | return document.getElementById(id); | ||
} | } | ||
Line 11: | Line 13: | ||
s.add(option); | s.add(option); | ||
} | } | ||
s.value = defIndex; | |||
} | } | ||
function getMaxChars() { | function getMaxChars() { | ||
var maxChar = getID('chars'); | var maxChar = getID('chars'); | ||
Line 113: | Line 114: | ||
updateOutput(); | updateOutput(); | ||
} | } | ||
}); |