13-swipe-p2p chat app/index.js
// Changes Icon of File-Upload to Send

Changes Icon of File-Upload to Send
Changes Icon of File - Upload to Send
function changeico(text)
{
	if (hastext(text)) {
		if(icoChange)
			return;
		document.getElementById('send').style.display = "block";
		document.getElementById('attach').style.display = "none";
		icoChange = true;
	}
	else {
		document.getElementById('send').style.display = "none";
		document.getElementById('attach').style.display = "block";
		icoChange = false;
	}
}
function changeico ( text ) { if ( hastext ( text ) ) { if ( icoChange ) return ; document . getElementById ( 'send' ) . style . display = "block" ; document . getElementById ( 'attach' ) . style . display = "none" ; icoChange = true ; } else { document . getElementById ( 'send' ) . style . display = "none" ; document . getElementById ( 'attach' ) . style . display = "block" ; icoChange = false ; } }
Changes Icon of File-Upload to Send
Changes Icon of File - Upload to Send