1(function($) { 2 3/** 4 * jQuery debugging helper. 5 * 6 * Invented for Dreditor. 7 * 8 * @usage 9 * $.debug(var [, name]); 10 * $variable.debug( [name] ); 11 */ 12jQuery.extend({ 13 debug: function () { 14 // Setup debug storage in global window. We want to look into it. 15 window.debug = window.debug || []; 16 17 args = jQuery.makeArray(arguments); 18 // Determine data source; this is an object for $variable.debug(). 19 // Also determine the identifier to store data with. 20 if (typeof this == 'object') { 21 var name = (args.length ? args[0] : window.debug.length); 22 var data = this; 23 } 24 else { 25 var name = (args.length > 1 ? args.pop() : window.debug.length); 26 var data = args[0]; 27 } 28 // Store data. 29 window.debug[name] = data; 30 // Dump data into Firebug console. 31 if (typeof console != 'undefined') { 32 console.log(name, data); 33 } 34 return this; 35 } 36}); 37// @todo Is this the right way? 38jQuery.fn.debug = jQuery.debug; 39 40})(jQuery); 41; 42/** 43 * @file 44 * Custom scripts for theme. 45 */ 46(function ($) { 47 // Disable default ckeditor on some textareas. 48 Drupal.behaviors.mally_columns_menu = { 49 attach: function(context) { 50 $('.sf-megamenu a.menu_icon', context).hover( function () { 51 menuId = $(this).parent('li').attr('id').split('-'); 52 imgPath = "/files/styles/menu_icon_round/public/menu_icons/menu_icon_" + menuId[1] + ".jpg"; 53 $('.sf-megamenu').css('background-image', 'url(' + imgPath + ')'); 54 }); 55 $('.sf-megamenu a.menu_icon', context).mouseout( function () { 56 $('.sf-megamenu').css('background-image', 'none'); 57 }); 58 } 59 } 60})(jQuery); 61; 62/** 63 * @file 64 * Provides responsive menu toggle and dropdown functionality. 65 */ 66 67(function ($) { 68 Drupal.behaviors.responsiveDropdownMenuToggle = { 69 attach: function(context, settings) { 70 71 var responsiveDropdownMenus = Drupal.settings.responsive_dropdown_menus; 72 var menuToggleHelper = Drupal.t('Menu'); 73 74 // Cycle through responsive dropdown menu blocks. 75 $('.responsive-menu', context).each(function(index) { 76 var menuID = $(this).attr('id'); 77 78 // Check if delta equals the element's ID. 79 $.each(responsiveDropdownMenus, function(delta, title) { 80 if(delta == menuID) { 81 menuToggleHelper = title; 82 } 83 }); 84 if(!$(this).prev().hasClass('menu-toggle')) { 85 // Drop in our menu toggle. 86 var title = Drupal.t('Toggle Menu'); 87 $(this).before('<a class="menu-toggle" title="' + title + '"><span class="line first-line first"></span><span class="line"></span><span class="line last-line last"></span><span class="toggle-help">' + menuToggleHelper + '</span></a>'); 88 } 89 }); 90 91 // Bind click event to toggle. 92 $('.menu-toggle').click(function(){ 93 $(this).next().toggleClass('menu-toggled'); 94 }); 95 } 96 }; 97 98 Drupal.behaviors.responsiveDropdownMenuDropDown = { 99 attach: function(context) { 100 $('.responsive-menu li.menu-parent').hover( 101 function() { 102 $(this).find('.sub-menu').addClass('active'); 103 }, 104 function() { 105 $(this).find('.sub-menu').removeClass('active'); 106 } 107 ); 108 } 109 } 110})(jQuery); 111; 112(function($) { 113 114Drupal.visualization = Drupal.visualization || {}; 115Drupal.visualization.charts = Drupal.visualization.charts || {}; 116 117})(jQuery); 118;
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.