-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path1blankspace.autoPilot-2.0.0.js
More file actions
57 lines (44 loc) · 1.24 KB
/
1blankspace.autoPilot-2.0.0.js
File metadata and controls
57 lines (44 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*!
* ibCom Pty Ltd ATF ibCom Unit Trust & contributors
* Licensed as Attribution-ShareAlike 4.0 International
* http://creativecommons.org/licenses/by-sa/4.0/
*/
//Could put to canvas and then capture as image
/*
var oAutoPilot = Get(.json)
var sXHTMLElementID;
.capture = function (oParam)
{
$.each(oAutoPilot.flightplan, function (i, v)
{
sXHTMLElementID = (v.xhtmlElementID=undefined?'ns1blankspaceContainer':v.xhtmlElementID)
v.method(v.param);
//Capture the state of the view.
if .capture = 'xhtml'
{
v.xhtml = $('#' + v.sXHTMLID).html();
}
else
{
v.lastAjaxRequest = ns1blankspace.lastAjaxRequest;
v.lastAjaxResponse = ns1blankspace.lastAjaxResponse;
}
});
}
.show = function (oParam)
{
var iIndex = ns1blankspace.util.getParam(oParam. 'index', {"default": 0}).value;
var sXHTMLElementID = ns1blankspace.util.getParam(oParam. 'xhtmlElementID', {"default": 'ns1blankspaceMain'}).value;
$('#' + sXHTMLElementID).html(oAutoPilot.xhtml); //SHOW THE Title etc also
}
.replay = function (oParam)
{
var iIndex = ns1blankspace.util.getParam(oParam. 'index', {"default": 0}).value;
if (iIndex < oAutopilot.length)
{
.show()
iIndex = iIndex + 1;
window.timeout(3000, ".show({index: ' + iIndex + '})");
}
}
*/