-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathchat.html
128 lines (116 loc) · 4.41 KB
/
chat.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Game Development Group</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet" type="text.css">
<link href="css/style2.css" rel="stylesheet" media="screen">
<link href="css/chat.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Monda' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Shojumaru' rel='stylesheet' type='text/css'>
</head>
<body>
<header id="header" class="navbar navbar-fixed-top navbar-inverse">
<nav class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user icon-white"></i> <span id="user"></span></a>
<ul id="login-menu" class="dropdown-menu">
</ul>
</li>
</ul>
<ul class="nav">
<li class="active"><a href="#home"><i class="icon-home icon-white"></i></a></li>
<li><a href="#about">About</a></li>
<li><a href="#games">Games</a></li>
<li><a href="#learn">Learn</a></li>
<li><a href="#social">Social</a></li>
</ul>
</div>
</div>
</nav>
</header>
<section class="section">
<div class="container">
<h1>Chat</h1>
<div class="row">
<div id="chat-messages" class="text-large span12"></div>
</div>
<div class="row">
<div class="span10">
<input type="text" id="message-chat" placeholder="Type message here" class="span10">
</div>
<div class="span2">
<button class="btn btn-inverse btn-block" onclick="sendMessage();">Send Message</button>
</div>
</div>
</div>
</section>
<footer id="footer" class="section section-dark">
<div class="container">
<div class="row">
<div class="span3">
<h3>Project</h3>
<a href="https://github.com/HTML5-Games/html5-games.github.io">GitHub Repo</a>
<a href="http://www.codecademy.com/groups/html5-game-development/discussions/51709b04977bc97e65000487">Codecademy</a>
<a href="https://github.com/HTML5-Games/html5-games.github.io">Contributers</a>
</div>
<div class="span3">
<h3>Games</h3>
<a href="#">All Games</a>
<a href="#games">Featured Games</a>
<a href="#">Submit Game</a>
</div>
<div class="span3">
<h3>Learn</h3>
<a href="#learn">2D Game Dev</a>
<a href="#learn">3D Game Dev</a>
<a href="#learn">More Resources</a>
</div>
<div class="span3">
<h3>Social</h3>
<a href="blog.html">Blog</a>
<a href="chat.html">Chat</a>
<a href="http://www.codecademy.com/groups/html5-game-development/invite/9aec4bb0429f38c47944ab6d42fc30d3">Codecademy</a>
<a href="https://github.com/HTML5-Games">GitHub</a>
</div>
</div>
<div class="row tm20">
<div class="span2">
<a class="btn btn-inverse" href="mailto: [email protected]">Contact Us</a>
</div>
<div class="span2 offset8 text-right">
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"></a>
</div>
</div>
</div>
</footer>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="http://www.parsecdn.com/js/parse-1.2.7.min.js"></script>
<script src="js/main.js"></script>
<script>
displayMessages(true);
window.setInterval(displayMessages, 5000);
buildProfile();
isInChat = true; //Keep this here, it is how the enter key works with chat
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41025952-1', 'html5-games.github.io');
ga('send', 'pageview');
</script>
</body>
</html>