view www/m/js/countin.js @ 26:ac9641ecf84f

updated rasterize and ss2thumb to cycle offsets of grab for different anchors removed some bad path stuctures
author tzara <rc-web@kiben.net>
date Mon, 16 Jul 2012 16:51:55 +0100
parents 40253bcfce03
children
line wrap: on
line source
/////////////////////////////////////////////////
// countdown to change
var socket = io.connect();

socket.on("countinFromServer", countinClient);
function countinClient(groupID, currentseconds,mm,text,colour,background){
    var groupPage=document.getElementById('group').value
    if (groupID == groupPage) {
	console.log(currentseconds);
	document.getElementById("countinnumber").style.visibility="visible";
	document.getElementById("countinnumber").style.visibility="visible";
	//$("#countin").text(text);
	$("#countinnumber").text(currentseconds);
	$("#countinnumber").css('background-color', background);
	
	document.getElementById("countinnumber").style.color=colour;

	if ( currentseconds == 0) {
	    document.getElementById("countinnumber").style.visibility='hidden';
//	    document.getElementById("countin").style.visibility='hidden';
	}
    }}

/////////////////////////////////////////////////