PageSourceSearch

https://www.societyns.org/ScriptResource.axd?d=1zK9ca7I7DCjBDNNsvl…tLqYLz09vVt-Vt7GNqp-mxpZ6Ahj5uKAWYYx8koZPw2

js societyns.org collected 2026-10-02 03:57:58 UTC 12,151 bytes, 302 lines download raw bytes

1/// <reference path="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1-vsdoc.js" />
2
3(function ($) {
4    var methods = {
5        init: function (options) {
6            return this.each(function () {
7                var opts = $.extend({}, $.fn.stickyMessages.defaults, options);
8                var $this = $(this);
9                $this.options = opts;
10                $this.data('options', opts);
11
12                function initializePlugin() {
13                    if ($this.options.IsEnableClarityConsent=='True' && localStorage.getItem('cookieConsent') == 'accepted') {
14                        loadClarity();
15                    }
16                };
17
18                function initializeEventHandlers() {
19                    $('.sticky-button').live('click', function (e) {
20                        e.preventDefault();
21                        $('.div-sticky').hide();
22                        if ($.cookie($this.options.cookieName) != null) {
23                            if ($this.options.IsEnableClarityConsent == 'True' && $this.options.MicrosofClarity != '')
24                            acceptCookie();
25                            $.cookie($this.options.cookieName, 'true', { expires: 365, path: '/' });
26                        }
27                    });
28                    $('.sticky-dismiss-link').live('click', function (e) {
29                        e.preventDefault();
30                        $('.div-sticky').hide();
31                        if ($.cookie($this.options.cookieName) != null) {
32                            if ($this.options.IsEnableClarityConsent == 'True' && $this.options.MicrosofClarity != '')
33                            rejectCookie();
34                            $.cookie($this.options.cookieName, 'true', { expires: 365, path: '/' });
35                        }
36                    });
37
38                };
39
40                initializePlugin();
41                initializeEventHandlers();
42
43                function loadClarity() {
44                    if ($this.options.MicrosofClarity == '')
45                        return;
46                    (function (c, l, a, r, i, t, y) {
47                        c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
48                        t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
49                        y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
50                    })(window, document, "clarity", "script", $this.options.MicrosofClarity);
51                }
52                function acceptCookie() {
53                    loadClarity();
54                    //window.clarity('consent');
55                     window.clarity('consentv2', {
56                        ad_Storage: "granted",
57                        analytics_Storage: "granted"
58                    });
59                    localStorage.setItem('cookieConsent', 'accepted');
60                    window.clarity("identify", $this.options.UserEmail, "", "", $this.options.UserEmail);
61                }
62                function rejectCookie() {
63                    localStorage.setItem('cookieConsent', 'rejected');
64                    //if (window.clarity) window.clarity('consent', false);
65                    if (window.clarity) {
66                        window.clarity('consentv2', {
67                            ad_Storage: "denied",
68                            analytics_Storage: "denied"
69                        });
70                    }
71                    
72                }
73            });
74        }
75    };
76
77    $.fn.stickyMessages = function (method) {
78
79        //=======================================================================
80        // Method calling logic
81        //=======================================================================
82
83        if (methods[method]) {
84            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
85        }
86        else if (typeof method === 'object' || !method) {
87            return methods.init.apply(this, arguments);
88        }
89        else {
90            $.error('Method ' + method + ' does not exist in credit list');
91        }
92    };
93
94    //=======================================================================
95    //   Private functions
96    //=======================================================================
97
98    //=======================================================================
99    //   Plugin defaults
100    //=======================================================================
101
102    $.fn.stickyMessages.defaults = {
103        cookieName: '',
104        UserEmail: '',
105        MicrosofClarity: '',    
106         IsEnableClarityConsent:false 
107    };
108
109})(jQuery);
110
111/// <reference path="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1-vsdoc.js" />
112
113(function ($) {
114    var methods = {
115        init: function (options) {
116            return this.each(function () {
117                var opts = $.extend({}, $.fn.impersonateView.defaults, options);
118                var $this = $(this);
119                $this.options = opts;
120                $this.data('options', opts);
121
122                function initializePlugin() {
123                    if ($this.options.isSessionAvailable) {
124                        $("body").css("border", "5px solid #52ad5b");
125                    }
126                    else {
127                        $("body").css("border", "0px");
128                    }
129                };
130
131                function initializeEventHandlers() {
132                    $('.leaveView-button').live('click', function (e) {
133                        e.preventDefault();
134                        $.ajax({
135                            type: "POST",
136                            url: "/Ams/Ams.asmx/StopImpersonating",
137                            contentType: "application/json; charset=utf-8",
138                            dataType: "json",
139                            success: function (response) {
140                                if (response.d != '' && response.d != null) {
141                                    if (response.d.Success) {
142                                        if($this.options.impersonatedUserId != "")
143                                            window.location.href = '/Ams/Members/' + $this.options.impersonatedUserId + '/Account';
144                                        else
145                                            window.location.href = '/Default.aspx';
146                                    }
147                                    else {
148                                        window.FlashMessage.showError(response.d.Message);
149                                    }
150                                }
151                            },
152                            error: function (response) {
153                                console.log(response);
154                                window.FlashMessage.showError(response.d.Message);
155                            }
156                        });
157
158//                        $('.div-impersonate').hide();
159                    });
160                };
161
162                initializePlugin();
163                initializeEventHandlers();
164            });
165        }
166    };
167
168    $.fn.impersonateView = function (method) {
169
170        //=======================================================================
171        // Method calling logic
172        //=======================================================================
173
174        if (methods[method]) {
175            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
176        }
177        else if (typeof method === 'object' || !method) {
178            return methods.init.apply(this, arguments);
179        }
180        else {
181            $.error('Method ' + method + ' does not exist in credit list');
182        }
183    };
184
185    //=======================================================================
186    //   Private functions
187    //=======================================================================
188
189    //=======================================================================
190    //   Plugin defaults
191    //=======================================================================
192
193    $.fn.impersonateView.defaults = {
194    };
195
196})(jQuery);
197
198
199(function (window) {
200    
201    var debugInfo = {};
202    var registerFunction = function(debugData) {
203        for (attr in debugData) {
204            if (debugData.hasOwnProperty(attr)) {
205                debugInfo[attr] = debugData[attr];
206            }
207        }
208        return;
209    };
210
211    var getFunction = function() {
212        return debugInfo;
213    };
214    
215    // ReSharper disable InconsistentNaming
216    // n4m-named variables are not liked by resharper.
217    var n4mDebug = {};
218    // ReSharper restore InconsistentNaming
219    if (window.n4mDebug === undefined) {
220        window.n4mDebug = n4mDebug;
221    }
222
223    if (n4mDebug.registerDebugInfo === undefined) {
224        n4mDebug.registerDebugInfo = registerFunction;
225    }
226    if (n4mDebug.getDebugInfo === undefined) {
227        n4mDebug.getDebugInfo = getFunction;
228    }
229
230    return;
231}(window));
232
233
234(function ($) {
235    "use strict";
236
237    var methods = {
238        init: function(options) {
239            return this.each(function() {
240                var $this = $(this),
241                    opts = $.extend({}, $.fn.externalLink.defaults, options);
242
243                $this.options = opts;
244
245                if ($('body').data('externalModalInitialized') !== true) {
246                    $('body').append(
247                        '<div id="externalConfirmation" class="modal fade" role="dialog">' +
248                            '<div class="modal-dialog">' +
249                            '<div class="modal-content">' +
250                            '<div class="modal-header">' +
251                            '<h3>' + $this.options.title + '</h3>' +
252                            '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>' +
253                            '</div>' +
254                            '<div class="modal-body">' +
255                            '<p>' + $this.options.body + '</p>' +
256                            '</div>' +
257                            '<div class="modal-footer">' +
258                            '<a href="#" class="btn btn-primary leave-button" target="_blank">OK</a>' +
259                            '<button class="btn btn-secondary" data-dismiss="modal">Cancel</button>' +
260                            '</div>' +
261                            '</div>' +
262                            '</div>' +
263                            '</div>'
264                    );
265
266                    $('body').data('externalModalInitialized', true);
267                }
268
269                $this.on('click', function(event) { 
270                    $('#externalConfirmation').modal('show');
271                    $('a.leave-button').attr('href', $this.attr('href'));
272                    event.preventDefault();
273                    return false;
274                });
275
276                $('a.leave-button').on('click', function(event) {
277                    $('#externalConfirmation').modal('hide');
278                });
279            });
280        }
281    };
282
283    $.fn.externalLink = function(method) {
284        //=======================================================================
285        // Method calling logic
286        //=======================================================================
287        if (methods[method]) {
288            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
289        }
290        else if (typeof method === 'object' || !method) {
291            return methods.init.apply(this, arguments);
292        }
293        else {
294            $.error('Method ' + method + ' does not exist on externalLink');
295        }
296    };
297
298    $.fn.externalLink.defaults = {
299        title: 'You are about to leave the website',
300        body: 'Links to external websites are provided for your convenience only.'
301    };
302}(jQuery));

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.