MCPcopy
hub / github.com/tholman/zenpen / updateWordCount

Function updateWordCount

js/ui.js:226–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 }
225
226 function updateWordCount() {
227
228 var wordCount = ZenPen.editor.getWordCount();
229 var percentageComplete = wordCount / wordCountValue;
230 wordCounterProgress.style.height = percentageComplete * 100 + '%';
231
232 if ( percentageComplete >= 1 ) {
233 wordCounterProgress.className = "progress complete";
234 } else {
235 wordCounterProgress.className = "progress";
236 }
237 }
238
239 function selectFormat( e ) {
240

Callers 3

loadStateFunction · 0.85
setWordCountFunction · 0.85
onArticleKeyUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected