|
|
@ -10,8 +10,9 @@ |
|
|
|
<script type="text/javascript" src="js/protocol.js"></script> |
|
|
|
<script type="text/javascript" src="js/protocol.js"></script> |
|
|
|
<script type="text/javascript" src="js/websockets.js"></script> |
|
|
|
<script type="text/javascript" src="js/websockets.js"></script> |
|
|
|
</head> |
|
|
|
</head> |
|
|
|
<body ng-app="weechat"> |
|
|
|
<body ng-app="weechat" ng-controller="WeechatCtrl"> |
|
|
|
<div ng-controller="WeechatCtrl"> |
|
|
|
<div id="wrap"> |
|
|
|
|
|
|
|
<div> |
|
|
|
<div ng-hide="connected"> |
|
|
|
<div ng-hide="connected"> |
|
|
|
<form class="form-horizontal"> |
|
|
|
<form class="form-horizontal"> |
|
|
|
<legend>Connection</legend> |
|
|
|
<legend>Connection</legend> |
|
|
@ -43,8 +44,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div ng-show="connected"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div ng-show="connected"> |
|
|
|
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers"> |
|
|
|
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers"> |
|
|
|
<a ng-click="setActiveBuffer(key)">{{ content.full_name }}</a> |
|
|
|
<a ng-click="setActiveBuffer(key)">{{ content.full_name }}</a> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -65,15 +66,17 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div id="push"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div id="footer" ng-show="connected"> |
|
|
|
<form ng-submit="sendMessage()"> |
|
|
|
<form ng-submit="sendMessage()"> |
|
|
|
<input type="text" ng-model="command"></input> |
|
|
|
<input id="sendMessage" type="text" ng-model="command"></input> |
|
|
|
<input type="submit" class="btn btn-primary"></index> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
</div> |
|
|
|
|
|
|
|
</body> |
|
|
|
|
|
|
|
</html> |
|
|
|
</html> |
|
|
|