glowingbear-mainbox/index.html

78 lines
2.9 KiB
HTML
Raw Normal View History

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-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>
<script type="text/javascript" src="js/protocol.js"></script>
2013-02-16 19:18:14 +01:00
<script type="text/javascript" src="js/websockets.js"></script>
2013-02-16 18:49:20 +01:00
</head>
2013-10-02 00:16:27 +02:00
<body ng-app="weechat">
2013-02-16 19:18:14 +01:00
<div ng-controller="WeechatCtrl">
2013-02-18 00:49:42 +01:00
<div ng-hide="connected">
2013-02-16 19:18:14 +01:00
<form class="form-horizontal">
<legend>Connection</legend>
2013-10-03 01:55:30 +02:00
<div class="alert alert-danger" ng-show="errorMessage">
<strong>Oh no!</strong> We cannot connect!
</div>
2013-02-16 19:18:14 +01: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>
</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">
2013-09-19 22:22:03 +02:00
<input type="password" id="password" ng-model="password" placeholder="Password">
2013-02-16 19:18:14 +01:00
</div>
</div>
<div class="control-group">
<div class="controls">
2013-02-18 00:49:42 +01:00
<button class="btn btn-primary" ng-click="connect()">Connect!</button>
2013-02-16 19:18:14 +01:00
</div>
</div>
</form>
</div>
2013-02-18 00:49:42 +01:00
<div ng-show="connected">
2013-07-30 15:22:37 +02:00
2013-08-06 17:06:42 +02:00
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers">
2013-07-30 15:22:37 +02:00
<a ng-click="setActiveBuffer(key)">{{ content.full_name }}</a>
2013-08-06 17:06:42 +02:00
</span>
2013-07-30 15:22:37 +02:00
<div ng-repeat="bufferline in activeBuffer.lines">
<span ng-repeat="part in bufferline.message" class="text">
{{ part.text }}
</span>
<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>
</div>
<div ng-hide="metadata.visible">
<a ng-click="metadata.visible = true">Show additional content</a>
</div>
</div>
2013-02-18 00:49:42 +01:00
</div>
<form ng-submit="sendMessage()">
2013-02-18 00:49:42 +01:00
<input type="text" ng-model="command"></input>
<input type="submit" class="btn btn-primary"></button>
</form>
2013-02-16 19:18:14 +01:00
</div>
</div>
2013-02-16 18:49:20 +01:00
</body>
</html>