{"id":149,"date":"2011-07-20T14:54:48","date_gmt":"2011-07-20T13:54:48","guid":{"rendered":"http:\/\/shotgundentist.com\/blog\/?page_id=149"},"modified":"2011-08-31T11:38:29","modified_gmt":"2011-08-31T10:38:29","slug":"metric-imperial-converter","status":"publish","type":"page","link":"http:\/\/shotgundentist.com\/blog\/usefull-tools\/metric-imperial-converter\/","title":{"rendered":"Metric &#8211; Imperial Converter"},"content":{"rendered":"<p><script>\n  function calc()\n  {\n    var ammount = document.getElementById(\"amm\").value;\n    var result;\n    var e=document.forms[0].elements[1];\n    if(e.selectedIndex == 0) result = (ammount*0.3048);\n    if(e.selectedIndex == 1) result = (ammount*3.28083);\n    if(e.selectedIndex == 2) result = (ammount*0.02540);\n    if(e.selectedIndex == 3) result = (ammount*39.37);\n    if(e.selectedIndex == 4) result = (ammount*3.785);\n    if(e.selectedIndex == 5) result = (ammount\/3.785);\n    if(e.selectedIndex == 6) result = (ammount*0.9144);\n    if(e.selectedIndex == 7) result = (ammount\/0.9144);\n    if(e.selectedIndex == 8 ) result = (ammount*1609.344);\n    if(e.selectedIndex == 9) result = (ammount\/1609.344);\n    if(e.selectedIndex == 10) result = (ammount\/2.20464);\n    if(e.selectedIndex == 11) result = (ammount*2.20646);\n    if(e.selectedIndex == 12) result = ((ammount-32)\/1.8);\n    if(e.selectedIndex == 13) result = (ammount*1.8+32);\n    if(e.selectedIndex == 14) result = (ammount*4046.856);\n    if(e.selectedIndex == 15) result = (ammount*0.000247105);\n    if(e.selectedIndex == 16) result = (ammount*32.15075);\n    if(e.selectedIndex == 17) result = (ammount*0.031103473);\n    if(e.selectedIndex == 18) result = (ammount*0.8);\n    if(e.selectedIndex == 19) result = (ammount*1.25);\n    if(e.selectedIndex == 20) result = (ammount*1.609344)\/3.785;\ndocument.forms[0].elements[2].value = result;\n    return false;\n  }\n  function cont(res)\n  {\n    if(res!=\"\")\n    {\n       document.forms[0].elements[0].value = res;\n       document.forms[0].elements[3].value = \"\";\n    }\n    return false;\n  }\n<\/script><\/p>\n<p>Welcome to my Metic &#8211; Imperial Converter. Choose your conversions below:<\/p>\n<form>\n<table>\n<tr>\n<td colspan=\"4\">Enter ammount:<\/td>\n<td colspan=\"4\"><input type=\"text\" id=\"amm\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">And chose option:<\/td>\n<td colspan=\"4\">\n    <select name=what><option>Feet to meters<\/option><option>Meters to feet<\/option><option>Inches to meters<\/option><option>Meters to inches<\/option><option>Gallons to liters<\/option><option>Liters to gallons<\/option><option>Yards to meters<\/option><option>Meters to yards<\/option><option>Miles to meters<\/option><option>Meters to miles<\/option><option>Pounds to kilo<\/option><option>Kilo to pounds<\/option><option>Fahrenheit to celcius<\/option><option>Celsius to fahrenheit<\/option><option>Acres to square meters<\/option><option>Square meters to acres<\/option><option>Kilo to ounces<\/option><option>Ounces to kilo<\/option><option>Celsius to reaumur<\/option><option>Reaumur to celsius<\/option><option>MPG to km\/litre<\/option><\/select>\n  <\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n    <a class=\"button\" onclick=\"return calc()\">Calculate<\/a>\n  <\/td>\n<td colspan=\"4\">Result:<\/td>\n<td colspan=\"2\">\n    <input name=\"res\" value=\"\">\n  <\/td>\n<td colspan=\"2\">\n    <a class=\"button\" onclick=\"return cont(res.value)\">Continue on result<\/a>\n  <\/td>\n<\/tr>\n<\/table>\n<\/form>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to my Metic &#8211; Imperial Converter. Choose your conversions below: Enter ammount: And chose option: Feet to metersMeters to feetInches to metersMeters to inchesGallons to litersLiters to gallonsYards to metersMeters to yardsMiles to metersMeters to milesPounds to kiloKilo to poundsFahrenheit to celciusCelsius to fahrenheitAcres to square metersSquare meters to acresKilo to ouncesOunces to kiloCelsius [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":147,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-149","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":90,"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/149\/revisions"}],"predecessor-version":[{"id":238,"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/149\/revisions\/238"}],"up":[{"embeddable":true,"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/147"}],"wp:attachment":[{"href":"http:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}