From 7a2601f657e04e90e63fe917bfa0726f7bf0eb8c Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 30 May 2014 22:07:02 +0200 Subject: Cooler frontend design! --- static/chat.js | 101 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 84 insertions(+), 17 deletions(-) (limited to 'static/chat.js') diff --git a/static/chat.js b/static/chat.js index 47cf6d3..65266bf 100644 --- a/static/chat.js +++ b/static/chat.js @@ -1,3 +1,55 @@ +function initGui(roomname) { + $("#nojs").remove(); + + var dialogoverlay = $("
").prop("id", "dialogoverlay") + .append($("
").prop("id", "dialoginner") + .append($("

")) + .append($("
") + .append($("

")) + .append($("")) + .append($("

").addClass("buttons")))).hide(); + var h1 = $("

").text("Chatroom ").append($("").css("font-style", "italic").text(roomname)); + var chatlog = $("
").prop("id", "chatlogwrap").append($("
    ").prop("id", "chatlog")); + var buddiescontainer = $("
    ").prop("id", "buddiescontainer") + .append($("

    ").text("Buddies online")) + .append($("
      ").prop("id", "buddies")); + var chatinput = $("
      ").prop("id", "chatinput") + .append($("").prop("name", "chattext").prop("id", "chattext").prop("type", "text").prop("placeholder", "Type to chat...")) + .append($("