-
Notifications
You must be signed in to change notification settings - Fork 4
/
tin-can-can.htm
133 lines (105 loc) · 5.64 KB
/
tin-can-can.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
<!--
=============COPYRIGHT============
Tin Can-Can - A Tin Can API wrapper for Adobe Captivate
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/
Thanks also to Philip Hutchison of pipwerks.com fame for his excellent guides
on "Cleaning up Adobe Captivate�s SCORM Publishing Template", particularly guides 2,3 and 4.
These can be found at:
http://pipwerks.com/2012/01/12/cleaning-up-adobe-captivate%E2%80%99s-scorm-publishing-template-part-2-html/
They are licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
=============DEVELOPMENT STATUS============
This software is currently in development and is NOT intended to be used
in a live situation. It doesn't even have a version number yet.
=============TO DO LIST============
There's lots to do not mentioned in this list, but I'm adding any reminders here.
-finish interactions (correct responses, statement context and question descriptions)
-objectives?
-move javascript at bottom of html file into js file, perhaps using document.ready
-verb review: started and stopped (may need to wait for public lrs update)
-tidy up errors in log
-Have all "set" calls put the data in the state.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8" />
<title>Insert Title here</title>
<style>
body {
background: #d5d4d1;
text-align: center;
}
</style>
<!-- swfobject -->
<script src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<!-- jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.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>
<!-- Base64 -->
<script src="http://tin-can-can.googlecode.com/files/base64.js"></script>
<!-- Right Click Support from Pipwerks -->
<script src="http://tin-can-can.googlecode.com/files/SWFRightClick.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>
<!-- Wrapper -->
<script src="TinCanCan.js"></script>
<!-- captivate sepcific functions -->
<script src="TinCaptivate.js"></script>
<script>
/*============EDIT THESE==============*/
var strURLFile = "testcpt.swf", // URL of the swf file to be used. (Normally just a filename in same directory).
strFlashWidth = "800", //Width of swf
strFlashHeight = "600"; //Height of swf
/*==========END EDIT THESE===========*/
</script>
</head>
<body >
<div id="CaptivateContent"> </div>
<noscript>
This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course.
</noscript>
<script>
swfobject.embedSWF(strURLFile + strURLParams, "CaptivateContent", strFlashWidth, strFlashHeight, "10", false, flashvars, params, attributes, callbackFn);
//Note: window.onunload and window.onbeforeunload do not work in all browsers.
//They are included only as a backup if the user closes the window etc.
//The Captivate Developer needs to provide an exit button or something that calls the CaptivateCompleted function.
//If this function is not called, inprogress will never be set to true.
window.onbeforeunload = endSession;
window.onunload = endSession;
</script>
</body>
</html>