-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (39 loc) · 2.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html ng-app="documentApp">
<head>
<title>Bridge</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="theme/css/main.css">
<script src="bower_components/pouchdb/dist/pouchdb.min.js"></script>
<script src="config.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
</head>
<body ng-controller="documentHandler">
<div class="buttons">
<button class="history" ng-click="fetchDocHistory()">History</button>
<button class="delete" ng-click="deleteDocument()">Delete</button>
<button class="save" ng-click="updateDocument()">Save</button>
<button class="keyboard" ng-click="keyboard">Keyboard</button>
</div>
<div id="workspace" ng-click="highLightDoc()"></div>
<pre id="editor"></pre>
<div class="document-list">
<h2>Docs</h2>
<ul>
<li ng-repeat="document in documents | orderBy:'-doc.edited'" ng-click="loadDocument(document.id)" ng-class="{active: document.id==current.doc._id, empty: !document.doc.value}">{{document.doc.value || "Empty document" | limitTo: 20 }}</li>
</ul>
<button class="new" ng-click="newDocument()">+</button>
</div>
<div class="indicator" ng-class="{saved: saved, error: error, working: working}"></div>
<div class="document-stats" ng-show="current.doc.value">
{{wordCount(current.doc.value).readingTime}} min ({{wordCount(current.doc.value).words}} words)
</div>
<input type="text" class="keyboard-enabler" ng-focus="keyboard"/>
<div class="document-history" ng-show="current.history">
<div class="row" ng-repeat="revision in current.history">{{revision.rev}} <button ng-click="loadDocument(current.doc._id, revision.rev)">Load</button></div>
</div>
<script src="bower_components/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="app/main.js"></script>
</body>
</html>