rlm@85: Buy = (function (){ rlm@85: var order = rlm@85: {color: "black", rlm@85: style: "bold", rlm@85: quantity: 30, rlm@85: content: undefined, rlm@85: info: undefined}; rlm@85: rlm@85: var display; rlm@85: var color; rlm@85: var style; rlm@85: rlm@85: rlm@85: var drawInit = (function (){ rlm@85: display.rect(1, 1, 338, 213, 20); rlm@85: color.rect(1, 1, 50, 50, 10); rlm@85: style.rect(1, 1, 10, 10, 5); rlm@85: rlm@85: display.print(40, 45, "Robert" , display.getFont('HelveticaNeue', 700), 30); rlm@85: display.print(40, 90, "McIntyre" , display.getFont('HelveticaNeue', 800), 30); rlm@85: rlm@85: }); rlm@85: rlm@85: var init = (function () { rlm@85: rlm@85: $("#debug").append("init called."); rlm@85: display = Raphael("card-display", 340 ,215); rlm@85: color = Raphael("color-select", 200, 70); rlm@85: style = Raphael("style-select", 200, 70); rlm@85: drawInit(); rlm@85: }); rlm@85: rlm@85: rlm@85: rlm@85: return {init : init rlm@85: }; rlm@85: })(); rlm@85: rlm@85: rlm@85: rlm@85: $(document).ready(function() { rlm@85: Buy.init(); rlm@85: rlm@85: rlm@85: rlm@85: rlm@85: });