Added support for machine command links to assist in the creation of online tutorials; however, the commandMachine() function isn't wired to anything yet, and this only works with the Node web server (updating the Jekyll environment is next)
This commit is contained in:
parent
0eccf30d3c
commit
6f36583704
5 changed files with 106 additions and 43 deletions
|
|
@ -29,7 +29,7 @@
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* addStickYMachine(idMachine)
|
||||
* addStickyMachine(idMachine)
|
||||
*
|
||||
* @param {string} idMachine
|
||||
*/
|
||||
|
|
@ -41,7 +41,10 @@ function addStickyMachine(idMachine)
|
|||
/*
|
||||
* TODO: Determine if/when we can cache the machine and machineSibling elements; we already
|
||||
* know we can't cache them when addStickyMachine() is first called, because that currently
|
||||
* happens *before* embed.js replaces the placeholder machine DIV with the *real* machine DIV.
|
||||
* happens before embed.js replaces the placeholder machine <div> with the real machine <div>.
|
||||
*
|
||||
* Placement of the addStickyMachine() call is irrelevant, because embed.js asynchronously
|
||||
* reads all the XML files that define the machine *before* replacing the <div>.
|
||||
*/
|
||||
var machine = document.getElementById(idMachine);
|
||||
if (machine) {
|
||||
|
|
@ -70,6 +73,19 @@ function addStickyMachine(idMachine)
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* commandMachine(idMachine, typeComponent, sCommand, sValue)
|
||||
*
|
||||
* @param {string} idMachine
|
||||
* @param {string} typeComponent
|
||||
* @param {string} sCommand
|
||||
* @param {string} [sValue]
|
||||
*/
|
||||
function commandMachine(idMachine, typeComponent, sCommand, sValue)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* findTop(obj)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue