-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchat.html
More file actions
47 lines (43 loc) · 1.73 KB
/
chat.html
File metadata and controls
47 lines (43 loc) · 1.73 KB
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
<!DOCTYPE HTML>
<html ng-app="chat" data-framework="angularjs">
<head>
<title>chat</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers/chatController.js"></script>
<script src="js/services/chatStorage.js"></script>
<script src="js/filters/reverseFilter.js"></script>
<script src="js/directives/ngEnter.js"></script>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
</head>
<body>
<div class="container" ng-controller="chatCtrl">
<br>
<div class="row">
<div class="col-lg-3">
<a href="#" class="pull-right" ng-click="changeUserName()"><h4>{{userName}}</h4></a>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="sendMessage()">Send</button>
</span>
<!--<textarea class="form-control" rows="1" ng-model="messageText" autofocus></textarea>-->
<input class="form-control" ng-model="messageText" ng-enter="sendMessage()" type="text" autofocus/>
</div>
<br>
<div class="list-group">
<a class="list-group-item" ng-repeat="message in messages | reverse">
<h4 class="list-group-item-heading">{{message.author}}</h4>
<p class="list-group-item-text">{{message.messageText}}</p>
</a>
</div>
</div>
<div class="col-lg-3"></div>
</div>
</div>
</body>
</html>