Daily Zemannim Plugin
A widget that calculates and displays prayer times, dates of fasts and holidays, and the weekly torah portion, according to halakha (Jewish Law). This plugin started as a rewrite and extension of the Daily Zman Widget by Adato Systems
The plugin works by pulling the user's location, either by the HTML5 Geolocation API or by inputting the user's IP (retrieved from browser headers) into the DB-IP - IP Geolocation API. From there it extracts the user's longitude and latitude, and feeds that into the Google Maps Geocoding API, to obtain the user's city, state, and country.
- HTML5 Geolocation API
- Google Maps Geocoding API
- Google Maps Time Zone API
- SunCalc Library
[1.4] - 2019-06-23
- Fix bug in
ashkiToSeph()function, and other related parsing issues.
- Integrate into main haSepharadi repo
[1.3.4] - 2019-03-28
Consolidates and removes redundant functions. Improves code logic.
hebCalWeekday()was consolidated into
displayShabbatTimes()consolidated into displayTimes()
timesHelper()- moved the
displayTimes()call to parent function
- calculateTimes() - deprecated the Shabbat-specific calculations (which are now handled via Hebcal API).
- Cleaned up unnecessary comments and
- Replaced additional double quotes surrounding strings, with single quotes
[1.3.3] - 2019-03-27
- Rewrote the Hebcal parsing logic to be more intelligent
- New functions:
- ashkiToSeph() - added holiday list, and updated parsing logic to reflect Hebcal's API.
- Renamed hecalHol to hebCalWeekday
- Added padding to outputted text
- Removed Deprecated getLatLongByAddr()
- Code Quality:
- Replace double quotes surrounding strings, with single quotes
- Use dot notation, instead of bracket for js arrays
- Utilize obj.forEach for better parsing of js arrays.
1.3.2 - 2019-02-06
- Generating zemannim by IP + hebcal API working.
[1.3.1] - 2019-02-04
- Add docblocks and clean up code.
- Deprecate getLatLongByAddr()
- Deprecate abbrRegion()
- Fix bug with getting user address via IP
- Switched from IP-DB to ipapi
- Combine Shabbath and Weekday times into single widget
- Increase wp-admin options for customization
- Update HebCal parsing logic to avoid functions breaking on weeks with holidays.
- getGeoDetails: Needs an additional
for loopin order to avoid
var statedefaulting to null.