summaryrefslogtreecommitdiffstats
path: root/pages/chat.php
blob: 5fe5d9e0c2c2b4953014d410de8df8007ee7b1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
htmlHeader(
	array('stats', 'chat'), 'Chat', 
	'Chat for Pathery.com', 
	array('scores', 'dateformat', 'chat')
);
?>

<?php
echo soundManager2();
topbar($headerLinks);

if (!$accepted) {
	echo "<center>Please <a href='javascript:showSignin();'>login</a> to chat!</center>";
}
?>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

<div class='wrapper'>
<h3>Pathery Chat - BETA</h3>

<style>

	#channelContainer, #chatContainer {
		overflow:hidden; 
		overflow-y:auto;
		display:inline-block;
		float:right;
		height:400px;
		
	}
	
	
</style>

<div class='chatContainer2'>
	
	<div id='channelContainer' style='float:right; width:220px; overflow-y:scroll; display:inline-block;'>Loading...</div>
	
	<div id='chatContainer' style='float:right; width:590px; '></div>
	
	<div id='bb' style="clear:both"></div>
	
	<form id='sendChat' onsubmit="return false">
	<? if($accepted) { /*Only show the chat button if we're logged in*/ ?>
		<input type="hidden" name="stuff" value="1724">
		
		<?
		echo "
		<a title='Mute sound?' class='chatMute_$chatMute unselectable' href='javascript:setChatMute()' id='chatMute'/></a>";
		?>
		
		<input class='chatButton' type="button" class="send" id='chatSendBtn' value='Send' onClick="sendChat();">
		<input class='chatInputMessage' type="text" name="message" id="message" value="" maxlength="255" autocomplete="off" >
	<? } ?>
	</form>
</div>



</div>

<?


htmlFooter();
?>