1/** 2 * @file 3 * The Superfish Drupal Behavior to apply the Superfish jQuery plugin to lists. 4 */ 5 6(function ($) { 7 Drupal.behaviors.superfish = { 8 attach: function (context, settings) { 9 // Take a look at each list to apply Superfish to. 10 $.each(settings.superfish || {}, function(index, options) { 11 // Process all Superfish lists. 12 $('#superfish-' + options.id, context).once('superfish', function() { 13 var list = $(this); 14 15 // Check if we are to apply the Supersubs plug-in to it. 16 if (options.plugins || false) { 17 if (options.plugins.supersubs || false) { 18 list.supersubs(options.plugins.supersubs); 19 } 20 } 21 22 // Apply Superfish to the list. 23 list.superfish(options.sf); 24 25 // Check if we are to apply any other plug-in to it. 26 if (options.plugins || false) { 27 if (options.plugins.touchscreen || false) { 28 list.sftouchscreen(options.plugins.touchscreen); 29 } 30 if (options.plugins.smallscreen || false) { 31 list.sfsmallscreen(options.plugins.smallscreen); 32 } 33 if (options.plugins.supposition || false) { 34 list.supposition(); 35 } 36 if (options.plugins.bgiframe || false) { 37 list.find('ul').bgIframe({opacity:false}); 38 } 39 } 40 }); 41 }); 42 } 43 }; 44})(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.