PageSourceSearch

https://www.lawfirmwolf.com/sites/default/files/advagg_js/js__nuzI…05UrjTAvORiZrCb8vrglJDrtfL82UU28zzMQQ1Ck.js

js lawfirmwolf.com collected 2026-10-02 14:23:48 UTC 14,050 bytes, 352 lines download raw bytes

1/**
2* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
3* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
4* 
5* @param  f  onMouseOver function || An object with configuration options
6* @param  g  onMouseOut function  || Nothing (use configuration options object)
7* @author    Brian Cherne brian(at)cherne(dot)net
8*/
9(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover)}})(jQuery);;/**/
10/*
11 * Supposition v0.2 - an optional enhancer for Superfish jQuery menu widget.
12 *
13 * Copyright (c) 2008 Joel Birch - based mostly on work by Jesse Klaasse and credit goes largely to him.
14 * Special thanks to Karl Swedberg for valuable input.
15 *
16 * Dual licensed under the MIT and GPL licenses:
17 *  http://www.opensource.org/licenses/mit-license.php
18 *  http://www.gnu.org/licenses/gpl.html
19 */
20/*
21 * This is not the original jQuery Supersubs plugin.
22 * Please refer to the README for more information.
23 */
24
25(function($){
26  $.fn.supposition = function(){
27    var $w = $(window), /*do this once instead of every onBeforeShow call*/
28    _offset = function(dir) {
29      return window[dir == 'y' ? 'pageYOffset' : 'pageXOffset']
30      || document.documentElement && document.documentElement[dir=='y' ? 'scrollTop' : 'scrollLeft']
31      || document.body[dir=='y' ? 'scrollTop' : 'scrollLeft'];
32    },
33    onHide = function(){
34      this.css({bottom:''});
35    },
36    onBeforeShow = function(){
37      this.each(function(){
38        var $u = $(this);
39        $u.css('display','block');
40        var menuWidth = $u.width(),
41        menuParentWidth = $u.closest('li').outerWidth(true),
42        menuParentLeft = $u.closest('li').offset().left,
43        totalRight = $w.width() + _offset('x'),
44        menuRight = $u.offset().left + menuWidth,
45        exactMenuWidth = (menuRight > (menuParentWidth + menuParentLeft)) ? menuWidth - (menuRight - (menuParentWidth + menuParentLeft)) : menuWidth;  
46        if ($u.parents('.sf-js-enabled').hasClass('rtl')) {
47          if (menuParentLeft < exactMenuWidth) {
48            $u.css('left', menuParentWidth + 'px');
49            $u.css('right', 'auto');
50          }
51        }
52        else {
53          if (menuRight > totalRight && menuParentLeft > menuWidth) {
54            $u.css('right', menuParentWidth + 'px');
55            $u.css('left', 'auto');
56          }
57        }
58        var windowHeight = $w.height(),
59        offsetTop = $u.offset().top,
60        menuParentShadow = ($u.closest('.sf-menu').hasClass('sf-shadow') && $u.css('padding-bottom').length > 0) ? parseInt($u.css('padding-bottom').slice(0,-2)) : 0,
61        menuParentHeight = ($u.closest('.sf-menu').hasClass('sf-vertical')) ? '-' + menuParentShadow : $u.parent().outerHeight(true) - menuParentShadow,
62        menuHeight = $u.height(),
63        baseline = windowHeight + _offset('y');
64        var expandUp = ((offsetTop + menuHeight > baseline) && (offsetTop > menuHeight));
65        if (expandUp) {
66          $u.css('bottom', menuParentHeight + 'px');
67          $u.css('top', 'auto');
68        }
69        $u.css('display','none');
70      });
71    };
72
73    return this.each(function() {
74      var o = $.fn.superfish.o[this.serial]; /* get this menu's options */
75
76      /* if callbacks already set, store them */
77      var _onBeforeShow = o.onBeforeShow,
78      _onHide = o.onHide;
79
80      $.extend($.fn.superfish.o[this.serial],{
81        onBeforeShow: function() {
82          onBeforeShow.call(this); /* fire our Supposition callback */
83          _onBeforeShow.call(this); /* fire stored callbacks */
84        },
85        onHide: function() {
86          onHide.call(this); /* fire our Supposition callback */
87          _onHide.call(this); /* fire stored callbacks */
88        }
89      });
90    });
91  };
92})(jQuery);;/**/
93/*
94 * Superfish v1.4.8 - jQuery menu widget
95 * Copyright (c) 2008 Joel Birch
96 *
97 * Dual licensed under the MIT and GPL licenses:
98 *  http://www.opensource.org/licenses/mit-license.php
99 *  http://www.gnu.org/licenses/gpl.html
100 *
101 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
102 */
103/*
104 * This is not the original jQuery Supersubs plugin.
105 * Please refer to the README for more information.
106 */
107
108(function($){
109  $.fn.superfish = function(op){
110    var sf = $.fn.superfish,
111      c = sf.c,
112      $arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
113      over = function(){
114        var $$ = $(this), menu = getMenu($$);
115        clearTimeout(menu.sfTimer);
116        $$.showSuperfishUl().siblings().hideSuperfishUl();
117      },
118      out = function(){
119        var $$ = $(this), menu = getMenu($$), o = sf.op;
120        clearTimeout(menu.sfTimer);
121        menu.sfTimer=setTimeout(function(){
122          o.retainPath=($.inArray($$[0],o.$path)>-1);
123          $$.hideSuperfishUl();
124          if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
125        },o.delay);
126      },
127      getMenu = function($menu){
128        var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
129        sf.op = sf.o[menu.serial];
130        return menu;
131      },
132      addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
133
134    return this.each(function() {
135      var s = this.serial = sf.o.length;
136      var o = $.extend({},sf.defaults,op);
137      o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
138        $(this).addClass([o.hoverClass,c.bcClass].join(' '))
139          .filter('li:has(ul)').removeClass(o.pathClass);
140      });
141      sf.o[s] = sf.op = o;
142
143      $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
144        if (o.autoArrows) addArrow( $('>a:first-child',this) );
145      })
146      .not('.'+c.bcClass)
147        .hideSuperfishUl();
148
149      var $a = $('a',this);
150      $a.each(function(i){
151        var $li = $a.eq(i).parents('li');
152        $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
153      });
154      o.onInit.call(this);
155
156    }).each(function() {
157      var menuClasses = [c.menuClass];
158      if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
159      $(this).addClass(menuClasses.join(' '));
160    });
161  };
162
163  var sf = $.fn.superfish;
164  sf.o = [];
165  sf.op = {};
166  sf.IE7fix = function(){
167    var o = sf.op;
168    if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
169      this.toggleClass(sf.c.shadowClass+'-off');
170    };
171  sf.c = {
172    bcClass: 'sf-breadcrumb',
173    menuClass: 'sf-js-enabled',
174    anchorClass: 'sf-with-ul',
175    arrowClass: 'sf-sub-indicator',
176    shadowClass: 'sf-shadow'
177  };
178  sf.defaults = {
179    hoverClass: 'sfHover',
180    pathClass: 'overideThisToUse',
181    pathLevels: 1,
182    delay: 800,
183    animation: {opacity:'show'},
184    speed: 'normal',
185    autoArrows: true,
186    dropShadows: true,
187    disableHI: false, // true disables hoverIntent detection
188    onInit: function(){}, // callback functions
189    onBeforeShow: function(){},
190    onShow: function(){},
191    onHide: function(){}
192  };
193  $.fn.extend({
194    hideSuperfishUl : function(){
195      var o = sf.op,
196        not = (o.retainPath===true) ? o.$path : '';
197      o.retainPath = false;
198      var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
199          .find('>ul').addClass('sf-hidden');
200      o.onHide.call($ul);
201      return this;
202    },
203    showSuperfishUl : function(){
204      var o = sf.op,
205        sh = sf.c.shadowClass+'-off',
206        $ul = this.addClass(o.hoverClass)
207          .find('>ul.sf-hidden').hide().removeClass('sf-hidden');
208      sf.IE7fix.call($ul);
209      o.onBeforeShow.call($ul);
210      $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
211      return this;
212    }
213  });
214})(jQuery);;/**/
215/*
216 * Supersubs v0.2b - jQuery plugin
217 * Copyright (c) 2008 Joel Birch
218 *
219 * Dual licensed under the MIT and GPL licenses:
220 *  http://www.opensource.org/licenses/mit-license.php
221 *  http://www.gnu.org/licenses/gpl.html
222 *
223 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
224 * their longest list item children. If you use this, please expect bugs and report them
225 * to the jQuery Google Group with the word 'Superfish' in the subject line.
226 *
227 */
228/*
229 * This is not the original jQuery Supersubs plugin.
230 * Please refer to the README for more information.
231 */
232
233(function($){ // $ will refer to jQuery within this closure
234  $.fn.supersubs = function(options){
235    var opts = $.extend({}, $.fn.supersubs.defaults, options);
236    // return original object to support chaining
237    return this.each(function() {
238      // cache selections
239      var $$ = $(this);
240      // support metadata
241      var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
242      // get the font size of menu.
243      // .css('fontSize') returns various results cross-browser, so measure an em dash instead
244      var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({
245        'padding' : 0,
246        'position' : 'absolute',
247        'top' : '-99999em',
248        'width' : 'auto'
249      }).appendTo($$).width(); //clientWidth is faster, but was incorrect here
250      // remove em dash
251      $('#menu-fontsize').remove();
252
253      // Jump on level if it's a "NavBar"
254      if ($$.hasClass('sf-navbar')) {
255        $$ = $('li > ul', $$);
256      }
257      // cache all ul elements 
258      $ULs = $$.find('ul:not(.sf-megamenu)');
259      // loop through each ul in menu
260      $ULs.each(function(i) {
261        // cache this ul
262        var $ul = $ULs.eq(i);
263        // get all (li) children of this ul
264        var $LIs = $ul.children();
265        // get all anchor grand-children
266        var $As = $LIs.children('a');
267        // force content to one line and save current float property
268        var liFloat = $LIs.css('white-space','nowrap').css('float');
269        // remove width restrictions and floats so elements remain vertically stacked
270        var emWidth = $ul.add($LIs).add($As).css({
271          'float' : 'none',
272          'width'  : 'auto'
273        })
274        // this ul will now be shrink-wrapped to longest li due to position:absolute
275        // so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
276        .end().end()[0].clientWidth / fontsize;
277        // add more width to ensure lines don't turn over at certain sizes in various browsers
278        emWidth += o.extraWidth;
279        // restrict to at least minWidth and at most maxWidth
280        if (emWidth > o.maxWidth)    { emWidth = o.maxWidth; }
281        else if (emWidth < o.minWidth)  { emWidth = o.minWidth; }
282        emWidth += 'em';
283        // set ul to width in ems
284        $ul.css('width',emWidth);
285        // restore li floats to avoid IE bugs
286        // set li width to full width of this ul
287        // revert white-space to normal
288        $LIs.css({
289          'float' : liFloat,
290          'width' : '100%',
291          'white-space' : 'normal'
292        })
293        // update offset position of descendant ul to reflect new width of parent
294        .each(function(){
295          var $childUl = $('>ul',this);
296          var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
297          $childUl.css(offsetDirection,emWidth);
298        });
299      });
300    });
301  };
302  // expose defaults
303  $.fn.supersubs.defaults = {
304    minWidth: 9, // requires em unit.
305    maxWidth: 25, // requires em unit.
306    extraWidth: 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
307  };
308})(jQuery); // plugin code ends;/**/
309/**
310 * @file
311 * The Superfish Drupal Behavior to apply the Superfish jQuery plugin to lists.
312 */
313
314(function ($) {
315  Drupal.behaviors.superfish = {
316    attach: function (context, settings) {
317      // Take a look at each list to apply Superfish to.
318      $.each(settings.superfish || {}, function(index, options) {
319        // Process all Superfish lists.
320        $('#superfish-' + options.id, context).once('superfish', function() {
321          var list = $(this);
322
323          // Check if we are to apply the Supersubs plug-in to it.
324          if (options.plugins || false) {
325            if (options.plugins.supersubs || false) {
326              list.supersubs(options.plugins.supersubs);
327            }
328          }
329
330          // Apply Superfish to the list.
331          list.superfish(options.sf);
332
333          // Check if we are to apply any other plug-in to it.
334          if (options.plugins || false) {
335            if (options.plugins.touchscreen || false) {
336              list.sftouchscreen(options.plugins.touchscreen);
337            }
338            if (options.plugins.smallscreen || false) {
339              list.sfsmallscreen(options.plugins.smallscreen);
340            }
341            if (options.plugins.supposition || false) {
342              list.supposition();
343            }
344            if (options.plugins.bgiframe || false) {
345              list.find('ul').bgIframe({opacity:false});
346            }
347          }
348        });
349      });
350    }
351  };
352})(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.