-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (107 loc) · 5.58 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en" ng-app="liveDocuApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="favicon.png">
<title>Piecemaker 2 live doc</title>
<!-- Bootstrap core CSS -->
<link href="bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="bower_components/html5shiv/dist/html5shiv.min.js"></script>
<script src="bower_components/respond/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<header id="header">
<div class="container">
<div class="row">
<div class="col-md-12">
<h3>Live documentation</h3>
<p>Just start typing … adding two newlines will create a new annotation</p>
</div>
</div>
</div>
</header>
<div class="container document-container">
<div class="row">
<div class="user-container" ng-controller="SigninController as signinForm">
<form class="form-signin" ng-submit="signinForm.login(signinForm.user)" ng-if="!$root.isLoggedIn">
<div class="form-group col-md-5 first">
<label for="inputEmail" class="sr-only">Email address</label>
<input type="email" id="inputEmail" class="form-control" placeholder="Email address"
ng-model="signinForm.user.email" required="" autofocus="">
</div>
<div class="form-group col-md-5">
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" class="form-control" placeholder="Password"
ng-model="signinForm.user.password" required="">
</div>
<div class="form-group col-md-2 last">
<button class="btn btn-block" type="submit">Sign in</button>
</div>
</form>
</div>
<div class="document-header" ng-if="$root.currentUser">
<div class="col user col-md-4 first">{{$root.currentUser.name}}</div>
<div class="col groups col-md-4 dropdown" ng-controller="GroupController as groupSelect">
<a class="dropdown-toggle" data-toggle="dropdown"
title="The Piecemaker 2 groups that you own or belong to">
{{$root.currentGroup.title || "Select a Group"}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li ng-repeat="group in groupSelect.groups"><a href="#" ng-click="groupSelect.select(group.id)">{{group.title}}</a>
</li>
</ul>
</div>
<div class="col context col-md-4 dropdown last">
<span ng-if="$root.currentGroup" ng-controller="ContextController as contextSelect">
<a class="dropdown-toggle" data-toggle="dropdown"
title="A video or document that these annotations will belong to">
{{$root.currentContext.fields.title || "Select a Context"}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li ng-repeat="context in contextSelect.events"><a href="#"
ng-click="contextSelect.select(context.id)">{{context.fields.title}}</a>
</li>
</ul>
</span>
<span class="placeholder" ng-if="!$root.currentGroup" title="Select a group first">
...
</span>
</div>
</div>
</div>
<div class="text-block-content" ng-controller="TextAreaController as textAreaController"
ng-if="$root.isLoggedIn && $root.currentGroup">
<div class="text-block {{$first?'first':''}}" ng-repeat="textBlock in textAreaController.blocks">
<div class="row">
<div class="col-md-2 time-date {{$first?'first':''}} {{$last?'last':''}}"><span>{{textBlock.time | date : 'yyyy-MM-dd hh:mm:ss'}}</span>
</div>
<div id="text-block-{{$index}}"
class="col-md-10 text-block-content {{$first?'first':''}} {{$last?'last':''}}"
contenteditable ng-model="textBlock.html" ng-change="textAreaController.change($index)"></div>
</div>
</div>
</div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/piecemaker-api-client/releases/piecemaker-api-client-current.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>
<script src="app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/directives.js"></script>
<script src="js/providers.js"></script>
</body>
</html>