Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muhammadmabrouk/jquery-hijri-date
A small jQuery plugin to display Hijri date
https://github.com/muhammadmabrouk/jquery-hijri-date
Last synced: about 2 months ago
JSON representation
A small jQuery plugin to display Hijri date
- Host: GitHub
- URL: https://github.com/muhammadmabrouk/jquery-hijri-date
- Owner: MuhammadMabrouk
- Created: 2021-02-13T21:07:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T14:23:30.000Z (over 3 years ago)
- Last Synced: 2024-11-09T04:39:52.106Z (2 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jquery-hijri-date
A small jQuery plugin to display Hijri date.
### Install
```sh
$ npm install jquery-hijri-date --save
```or
```html
```
### Examples:
```html
```
**1- Default:**
```javascript
$('.my-date').hijriDate();
```![alt text](https://drive.google.com/uc?export=view&id=1ZrjM9_FlGJeP2mUpKjm0-cr64JNsKC0a "Hijri Date Default")
### Options:
| Prop | Type | Description | Default |
| ----------- | :----: | ----------- | :----: |
| showWeekDay | `boolean` | Set to `true` or `false` to show or hide the day of the week. | `true` |
| showGregDate | `boolean` | Set to `true` or `false` to show or hide the Gregorian date. | `false` |
| separator | `string` | The separator symbol that appears between the Hijri and Gregorian dates. | `'-'` |
| weekDayLang | `'ar'` | `'en'` | Determine the language for printing the day of the week. | `'ar'` |
| hijriLang | `'ar'` | `'en'` | Determine the language for printing the Hijri date. | `'ar'` |
| gregLang | `'ar'` | `'en'` | Determine the language for printing the Gregorian date. | `'ar'` |
| correction | `number` | Add or subtract one or more days until you get the correct date. | `0` |
**2- Customized:**
```javascript
$('.my-date').hijriDate({
showWeekDay: true,
showGregDate: true,
separator: ' | ',
weekDayLang: 'en',
hijriLang: 'en',
gregLang: 'en',
correction: +1
});
```
![alt text](https://drive.google.com/uc?export=view&id=1dcGBZ3ku06dugh0Qj4RkBaaIBpAdlHG_ "Customized")
### License
ISC