Línea 193: |
Línea 193: |
| </div> | | </div> |
| <div> | | <div> |
− | <div id="tzolradimg" width="50px" height="50px" style="float:left"></div> | + | <div id="tzolradimg" height="64px" style="float:left"></div> |
− | <div id="tzolkinimg" width="50px" height="50px"></div> | + | <div id="tzolkinimg" width="100px" height="100px"></div> |
| + | </div> |
| + | <div> |
| + | <div id="haabradimg" height="64px" style="float:left"></div> |
| + | <div id="haabradimg" width="100px" height="100px"></div> |
| </div> | | </div> |
| + | |
| | | |
| <script> | | <script> |
Línea 238: |
Línea 243: |
| | | |
| | | |
− |
| + | <!------tzolkin radical------> |
| if (tzolradical == 1) { | | if (tzolradical == 1) { |
| date.tzolrad.value = "1"; | | date.tzolrad.value = "1"; |
Línea 317: |
Línea 322: |
| else if (tzolradical > 19) date.tzolrad.value = "error"; | | else if (tzolradical > 19) date.tzolrad.value = "error"; |
| | | |
− | | + | <!-----tzolkin------> |
| if (tzolkin == 1) { | | if (tzolkin == 1) { |
| date.tzolkin.value = "Imix"; | | date.tzolkin.value = "Imix"; |
Línea 409: |
Línea 414: |
| haabkin = Math.floor(xdays / 20); | | haabkin = Math.floor(xdays / 20); |
| | | |
| + | <!-----haab radical-------> |
| + | if (haabradical == 1) { |
| + | date.haabrad.value = "1"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 2) { |
| + | date.haabrad.value = "2"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 3) { |
| + | date.haabrad.value = "3"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 4) { |
| + | date.haabrad.value = "4"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 5) { |
| + | date.haabrad.value = "5"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 6) { |
| + | date.haabrad.value = "6"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 7) { |
| + | date.haabrad.value = "7"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 8) { |
| + | date.haabrad.value = "8"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 9) { |
| + | date.haabrad.value = "9"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 10) { |
| + | date.haabrad.value = "10"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 11) { |
| + | date.haabrad.value = "11"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 12) { |
| + | date.haabrad.value = "12"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 13) { |
| + | date.haabrad.value = "13"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 14) { |
| + | date.haabrad.value = "14"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 15) { |
| + | date.haabrad.value = "15"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 16) { |
| + | date.haabrad.value = "16"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 17) { |
| + | date.haabrad.value = "17"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 18) { |
| + | date.haabrad.value = "18"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 19) { |
| + | date.haabrad.value = "19"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="50px">'; |
| + | } |
| + | else if (haabradical > 19) date.haabrad.value = "error"; |
| + | |
| + | |
| + | <!------haab------> |
| if (haabkin == 0) { | | if (haabkin == 0) { |
| date.haab.value = "Pop"; | | date.haab.value = "Pop"; |