Diferencia entre revisiones de «Widget:Calendario maya»
(Página creada con «<form name="dayForm" style="margin:0; padding:0"> <div style="text-align:left; background-color:#ffffff; width:734px"> <div style="padding:40px 15px 0 30px"> <span class="t...») |
|||
Línea 110: | Línea 110: | ||
<td valign="top" align="right" nowrap=""><input type="button" name="ybrad" value="9" size="5"> | <td valign="top" align="right" nowrap=""><input type="button" name="ybrad" value="9" size="5"> | ||
<input type="button" name="yb" value="Eb" size="9"></td> | <input type="button" name="yb" value="Eb" size="9"></td> | ||
− | <td valign="top" class="calc2"> | + | <td valign="top" class="calc2">Día</td> |
</tr> | </tr> |
Revisión del 15:08 19 dic 2017
<form name="dayForm" style="margin:0; padding:0">
Calendario maya
<tbody>
</tbody>
|
<tbody>
|
</form>
<script>
yb=(tzolkin-haabradical)%20; if(yb <=0) yb=yb + 20;
if (yb==1)date.yb.value ="Imix"; else if (yb==2) date.yb.value ="Ik"; else if (yb==3) date.yb.value ="Ak'bal"; else if (yb==4) date.yb.value ="Kan"; else if (yb==5) date.yb.value ="Chikchan"; else if (yb==6) date.yb.value ="Kimi"; else if (yb==7) date.yb.value ="Manik"; else if (yb==8) date.yb.value ="Lamat"; else if (yb==9) date.yb.value ="Muluk"; else if (yb==10) date.yb.value ="Ok"; else if (yb==11) date.yb.value ="Chuen"; else if (yb==12) date.yb.value ="Eb"; else if (yb==13) date.yb.value ="Ben"; else if (yb==14) date.yb.value ="Ix"; else if (yb==15) date.yb.value ="Men"; else if (yb==16) date.yb.value ="Kib"; else if (yb==17) date.yb.value ="Kaban"; else if (yb==18) date.yb.value ="Etz'nab"; else if (yb==19) date.yb.value ="Kawac"; else if (yb==0) date.yb.value ="Ahau"; else if (yb>19) date.yb.value = "error";
ybrad = (tzolradical-haabradical-(haabkin * 7))%13
if(ybrad <=0) ybrad=ybrad + 13; date.ybrad.value =ybrad;
}
function getjulian(year,month,day){
if (month < 3) {month += 12; year -= 1};
a = Math.floor(year/100); b = 2-a+Math.floor(a/4); j = Math.floor(365.25*(year+4716))+ Math.floor(30.6001*(month+1))+ day+b-1524;
return j;
} // -->
</script>