-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 1.35 KB
/
index.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
<!doctype html>
<html ng-app="CareZoneChat" ng-controller="CareZoneChatController">
<head>
<title>{{pageTitle}}</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
.channels { background:#555; padding:10px; width:100%; fixed: left; }
input { width: 100%; height: 50px; border: 1px solid #999999; padding: 5px; font-size:24px; }
</style>
</head>
<body style="font-size:200%;">
<div class="channels">
username: <input ng-model="username" type="text" style="width:100%">
</div>
<ul id="messages">
<li ng-repeat="msg in messages">
{{msg.username}}: {{msg.message}}
</li>
<li ng-repeat="user in typingUsers">
{{user}} is typing
</li>
</ul>
<form ng-submit="sendMessage()" ng-show="username">
<input ng-model="message" />
<input type="submit" value="send"/>
</form>
<div ng-hide="username" style="font-weight:bold;">
<p>
Hello! welcome to the conversation! please enter a username, and you can
</p>
<p>
start adding to this great stupendous conversation!
</p>
</div>
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script type="text/javascript" src="/client.js"></script>
</body>
</html>