MCPcopy Create free account
hub / github.com/NVIDIA/Dataset_Synthesizer / getScript

Function getScript

Documentation/ClassDetails/navtree.js:100–117  ·  view source on GitHub ↗
(scriptName,func,show)

Source from the content-addressed store, hash-verified

98}
99
100function getScript(scriptName,func,show)
101{
102 var head = document.getElementsByTagName("head")[0];
103 var script = document.createElement('script');
104 script.id = scriptName;
105 script.type = 'text/javascript';
106 script.onload = func;
107 script.src = scriptName+'.js';
108 if ($.browser.msie && $.browser.version<=8) {
109 // script.onload does not work with older versions of IE
110 script.onreadystatechange = function() {
111 if (script.readyState=='complete' || script.readyState=='loaded') {
112 func(); if (show) showRoot();
113 }
114 }
115 }
116 head.appendChild(script);
117}
118
119function createIndent(o,domNode,node,level)
120{

Callers 3

expandNodeFunction · 0.85
showNodeFunction · 0.85
navToFunction · 0.85

Calls 1

showRootFunction · 0.85

Tested by

no test coverage detected