Kalkulator Penghitung Jumlah Kata

.daerah-tombol-2{color:#fff;background:#2980b9;text-align:center;padding:20px 20px 40px 20px;margin:30px;border-radius:4px;font-weight:bold;}
.daerah-tombol{background:#2980b9;text-align:center;padding:20px 20px 40px 20px;margin:0;border-radius:4px;}
#belakang{background:#ecf0f1;position:relative;display:block;clear:both;border-radius:5px;padding:20px;border:1px solid rgba(0,0,0,0.05);}
textarea{width:94%;height:300px;margin:0 auto;display:block;background-color:#fff;padding:20px;font:normal 13px ‘Courier New’,Monospace;border:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.05);border-radius:5px 5px 0 0;resize:none}
button{color:#fff!important;height:50px;font-size:14px;font-weight:bold;background:#07ACEC;padding:15px 25px;border-radius:4px;border:none;outline:none;box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);cursor:pointer;transition:all .4s ease-in-out;text-transform:uppercase;margin-top:15px}
#outer-wrapper{margin:0 auto;text-align:left;float:none;background-position:center!important}
#post-wrapper{width:100%;max-width:100%;margin:0 auto;text-align:left;float:none;background-position:center!important}
.post-body,.post{background-position:center!important}
h2.post-title a,h1.post-title a,h2.post-title,h1.post-title{display:none;margin-top:0;margin:0}
#blog1,#artikel,.blog-posts{background-position:center!important}
.breadcrumbs{display:none;margin-top:0;margin:0}
#comments,#breadcrumb,#sidebar-wrapper,#menu-wrap{display:none;margin-top:0;margin:0}
.post-inner{padding:0 0 0 0;margin:20px auto}
.post-body ul#wrapin{display:block;position:relative;margin:30px auto 0 auto}
.post-body ul#wrapin li{display:block;margin:0 auto;text-align:left}
.post-body ul#wrapin br{display:none}

HITUNG KATA SETEL ULANG
HASIL :

var namaNode = document.getElementById(“textAreaCount”);
var formNode = document.getElementById(“wordCount”);
var hasilNode = document.getElementById(“hasilKata”);
var hasil2Node = document.getElementById(“hasilKarakter”);
var submitNode = document.getElementById(“submitWordCount”);
var resetNode = document.getElementById(“resetWordCount”);
document.getElementById(“submitWordCount”).style.cursor =”pointer”;
document.getElementById(“resetWordCount”).style.cursor=”pointer”;
function textCount(e){
hasilNode.innerHTML = 0;
hasilNode.innerHTML = “JUMLAH KATA : ” + namaNode.value.split(‘ ‘).length;
hasil2Node.innerHTML = “JUMLAH KARAKTER : ” + namaNode.value.length;
e.preventDefault();
}
function resetCount(e){
namaNode.value = “”;
hasilNode.innerHTML =””;
hasil2Node.innerHTML =””;
e.preventDefault();
}
submitNode.addEventListener(“click”, textCount);
resetNode.addEventListener(“click”,resetCount);


error: Content is protected !!