Try: ca/tecreations/ViewFile.php
<script>
function blurredTextArea(e)
{
if (!e)
e = window.event;
//IE9 & Other Browsers
if (e.stopPropagation) {
e.stopPropagation();
}
//IE8 and Lower
else {
e.cancelBubble = true;
}
ifTextAreaEmptySetToDefault();
}
function checkIfSetEmpty(var textarea) {
const input = document.getElementById(textarea);
if (input.value == "Max 1024 Characters") {
input.value = "";
}
getCharsRemaining();
}
function getCharsRemaining() {
const len = document.getElementById("comment").value.length;
var span = document.getElementById('remaining');
while( span.firstChild ) {
span.removeChild( span.firstChild );
}
var remaining = 1024 - len;
span.appendChild( document.createTextNode(remaining) );
}
function ifTextAreaEmptySetToDefault() {
const input = document.getElementById("comment");
if (input.value == "") {
input.value = "Max 1024 Characters";
}
setCharsRemaining(1024);
}
function setCharsRemaining(remaining) {
const len = document.getElementById("comment").value.length;
var span = document.getElementById('remaining');
while( span.firstChild ) {
span.removeChild( span.firstChild );
}
var remaining = 1024 - len;
span.appendChild( document.createTextNode(remaining) );
}
</script>