Gaza Accountability Index

Embed a country

A newsroom or an organisation can show a country of the index on its own pages: a gauge with the score, the band and the coverage, or the timeline of the score since 7 October 2023. The embed is a script, not a frame. It reads the country's file from the public API, draws inside its own isolated box, links back to the country page, and shows the scorecard without a score for as long as the site does.

The snippet

Place the script where the embed should appear; it draws the embed in its place. Several can sit on one page.

The gauge of Germany:

<script src="https://gaza-accountability-index.pages.dev/embed/v1/gai.js" data-country="DEU"></script>

The timeline of the same country:

<script src="https://gaza-accountability-index.pages.dev/embed/v1/gai.js" data-country="DEU" data-view="timeline"></script>

Options

AttributeValuesDefault
data-countryThe ISO 3166-1 alpha-3 code of a scored country, such as DEUrequired
data-viewgauge (score, band and coverage) or timeline (the score since 7 October 2023)gauge
data-langen or fren
data-originThe address of the site to read the data from, for a mirror of the indexthis site

What the embed does

Live examples

The two snippets above, running on this page as on any other site. They read the file of Germany that this build published.

Gauge

Timeline