Added chat-send button

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-10 15:17:11 +01:00
parent 4047cce1cd
commit 70a301ecf5
5 changed files with 32 additions and 9 deletions

View File

@@ -1082,6 +1082,10 @@ hide mdi-action-visibility mdi-action-visibility-off
overflow: hidden; overflow: hidden;
} }
.btn.white{
color:black;
}
.playlist-tabs .indicator, .tabs .indicator{ .playlist-tabs .indicator, .tabs .indicator{
/*width:50%;*/ /*width:50%;*/
bottom: 0px; bottom: 0px;
@@ -1188,8 +1192,18 @@ hide mdi-action-visibility mdi-action-visibility-off
} }
#text-chat-input{ #text-chat-input{
width:95%; /*width:95%;*/
color:white; color:white;
border:none;
}
#text-chat-input:focus{
box-shadow: none;
}
#chat_submit{
margin-top: 4px;
margin-left: 4%;
} }
.indicator { .indicator {
@@ -1236,6 +1250,9 @@ ul #chat-log{
#chat-input{ #chat-input{
/*background-color: rgba(0,0,0,0.1);*/ /*background-color: rgba(0,0,0,0.1);*/
border-top: 1px solid grey;
border-bottom: 1px solid grey;
height: 46px;
} }
#search_loader { #search_loader {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -658,6 +658,11 @@ $(document).on("mouseenter", ".card.sticky-action", function(e){
}, 50); }, 50);
}); });
$(document).on("click", "#chat_submit", function(e){
e.preventDefault();
$("#chatForm").submit();
})
$(document).on("mouseleave", ".card.sticky-action", function(e){ $(document).on("mouseleave", ".card.sticky-action", function(e){
var that = this; var that = this;
$(that).find(".card-reveal").attr("style", "display: block;transform: translateY(0%);"); $(that).find(".card-reveal").attr("style", "display: block;transform: translateY(0%);");

View File

@@ -260,9 +260,10 @@
</li> </li>
</ul> </ul>
</li> </li>
<li id="chat-input"> <li id="chat-input" class="row">
<form action="#" id="chatForm"> <form action="#" id="chatForm">
<input id="text-chat-input" name="input" type="text" autocomplete="off" placeholder="Chat" maxlength="150" /> <input id="text-chat-input" class="col s9" name="input" type="text" autocomplete="off" placeholder="Chat" maxlength="150" />
<a href="#" id="chat_submit" class="btn col s2 white"><i class="material-icons">send</i></a>
</form> </form>
</li> </li>
</ul> </ul>