glowing-bear/index.html

83 lines
3.4 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-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>
<script type="text/javascript" src="js/localstorage.js"></script>
<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-02-16 18:49:20 +01:00
</head>
<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">
<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>
<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>
<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>
<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>
<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
<div ng-show="connected">
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers">
<a ng-click="setActiveBuffer(key)">{{ content.full_name }}</a>
</span>
<div ng-repeat="bufferline in activeBuffer.lines">
<span class="timestamp color-dark-gray">{{ bufferline.timestamp | date: 'h:mm:ss'}}</span>
<span ng-repeat="part in bufferline.content" class="text {{ part.fg }}">
{{ 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>
</div>
</div>
</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>