Embed a pet calculator on your site
Four pawpetit calculators can sit on your own page: dog age, dog food, cat age and cat food. Paste one snippet where the calculator should appear. It is the same calculator as the full page here, with the same formulas and the same 3D dog or cat, in a box from 280 to 700 pixels wide.
Terms
The calculators are free to use on any site, as long as the “Calculator by Pawpetit” link stays in place. The numbers are estimates, not veterinary advice.
Two ways to embed
- Script. A
divand one small script. The script puts the calculator in a frame, keeps the frame as tall as its content, and adds the “Calculator by Pawpetit” link under it. - Plain iframe. For sites that do not allow scripts. The height is fixed, so there can be some empty space under the calculator on a wide page.
Dog age calculator
Convert your dog’s age to human years using the modern, size-adjusted method, not the old “multiply by 7” myth. See the full page.
Dog food calculator
Estimate your dog’s daily calories and food portion from weight and activity level. See the full page.
Cat age calculator
See how old your cat is in human years with the standard feline life-stage chart. See the full page.
Cat food calculator
Estimate your cat’s daily calories, and how many cups or cans that is, from weight and life stage. See the full page.
Options
- Language. Add
data-lang="ja"(日本語) ordata-lang="zh-tw"(繁體中文) to thediv. With a plain iframe, use/embed/ja/…or/embed/zh-tw/…in the address. These versions are metric (kg, and food energy per 100 g). - Light or dark. The calculator follows the visitor’s system setting. To fix it, add
data-theme="light"ordata-theme="dark"to thediv, or&theme=darkto the end of the iframe address. - Width. The frame fills the space you give it, up to 700 pixels.
What the embed does on your page
- The calculator runs in a frame served by pawpetit.com. What a visitor types stays in their browser.
- The embed loads no analytics, no ads and no scripts or fonts from other companies, and the calculator itself sets no cookies.
- The frame tells your page one thing, its height, so the script can size it:
{ pawpetit: "embed-height", slug: "dog-age-calculator", height: 512 }. The script reads that message only from pawpetit.com and only from the frame it made. - The 3D pet loads only when the calculator is near the screen, and not for visitors who ask for reduced motion or data saving. They see a still picture.