-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
executable file
·166 lines (144 loc) · 6.99 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<style>
body {
padding-top: 70px;
padding-bottom: 20px;
}
</style>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="bower_components/videogular-themes-default/videogular.css">
<script src="bower_components/modernizr/modernizr.js"></script>
</head>
<body ng-app="camomileApp" ng-controller="CamomileCtrl">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Camomile</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<!-- Login form if not logged in -->
<div ng-hide="user">
<form ng-submit="login()" class="navbar-form navbar-right" role="form">
<div class="form-group">
<input type="text" placeholder="Login" class="form-control" ng-model="credentials.username">
</div>
<div class="form-group">
<input type="password" placeholder="Password" class="form-control" ng-model="credentials.password">
</div>
<button type="submit" class="btn btn-info">Log in</button>
</form>
</div>
<!-- Logout form if logged in -->
<div ng-show="user">
<form ng-submit="logout()" class="navbar-form navbar-right" role="form" >
<div class="dropdown">
<button class="btn btn-success dropdown-toggle" type="button" data-toggle="dropdown">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
{{ user.username }}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li ng-click="logout()" role="presentation"><a data-target="#">Log out</a></li>
</ul>
</div>
</form>
</div>
</div><!--/.navbar-collapse -->
</div>
</nav>
<div class="container">
<div ng-show="user" class="container" ng-controller="BrowseCtrl">
<form class="form-horizontal">
<div class="form-group">
<label for="selectCorpus" class="col-sm-2 control-label">Corpus</label>
<div class="col-sm-10">
<select ng-options="corpus._id as corpus.name for corpus in browse.corpora"
ng-model="browse.corpus"
class="form-control" id="selectCorpus"></select>
</div>
</div>
<div class="form-group">
<label for="selectMedium" class="col-sm-2 control-label">Medium</label>
<div class="col-sm-10">
<select ng-options="medium._id as medium.name for medium in browse.media"
ng-model="browse.medium"
class="form-control" id="selectMedium"></select>
</div>
</div>
<div class="form-group">
<label for="selectLayer" class="col-sm-2 control-label">Layer</label>
<div class="col-sm-10">
<select ng-options="layer._id as layer.name for layer in browse.layers"
ng-model="browse.layer"
class="form-control" id="selectLayer"></select>
</div>
</div>
</form>
<div ng-show="browse.medium" class="videogular-container">
<videogular>
<vg-media vg-src="browse.mediumSrc"></vg-media>
<vg-controls>
<vg-play-pause-button></vg-play-pause-button>
<vg-time-display>{{ currentTime | date:'mm:ss' }}</vg-time-display>
<vg-scrub-bar>
<vg-scrub-bar-current-time></vg-scrub-bar-current-time>
</vg-scrub-bar>
<vg-time-display>{{ timeLeft | date:'mm:ss' }}</vg-time-display>
<vg-volume>
<vg-mute-button></vg-mute-button>
<vg-volume-bar></vg-volume-bar>
</vg-volume>
</vg-controls>
</videogular>
</div>
</div>
<hr>
<footer>
<p>© CNRS 2015</p>
</footer>
</div><!-- /container -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script src="bower_components/videogular/videogular.js"></script>
<script src="bower_components/videogular-controls/vg-controls.js"></script>
<script src="bower_components/autofill-event/src/autofill-event.js"></script>
<script src="js/config.js"></script>
<script src="node_modules/camomile-client/camomile.js"></script>
<script src="js/services/camomile.js"></script>
<script src="js/controllers/camomile.js"></script>
<script src="js/controllers/browse.js"></script>
<script src="js/app.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body>
</html>