Last active
June 16, 2016 14:10
-
-
Save mozkurt27/52ac28e3a585c94df01157716cc892a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var messageContainer, submitButton; | |
var pseudo = ""; | |
$(function() { | |
messageContainer = $('#messageInput'); | |
submitButton = $("#submit"); | |
bindButton(); | |
window.setInterval(time, 1000*10); | |
$("#alertPseudo").hide(); | |
$('#modalPseudo').modal('show'); | |
$("#pseudoSubmit").click(function() {setPseudo()}); | |
$("#chatEntries").slimScroll({height: '600px'}); | |
submitButton.click(function() {sentMessage();}); | |
setHeight(); | |
$('#messageInput').keypress(function (e) { | |
if (e.which == 13) {sentMessage();}}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment