home.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Copyright 2021, 2024 5 Mode
  3. *
  4. * This file is part of Xslwiz.
  5. *
  6. * Xslwiz is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Xslwiz is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Xslwiz. If not, see <https://www.gnu.org/licenses/>.
  18. *
  19. * fileName.php
  20. *
  21. * Xslwiz description of the file.
  22. *
  23. * @author Daniele Bonini <my25mb@aol.com>
  24. * @copyrights (c) 2016, 2024 5 Mode
  25. */
  26. function setFooterPos() {
  27. if (document.getElementById("footerCont")) {
  28. tollerance = 16;
  29. $("#footerCont").css("top", parseInt( window.innerHeight - $("#footerCont").height() - tollerance ) + "px");
  30. $("#footer").css("top", parseInt( window.innerHeight - $("#footer").height() - tollerance ) + "px");
  31. }
  32. }
  33. window.addEventListener("load", function(){
  34. setTimeout("setFooterPos()",500);
  35. });