0df3112d8d
Handles the weechat _buffer_line_added event and displays every new line in the main buffer.
50 lines
1.8 KiB
HTML
50 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html ng-app="weechat">
|
|
<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>
|
|
<div ng-controller="WeechatCtrl">
|
|
<div ng-hide="connected">
|
|
<form class="form-horizontal">
|
|
<legend>Connection</legend>
|
|
<div class="control-group">
|
|
<label class="control-label" for="hostport">Hostport</label>
|
|
<div class="controls">
|
|
<input type="text" id="hostport" ng-model="hostport" placeholder="Hostport">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="proto">Proto</label>
|
|
<div class="controls">
|
|
<input type="text" id="proto" ng-model="proto" placeholder="proto">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="password">Password</label>
|
|
<div class="controls">
|
|
<input type="text" id="password" ng-model="password" placeholder="Password">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<div class="controls">
|
|
<button class="btn btn-primary" ng-click="connect()">Connect!</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div ng-show="connected">
|
|
<div ng-repeat="bufferline in buffer">
|
|
{{ bufferline }}
|
|
</div>
|
|
<form ng-submit="sendMessage()">
|
|
<input type="text" ng-model="command"></input>
|
|
<input type="submit" class="btn btn-primary"></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|