1 |
85ad3d82
|
Assos Assos
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
(function ($) {
|
7 |
|
|
Drupal.behaviors.superfish = {
|
8 |
|
|
attach: function (context, settings) {
|
9 |
|
|
|
10 |
|
|
$.each(settings.superfish || {}, function(index, options) {
|
11 |
|
|
|
12 |
|
|
$('#superfish-' + options.id, context).once('superfish', function() {
|
13 |
|
|
var list = $(this);
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
if (options.plugins || false) {
|
17 |
|
|
if (options.plugins.supersubs || false) {
|
18 |
|
|
list.supersubs(options.plugins.supersubs);
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
list.superfish(options.sf);
|
24 |
|
|
|
25 |
|
|
|
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); |