Skip to content

Commit 92fc3ad

Browse files
jagannatha drekkana
1 parent 650763b commit 92fc3ad

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

SJPv6/www/SJPamsha.htm

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<option>Navamsa</option>
5353
<option>Dreshkana</option>
5454
<option>D3-Somanatha</option>
55+
<option>D3-Jagannatha</option>
5556
<option>Chaturtamsa</option>
5657
<option>Saptamsa</option>
5758
<option>Dasamsa</option>

SJPv6/www/jyotish.js

+20
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ function GetDivisionalSign(degrees,division,object)//For a given degree get the
3838
if(k==0)k=12;
3939
break;
4040
}
41+
case "Dreshkana":
42+
case "D3":
43+
{
44+
AmshaPortion = 10;
45+
Amsha = parseInt(SignDeg/AmshaPortion+0.999999999);
46+
k=Sign+(Amsha*4-4);
47+
k%=12;
48+
if(k==0)k=12;
49+
break;
50+
}
51+
case "D3-Jagannatha":
52+
case "D3-J":
53+
{
54+
AmshaPortion = 10;
55+
Amsha = parseInt(SignDeg/AmshaPortion+0.999999999);
56+
k=(13-3*(Sign%4)+3)%12+(Amsha*4-4);
57+
k%=12;
58+
if(k==0)k=12;
59+
break;
60+
}
4161
case "D3-Somanatha":
4262
case "D3-S":{
4363
AmshaCycles = 3;//cycles

0 commit comments

Comments
 (0)