2013-02-16 19:18:14 +01:00
|
|
|
<!DOCTYPE html>
|
2013-10-02 00:16:27 +02:00
|
|
|
<html>
|
2013-02-16 18:49:20 +01:00
|
|
|
<head>
|
2013-10-02 01:27:18 +02:00
|
|
|
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
|
|
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" rel="stylesheet" media="screen">
|
2013-10-02 01:39:24 +02:00
|
|
|
<link href="css/glowingbear.css" rel="stylesheet" media="screen">
|
2013-02-16 19:18:14 +01:00
|
|
|
<script type="text/javascript" src="js/angular.min.js"></script>
|
2013-07-28 05:59:12 +02:00
|
|
|
<script type="text/javascript" src="js/underscore.js"></script>
|
2013-10-05 16:05:16 +02:00
|
|
|
<script type="text/javascript" src="js/localstorage.js"></script>
|
2013-10-05 20:04:39 +02:00
|
|
|
<script type="text/javascript" src="js/weechat-protocol.js"></script>
|
2013-02-16 19:18:14 +01:00
|
|
|
<script type="text/javascript" src="js/websockets.js"></script>
|
2013-10-08 02:42:19 +02:00
|
|
|
<script type="text/javascript" src="js/models.js"></script>
|
2013-02-16 18:49:20 +01:00
|
|
|
</head>
|
2013-10-05 18:40:01 +02:00
|
|
|
<body ng-app="weechat" ng-controller="WeechatCtrl">
|
|
|
|
<div id="wrap">
|
|
|
|
<div>
|
2013-10-05 18:41:48 +02:00
|
|
|
<div ng-hide="connected" class="container">
|
2013-10-05 18:40:01 +02:00
|
|
|
<form class="form-horizontal">
|
|
|
|
<legend>Connection</legend>
|
|
|
|
<div class="alert alert-danger" ng-show="errorMessage">
|
|
|
|
<strong>Oh no!</strong> We cannot connect!
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-05 18:40:01 +02:00
|
|
|
<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>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-05 18:40:01 +02:00
|
|
|
<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>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-05 18:40:01 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="password">Password</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="password" id="password" ng-model="password" placeholder="Password">
|
|
|
|
</div>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-05 18:40:01 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
<button class="btn btn-primary" ng-click="connect()">Connect!</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2013-07-30 15:22:37 +02:00
|
|
|
|
2013-10-05 18:40:01 +02:00
|
|
|
<div ng-show="connected">
|
|
|
|
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers">
|
2013-10-08 03:15:25 +02:00
|
|
|
<a ng-click="setActiveBuffer(key)">{{ content.fullName }}</a>
|
2013-08-03 17:25:38 +02:00
|
|
|
</span>
|
2013-10-05 18:40:01 +02:00
|
|
|
<div ng-repeat="bufferline in activeBuffer.lines">
|
2013-10-06 06:17:13 +02:00
|
|
|
<span class="timestamp color-dark-gray">{{ bufferline.date | date: 'H:mm:ss'}}</span>
|
2013-10-05 18:40:01 +02:00
|
|
|
<span ng-repeat="part in bufferline.content" class="text {{ part.fg }}">
|
|
|
|
{{ part.text }}
|
|
|
|
</span>
|
2013-08-06 23:07:29 +02:00
|
|
|
|
2013-10-05 18:40:01 +02:00
|
|
|
<div ng-repeat="metadata in bufferline.metadata">
|
|
|
|
<div ng-show="metadata.visible">
|
|
|
|
<a ng-click="metadata.visible = false">Hide additional content</a>
|
|
|
|
<div ng-bind-html-unsafe="metadata.content"></div>
|
2013-08-06 23:07:29 +02:00
|
|
|
|
2013-10-05 18:40:01 +02:00
|
|
|
</div>
|
|
|
|
<div ng-hide="metadata.visible">
|
|
|
|
<a ng-click="metadata.visible = true">Show additional content</a>
|
|
|
|
</div>
|
|
|
|
|
2013-08-06 22:39:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-05 18:40:01 +02:00
|
|
|
</div>
|
2013-08-06 22:39:10 +02:00
|
|
|
|
2013-08-03 17:25:38 +02:00
|
|
|
|
2013-10-05 18:40:01 +02:00
|
|
|
</div>
|
|
|
|
<div id="push"></div>
|
|
|
|
</div>
|
|
|
|
<div id="footer" ng-show="connected">
|
|
|
|
<form ng-submit="sendMessage()">
|
|
|
|
<input id="sendMessage" type="text" ng-model="command"></input>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
2013-02-16 18:49:20 +01:00
|
|
|
</html>
|