This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file Sample instance of a host system's configuration file. For testing only. | |
*/ | |
/** | |
* @namespace | |
* @property {String} name - Target XML element of this configuration | |
* @property {String} description - User-friendly description of this configuration | |
* @property {Array} subelements - Item Elements allowed to be created/managed | |
* @property {String} subelements.name - Target XML element of this element |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var itemXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\ | |
<!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->\ | |
<assessmentItem xmlns=\"http://www.imsglobal.org/xsd/imsqti_v2p1\"\ | |
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\ | |
xsi:schemaLocation=\"http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd\"\ | |
identifier=\"choice\" title=\"Unattended Luggage\" adaptive=\"false\" timeDependent=\"false\">\ | |
<responseDeclaration identifier=\"RESPONSE\" cardinality=\"single\" baseType=\"identifier\">\ | |
<correctResponse>\ | |
<value>ChoiceA</value>\ | |
</correctResponse>\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations --> | |
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd" | |
identifier="choice" title="Unattended Luggage" adaptive="false" timeDependent="false"> | |
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier"> | |
<correctResponse> | |
<value>ChoiceA</value> | |
</correctResponse> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tbs { | |
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
} | |
.tbs article, | |
.tbs aside, | |
.tbs details, | |
.tbs figcaption, | |
.tbs figure, | |
.tbs footer, | |
.tbs header, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
itemEditor.on("save", function () { | |
// show item value | |
var manifest = itemEditor.getManifest(); | |
alert(manifest); | |
var translation = itemEditor.getTranslation(); | |
alert(translation); | |
}); |
OlderNewer