git @ Cat's Eye Technologies Canvas-Feedback / e3b19e7
Improve presentation of the collapsible sub-panels a bit. Chris Pressey 10 years ago
1 changed file(s) with 12 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2727 yoob.makeButton(controlPanel, 'Resume', function() { t.resume(); });
2828 yoob.makeLineBreak(controlPanel);
2929
30 var stylePanel = function(panel) {
31 panel.style.background = "#e0e0e0";
32 panel.style.padding = "3px";
33 panel.parentNode.style.background = "#c0c0c0";
34 panel.parentNode.style.textAlign = "left";
35 };
36
3037 urlPanel = yoob.makePanel(controlPanel, "Image URL", false);
31 var urlElem = yoob.makeTextInput(urlPanel, 32, config.imgUrl);
38 var urlElem = yoob.makeTextInput(urlPanel, 64, config.imgUrl);
39 urlElem.style.width = "80%";
3240 yoob.makeButton(urlPanel, 'Load', function() {
3341 t.load(urlElem.value);
3442 });
35 urlPanel.style.background = "#e0e0e0";
43 stylePanel(urlPanel);
3644
3745 presetPanel = yoob.makePanel(controlPanel, "Select Preset", true);
3846 var presetSelect = yoob.makeSelect(presetPanel, "Preset:", []);
39 presetPanel.style.background = "#e0e0e0";
47 stylePanel(presetPanel);
4048
4149 var sliderPanel = yoob.makePanel(controlPanel, "Adjust Parameters", false);
4250 sliderPanel.style.textAlign = "right";
43 sliderPanel.style.background = "#e0e0e0";
51 stylePanel(sliderPanel);
4452
4553 var rotateSlider = yoob.makeSliderPlusTextInput(
4654 sliderPanel, 'Rotate (microRadians):', -3000, 3000, 5, 200,