Forum Replies Created

Viewing 15 posts - 16 through 30 (of 246 total)
  • Author
    Posts
  • #303688 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    A test will usually set the Scorm variables automatically but only if it’s scored, i.e. graded. Open the “Results” tab of your tests and make sure “Grade the test” is checked. You’ll have to define a “Lowest passing score”. Lectora will then set “AICC_Score” to the tests score and set “AICC_Lesson_Status” to “completed” if the test was passed.

    If that’s not working or if you don’t want the test to be scored, i.e. to be a prerequisite for completing the AU you can use actions to define the score and the completion status yourself. A very basic way to do that, would be to add two actions to the last page of the AU:

    On: Show
    Action: Modify variableTarget: AICC_Lesson_Status
    Value: completed (the value your LMS requires to mark the AU as “done”)

    On: Show
    Action: Modify variable
    Target: AICC_Score
    Value: 100

    When a user reaches this page the AU will be completed with a score of 100 (%).

    Tim

    This post has received 2 votes up.
    #367789 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    The code from the blog article should work (as long as you’ve deactivated Seamless Play). If you copied the code directly from the blog to Lectora, you should be aware that you have to replace all the fancy quotes (which aren’t quotes) with real quotes:

    $("input").click(check_and_limit);
    
    function check_and_limit() {
    if ($("input:checked").length == 3) {
    $("input:not(:checked)").attr("disabled", true)
    } else {
    $("input").attr("disabled", false)
    }
    }
    This post has received 2 votes up.
    #417394 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    I don’t know Workday, but it’s rather a Scorm thing that only one score is accepted: the score for the whole module. In Lectora this is AICC_Score. By default this “overall score” is made by calculating the average of all test scores in the course. But you can modify this logic.

    Make a copy of your test chapter and unselected “Include test score in overall score” on the Results tab of the test properties. Through this you’ll still have the score for the pretest but it won’t be calculated into the score for the course.

    This post has received 2 votes up.
    #323965 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    Hi,

    there are two ways I can think of:

    1. You can use a Progress Bar and store the progress in a variable between pages. Only you can’t use a “Timer” progress bar it’s got to be “Custom” and use an “On: Timed Interval” to increment / decrement the progress bar. I’ve attached an example of this solution.

    2. You can put all your pages into a Test chapter. A test may contain anything, no need for questions, and you can time a test and use the normal test settings to define what happens when the time is over. Only I don’t think you can use a Progress Bar to display the time.

    Tim

    This post has received 2 votes up.
    Attachments:
    1. ProgressBar.zip
    #324176 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    I can replicate the issue. The “Mute media” action doesn’t work if the audio is on title level. There seems to be a difference in the two Mute actions.

    Code of the Mute action if the audio is on page level:

    function action96(fn){
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);
    
    if(fn && typeof(fn) == 'string' ) eval(fn);
    else if(fn && typeof(fn) == 'function' ) fn();
    }

    Code of the action if the audio is on title level:

    function action96(fn){
    VarTriMuteAllFLV.set('1');
    
    if(fn && typeof(fn) == 'string' ) eval(fn);
    else if(fn && typeof(fn) == 'function' ) fn();
    }

    … the “updateFLVPlayer()” part is missing.

    If i run
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);

    in a “Run javascript” action it’s muting the audio on title level as well.
    Tim

    This post has received 2 votes up.
    • This reply was modified 3 years, 6 months ago by Profile photo of Tim K Tim K.
    #341925 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    It can be done with Darrels code.

    This post has received 2 votes up.
    #421777 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    Hi Lydia,

    it has been more of a challenge than I thought (thanks for that) and I couldn’t hold my promise to only format the text 😉

     

    This post has received 2 votes up.
    Attachments:
    1. Mod2_4.zip
    #309639 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    Whenever you have different styles on text, Lectora will create a separate span with a different class. As Math said if you have one word in bold or underlined or different color you’ll get:

    <p><span class="text123Font1">Text Text Text</span><span class="text123Font2">Bold expression</span><span class="text123Font1">Text Text Text</span></p>

    If you just target “.text123Font1” then “.text123Font2” won’t get the padding but each of the two “Font1” spans will. You can target the <p> to style the whole paragraph:

    #text123 p{

    padding-right:20px;

    }

    Tim

    This post has received 2 votes up.
    • This reply was modified 3 years, 10 months ago by Profile photo of Tim K Tim K.
    • This reply was modified 3 years, 10 months ago by Profile photo of Tim K Tim K.
    #321176 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    Hi,

    you can add an action to the drag item:

    On: Click
    Action: Modify variable
    Target: Your_variable
    Value: Your_value
    Delay: 0.5 sec

    The action is run on release of the mouse button. The delay is needed to ensure that the dragitem is in place on the dropzone, it make take a short while until the item is “snapped” to the dropzone, if the user drops it near the edge of the zone. The delay should be longer if your dropzone is bigger, it may be shorter for smaller dropzones or if you have “Snap Drag Items to Center of Drop Zones” unchecked.

    Add a condition to ensure the user hasn’t dropped the item outside the dropzone or just clicks on an item at its starting position:

    Only if “Question_0001” (your question variable) “Does not contain” “1-(na)” for the first drag item “2-(na)” for the second, etc. Before the condition can be true, the drag item must be in place on the drop zone, so again: the delay is important.

    Tim

    This post has received 2 votes up.
    #357305 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    It should work if you don’t target the input field but the input fields variable. Run javascript on page level (On: Show) with two input fields. You may have to adjust the variable names in the script:

    var newDate1 = new Date();
    var newDate2 = new Date();
    
    newDate1.setDate(newDate1.getDate() - 30);
    newDate2.setDate(newDate2.getDate());
    
    VarEntry_0001.set((newDate1.getMonth() + 1) + '/' + newDate1.getDate() + '/' + newDate1.getFullYear());
    VarEntry_0002.set((newDate2.getMonth() + 1) + '/' + newDate2.getDate() + '/' + newDate2.getFullYear());
    This post has received 2 votes up.
    #430579 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    When you click and add “_10” the variable would also contain “_1”. In most cases like this it’s easier to not use numbers. Just add “a” for the first and “j” for the tenth to have unique values for each button.

    This post has received 2 votes up.
    #324572 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    That code should work correctly, it only contains a combination of issues coming from different versions of forum software used in the community 😉

    The correct code is:

    var username = VarAICC_Student_Name.getValue().split(",");
    Varlastname.set(username[0]);
    Varfirstname.set(username[1]);

    Tim

    This post has received 2 votes up.
    #309755 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    Maybe my use of the term variable was imprecise in this context. I’ve created a course with a simple commenting feature. Comments a added to a variable that’s put into a textfield to be printed:

    https://community.trivantis.com/shared-content/breaks-in-variables/

    Tim

    P.S. I should have added conditions to all actions on the “Save” button:

    Only if “Entry_0001” is not empty

    and to the actions on the “Print” button

    Only if “notes” is not empty.

    This post has received 2 votes up.
    • This reply was modified 3 years, 10 months ago by Profile photo of Tim K Tim K.
    #357401 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    Hi Sal,

    welcome to the community.

    Using events is a good way to run actions synched with the audio, although for your purpose I’d advise to use another way (only with regard to the Next button).

    To disable the next button when the page is loaded, add an action to the page:

    On: Show
    Action: Set state
    Target: Next
    State: Disable

    To enable the button you can add an action to the audio object:

    On: Done playing
    Action: Set state
    Target: Next
    State: Enable

    Now you need something to remember whether the audio has been completed before: a variable.

    Add a second action to the audio object:

    On: Done playing
    Action: Modify variable

    Target: New variable… (Give the variable a name e.g. “audio_done”, initial value “0”) (use only the text no quotes) Click OK and the target field will be updated to contain the newly created variable.

    Target: audio_done
    Type: Set equal to
    Value: 1

    By using the variable you’ll know whether the audio has been completed, as audio_done will be 1 if the audio has been “Done playing”. It will be 0 if not. Variable values are saved throughout the session, so it will still be 1 if the user returns to the page.

    Go back to the action on page level that disables the next button. Click on “Always” in the “Conditions” group to open the conditions panel.

    Select “audio_done” from the left menu “Variable”.
    Select “Equal to” from the “Relationship” menu.
    Enter 0 into the Value field

    By adding the condition the next button will only be disabled if the variable value is equal to “0” and as it will be equal to “1” if the audio has been Done playing the button won’t be disabled.

    This post has received 2 votes up.
    #388003 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    329 pts
    @timk

    The help has not been updated for a while. Lectora doesn’t use the Lectora Viewer any more. It’s been changed to use Awesomium as the browser to display content published to offline. The good thing about this is that you now can use Javascript in offline content as well and check the url of the course.

    Create a variable, e.g. “offline”

    Add two actions on title level:

    Action: Modify variable
    Target: offline
    Type: Set as empty

    Action: Run javascript
    Javascript:

    if (window.location.href.indexOf("file") > -1){
    Varoffline.set("yes");
    }else{
    Varoffline.set("no");
    }

    The URL of the page will contain “file” if it’s opened offline. You can use the variable in conditions, e.g.

    Only if “offline” “equal to” “yes”

    This post has received 2 votes up.
Viewing 15 posts - 16 through 30 (of 246 total)

Tim K

Profile picture of Tim K

@timk

active 4 hours, 15 minutes ago