Scenario 2

The project specifications allow for the learner to have a pop-up appear when returning to the content. This welcome back message is shown below. By using data model element, Entry value resume, the message will appear.

Welcome to the Human Resources Training!

New Employee Orientation

Please continue with the training.

Complete the following code:

var entryState = GetValue ( "cmi.entry" );

if ( entryState == "ab-initio" )
{
alert( "Welcome to the Human Resources Training
New Employee Orientation!" );
}
else if ( entryState == "" )
{
alert( "Welcome to the Human Resources Training
New Employee Orientation!
Please continue with the training." );
}

Click after you complete this exercise.