Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
794 bytes añadidos
, hace 6 años
Línea 172: |
Línea 172: |
| | | |
| </div> | | </div> |
| + | <div id="kinimg" width="100px" height="100px"></div> |
| <div id="tzolkinimg" width="100px" height="100px"></div> | | <div id="tzolkinimg" width="100px" height="100px"></div> |
| <div id="haabimg" width="100px" height="100px"></div> | | <div id="haabimg" width="100px" height="100px"></div> |
Línea 206: |
Línea 207: |
| uinal=Math.floor(xdays/20); | | uinal=Math.floor(xdays/20); |
| date.uinal.value=uinal; | | date.uinal.value=uinal; |
| + | |
| kin=xdays-(uinal*20); | | kin=xdays-(uinal*20); |
| date.kin.value=kin; | | date.kin.value=kin; |
| + | |
| + | <!---- testing -----> |
| + | if (kin==1) {date.kin.value ="1"; document.getElementById("kinimg").innerHTML= '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="64px">';} |
| + | else if (kin==2) {date.kin.value ="2"; document.getElementById("kinimg").innerHTML= '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="64px">';} |
| + | else if (kin==3) {date.kin.value ="3"; document.getElementById("kinimg").innerHTML= '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="64px">';} |
| + | else if (kin==4) {date.kin.value ="4"; document.getElementById("kinimg").innerHTML= '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="64px">';} |
| + | else if (kin>4) date.kin.value = "error"; |
| + | <!---- testing -----> |
| | | |
| xdays=days-(260*(Math.floor(days/260))); | | xdays=days-(260*(Math.floor(days/260))); |