PageSourceSearch

https://www.seniorific.com/sites/seniorific.com/files/js/js_3RCBsDokZgYTsChh7E-vGjSUGeY1c6dBqWZj11Ph-uE.js

js seniorific.com collected 2026-09-26 10:10:47 UTC 5,144 bytes, 171 lines download raw bytes

1(function($) {
2
3  // Behavior to load FlexSlider
4  Drupal.behaviors.flexslider = {
5    attach: function(context, settings) {
6      var id;
7      var sliders = [];
8      if ($.type(settings.flexslider) !== 'undefined' && $.type(settings.flexslider.instances) !== 'undefined') {
9
10        for (id in settings.flexslider.instances) {
11
12          if (settings.flexslider.optionsets[settings.flexslider.instances[id]] !== undefined) {
13            if (settings.flexslider.optionsets[settings.flexslider.instances[id]].asNavFor !== '') {
14              // We have to initialize all the sliders which are "asNavFor" first.
15              _flexslider_init(id, settings.flexslider.optionsets[settings.flexslider.instances[id]], context);
16            } else {
17              // Everyone else is second
18              sliders[id] = settings.flexslider.optionsets[settings.flexslider.instances[id]];
19            }
20          }
21        }
22      }
23      // Slider set
24      for (id in sliders) {
25        _flexslider_init(id, settings.flexslider.optionsets[settings.flexslider.instances[id]], context);
26      }
27    }
28  };
29
30  /**
31   * Initialize the flexslider instance
32   */
33
34  function _flexslider_init(id, optionset, context) {
35    $('#' + id, context).once('flexslider', function() {
36      // Remove width/height attributes
37      // @todo load the css path from the settings
38      $(this).find('ul.slides > li *').removeAttr('width').removeAttr('height');
39
40      if (optionset) {
41        // Add events that developers can use to interact.
42        $(this).flexslider($.extend(optionset, {
43          start: function(slider) {
44            slider.trigger('start', [slider]);
45          },
46          before: function(slider) {
47            slider.trigger('before', [slider]);
48          },
49          after: function(slider) {
50            slider.trigger('after', [slider]);
51          },
52          end: function(slider) {
53            slider.trigger('end', [slider]);
54          },
55          added: function(slider) {
56            slider.trigger('added', [slider]);
57          },
58          removed: function(slider) {
59            slider.trigger('removed', [slider]);
60          },
61          init: function(slider) {
62            slider.trigger('init', [slider]);
63          }
64        }));
65      } else {
66        $(this).flexslider();
67      }
68    });
69  }
70
71}(jQuery));
72;
73/**
74 * @file
75 * AddThis javascript actions.
76 */
77
78(function ($) {
79  Drupal.behaviors.addthis = {
80    scriptLoaded: false,
81
82    attach: function(context, settings) {
83
84      // The addthis configuration is not loaded but the settings are passed
85      // to do so.
86      if (!this.isConfigLoaded() && this.isSettingsLoaded()) {
87        // Initialize config.
88        this.initConfig();
89
90        // Load widget js.
91        if (!this.scriptLoaded) {
92          this.loadDomready();
93        }
94      }
95      // The addthis configuration is not loaded but no setting are available
96      // to load anything.
97      else if(!this.isConfigLoaded() && !this.isSettingsLoaded()) {
98        // Do nothing
99      }
100
101      // Trigger ready on ajax attach.
102      if (context != window.document) {
103        Drupal.behaviors.addthis.ajaxLoad(context, settings);
104      }
105
106    },
107
108    // Returns if the settings defined by the addthis module are loaded.
109    isSettingsLoaded: function () {
110      if (typeof Drupal.settings.addthis == 'undefined') {
111        return false;
112      }
113      return true;
114    },
115
116    // Returns if the configuration variables needed for widget.js are defined.
117    isConfigLoaded: function() {
118      if (typeof addthis_config == 'undefined' || typeof addthis_share == 'undefined') {
119        return false;
120      }
121      return true;
122    },
123
124    initConfig: function () {
125      addthis_config = Drupal.settings.addthis.addthis_config;
126      addthis_share = Drupal.settings.addthis.addthis_share;
127    },
128
129    // Load the js library when the dom is ready.
130    loadDomready: function() {
131      // If settings asks for loading the script after the dom is loaded, then
132      // load the script here.
133      if (!this.scriptLoaded &&
134          this.isConfigLoaded() &&
135          Drupal.settings.addthis.domready) {
136        $.getScript(Drupal.settings.addthis.widget_url, Drupal.behaviors.addthis.scriptReady);
137      }
138    },
139
140    // Callback for loading the widget.js dynamically.
141    scriptReady: function () {
142      this.scriptLoaded = true;
143    },
144
145    // Called when a ajax request returned.
146    ajaxLoad: function(context, settings) {
147      if (typeof window.addthis != 'undefined' &&
148          typeof window.addthis.toolbox == 'function')
149      {
150          window.addthis.toolbox('.addthis_toolbox');
151      }
152    }
153
154  };
155
156  // This load the config in time to run any addthis functionality.
157  if (Drupal.behaviors.addthis.isConfigLoaded()) {
158    addthis_config = Drupal.settings.addthis.addthis_config;
159    addthis_share = Drupal.settings.addthis.addthis_share;
160  }
161
162  // Document ready in case we want to load AddThis into the dom after every
163  // thing is loaded.
164  //
165  // Is executed once after the attach happened.
166  $(document).ready(function() {
167    Drupal.behaviors.addthis.loadDomready();
168  });
169
170}(jQuery));
171;

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.