diff buy.html @ 42:ef8615de8a9c laserkard

[svn r43] implemented form memory
author rlm
date Wed, 27 Jan 2010 22:04:43 -0500
parents c4747d955ac8
children 329638a361cc
line wrap: on
line diff
     1.1 --- a/buy.html	Mon Jan 25 13:38:05 2010 -0500
     1.2 +++ b/buy.html	Wed Jan 27 22:04:43 2010 -0500
     1.3 @@ -81,270 +81,17 @@
     1.4  
     1.5  
     1.6  <script language="javascript">
     1.7 -//this is the main painting object, established here and created with default painting values
     1.8 +//this is the main painting object, established here and created with Initial painting values
     1.9  var raphe = Raphael("disp_contain", 515, 318);
    1.10 -
    1.11 -
    1.12 -
    1.13 -function drawElement(obj)
    1.14 -{
    1.15 -	
    1.16 -}
    1.17 -
    1.18 -
    1.19 -
    1.20 -
    1.21 -function redraw(style)
    1.22 -{
    1.23 -
    1.24 -if (style == "bold")
    1.25 -{
    1.26 -	
    1.27 -
    1.28 -
    1.29 -if(typeof alias != 'undefined' ){alias.remove();}
    1.30 -if(typeof email != 'undefined' ){email.remove();}
    1.31 -if(typeof occupation != 'undefined' ){occupation.remove();}
    1.32 -if(typeof company != 'undefined' ){company.remove();}
    1.33 -if(typeof phone != 'undefined' ){phone.remove();}
    1.34 -if(typeof website != 'undefined' ){website.remove();}
    1.35 -if(typeof lnn != 'undefined' ){lnn.remove();}
    1.36 -
    1.37 -
    1.38 -
    1.39 -var oText = document.getElementById('Name');
    1.40 -var text_val = oText.value; 
    1.41 -alias = raphe.print(10, 160, text_val, raphe.getFont('HelveticaNeue', 700), 60);
    1.42 -alias.attr('stroke', '#6a6a6a');
    1.43 -alias.attr('fill', 'none')
    1.44 -var c = alias.getBBox().width;
    1.45 -alias.translate((485 - c)/2,0);
    1.46 -
    1.47 -	
    1.48 -var oText = document.getElementById('Email');
    1.49 -var text_val = oText.value; 
    1.50 -
    1.51 -email = raphe.print(280, 270, text_val, raphe.getFont("HelveticaNeue", 700), 25);
    1.52 -email.attr('stroke', '#6a6a6a');
    1.53 -email.attr('fill', 'TRANSPARENT');
    1.54 -
    1.55 -
    1.56 -
    1.57 -	
    1.58 -}
    1.59 -
    1.60 -
    1.61 -if (style == "arrow")
    1.62 -{
    1.63 -	
    1.64 -if(typeof alias != 'undefined' ){alias.remove();}
    1.65 -if(typeof email != 'undefined' ){email.remove();}
    1.66 -if(typeof occupation != 'undefined' ){occupation.remove();}
    1.67 -if(typeof company != 'undefined' ){company.remove();}
    1.68 -if(typeof phone != 'undefined' ){phone.remove();}
    1.69 -if(typeof website != 'undefined' ){website.remove();}
    1.70 -if(typeof lnn != 'undefined' ){lnn.remove();}
    1.71 -
    1.72 -
    1.73 -var oText = document.getElementById('Name');
    1.74 -var text_val = oText.value; 
    1.75 -alias = raphe.print(40, 110, text_val, raphe.getFont('HelveticaNeue', 700), 55);
    1.76 -alias.attr('stroke', '#6a6a6a');
    1.77 -alias.attr('fill', 'none')
    1.78 -
    1.79 -
    1.80 -
    1.81 -var oText = document.getElementById('Company');
    1.82 -var text_val = oText.value; 
    1.83 -
    1.84 -company = raphe.print(40, 155, text_val, raphe.getFont("HelveticaNeue", 700), 27);
    1.85 -company.attr('stroke', '#6a6a6a');
    1.86 -company.attr('fill', 'TRANSPARENT');
    1.87 -
    1.88 -
    1.89 -var oText = document.getElementById('Occupation');
    1.90 -var text_val = oText.value; 
    1.91 -
    1.92 -occupation = raphe.print(40, 190, text_val, raphe.getFont("HelveticaNeue", 700), 27);
    1.93 -occupation.attr('stroke', '#6a6a6a');
    1.94 -occupation.attr('fill', 'TRANSPARENT');
    1.95 -
    1.96 -
    1.97 -var oText = document.getElementById('Email');
    1.98 -var text_val = oText.value; 
    1.99 -
   1.100 -email = raphe.print(280, 270, text_val, raphe.getFont("HelveticaNeue", 700), 25);
   1.101 -email.attr('stroke', '#6a6a6a');
   1.102 -email.attr('fill', 'TRANSPARENT');
   1.103 -
   1.104 -
   1.105 -lnn = raphe.path("M 2 272 L 258 272");
   1.106 -lnn.attr('stroke', '#6a6a6a');
   1.107 -	
   1.108 -}
   1.109 -
   1.110 -
   1.111 -if (style == "classic")
   1.112 -{
   1.113 -	
   1.114 -if(typeof alias != 'undefined' ){alias.remove();}
   1.115 -if(typeof email != 'undefined' ){email.remove();}
   1.116 -if(typeof occupation != 'undefined' ){occupation.remove();}
   1.117 -if(typeof company != 'undefined' ){company.remove();}
   1.118 -if(typeof phone != 'undefined' ){phone.remove();}
   1.119 -if(typeof website != 'undefined' ){website.remove();}
   1.120 -if(typeof lnn != 'undefined' ){lnn.remove();}
   1.121 -
   1.122 -
   1.123 -var oText = document.getElementById('Email');
   1.124 -var text_val = oText.value; 
   1.125 -
   1.126 -email = raphe.print(0, 42, text_val, raphe.getFont("HelveticaNeue", 700), 29);
   1.127 -email.attr('stroke', '#6a6a6a');
   1.128 -email.attr('fill', 'TRANSPARENT');
   1.129 -var c = email.getBBox().width;
   1.130 -email.translate((510 - c)/2,0);
   1.131 -
   1.132 -
   1.133 -var oText = document.getElementById('Phone');
   1.134 -var text_val = oText.value; 
   1.135 -
   1.136 -phone = raphe.print(0, 75, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.137 -phone.attr('stroke', '#6a6a6a');
   1.138 -phone.attr('fill', 'TRANSPARENT');
   1.139 -var c = phone.getBBox().width;
   1.140 -phone.translate((510 - c)/2,0);
   1.141 -
   1.142 -
   1.143 -
   1.144 -
   1.145 -var oText = document.getElementById('Name');
   1.146 -var text_val = oText.value; 
   1.147 -alias = raphe.print(0, 164, text_val, raphe.getFont('HelveticaNeue', 800), 47);
   1.148 -alias.attr('stroke', '#6a6a6a');
   1.149 -alias.attr('fill', 'none')
   1.150 -var c = alias.getBBox().width;
   1.151 -alias.translate((510 - c)/2,0);
   1.152 -
   1.153 -
   1.154 -var oText = document.getElementById('Company');
   1.155 -var text_val = oText.value; 
   1.156 -company = raphe.print(0, 247, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.157 -company.attr('stroke', '#6a6a6a');
   1.158 -company.attr('fill', 'TRANSPARENT');
   1.159 -var c = company.getBBox().width;
   1.160 -company.translate((510 - c)/2,0);
   1.161 -
   1.162 -
   1.163 -var oText = document.getElementById('Occupation');
   1.164 -var text_val = oText.value; 
   1.165 -
   1.166 -occupation = raphe.print(0, 278, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.167 -occupation.attr('stroke', '#6a6a6a');
   1.168 -occupation.attr('fill', 'TRANSPARENT');
   1.169 -var c = occupation.getBBox().width;
   1.170 -occupation.translate((510 - c)/2,0);
   1.171 -
   1.172 -
   1.173 -
   1.174 -
   1.175 -var oText = document.getElementById('Website');
   1.176 -var text_val = oText.value; 
   1.177 -
   1.178 -website = raphe.print(0, 0, text_val, raphe.getFont("HelveticaNeue", 700), 21);
   1.179 -website.attr('stroke', '#6a6a6a');
   1.180 -website.attr('fill', 'TRANSPARENT');
   1.181 -
   1.182 -var c = website.getBBox().width;
   1.183 -website.translate((317 - c)/2,0);
   1.184 -
   1.185 -website.translate(0, -490);
   1.186 -website.rotate(90,0,0);
   1.187 -}
   1.188 -
   1.189 -
   1.190 -if (style == "direct")
   1.191 -{
   1.192 -	
   1.193 -if(typeof alias != 'undefined' ){alias.remove();}
   1.194 -if(typeof email != 'undefined' ){email.remove();}
   1.195 -if(typeof occupation != 'undefined' ){occupation.remove();}
   1.196 -if(typeof company != 'undefined' ){company.remove();}
   1.197 -if(typeof phone != 'undefined' ){phone.remove();}
   1.198 -if(typeof website != 'undefined' ){website.remove();}
   1.199 -if(typeof lnn != 'undefined' ){lnn.remove();}
   1.200 -
   1.201 -
   1.202 -
   1.203 -var oText = document.getElementById('Name');
   1.204 -var text_val = oText.value; 
   1.205 -alias = raphe.print(37, 70, text_val, raphe.getFont('HelveticaNeue', 700), 55);
   1.206 -alias.attr('stroke', '#6a6a6a');
   1.207 -alias.attr('fill', 'none')
   1.208 -
   1.209 -
   1.210 -var oText = document.getElementById('Occupation');
   1.211 -var text_val = oText.value; 
   1.212 -occupation = raphe.print(37, 120, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.213 -occupation.attr('stroke', '#6a6a6a');
   1.214 -occupation.attr('fill', 'TRANSPARENT');
   1.215 -
   1.216 -
   1.217 -var oText = document.getElementById('Company');
   1.218 -var text_val = oText.value; 
   1.219 -company = raphe.print(37, 178, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.220 -company.attr('stroke', '#6a6a6a');
   1.221 -company.attr('fill', 'TRANSPARENT');
   1.222 -
   1.223 -
   1.224 -
   1.225 -var oText = document.getElementById('Phone');
   1.226 -var text_val = oText.value; 
   1.227 -phone = raphe.print(37, 210, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.228 -phone.attr('stroke', '#6a6a6a');
   1.229 -phone.attr('fill', 'TRANSPARENT');
   1.230 -
   1.231 -
   1.232 -var oText = document.getElementById('Email');
   1.233 -var text_val = oText.value; 
   1.234 -email = raphe.print(37, 240, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.235 -email.attr('stroke', '#6a6a6a');
   1.236 -email.attr('fill', 'TRANSPARENT');
   1.237 -
   1.238 -
   1.239 -var oText = document.getElementById('Website');
   1.240 -var text_val = oText.value; 
   1.241 -website = raphe.print(37, 270, text_val, raphe.getFont("HelveticaNeue", 700), 27);
   1.242 -website.attr('stroke', '#6a6a6a');
   1.243 -website.attr('fill', 'TRANSPARENT');
   1.244 -
   1.245 -lnn = raphe.path("M 350 165 L 512 165  M 350 173 L 512 173  M 350 181 L 512 181  M 350 189 L 512 189 M 350 197 L 512 197 M 350 213 L 512 213 M 350 205 L 512 205 M 350 221 L 512 221");
   1.246 -lnn.attr('stroke', '#6a6a6a');
   1.247 -
   1.248 -
   1.249 -
   1.250 -}
   1.251 -
   1.252 -
   1.253 -
   1.254 -
   1.255 -
   1.256 -}
   1.257 -
   1.258 -
   1.259 -
   1.260 -
   1.261 -
   1.262 +defaults();
   1.263 +redraw("bold");
   1.264  </script>
   1.265  
   1.266  
   1.267 +<div id = "formValues">
   1.268 +PERL::INITIALVALUES
   1.269 +</div>
   1.270  
   1.271 -<script language="javascript">
   1.272 -
   1.273 -
   1.274 -redraw("bold");
   1.275 -
   1.276 -</script>
   1.277  
   1.278  </body>
   1.279