Special function OE

For Plugins => Open eLearning has a library of simple functions to interact with objects

Functions of navigation :


LUDI.nextPage();

Loads the next page


LUDI.nextPageAnd1();

Loads the next page + 1


LUDI.nextPageAnd2();

Loads the next page + 2


LUDI.prevPage();

Loads the previous page


LUDI.goPage(3);

Load a page with its number

LUDI.goPage(0);


LUDI.displayLastPage();

Loads the last page displayed



Functions of animation :


LUDI.fadeIn('ID');

Display ON an object


LUDI.fadeOut('ID');

Display OFF an object


LUDI.locationXY('ID',100,100);

X Y position


LUDI.translateXY('boule',10,20);

LUDI.translateXY('ID',100,100);


X Y position with translate



LUDI.translateXY('boule',10,20);


LUDI.mapTo('ID','TO');

Matches one object to another in X Y and Width and Height.



LUDI.rotateAngle('ID',45);

Define an object rotation in degrees


LUDI.rotateAngle('boule',20);

LUDI.wait(2000);

Define a pause between two animations in milliseconds






Functions Objects :


LUDI.setValueTxt('ID', 'texte');

Defines the value of a text box


LUDI.getValueInput('ID');

Recovers the value of a text

Exemple :

var txt = LUDI.getValueInput('ID');


LUDI.getValueQcm('ID');

Recovers answers in the form of a text

Exemple:

var txt = LUDI.getValueQcm('ID');


LUDI.getValueSelect('ID');

Recovers the value of a list of choices




Text is available under the Creative Commons Attribution-ShareAlike License