-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.htm
173 lines (145 loc) · 5.95 KB
/
index.htm
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
<!--
=============COPYRIGHT============
Prototype for Tin Can API
Copyright (C) 2012 Andrew Downes
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
<http://www.gnu.org/licenses/>.
=============CREDITS============
Thanks to Rustici Software for provision of TCDriver.js which powers
the calls to the Tin Can API and for developing the Tin Can API
TCDriver.js is reproduced here by permission under the understanding that
it is still a prototype. It comes from the prototype package found at:
http://scorm.com/project-tin-can-phase-3-prototyping-tin-can-content-outside-of-the-lms/
=============DEVELOPMENT STATUS============
This software is currently in development and is NOT intended to be used
in a live situation.
-->
<!doctype html>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<html>
<head>
<meta name="viewport" content="width=600, initial-scale=1">
<title>Launcher</title>
<link rel="stylesheet" href="tinstatement.css" type="text/css" />
<!-- jquery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>-->
<script src="jquery-1.7.1.min.js"></script>
<!-- Base64
<script src="http://tin-can-can.googlecode.com/files/base64.js"></script>-->
<script src="base64.js"></script>
<!-- generic functions used for capturing all or part of a statement with a web form (relies on certain HTML) -->
<script src="TinFormFunctions.js"></script>
<!-- main js file for this wrapper -->
<script src="TinLauncher.js"></script>
<!-- Rustici's Tin Can functions - call these to access the Tin Can API-->
<script type="text/javascript" src="tincanjs/TinCan.js"></script>
<script type="text/javascript" src="tincanjs/Utils.js"></script>
<script type="text/javascript" src="tincanjs/LRS.js"></script>
<script type="text/javascript" src="tincanjs/AgentAccount.js"></script>
<script type="text/javascript" src="tincanjs/Agent.js"></script>
<script type="text/javascript" src="tincanjs/Group.js"></script>
<script type="text/javascript" src="tincanjs/Verb.js"></script>
<script type="text/javascript" src="tincanjs/Result.js"></script>
<script type="text/javascript" src="tincanjs/Score.js"></script>
<script type="text/javascript" src="tincanjs/Context.js"></script>
<script type="text/javascript" src="tincanjs/ContextActivities.js"></script>
<script type="text/javascript" src="tincanjs/Activity.js"></script>
<script type="text/javascript" src="tincanjs/InteractionComponent.js"></script>
<script type="text/javascript" src="tincanjs/ActivityDefinition.js"></script>
<script type="text/javascript" src="tincanjs/ActivityProfile.js"></script>
<script type="text/javascript" src="tincanjs/StatementRef.js"></script>
<script type="text/javascript" src="tincanjs/SubStatement.js"></script>
<script type="text/javascript" src="tincanjs/Statement.js"></script>
<script type="text/javascript" src="tincanjs/StatementsResult.js"></script>
<script type="text/javascript" src="tincanjs/State.js"></script>
</head>
<body >
<h1>Launch Tool</h1>
<p>
Largly for testing and demo pruposes. In a production system, replace this form with some automated process based on the user's LMS login etc.
</p>
<!-- <input type="button" value="Build URL" name="btnSave" id="templateURL" class="button"/>
Navigate to a bookmarkable URL that autofills the above by querystring - only visible when Bookmark is not -->
<!-- <input type="button" value="Bookmark" name="btnBookmark" id="templateURL" class="button"/>
Bookmarks the saved page - only visible if page contains autofuilled fields. Hide when any field is changed. -->
<div class="section" id="lrs">
<div class="background_div sevenEM">
Dear LRS,
</div>
<h2>The LRS</h2>
<p>
Your LRS should provide the following information:
</p>
</div>
<div class="section" id="actor">
<div class="background_div">
I
</div>
<h2>Actor</h2>
<p>
Who is the statement about?
</p>
<table>
<tr>
<td class="label">objectType:</td>
<td>
<select name="actorObjectType" id="actorObjectType" class="required objectType">
<option value="Agent">Agent</option>
<option value="Group">Group</option>
</select></td>
</tr>
</table>
<div id="actorAgent">
<h3>Agent</h3>
</div>
<input type="button" value="+Agent" name="actorAgentAdd" id="actorAgentAdd" class="button displayNone agentAdd" />
<!--Add a blank actor at the bottom-->
<input type="button" value="-Agent" name="actorAgentRemove" id="actorAgentRemove" class="button displayNone agentRemove"/>
<!--Removes the first blank field (not neccessarily the bottom field)-->
</div>
<div class="section" id="object">
<div class="background_div">
This
</div>
<h2>Object</h2>
<p>
What do you want to launch?
</p>
<table>
<tr>
<td class="label">launch url:</td>
<td>
<input type="text" name="launchURL" id="launchURL" class="required launchURL" />
</td>
</tr>
</table>
</div>
<div class="section" id="object">
<div class="background_div">
Extras
</div>
<h2>Now</h2>
<p>
What's the registration Id of the attempt? (Leave blank to preserve bookmarking).
</p>
<table>
<tr>
<td class="label">registration:</td>
<td>
<input type="text" name="registration" id="registration" class="registration" />
</td>
</tr>
</table>
</div>
<input type="button" value="Launch!" name="sendStatement" id="sendStatement" class="button"/>
<noscript>
This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course.
</noscript>
</body>
</html>