Dashboard sipadu mbip
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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;