Add prayer times to your website

With one short piece of code, show the prayer times of any city on your own website, with the Azangoo logo. It is free, works in four languages, and its theme and colors can be changed to match your site.

Quick start

Put the code below anywhere in your page. Choose one of the two examples, depending on whether you have a city name or coordinates.

With a city name

<div class="azangoo-widget" data-city="Toronto" data-country="CA" data-lang="en" data-theme="auto"></div>
<script src="https://www.azangoo.com/js/azangoo-widget.js" async></script>

With coordinates

<div class="azangoo-widget" data-lat="43.65" data-lng="-79.38" data-timezone="America/Toronto" data-name="Toronto" data-lang="en"></div>
<script src="https://www.azangoo.com/js/azangoo-widget.js" async></script>

Build your code

The English name of the city is usually found best. If you fill in coordinates, the city is used only as the name shown.

Themes

Options

city, countryA city name and a 2-letter country code (e.g. CA). The city is looked up once and remembered in the visitor’s browser.
lat, lngCoordinates instead of a city name.
timezoneFor example Asia/Tehran. Together with lat and lng, no request is sent outside.
nameThe name written in the widget.
langfa · en · ur · ar
themeauto · light · night · dark · emerald · ocean · sand · rose
layoutlist · grid · row
showThe times to show, comma separated: fajr,sunrise,dhuhr,sunset,maghrib,midnight
clock24 or 12
digitsnative (Persian or Arabic digits) or latin
next1 or 0: mark the next adhan
widthMaximum width, e.g. 340px
accent, bg, color, radius, font, sizeYour own look, with CSS colors and sizes.

Good to know

If you give a city name, the visitor’s browser looks the city up once with Open-Meteo and remembers the result. If you give coordinates together with data-timezone, no request is sent outside at all.

The Azangoo logo and link are always shown in the widget and cannot be removed.

Using the widget is allowed only by loading its file from Azangoo itself. Copying the files, hosting them elsewhere or changing them is prohibited without written permission.

The times are calculated by the Azangoo method and may differ from the offices of the maraji‘ (sources of emulation).