DorkbotPDX PCB Service for the Cost Calculator

Forum Administrative - NOT PROJECT OR "HELP"

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
laen
 
Posts: 7
Joined: Tue Jul 27, 2010 12:38 am

DorkbotPDX PCB Service for the Cost Calculator

Post by laen »

Hi, I run the DorkbotPDX Hobbyist PCB Service.

If you'd like to add it to the costcalc.html, I _think_ these are the chunks you need to include.

Code: Select all

function calcdorkbotpdx(pcbsize, pcbnum, form) {
  sets = Math.floor(pcbnum / 3)
  if (pcbnum % 3) sets++;
  cost = sets*5*pcbsize;
  form.dorkbotpdxnum.value = sets*3;
  form.dorkbotpdxcostper.value = cost/(sets*3);
  form.dorkbotpdxcost.value = cost;
  form.dorkbotpdxship.value = 0;
  form.dorkbotpdxtotal.value = cost;
  form.dorkbotpdxpanels.value = sets * 3;
}

Code: Select all

        <tr>
          <th scope="row"><a href="http://pcb.laen.org/">DorkbotPDX</a></th>
          <td><div align="center">
              <input name=dorkbotpdxnum type=text value="" size="3" maxlength="3" >
          </div></td>
          <td><div align="center">
              <input name=dorkbotpdxpanels type=text value="" size="5" maxlength="5" >
          </div></td>
          <td><div align="center">1</div></td>
          <td><div align="center">
              <input name=dorkbotpdxcostper type=text value="" size="5" maxlength="5" >
          </div></td>
          <td><div align="center">
              <input name=dorkbotpdxcost type=text value="" size="6" maxlength="6" >
          </div></td>
          <td><div align="center">Free</div></td>
          <td><div align="center">
              <input name=dorkbotpdxtotal type=text value="" size="6" maxlength="6" >
          </div></td>
          <td>9 days</td>
          <td>Multi-design OK. Scheduled order dates. Made in the USA.</td>
        </tr>

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: DorkbotPDX PCB Service for the Cost Calculator

Post by adafruit »

that calculator is really out of date but we'll try to fix it up soon :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Administrative (closed)”