PageSourceSearch

https://www.papyrusonline.com/wp-content/themes/kadence-child/aria-modals/init.js?ver=0.09714900%201791054273

js papyrusonline.com collected 2026-10-03 19:06:01 UTC 1,219 bytes, 44 lines download raw bytes

1function initDialog(id, elem) {
2    if(typeof(aria.getCurrentDialog() !== 'undefined')) {
3        openDialog(id, elem);
4        setBodyOverflow('hidden');
5    } else {
6        closeCurrentDialog();
7    }
8};
9
10function closeCurrentDialog() {
11    aria.closeCurrentDialog();
12    setBodyOverflow('scroll');
13};
14
15function setBodyOverflow(param) {
16    //sets Body vertical overflow based on param ex scroll, hidden...
17    document.body.style.overflowY = param;
18};
19//Remove body overflow on ESC
20document.addEventListener('keydown', function(event) {
21    if(event.key === 'Escape') {
22        if(typeof(aria.getCurrentDialog()) !== 'undefined') {
23            setBodyOverflow('scroll');
24        };
25    };
26});
27//Close current opened dialog on click outside of modal
28document.addEventListener('click', function(event) {
29    if(event.target.classList.contains('dialog-backdrop')) {
30        closeCurrentDialog();
31    };
32});
33
34document.addEventListener('DOMContentLoaded', function() {
35    if(typeof(aria.getCurrentDialog()) !== 'undefined') {
36        closeCurrentDialog();
37    };
38});
39
40window.addEventListener('beforeunload', function() {
41    if(typeof(aria.getCurrentDialog()) !== 'undefined') {
42        closeCurrentDialog();
43    };
44});

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.