assets/js/game.js
//creates a chat message and sends it to Firebase
creates a chat message and sends it to Firebase
creates a chat message and sends it to Firebase
function chat() {
	soundTrigger = false;
	database.ref("chat").push({
		content: "<span class=\"chatName\">" + $("#yrName").text() + "</span>: " + $("#chatInput").val()
	});
	$("#chatInput").val("");
}
function chat ( ) { soundTrigger = false ; database . ref ( "chat" ) . push ( { content : "<span class=\"chatName\">" + $ ( "#yrName" ) . text ( ) + "</span>: " + $ ( "#chatInput" ) . val ( ) } ) ; $ ( "#chatInput" ) . val ( "" ) ; }
creates a chat message and sends it to Firebase
creates a chat message and sends it to Firebase