Scenario 4
function startContent() { // code to start an internal timer startTimer(); var timeLimitAction = GetValue( "cmi.time__action" ); // currentElapsedTime is a variable // set during the startTimer() function if ( currentElapsedTime > 50 ) { if ( timeLimitAction == "" ) { // exit the SCO } } }
function startContent() { // code to start an internal timer startTimer(); var timeLimitAction = GetValue( "cmi.time_limit_action" ); // currentElapsedTime is a variable // set during the startTimer() function if ( currentElapsedTime > 50 ) { if ( timeLimitAction == "exit,no message" ) { // exit the SCO } } }