Project

General

Profile

root / branches / 4.5-sc50 / model / sources / dkTraining / genScorm / transf / root / tutorialRoot@genExtras.transf @ 3019

1
<?xml version="1.0"?>
2
<sm:compositionXhtmlTransf xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns="http://www.w3.org/1999/xhtml">
3
	<sm:model sc:refUri="/dkTraining/model/root/tutorialRoot.model"/>
4
	<sm:axis code="genExtras"/>
5
	<sm:content format="xhtml">
6
		<sm:callModel>
7
			<sm:root axis="optStats"/>
8
		</sm:callModel>
9
		<sm:WFreeBlock>
10
			<!--<comment xmlns="scenari.eu:comment:1.0" type="thread"><comment creationTime="1584962934749">Commit scorm lors de la fermeture des pages</comment></comment>-->
11
			<script>scOnUnloads[scOnUnloads.length] = {
12
	onUnload: function() {
13
		if(scServices.scorm2k4 &amp;&amp; scServices.scorm2k4.isScorm2k4Active()) {
14
			scServices.scorm2k4.getScorm2k4API().Commit("");
15
		} else if(scServices.scorm12 &amp;&amp; scServices.scorm12.isScorm12Active()) {
16
			scServices.scorm12.getScorm12API().LMSCommit("");
17
		}
18
	}
19
}</script>
20
		</sm:WFreeBlock>
21
	</sm:content>
22
</sm:compositionXhtmlTransf>
(3-3/3)