diff --git a/public/client.js b/public/client.js index c789a41..dec8b4e 100644 --- a/public/client.js +++ b/public/client.js @@ -35,7 +35,7 @@ const joinRoom = (room) => { }); $(".error").hide(); $(`#${room_id}-msg`).attr("data-joined", 1); - $(`#${room_id}-msg,.write`).show(); + $(`#${room_id}-msg`).show(); } //requests server to leave a room @@ -50,7 +50,7 @@ function leaveRoom(room) { $(".error").html('You haven\'t joined this room yet. Join to see the conversation.'); $(`#${room_id}-msg`).attr("data-joined", 0); - $(`#${room_id}-msg,.write`).hide(); + $(`#${room_id}-msg`).hide(); $(".error").show(); } @@ -83,7 +83,7 @@ const appendUserInfo = (room_name, description) => { // Appending the content const appendContentInfo = (room_name, online, data_joined) => { - const $write = $("#write"); + emobox = document.getElementById(`emobox`).outerHTML; const $contentInfo = ` `; - + $('#toast-wrapper').append(toastTemplate); // Init notiifications $('.toast').toast({delay: 3000}); @@ -176,4 +177,4 @@ function notify(data, type){ $(`#${notficationID}`).on('hidden.bs.toast', function () { $(`#${notficationID}`).remove(); }); -} \ No newline at end of file +} diff --git a/public/style.css b/public/style.css index 838a71c..70f0df9 100644 --- a/public/style.css +++ b/public/style.css @@ -4,6 +4,11 @@ box-sizing: border-box; } +/* To style icons of font-awesome */ +.icon { + font-size: 2rem +} + li { list-style: none; } @@ -200,84 +205,6 @@ body { } } -.write { - z-index: 10; - position: absolute; - bottom: 16px; - height: 42px; - width: 95% !important; - margin-left: 1em; - border: 1px solid #e6e6e6; - background-color: #eceff1; - width: inherit; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; -} - -.write input { - font-size: 16px; - float: left; - width: -moz-calc(100% - 90px); - width: -webkit-calc(100% - 90px); - width: -o-calc(100% - 90px); - width: calc(100% - 90px); - height: 40px; - padding: 0 10px; - color: #1a1a1a; - border: 0; - outline: none; - background-color: transparent; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; -} - -.write-right { - float: right; -} - -.write .write-link.smiley:before { - display: inline-block; - float: left; - width: 40px; - height: 42px; - content: ''; - background-size: 30px 30px; - background-repeat: no-repeat; - background-position: center; -} - -/* font-awesome smiley */ -.fa-smile { - position: absolute; - font-size: 32px; - right: 3.5rem; - bottom: 0.3rem; - color: #57585a; -} - -.write .write-link.send { - display: inline-block; - float: left; - width: 42px; - height: 42px; - margin-left: 5px; - content: ''; - background-size: 38px 38px; - background-repeat: no-repeat; - background-position: center; -} - -/* font-awesome send */ -.fa-paper-plane { - font-size: 30px; - margin-top: 0.3rem; -} - -.write#join { - padding-left: 0; -} - .app-container .right .card.others { float: left; } @@ -300,11 +227,6 @@ body { background-size: 40px 42px; } -/* font-awesome class */ -.fa-plus-circle { - font-size: 40px; -} - #newRoom:hover, #submit:hover, #cancel:hover { border-color: #0b2d63; color: #0b2d63; diff --git a/views/index.ejs b/views/index.ejs index a5949f9..8c9e643 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -33,7 +33,7 @@

- +

@@ -60,16 +60,16 @@
-
- -
- - -
    -
-
- - +
+ +
+ +