PageSourceSearch

https://orthomedia.org.uk/js/GlobalWidgets/Messaging/messaging.js

js orthomedia.org.uk collected 2026-09-28 08:53:50 UTC 1,218 bytes, 48 lines download raw bytes

1///Generic Javascript for Messaging to display modal.
2
3function Site_Messaging_ModalClick() {
4
5    var site_message_modal = $('.site_messaging_modal');
6
7    if (site_message_modal.length) {
8
9        if (site_message_modal.hasClass('active')) {
10            //Close it up.  Calls out to the main site modal to close.
11            site_CloseSiteModal();
12        }
13        else {
14            //Open it up.
15            site_message_modal.addClass('active');
16            site_OpenSiteOverlay();
17        }
18
19    }
20
21}
22
23
24function Site_Messaging_BindToggles() {
25    $('.site_message_button').each(function () {
26        if (!$(this).hasClass('toggle-bound')) {
27            $(this).on('click', Site_Messaging_ModalClick);
28            $(this).addClass('toggle-bound');
29        }
30    });
31
32
33    $('.close-site-modal-button').each(function () {
34        if (!$(this).hasClass('toggle-bound')) {
35            $(this).on('click', Site_Messaging_ModalClick);
36            $(this).addClass('toggle-bound');
37        }
38    });
39
40
41}
42
43
44//This called from page manager as things load.  Keeps binding things that aren't bound.
45function BindSiteWideMessaging() {
46    Site_Messaging_BindToggles();
47}
48

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.