Skip to content

Commit

Permalink
HTML5 - New quiz page type (including changes to quiz in xwd - new mo…
Browse files Browse the repository at this point in the history
…vie size optional property and fixed bug with image tooltip type in wizard)

New style in mainStyles.css for disabled buttons

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@630 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
FayCross committed Jan 24, 2013
1 parent 725e000 commit 76afc27
Show file tree
Hide file tree
Showing 5 changed files with 508 additions and 3 deletions.
Expand Up @@ -103,6 +103,12 @@ h3 {
float: right;
}

#x_pageHolder button:disabled {
cursor: default;
opacity: 0.5;
filter: alpha(opacity=50); /* For IE8 and earlier */
}

#x_footerBlock .x_floatLeft, #x_footerBlock .x_floatRight, #x_headerBlock .x_floatLeft {
padding: 3px;
}
Expand Down
Expand Up @@ -22,7 +22,6 @@ var x_timer; // use as reference to any timers in page models - they are cancel
var $x_window, $x_body, $x_head, $x_mainHolder, $x_mobileScroll, $x_headerBlock, $x_pageHolder, $x_pageDiv, $x_footerBlock, $x_footerL, $x_menuBtn, $x_prevBtn, $x_pageNo, $x_nextBtn, $x_background, $x_glossaryHover;

$(document).ready(function() {

$x_mainHolder = $("#x_mainHolder");
$x_mainHolder.css("visibility", "hidden");

Expand Down Expand Up @@ -153,6 +152,8 @@ $(document).ready(function() {
$("body").append("<p>The project data has not loaded.</p>");
}
});

x_setUpScorm();
});

// function gets data from language file
Expand Down Expand Up @@ -1149,4 +1150,43 @@ function x_getSWFRef(swfID) {
flashMovie = document.getElementById(swfID);
}
return flashMovie;
}

// functions get/set score for scorm
function x_getValue(dataElement) {
// ** getValue function is in scorm2004RLO.html / scormRLO.htm **
//return String(getValue(dataElement));
}

function x_setValue(dataElement, value) {
// ** setValue function is in scorm2004RLO.html / scormRLO.htm **
//return String(setValue(dataElement, value));
}

// function builds SCORM objects to mirror the SCORM data model
function x_setUpScorm() {
this.cmi = new Object();
this.cmi.core = new Object();
this.cmi.core.score = new Object();
this.cmi.core.score.raw = new Object();
}

//SCORM function - these set the values of _level0.elementName, AND call LMSSetValue
// ** called from apiwrapper? **
function LMSSetValue(element, value){
//set the variable to store the data... we always retrieve it from here directly
if (element == "cmi.core.lesson_location"){
cmi.core.lesson_location = value;
} else if (element == "cmi.core.lesson_status"){
cmi.core.lesson_status = value;
} else if (element == "cmi.core.score.raw"){
cmi.core.score.raw = value;
} else if (element == "cmi.suspend_data"){
cmi.suspend_data = value;
} else if (element == "cmi.core.exit"){
cmi.core.exit = value;
}

//now call LMSSetValue and synch the values...
fscommand("LMSSetValue", element + "," + value);
}
3 changes: 2 additions & 1 deletion modules/xerte/parent_templates/Nottingham/data.xwd
Expand Up @@ -1143,6 +1143,7 @@
<restartBtnWidth label="Restart Button Width" type="NumericStepper" min="100" max="250" step="10" width="100" defaultValue="100" language="true"/>

<video label="Video" type="media" optional="true"/>
<movieSize label="Video Size" type="textInput" defaultValue="320,240" optional="true"/>
<scorm label="Scorm Tracking" options="Track First Score,Track Last Score" type="combobox" data="Track First Score,Track Last Score" defaultValue="Track First Score" optional="true" width="150"/>
<narrationNavigate label="Navigate on narration" type="CheckBox" defaultValue="false" optional="true"/>
<playNarration label="Auto-play narration" type="CheckBox" defaultValue="false" optional="true"/>
Expand All @@ -1160,7 +1161,7 @@
<prompt label="Prompt" type="TextArea" height="100"/>
<type label="Question Type" options="Single Answer,Multiple Answer" type="ComboBox" data="Single Answer,Multiple Answer" defaultValue="Single Answer" width="120"/>
<image label="Image" type="Media" optional="true"/>
<tip label="Image Tooltip" type="Text Input" optional="true"/>
<tip label="Image Tooltip" type="TextInput" optional="true"/>

<newNodes>
<option><![CDATA[<option text="here is an option" feedback="feedback for this option" correct="false"/>]]></option>
Expand Down

0 comments on commit 76afc27

Please sign in to comment.