mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
No injections, better style
This commit is contained in:
@@ -137,8 +137,8 @@
|
||||
<div class="row">
|
||||
<div class="col s12 m9 video-container hide-on-small-only">
|
||||
|
||||
<ul class="side-nav left-aligned chat-bar" id="chat-bar" style="position: absolute;display: inline;will-change: left;margin: 0;padding: 0;float: left;">
|
||||
<li id="chat-log" style="padding:0 0 0 11px">
|
||||
<ul class="side-nav left-aligned chat-bar" id="chat-bar">
|
||||
<li id="chat-log">
|
||||
<ul class="collapsible collapsible-accordion">
|
||||
<li class="active">
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
</li>
|
||||
<li id="chat-input">
|
||||
<form onsubmit="chat(this.input);return false;">
|
||||
<input id="text-chat-input" name="input" type="text" autocomplete="off">
|
||||
<input id="text-chat-input" name="input" type="text" autocomplete="off" placeholder="Chat" maxlength="150">
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -193,16 +193,29 @@ hide mdi-action-visibility mdi-action-visibility-off
|
||||
/*------------------- Channel page ---------------------------------------------------------------------------- */
|
||||
|
||||
#chat {
|
||||
height: 81%;
|
||||
height: calc(100% - 121px);
|
||||
overflow-y: scroll;
|
||||
text-align:left;
|
||||
word-wrap:break-word;
|
||||
}
|
||||
|
||||
#chat-log {
|
||||
#chat-bar{
|
||||
position: absolute;
|
||||
display: inline;
|
||||
will-change: left;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
ul #chat-log{
|
||||
padding: 0px 0px 0px 11px !important;
|
||||
}
|
||||
|
||||
#chat-input{
|
||||
background-color: rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
#search_loader {
|
||||
height:64px;
|
||||
padding: 0 15px;
|
||||
@@ -229,6 +242,7 @@ hide mdi-action-visibility mdi-action-visibility-off
|
||||
margin-left: 25%;
|
||||
|
||||
}
|
||||
|
||||
#channelpage{
|
||||
background-color:#2D2D2D;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,9 @@ document.getElementById("chat-btn").addEventListener("click", function(){
|
||||
socket.on("chat,"+chan.toLowerCase(), function(data)
|
||||
{
|
||||
var color = intToARGB(hashCode(data.substring(0,8))).substring(0,6);
|
||||
$("#chat").append("<li><span style='color:"+color+";'>"+data.substring(0,8)+"</span>"+data.substring(8)+"</li>");
|
||||
$("#chat").append("<li><span style='color:"+color+";'>"+data.substring(0,8)+"</span></li>");
|
||||
var in_text = document.createTextNode(data.substring(8));
|
||||
$("#chat li:last")[0].appendChild(in_text);
|
||||
document.getElementById("chat").scrollTop = document.getElementById("chat").scrollHeight
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user