basic support for weechat protocol based on weechat.js

This commit is contained in:
David Cormier 2013-02-24 14:44:03 -05:00
commit f5869438b7
3 changed files with 136 additions and 8 deletions

View file

@ -3,6 +3,7 @@
<head>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/protocol.js"></script>
<script type="text/javascript" src="js/websockets.js"></script>
</head>
<body>
@ -36,12 +37,13 @@
</form>
</div>
<div ng-show="connected">
{{ commands }}
<div ng-repeat="command in commands">
{{ command }}
</div>
<form ng-submit="sendMessage()">
<input type="text" ng-model="command"></input>
<button class="btn btn-primary" ng-click="sendMessage()">Send</button>
<input type="submit" class="btn btn-primary"></button>
</form>
</div>
</div>
</body>