Prayer Times Javascript Widget
Shared Widget Functionality

Optional Parameter

  • Parameter
  • Description
    language
    Language. Arabic/English. Default: English
Prayer Times Javascript Widget

Widget Javascript Code

Optional Parameter

  • Parameter
  • Description
    date
    Date for prayer times. Default today. Timestamp or date format.
    latitude
    Latitude coordinates
    longitude
    Longitude coordinates
    timezone
    User's timezone. Ex: Asia/Aden
    method
    Prayer calculation Method ID:
    • juristic
    • Method
      0
      Jafari - Ithna Ashari. Fajir: 16° Isha: 14°
      1
      Karachi - University of Islamic Sciences. Fajir: 18° Isha: 18°
      2
      ISNA - Islamic Society of North America. Fajir: 15° Isha: 15°
      3 [Default]
      MWL - Muslim World League. Fajir: 18° Isha: 17°
      4
      Mecca - Umm al-Qura. Fajir: 18.5° Isha: Fixed 90 Minutes
      5
      Egyptian General Authority of Survey. Fajir: 19.5° Isha: 17.5°
      6
      Custom Setting. Fajir: 18° Isha: 17°
      7
      University of Tehran - Institute of Geophysics. Fajir: 17.7° Isha: 14°
      8
      Algerian Minister of Religious Affairs and Wakfs. Fajir: 18° Isha: 17°
      9
      Gulf 90 Minutes Fixed Isha. Fajir: 19.5° Isha: Fixed 90 Minutes
      10
      Egyptian General Authority of Survey (Bis). Fajir: 20° Isha: 18°
      11
      UOIF - Union Des Organisations Islamiques De France. Fajir: 12° Isha: 12°
      12
      Sistem Informasi Hisab Rukyat Indonesia. Fajir: 20° Isha: 18°
      13
      Diyanet İşleri Başkanlığı. Fajir: 18° Isha: 17°
      14
      Germany Custom. Fajir: 18° Isha: 16.5°
      15
      Russia Custom. Fajir: 16° Isha: 15°
    juristic
    Asr jurisdiction method:
    • ID
    • Jurisdiction
      0 [Default]
      Standard (Shafi, Hanbli, Maliki).
      1
      Hanafi.
    high_latitude
    Used in calculation of high latitudes:
    • ID
    • Method
      0
      None
      1 [Default]
      Midnight
      2
      1/7th
      3
      Angle
    time_format
    Time format. Allowed formats:
    • ID
    • Method
      0
      24 Hour Format
      1 [Default]
      12 Hour Format
      2
      12 Hour Format w/o Suffix
      3
      Floating Number
    date_format
    hide_footer
    Hide footer. Leave empty to show footer.
  • Required parameters when using Custom Method, ID: 6
    fajir_angle
    Must be a decimal for Fajir Angle.
    maghrib_rule
    What rule to apply. Allowed Rules:
    • ID
    • Rule
      0
      Angle
      1
      Fixed Minutes
    maghrib_value
    Angle value or Fixed Minutes value.
    isha_rule
    What rule to apply. Allowed Rules:
    • ID
    • Rule
      0
      Angle
      1
      Fixed Minutes
    isha_value
    Angle value or Fixed Minutes value.

CSS Styling

You can overwrite the CSS class selectors by loading them beforehand in your document header. The following class selectors are used:
  • Class Selector
  • Description
    .salah_widget
    The entire div surrounding the widget.
    .salah_header
    The first div that contains the header.
    .salah_table
    The Salah time table.
    .salah_footer
    The last div that contains the footer.
An example overwrite you will add to your page: