PageSourceSearch

https://thecenterpresents.org/js/cookieConsentCheck.js?v=639266184475027589

js thecenterpresents.org collected 2026-10-03 22:51:45 UTC 3,506 bytes, 90 lines download raw bytes

1$(window).on('load', function () {
2    var baseUrl = '';
3    if (window.location.host.toLowerCase() === 'secure.thecenterpresents.org')
4        baseUrl = '//thecenterpresents.org';
5    else if (window.location.host.toLowerCase() === 'staging.thecenterpresents.org')
6        baseUrl = '//staging.thecenterpresents.org';
7    else if (window.location.host.toLowerCase() === 'thecenterpresents.org')
8        baseUrl = '//thecenterpresents.org';
9    else if (window.location.host.toLowerCase() === 'tcpa-staging-umbraco-10.jixaw.com')
10        baseUrl = '//tcpa-staging-umbraco-10.jixaw.com';
11    else if (window.location.host.toLowerCase() === 'gasf-staging-umbraco-10.jixaw.com')
12        baseUrl = '//gasf-staging-umbraco-10.jixaw.com';
13    else
14        baseUrl = '//tcpa-staging.jixaw.com';
15
16    var notifyMarketingSite = function () {
17        $.ajax({
18            url: baseUrl + '/umbraco/surface/ui/CookiesAccepted',
19            method: 'POST',
20            xhrFields: {
21                withCredentials: true
22            }
23        })
24        .done(function (data) {
25
26        })
27        .fail(function () {
28
29        })
30        .always(function () {
31
32        });
33    };
34
35    var showCookieMessage = function () {
36        window.cookieconsent.initialise({
37            "palette": {
38                "popup": {
39                    "background": "#fff"
40                },
41                "button": {
42                    "background": "#9e227a"
43                }
44            },
45            "content": {
46                "message": "<h2 class=\"text-center cookies-header hidden-sm hidden-xs hidden-md \">This site uses Cookies</h2>" +
47                    "<p class=\"cookies-paragraph\">" +
48                    "We use cookies and other tracking technologies to improve your website experience and to analyze our website traffic. " +
49                    "To learn more about cookies, including how to disable them, " +
50                    "please see our <a href=\"https://thecenterpresents.org/about/the-center-for-the-performing-arts/privacy-policy/\">Privacy Policy</a>. " +
51                    "By using our website without changing your settings, you consent to our use of cookies and other tracking technologies." +
52                    "</p>",
53                "dismiss": '<button type="button" aria-label="dismiss cookie message" role="button" tabindex="0" class="cc-btn cc-dismiss" style="margin:0 auto; width:100%">I Understand</button>',
54                "link": null,
55            }
56        });
57        var host = window.location.host.toLowerCase();
58        if (host === 'secure.thecenterpresents.org' || host === 'test-na-cpas.tn.services') {
59            $(document).on('click', '.cc-btn.cc-dismiss', function () {
60                notifyMarketingSite();
61            });
62        }
63
64        //change the tabindex of the dismiss button
65        $('.cc-compliance').find('a.cc-dismiss').attr('tabindex', '-1');
66    };
67    var checkIfCookieMessageShouldShow = function () {
68        $.ajax({
69            cache: false,
70            xhrFields: {
71                withCredentials: true
72            },
73            //crossDomain: true,
74            dataType: 'json',
75            url: baseUrl + '/umbraco/surface/ui/ShowCookieMessage'
76        })
77        .done(function (data) {
78            if (data && data.showCookieMessage) {
79                showCookieMessage();
80            }
81        })
82        .fail(function () {
83
84        })
85        .always(function () {
86
87        });
88    };
89    checkIfCookieMessageShouldShow();
90});

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.