This repository has been archived by the owner on Jan 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.html
275 lines (217 loc) · 12 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<meta name="description" content="xAPI Statement Viewer for a Learning Record Store (LRS)">
<meta name="author" content="ADL">
<link rel="icon" href="favicon.ico">
<title>xAPI Statement Viewer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.datatables.net/plug-ins/f2c75b7247b/integration/bootstrap/3/dataTables.bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" type="text/css" href="css/prettify.min.css" />
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<script data-main="js/app" src="js/lib/store+json2.min.js"></script>
<script data-main="js/app" src="js/require.js"></script>
</head>
<body>
<section class="container">
<div class="page-header">
<h1 class="text-primary"><i class="glyphicon glyphicon-list-alt"></i> xAPI Statement Viewer</h1>
</div>
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Statement List <span class="pull-right"><a class="btn btn-primary btn-xs" href="#" role="button" id="get-statements-with-search">Get Statements <i class="glyphicon glyphicon-refresh"></i></a></span></h3></div>
<div class="panel-body">
<div class="panel panel-info">
<div class="panel-heading collapser">
<h4 class="panel-title"><a data-toggle="collapse" data-target="#query-options" href="#query-options" class="collapsed">Query Options</a></h4>
</div>
<div id="query-options" class="panel-collapse collapse">
<div class="panel-body">
<div class="row">
<div class="form-group col-md-6">
<label for="search-predefined-verb">Predefined Verb</label>
<select class="form-control" name="search-predefined-verb" id="search-predefined-verb">
<option></option>
</select>
</div>
<div class="form-group col-md-6">
<label for="search-verb-sort">Verb Sort</label>
<select class="form-control" aria-describedby="Verb Sort" id="search-verb-sort">
<option value="">Descending</option>
<option value="true">Ascending</option>
</select>
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label for="search-user-verb-id">Verb ID</label>
<input type="text" class="form-control" value="" aria-describedby="Verb ID" placeholder="http://adlnet.gov/verbs/answered" id="search-user-verb-id" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-9">
<label for="search-actor">Agent</label>
<input type="text" class="form-control" value="" aria-describedby="Agent" placeholder="{'mbox':'mailto:[email protected]'}" id="search-actor" />
</div>
<div class="form-group col-md-3">
<label for="search-related-agents">Related Agents</label>
<select class="form-control" aria-describedby="Related Agents" id="search-related-agents">
<option></option>
<option>false</option>
<option>true</option>
</select>
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-9">
<label for="search-activity-id">Activity ID</label>
<input type="text" class="form-control" value="" aria-describedby="Activity ID" placeholder="http://adlnet.gov/activities/question" id="search-activity-id" />
</div>
<div class="form-group col-md-3">
<label for="search-related-activities">Related Activities</label>
<select class="form-control" aria-describedby="Related Activities" id="search-related-activities">
<option></option>
<option>false</option>
<option>true</option>
</select>
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label for="search-registration-id">Registration ID</label>
<input type="text" class="form-control" value="" aria-describedby="Registration ID" placeholder="51a6f860-1997-11e3-8ffd-0800200c9a66" id="search-registration-id" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-6">
<label class="control-label" for="search-statement-id">Statement ID</label>
<input type="text" class="form-control" value="" aria-describedby="Activity ID" placeholder="ef8a3c05-7c88-4d46-a821-c6f2f061ef23" id="search-statement-id" pattern="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" />
</div>
<div class="form-group col-md-6">
<label class="control-label" for="search-voided-statement-id">Voided Statement ID</label>
<input type="text" class="form-control" value="" aria-describedby="Voided Activity ID" placeholder="00d9f122-e9cd-4ea3-b180-9daa49c8a7e5" id="search-voided-statement-id" pattern="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-5">
<label for="search-statements-since-date">Since Date</label>
<div class="input-group date" id="search-statements-since-date">
<input type="text" class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="form-group col-md-5">
<label for="search-statements-until-date">Until Date</label>
<div class="input-group date" id="search-statements-until-date">
<input type="text" class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="form-group col-md-2">
<label for="search-limit">Limit</label>
<input type="text" class="form-control" value="" aria-describedby="Limit" placeholder="25" id="search-limit" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label for="xapi-query">xAPI Query</label>
<input type="text" class="form-control" value="" aria-describedby="xAPI Query" id="xapi-query" readonly />
</div>
</div><!-- .row -->
<p class="pull-right">
<a class="btn btn-default" href="#" role="button" id="reset-search">Clear Form <i class="glyphicon glyphicon-remove-circle"></i></a>
</p>
</div><!-- .panel-body -->
</div><!-- #query-options -->
</div><!-- .panel -->
<table id="statement-list" class="table table-striped table-bordered dt-responsive" cellspacing="0">
<thead>
<tr>
<th>Timestamp</th>
<th>Actor Name</th>
<th>Verb</th>
<th>Object Name</th>
<th>Object Type</th>
<th>Authority Name</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>Timestamp</th>
<th>Actor Name</th>
<th>Verb</th>
<th>Object Name</th>
<th>Object Type</th>
<th>Authority Name</th>
<th></th>
</tr>
</tfoot>
</table>
<div class="pull-right">
<a class="btn btn-success btn-sm" href="#" role="button" id="more">Get More <i class="glyphicon glyphicon-cloud-download"></i></a>
</div>
</div><!-- .panel-body -->
</div><!-- .panel -->
<div class="panel panel-default">
<div class="panel-heading collapser">
<h4 class="panel-title"><a data-toggle="collapse" data-target="#auth" href="#auth" class="collapsed">LRS Basic Auth Setup</a></h4>
</div>
<div id="auth" class="panel-collapse collapse">
<div class="panel-body">
<div class="row">
<form id="endpoint-values">
<div class="form-group col-md-4">
<label class="control-label" for="endpoint">Endpoint</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-globe"></i></span>
<input type="url" class="form-control" value="https://lrs.adlnet.gov/xapi/" aria-describedby="LRS Endpoint" id="endpoint" required />
</div>
</div>
<div class="form-group col-md-4">
<label class="control-label" for="username">Username</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" class="form-control" value="xapi-tools" aria-describedby="Username" id="username" required />
</div>
</div>
<div class="form-group col-md-4">
<label class="control-label" for="password">Password</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" value="xapi-tools" aria-describedby="Password" id="password" required />
</div>
</div>
<div class="col-md-12">
<p class="pull-right">
<a class="btn btn-default" href="#" role="button" id="reset-auth">Reset to Defaults <i class="glyphicon glyphicon-remove-circle"></i></a>
<a class="btn btn-primary" href="#" role="button" id="save-auth">Save Auth <i class="glyphicon glyphicon-save"></i></a>
</p>
</div>
</form><!-- #endpoint-values -->
</div><!-- .row -->
</div><!-- .panel-body -->
</div><!-- .panel-collapse -->
</div><!-- .panel -->
<h3 class="text-info">About</h3>
<div class="alert alert-info">
<p>This tool retrieves and displays statements from an LRS. xAPI Statement Viewer is free and open-source, check it out <a href="https://github.com/adlnet/xapi-statement-viewer" target="_blank">on github</a>.</p>
<p>Experiment with creating statements like these with <a href="http://adlnet.github.io/xapi-lab" target="_blank">xAPI Lab</a></p>
<p><span class="label label-info">Tip: Open your browser's developer tools (F12) to see more info in the console.</span></p>
</div>
<nav>
<ul class="pager">
<li><iframe src="https://ghbtns.com/github-btn.html?user=adlnet&repo=xapi-statement-viewer&type=fork&count=true" frameborder="0" scrolling="0" width="90px" height="20px"></iframe></li>
<li><iframe src="https://ghbtns.com/github-btn.html?user=adlnet&repo=xapi-statement-viewer&type=star&count=true" frameborder="0" scrolling="0" width="90px" height="20px"></iframe></li>
</ul>
</nav>
</section>
</body>
</html>