Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
taarikh
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
taarikh
Merge requests
!2
ci: add gitlab-ci
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ci: add gitlab-ci
issue/taarikh-3401816:3401816-add-automated-testing
into
8.x-1.x
Overview
0
Commits
7
Pipelines
5
Changes
15
Merged
Hussain Abbas
requested to merge
issue/taarikh-3401816:3401816-add-automated-testing
into
8.x-1.x
1 year ago
Overview
0
Commits
7
Pipelines
5
Changes
15
Expand
Closes
#3401816
0
0
Merge request reports
Compare
8.x-1.x
version 4
0ad0d10f
1 year ago
version 3
8e90ca82
1 year ago
version 2
dc96a9d6
1 year ago
version 1
6c0ade25
1 year ago
8.x-1.x (base)
and
latest version
latest version
8524953b
7 commits,
1 year ago
version 4
0ad0d10f
6 commits,
1 year ago
version 3
8e90ca82
4 commits,
1 year ago
version 2
dc96a9d6
2 commits,
1 year ago
version 1
6c0ade25
1 commit,
1 year ago
15 files
+
288
−
103
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
Search (e.g. *.vue) (Ctrl+P)
js/taarikh.fatimid_astronomical.js
+
98
−
40
Options
(
function
(
$
)
{
"
use strict
"
;
((
$
)
=>
{
function
FatimidAstronomicalCalendar
(
language
)
{
$
.
calendars
.
calendars
.
islamic
.
call
(
this
,
language
);
}
@@ -13,64 +10,125 @@
jdEpoch
:
1948083.5
,
// Localisations.
regionalOptions
:
{
""
:
{
''
:
{
// The calendar name.
name
:
Drupal
.
t
(
"
Hijri
"
),
epochs
:
[
"
BH
"
,
"
AH
"
],
monthNames
:
[
Drupal
.
t
(
"
Muharram
"
),
Drupal
.
t
(
"
Safar
"
),
Drupal
.
t
(
"
Rabi' al-awwal
"
),
Drupal
.
t
(
"
Rabi' al-aakhar
"
),
Drupal
.
t
(
"
Jumada al-awwal
"
),
Drupal
.
t
(
"
Jumada al-aakhar
"
),
Drupal
.
t
(
"
Rajab
"
),
Drupal
.
t
(
"
Sha'aban
"
),
Drupal
.
t
(
"
Ramadan
"
),
Drupal
.
t
(
"
Shawwal
"
),
Drupal
.
t
(
"
Zilqad
"
),
Drupal
.
t
(
"
Zilhaj
"
)],
monthNamesShort
:
[
Drupal
.
t
(
"
Muh
"
),
Drupal
.
t
(
"
Saf
"
),
Drupal
.
t
(
"
Rab1
"
),
Drupal
.
t
(
"
Rab2
"
),
Drupal
.
t
(
"
Jum1
"
),
Drupal
.
t
(
"
Jum2
"
),
Drupal
.
t
(
"
Raj
"
),
Drupal
.
t
(
"
Sha'
"
),
Drupal
.
t
(
"
Ram
"
),
Drupal
.
t
(
"
Shaw
"
),
Drupal
.
t
(
"
DhuQ
"
),
Drupal
.
t
(
"
DhuH
"
)],
dayNames
:
[
Drupal
.
t
(
"
Yawm al-ahad
"
),
Drupal
.
t
(
"
Yawm al-ithnayn
"
),
Drupal
.
t
(
"
Yawm ath-thulaathaa'
"
),
Drupal
.
t
(
"
Yawm al-arbi'aa'
"
),
Drupal
.
t
(
"
Yawm al-khamis
"
),
Drupal
.
t
(
"
Yawm al-jum'a
"
),
Drupal
.
t
(
"
Yawm as-sabt
"
)],
dayNamesShort
:
[
Drupal
.
t
(
"
Sun
"
),
Drupal
.
t
(
"
Mon
"
),
Drupal
.
t
(
"
Tue
"
),
Drupal
.
t
(
"
Wed
"
),
Drupal
.
t
(
"
Thu
"
),
Drupal
.
t
(
"
Fru
"
),
Drupal
.
t
(
"
Sat
"
)],
dayNamesMin
:
[
Drupal
.
t
(
"
Su
"
),
Drupal
.
t
(
"
Mo
"
),
Drupal
.
t
(
"
Tu
"
),
Drupal
.
t
(
"
We
"
),
Drupal
.
t
(
"
Th
"
),
Drupal
.
t
(
"
Fr
"
),
Drupal
.
t
(
"
Sa
"
)],
name
:
Drupal
.
t
(
'
Hijri
'
),
epochs
:
[
'
BH
'
,
'
AH
'
],
monthNames
:
[
Drupal
.
t
(
'
Muharram
'
),
Drupal
.
t
(
'
Safar
'
),
Drupal
.
t
(
"
Rabi' al-awwal
"
),
Drupal
.
t
(
"
Rabi' al-aakhar
"
),
Drupal
.
t
(
'
Jumada al-awwal
'
),
Drupal
.
t
(
'
Jumada al-aakhar
'
),
Drupal
.
t
(
'
Rajab
'
),
Drupal
.
t
(
"
Sha'aban
"
),
Drupal
.
t
(
'
Ramadan
'
),
Drupal
.
t
(
'
Shawwal
'
),
Drupal
.
t
(
'
Zilqad
'
),
Drupal
.
t
(
'
Zilhaj
'
),
],
monthNamesShort
:
[
Drupal
.
t
(
'
Muh
'
),
Drupal
.
t
(
'
Saf
'
),
Drupal
.
t
(
'
Rab1
'
),
Drupal
.
t
(
'
Rab2
'
),
Drupal
.
t
(
'
Jum1
'
),
Drupal
.
t
(
'
Jum2
'
),
Drupal
.
t
(
'
Raj
'
),
Drupal
.
t
(
"
Sha'
"
),
Drupal
.
t
(
'
Ram
'
),
Drupal
.
t
(
'
Shaw
'
),
Drupal
.
t
(
'
DhuQ
'
),
Drupal
.
t
(
'
DhuH
'
),
],
dayNames
:
[
Drupal
.
t
(
'
Yawm al-ahad
'
),
Drupal
.
t
(
'
Yawm al-ithnayn
'
),
Drupal
.
t
(
"
Yawm ath-thulaathaa'
"
),
Drupal
.
t
(
"
Yawm al-arbi'aa'
"
),
Drupal
.
t
(
'
Yawm al-khamis
'
),
Drupal
.
t
(
"
Yawm al-jum'a
"
),
Drupal
.
t
(
'
Yawm as-sabt
'
),
],
dayNamesShort
:
[
Drupal
.
t
(
'
Sun
'
),
Drupal
.
t
(
'
Mon
'
),
Drupal
.
t
(
'
Tue
'
),
Drupal
.
t
(
'
Wed
'
),
Drupal
.
t
(
'
Thu
'
),
Drupal
.
t
(
'
Fru
'
),
Drupal
.
t
(
'
Sat
'
),
],
dayNamesMin
:
[
Drupal
.
t
(
'
Su
'
),
Drupal
.
t
(
'
Mo
'
),
Drupal
.
t
(
'
Tu
'
),
Drupal
.
t
(
'
We
'
),
Drupal
.
t
(
'
Th
'
),
Drupal
.
t
(
'
Fr
'
),
Drupal
.
t
(
'
Sa
'
),
],
// See format options on BaseCalendar.formatDate.
dateFormat
:
"
yyyy/mm/dd
"
,
dateFormat
:
'
yyyy/mm/dd
'
,
// The first day of the week, Sun = 0, Mon = 1, ...
firstDay
:
0
,
// True if right-to-left language, false if left-to-right.
isRTL
:
false
}
isRTL
:
false
,
}
,
},
leapYear
:
function
(
year
)
{
var
date
=
this
.
_validate
(
year
,
this
.
minMonth
,
this
.
minDay
,
$
.
calendars
.
local
.
invalidYear
);
leapYear
(
year
)
{
const
date
=
this
.
_validate
(
year
,
this
.
minMonth
,
this
.
minDay
,
$
.
calendars
.
local
.
invalidYear
,
);
return
(
date
.
year
()
*
11
+
11
)
%
30
<
11
;
},
toJD
:
function
(
year
,
month
,
day
)
{
var
date
=
this
.
_validate
(
year
,
month
,
day
,
$
.
calendars
.
local
.
invalidDate
);
toJD
(
year
,
month
,
day
)
{
const
date
=
this
.
_validate
(
year
,
month
,
day
,
$
.
calendars
.
local
.
invalidDate
,
);
year
=
date
.
year
();
month
=
date
.
month
();
day
=
date
.
day
();
year
=
(
year
<=
0
?
year
+
1
:
year
);
var
jd
=
day
+
Math
.
ceil
(
29.5
*
(
month
-
1
))
+
(
year
)
*
354
+
Math
.
floor
(((
11
*
year
))
/
30
)
+
this
.
jdEpoch
;
year
=
year
<=
0
?
year
+
1
:
year
;
const
jd
=
day
+
Math
.
ceil
(
29.5
*
(
month
-
1
))
+
year
*
354
+
Math
.
floor
((
11
*
year
)
/
30
)
+
this
.
jdEpoch
;
return
jd
;
},
fromJD
:
function
(
jd
)
{
var
iyear
=
10631
.
/
30
.
;
fromJD
(
jd
)
{
const
iyear
=
10631
/
30
;
// Results in years 2, 5, 8, 10, 13, 16, 19, 21, 24, 27 & 29 as leap years.
var
shift3
=
0.01
/
30
.
;
const
shift3
=
0.01
/
30
;
var
z
=
jd
-
this
.
jdEpoch
;
var
cyc
=
Math
.
floor
(
z
/
10631
.
);
z
=
z
-
10631
*
cyc
;
var
j
=
Math
.
floor
((
z
-
shift3
)
/
iyear
);
var
year
=
30
*
cyc
+
j
;
z
=
z
-
Math
.
floor
(
j
*
iyear
+
shift3
);
var
month
=
Math
.
floor
((
z
+
28.5001
)
/
29.5
);
if
(
month
==
13
)
{
let
z
=
jd
-
this
.
jdEpoch
;
const
cyc
=
Math
.
floor
(
z
/
10631
);
z
-
=
10631
*
cyc
;
const
j
=
Math
.
floor
((
z
-
shift3
)
/
iyear
);
const
year
=
30
*
cyc
+
j
;
z
-
=
Math
.
floor
(
j
*
iyear
+
shift3
);
let
month
=
Math
.
floor
((
z
+
28.5001
)
/
29.5
);
if
(
month
==
=
13
)
{
month
=
12
;
}
var
day
=
z
-
Math
.
floor
(
29.5001
*
month
-
29
);
const
day
=
z
-
Math
.
floor
(
29.5001
*
month
-
29
);
return
this
.
newDate
(
year
,
month
,
day
);
}
});
},
},
);
$
.
calendars
.
calendars
.
fatimid_astronomical
=
FatimidAstronomicalCalendar
;
})(
jQuery
);
Loading