[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_wrapper/js/ -> iframe-height-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    /**
   5     * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   6     * @license     GNU General Public License version 2 or later; see LICENSE.txt
   7     */
   8    (function (window, document) {
   9      window.iFrameHeight = function (iframe) {
  10        var doc = 'contentDocument' in iframe ? iframe.contentDocument : iframe.contentWindow.document;
  11        var height = parseInt(doc.body.scrollHeight, 10);
  12  
  13        if (!document.all) {
  14          iframe.style.height = parseInt(height, 10) + 60 + "px";
  15        } else if (document.all && iframe.id) {
  16          document.all[iframe.id].style.height = parseInt(height, 10) + 20 + "px";
  17        }
  18      };
  19    })(window, document);
  20  
  21  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer