PageSourceSearch

https://www.discovery.co.za/portal/js/auto-iframe-resize.js

js discovery.co.za collected 2026-10-02 02:28:51 UTC 756 bytes, 25 lines download raw bytes

1"use strict";
2
3$(function () {
4    var currentHeight = 0;
5    var frameHeight = 0;
6    var frame = document.getElementById('appIFrameObj');
7    console.log("auto-iframe-resize.js loaded...");
8
9    if (frame != null && typeof frame !== 'undefined') {
10        console.log("auto-iframe-resize.js frame found...");
11
12        setInterval(function () {
13            if (frameHeight === 0) {
14                frameHeight = frame.height;
15            }
16
17            if (frame.contentWindow.document.body) {
18                currentHeight = frame.contentWindow.document.body.offsetHeight;
19                $(frame).css('height', currentHeight + 'px');
20            }
21        }, 500);
22    } else {
23        console.log("auto-iframe-resize.js frame NOT found...");
24    }
25});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.