Skip to content

Can you embed the inheritance calculator on a site?

The /mirath/embed view can be framed only by Quran Gallery pages, not other websites. How to open it with a family filled in, and what to link to instead.

On this page

No: the embedded inheritance calculator at qurangallery.com/mirath/embed cannot be placed on another website, because the site sends a same-origin framing policy and browsers block it inside an iframe elsewhere. It is a small, results-first view that runs the same engine with the same exact fractions, designed to sit inside Quran Gallery’s own pages. To point someone at a case from your site, link to the full calculator with the family in its address.

Where you’ll see it

The embedded calculator is what appears inside the Quran Gallery chat assistant. When you describe a family to the assistant — “a wife, two sons and a daughter” — it can show you the shares right there in the conversation, instead of sending you away to the full page.

What it shows

The result comes first: if the family is already known, the shares appear immediately. The panel contains:

  • The division: a sentence stating the case, the School of law switch, the share mosaic with a note on ʿawl, radd or a named case when one applies, the Amounts / Fractions switch, and the shares list with each heir’s Why and the heirs who receive No share;
  • How this was worked out, folded, with the same Steps, Schools and Family tree tabs as on the full page; when the schools differ, Compare the four schools opens the Schools tab;
  • Adjust the family & estate, which opens the form to change the deceased, the estate, with funeral costs, debts and a bequest, and the heirs;
  • Open the full calculator, at the top, which carries the family on screen over to the full page.

When no estate value has been given, it opens in Fractions, so it never implies a money figure you didn’t provide.

What it leaves to the full page

The embedded view has no examples and no print button. For those, use Open the full calculator, which carries over the family, the school and the estate value. Funeral costs, debts and a bequest are not part of that link, so enter them again on the full page. See Understanding the results for everything the full page shows.

Opening it with a family filled in

The embedded view reads the same address parameters as the full calculator — g, madhab, estate, currency and one parameter per relation — described in Using the calculator. For example:

https://qurangallery.com/mirath/embed?g=male&madhab=hanafi&wife=1&son=2&daughter=1

opens straight to the shares for a man survived by a wife, two sons and a daughter, in fractions because no estate is given.

Where it can be placed

The embedded view can be framed only by Quran Gallery’s own pages: the site sends a same-origin framing policy, so browsers block it inside an iframe on another website. To point someone at a case from elsewhere, link to the full calculator with the family in its address.

The same caution applies

Whether you use the full page or the embedded view, the result is an educational estimate.

Inheritance is exact and the responsibility is serious. The calculator follows the classical Sunni rules and shows its evidence, but always confirm a real, binding distribution with a qualified scholar.

Next steps

Questions

Can I put the Mirath calculator in an iframe on my website?

No. The site sends a same-origin framing policy, so browsers block it in an iframe on another website. Link to the full calculator with the family in the address instead.

Where does the embedded calculator appear?

Inside the Quran Gallery chat assistant. When you describe a family to it, it can show the shares in the conversation.

How do I open the embedded view with a family filled in?

Use the same address parameters as the full calculator, for example g=male, madhab=hanafi, wife=1, son=2 and daughter=1 on the embed address.

Is the embedded page listed by search engines?

No. It is not meant to be visited on its own, so search engines are asked not to list it.

Edit this page on GitHub