Functions
Open eLearning has a library of simple functions to interact with the objects or the Open eLearning engine.
You will find on this page the description of the functions
Navigation functions :
OpEl.nextPage(); |
Load the next page |
OpEl.nextPageAnd1(); |
Load the next page + 1 |
OpEl.nextPageAnd2(); |
Load the next page + 2 |
OpEl.prevPage(); |
Load the previous page |
OpEl.goPage(3); |
Load a page with its number |
OpEl.displayLastPage(); |
Load the last page |
Animation functions :
OpEl.fadeIn('ID'); |
Display an object |
OpEl.fadeOut('ID'); |
Hide an object |
OpEl.locationXY('ID',100,100); |
Define the position in X and Y |
OpEl.translateXY('ID',100,100); |
Set the X and Y position with a slide |
OpEl.mapTo('ID','TO'); |
Match one object to another in X Y and Width and Height. |
OpEl.rotateAngle(Id,degrees); |
Define a rotation in degrees |
Functions for retrieving and setting values in objects :
OpEl.setValueTxt(Id,text); |
Sets the value of a text box |
OpEl.getValueInput(Id); |
Retrieves the value of a text input |
OpEl.getNumberInput(Id); |
Retrieves the value of a text input (force number) |
OpEl.getValueQcm(Id); |
Retrieves answers from a quiz in text form |
OpEl.getValueSelect(Id); |
Retrieves the value from a list of choices |
OpEl.setValueSelect(Id,text); |
Sets the value of a choice list |
OpEl.QcmControl(Id,index); |
Control if a checkbox is active |
Create objects :
OpEl.createImg(url,x,y,w,h); |
Create an image in slide |
Define a object Id :
Right-Click on an object >> Format
Set Id and Save
Text is available under the Creative Commons Attribution-ShareAlike License