comparison js-lib/buy3.js @ 97:8a3615df4c18 laserkard

saving progress, going to add styles
author Robert McIntyre <rlm@mit.edu>
date Tue, 27 Jul 2010 03:51:01 -0400
parents a0b768d3494a
children 388344355ebf
comparison
equal deleted inserted replaced
96:a0b768d3494a 97:8a3615df4c18
29 "name" :(function (text, display){ 29 "name" :(function (text, display){
30 return display.print(10,10,text,helvetica, 25).attr( 30 return display.print(10,10,text,helvetica, 25).attr(
31 {"fill" : "#0F0"});}), 31 {"fill" : "#0F0"});}),
32 "email" : (function (text, paper){ 32 "email" : (function (text, paper){
33 return paper.print(50,50,text,helvetica_I,40).attr( 33 return paper.print(50,50,text,helvetica_I,40).attr(
34 {"fill" : "red"});}) 34 {"fill" : "red"});})}
35 35
36 36 };
37 }};
38 37
39 38
40 39
41 40
42 41
217 216
218 var display_style_update = (function (){ 217 var display_style_update = (function (){
219 var style = null; 218 var style = null;
220 return (function () { 219 return (function () {
221 if (style !== order.style){ 220 if (style !== order.style){
222 221 for ( var property in card ){
223 for ( var property in card )
224 {
225 alert( property );
226 if (!Cards[order.style][(deref(property))]){ 222 if (!Cards[order.style][(deref(property))]){
227 $("#user" + "-" + property).toggle(400);} 223 $("#user" + "-" + property).toggle(400);}}
228 } 224 style = order.style;}
229
230
231 style = order.style; }
232
233 });})(); 225 });})();
234 226
235 var display_text_update = (function (){ 227 var display_text_update = (function (){
236 var state = {name : "nothing", 228 var state = {name : "nothing",
237 phone: "nothing", 229 phone: "nothing",
274 return {init : init, 266 return {init : init,
275 update : update};})(); 267 update : update};})();
276 268
277 269
278 270
279
280
281
282
283
284
285 $(document).ready(function() { 271 $(document).ready(function() {
286 Buy.init(); 272 Buy.init();
287 Buy.update(); 273 Buy.update();
288 }); 274 });