]=a.length;
a = x.replace(/(\s|\t| )+/g," ").split(" ");
this._words["total"] += a.length;
this._words[e] ? this._words[e]+=a.length : this._words[e]=a.length;
this._files["total"] ++;
this._files[e] ? this._files[e]++ : this._files[e]=1;
}
wnd.status = "NCC(\"" +f.path+ "\")";
ldg.innerHTML = "now count \"" +f.name+ "\"."
return this.chkFileExts(f.name)
};
NCC.formatSingleFile = function(filepathStr)
{
};
//====================================================================================
function window.onload() {
NCC.init();
wnd.resizeTo(800,480);
doc.all("outputWrapper").value = "";
setFilesExts();//setFilesExts.call(this);
}
function setFilesExts() {
doc.all("filesExts").value = NCC.getFilesExts();
}
function output() {
/*
var e = event.srcElement;
var a = doc.body.all;
for (var i=0; i<a.length; i++) {
if (a[i].tagName.toLowerCase()=="input") {
if (a[i]!=e) a[i].disabled=true;
}
}
*/
NCC.setFilesExt(doc.all("filesExts").value)
NCC.countFolder(doc.all(''filepathStr'').value);
NCC.output(''outputWrapper'');
}
function changeFileExt() {
var groupfileExts = doc.all("groupfileExt");
var fileExtStr = [];
for (var i=0; i<groupfileExts.length; i++) {
if (groupfileExts[i].checked)
fileExtStr.push(groupfileExts[i].value);
}
NCC.setFilesExt(fileExtStr.join(","));
setFilesExts();
}
function selectSingleFile(val) {
if (!NCC.selectSingleFile()) return "";
doc.all(val).value = NCC.selectSingleFile();
}
function selectFolder(val) {
var a = NCC.selectFolder();
if (a==false) return "";
doc.all(val).value = a;
}
function saveAs() {
NCC.saveAs(''outputWrapper'');
//NCC.saveAs(NCC.output());
}
//]]>
</script>
</head>
<body id="www.never-online.net">
<h1> NCC (never code counter) tools - http://www.never-online.net </h1>
<fie