PageSourceSearch

https://www.washburn.edu/_redesign2018/_files/js/alertparent-b.js

js washburn.edu collected 2026-10-01 10:33:11 UTC 2,054 bytes, 43 lines download raw bytes

1window.addEventListener("DOMContentLoaded", function() {
2    var parentWindow = window.location.href;
3    var iframe = document.querySelector("iframe"), _window = iframe.contentWindow
4    $("#alertcontent").removeAttr("height");
5    $("#alertcontent").removeAttr("width");
6    //console.log(parentWindow, iframe );
7    window.addEventListener("message", function(e) {
8
9        // wait for child to signal that it's loaded.
10        if ( e.data === "loaded" && e.origin === iframe.src.split("/").splice(0, 3).join("/")) {
11            //console.log(e.origin, "e.origin");
12        // send the child a message.
13            _window.postMessage(parentWindow, iframe.src)
14        }
15        //check for height of #alert div and change iframe height to match
16        if ( $.isNumeric(e.data) && e.origin === iframe.src.split("/").splice(0, 3).join("/")) { 
17            alertHeight = e.data;
18            $("#alertcontent").css("height", e.data);
19            if ( e.data != 0){
20                $(".rightFloatingIconBlueBg").addClass("alertBump");//for sticky button position
21                $(".rightFloatingIconYellowBg").addClass("alertBump");//for sticky button position
22                var covidHeight = $("#covid").outerHeight();
23                var combinedHeights = covidHeight + e.data;
24                var winHeight = $(window).height() - combinedHeights;
25                //console.log(winHeight);
26                $("#fix").css({top: combinedHeights});
27                $(".video-container").css({height: winHeight});
28            }
29        }
30        // check for 'close' message
31        if ( e.data === "close" && e.origin === iframe.src.split("/").splice(0, 3).join("/")) {
32        $("#alertcontent").removeAttr("height");
33        $("#alertcontent").animate({height:"35px"});
34        }
35        // check for 'open' message
36        if ( e.data === "open" && e.origin === iframe.src.split("/").splice(0, 3).join("/")) {
37         
38        $("#alertcontent").animate({height: alertHeight});
39        }
40
41    })
42
43}, false);

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.