fecha.js 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*!
  2. * @Source: fecha.js
  3. *
  4. * @licstart The following is the entire license notice for the
  5. * JavaScript code in this page.
  6. *
  7. * Copyleft 2017 Jesus Eduardo
  8. *
  9. * The JavaScript code in this page is free software: you can
  10. * redistribute it and/or modify it under the terms of the GNU
  11. * General Public License (GNU GPL) as published by the Free Software
  12. * Foundation, either version 3 of the License, or (at your option)
  13. * any later version. The code is distributed WITHOUT ANY WARRANTY;
  14. * without even the implied warranty of MERCHANTABILITY or FITNESS
  15. * FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  16. *
  17. * As additional permission under GNU GPL version 3 section 7, you
  18. * may distribute non-source (e.g., minimized or compacted) forms of
  19. * that code without the copy of the GNU GPL normally required by
  20. * section 4, provided you include this license notice and a URL
  21. * through which recipients can access the Corresponding Source.
  22. *
  23. * @licend The above is the entire license notice
  24. * for the JavaScript code in this page.
  25. *
  26. */
  27. var hoy = new Date(),
  28. yyyy = hoy.getFullYear();
  29. var anio = yyyy,
  30. parrafo = document.getElementById('year');
  31. parrafo.innerHTML = anio;