Dashboard sipadu mbip
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

getDocumentHeight.js 345B

123456789101112131415
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = _default;
  4. /**
  5. * Get the height of the document
  6. *
  7. * @returns {documentHeight: number}
  8. */
  9. function _default(doc) {
  10. return Math.max(doc.documentElement.offsetHeight || 0, doc.height || 0, doc.body.scrollHeight || 0, doc.body.offsetHeight || 0);
  11. }
  12. module.exports = exports.default;