Make sourceRoot configurable.
Chris Pressey
9 years ago
21 | 21 | elem.onload = function() { |
22 | 22 | if (++loaded != deps.length) return; |
23 | 23 | |
24 | var sourceRoot = config.sourceRoot || '../../../dialect/wierd-jnc/eg/'; | |
25 | ||
24 | 26 | var controlPanel = config.controlPanel || container; |
25 | 27 | |
26 | 28 | /* --- state animation display --- */ |
84 | 86 | 'selectElem': presetSelect, |
85 | 87 | 'setPreset': function(n) { |
86 | 88 | c.clickStop(); // in case it is currently running |
87 | sm.loadSourceFromURL('../../../eg/' + n); | |
89 | sm.loadSourceFromURL(sourceRoot + n); | |
88 | 90 | sm.onDone(); |
89 | 91 | } |
90 | 92 | }); |