mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added doctype in all php files, and adjusted heights and css styling accordingly to the 'new' boxmodel
This commit is contained in:
@@ -50,7 +50,7 @@ socket.on("chat.all", function(inp)
|
||||
unseen = true;
|
||||
}
|
||||
var color = intToARGB(hashCode(inp[0])).substring(0,6);
|
||||
$("#chatall").append("<li title='"+inp[2]+"'><span style='color:"+color+";'>"+inp[0]+"</span></li>");
|
||||
$("#chatall").append("<li title='"+inp[2]+"'><span style='color:#"+color+";'>"+inp[0]+"</span></li>");
|
||||
var in_text = document.createTextNode(inp[1]);
|
||||
$("#chatall li:last")[0].appendChild(in_text);
|
||||
document.getElementById("chatall").scrollTop = document.getElementById("chatall").scrollHeight
|
||||
@@ -82,7 +82,7 @@ function setup_chat_listener(channel)
|
||||
}
|
||||
}
|
||||
var color = intToARGB(hashCode(data[0])).substring(0,6);
|
||||
$("#chatchannel").append("<li><scrollTopan style='color:"+color+";'>"+data[0]+"</span></li>");
|
||||
$("#chatchannel").append("<li><span style='color:#"+color+";'>"+data[0]+"</span></li>");
|
||||
var in_text = document.createTextNode(data[1]);
|
||||
$("#chatchannel li:last")[0].appendChild(in_text);
|
||||
document.getElementById("chatchannel").scrollTop = document.getElementById("chatchannel").scrollHeight
|
||||
|
||||
@@ -3,7 +3,7 @@ var id;
|
||||
//var socket;
|
||||
|
||||
$(document).ready(function (){
|
||||
setTimeout(function(){$("#code-input").focus();},500);
|
||||
setTimeout(function(){$("#search").focus();},500);
|
||||
socket = io.connect('//'+window.location.hostname+':3000');
|
||||
id = window.location.pathname.split("/")[2];
|
||||
if(id)
|
||||
|
||||
@@ -172,8 +172,6 @@ function msieversion() {
|
||||
|
||||
function onYouTubeIframeAPIReady() {
|
||||
ytplayer = new YT.Player('player', {
|
||||
height: window.height*0.75,
|
||||
width: window.width*0.6,
|
||||
videoId: video_id,
|
||||
playerVars: { rel:"0", wmode:"transparent", controls: "0" , iv_load_policy: "3", theme:"light", color:"white"},
|
||||
events: {
|
||||
|
||||
Reference in New Issue
Block a user