Diferencia entre revisiones de «Widget:Mayan calendar»
(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...») |
(Sin diferencias)
|
Revisión del 14:20 19 dic 2017
<form name="dayForm" style="margin:0; padding:0">
Ancient Mayan Calendars
<tbody>
</tbody>
|
<tbody>
|
<iframe src="calc_mayaToday.html" name="main" id="main" style="width: 280px; height: 100px; visibility: visible" width="280" height="100" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe>
</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 ="Akbal"; else if (yb==4) date.yb.value ="Kan"; else if (yb==5) date.yb.value ="Chicchan"; 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 ="Muluc"; else if (yb==10) date.yb.value ="Oc"; 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 ="Cib"; else if (yb==17) date.yb.value ="Caban"; else if (yb==18) date.yb.value ="Etznab"; else if (yb==19) date.yb.value ="Cauac"; 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>