cant find the variable presets

mmilo9281
mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
Hi all,

where can i find the presets in lectora 17.

for scorm building i need the AICC_Lesson_Status variable. i cant find this variable.

 

Comments

  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    You're title needs to be of the type "AICC/SCORM/xAPI for LMS/LRS" that can be set in the title options.
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    Hey Tim, thx! That was it :-)
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    hey Tim,

    i found a nice project here from Justin Ball. He made an advents calender. Is it really possible to define, that the calender begins with 1st Dez, so that the pupil can only open one calender-door per day?

    that would be very nice.

    greetings marcel
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    Hi Marcel,

    of course it can be done. Here's a sample with 24 buttons. Only those for days already past are enabled. There's no reference to the month in it, so you can test it in November as well.

    Tim
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    yeah, this is very cool, Thx :-)

    so what i have to do, when i want that it begins with the 1st Dez. Is there something that i have to change in the javaScript editor or does it recognize when the month changes.

    i like this :-)
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    hi Tim, can you describe me please how this works?

    nice greetings, marcel
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    Hi Marcel,

    It only recognizes the day of the current month, i.e. on the 1st of any month only the first button will be enabled. So you shouldn't make it available before.

    Tim
  • klaatu
    klaatu Community Member Posts: 988
    var today = new Date(); // this instantiates the Date object
    var thedoc = getDisplayDocument(); // creates a variable out of the getDisplayDocument so you can use thedoc in its place.

    var btns = thedoc.getElementsByClassName("calenderbtn"); // Create an HTML collection (not an array) out of all the elements that were assigned the class calendarbtn. Keep in mind that the order, which is important here, is the order in which the elements appear in the DOM top down. The order in the explorer pane is the same as the order in the DOM. I'll explain more at the bottom just know for now that if you have the buttons in order in the explorer this will work.

    btnids = []; // Declare a new empty array to be used below.

    for (var i=0;i<btns.length;i++){// this line loops through each of the items in the btns HTML collection in order
    btnids.push(btns[i].id); // this adds each buttons HTML id to the end of the btnid array on each iteration of the loop.
    }

    // At this point btnid is now an array of all the buttons HTML id's in the order they appear in the explorer panel.
    for (var j=0;j<today.getDate();j++){ // this creates a loop starting with 0 and continues until todays date
    window[btnids[j]].setDisabled(false); // This will enable a button by setting its disabled property to false if its position in the array equals the iteration number which will be less than or equal to todays date.
    }
    Nice job, Tim. Hope I explained it correctly / sufficiently.

    Unless you did it for clarity, I would not use a variable (thedoc) in place of the getDisplayDocument method in this case because you're only using it once; you actually typed more than necessary.

    When I was talking about the order above, if you were to move the 24th button just under the 2nd button in the explorer pane you'll notice that the 24th becomes enables on December 3rd (its new position).
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    Hey Darrel,

    thx for your instruction, for me it sounds still complicated :-)  so i think i will try Tims idea. I want to build and easy advents calendar and on every day, when the pupils open the door a funny joke should appear. So when i publish a Scorm-file with Tims project-structure on the first of Dez it should work? The problem is  i can't test it before :-)

    have a nice day, greetings Marcel

    And THX again for your good ideas.
  • mnotermans5114
    mnotermans5114 Community Member Posts: 916
    You can. Either change the date(s) on your computer...or make other variables to test with.
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    It should work, although it's not safe against cheating ;-)
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    Hey :-) thx, ok, i think cheating is not a problem :-) i will try it tomorrow.

    good night
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    Hey guys, thx a lot, the advents calendar was a really good alternation for the students. They had a lot of fun with it :-)

    i hope you had nice winter holidays!

    next Idea is in progress :-)

    greetings Marcel
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    Hi together, i need your help, i want to start my advents calendar again. I took my template from last year but now there appears an Error message. Can you help me please?  greetings marcel
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    i forgot the title file, here is it :-)
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    That happens because today is the 27th.

    Replace the second for loop with:
    for (var j=0;j<24;j++){
    if(j<today.getDate()){
    window[btnids[j]].setDisabled(false);
    }
    }
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    you are great :-) Thx .... i will try it later....

    nice greetings Marcel
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    it works great but do you know what could be the reason that all my pictures are not displayed, The picture are screenshots (png) from Internet and i have imported them and not linked. There is only a small symbol in the left corner? You can see it in my screenshot...

    greetings
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    I can't recreate the error. That symbol means that the image file cannot be found, e.g. when the url of the image in the src attribute is not correct. You could try to rename the files, it may be better not to use caps and umlauts, e.g. "tuer01.jpg" instead of "Tür01.JPG", but I'm not sure it'll help.
  • mmilo9281
    mmilo9281 Community Member Posts: 155 ☆ Roadie ☆
    Hi Tim, thx, now it works finally :-) i have renamed all the pictures.

    thx a lot, Marcel
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!