1(function($){$.fn.initializeCustomScrollbars=function(aScrollbars){$.each(aScrollbars,function(_iIndex,_aScrollbar){var _subjectElement=$(_aScrollbar.selector);if(!_subjectElement.length){return!0} 2_setInlineCSS(_aScrollbar);var _aScrollbarOptions=_getScrollbarOptions(_aScrollbar);$(_aScrollbar.selector).mCustomScrollbar('destroy').mCustomScrollbar(_aScrollbarOptions);_setCustomColors(_aScrollbar,_iIndex);_subjectElement.trigger('cs_initialized_scrollbar',_aScrollbar);if('undefined'!==typeof customScrollbarEnabler&&customScrollbarEnabler.debugMode){console.log(customScrollbarEnabler.pluginName,_aScrollbarOptions.name,_aScrollbarOptions)}})} 3function _getScrollbarOptions(_aScrollbar){var _iWidth=Number(_aScrollbar.width.size);var _iHeight=Number(_aScrollbar.height.size);var _sAxis='';if(_iHeight){_sAxis+='y'} 4if(_iWidth){_sAxis+='x'} 5var _bisWidth=_iWidth?('px'===_aScrollbar.width.unit?_iWidth:String(_iWidth)+'%'):!1;var _bisHeight=_iHeight?('px'===_aScrollbar.height.unit?_iHeight:String(_iHeight)+'%'):!1;var _aDefaults={advanced:{autoExpandHorizontalScroll:!0},mouseWheel:{scrollAmount:'auto'},scrollButtons:{enable:!0,scrollAmount:1000}};var _aOptions={axis:_sAxis,theme:_aScrollbar.theme,setWidth:_bisWidth,setHeight:_bisHeight,scrollbarPosition:_aScrollbar.position};$_aOptions=$.extend(!0,_aDefaults,_aScrollbar,_aOptions);return $_aOptions} 6function _setInlineCSS(_aScrollbar){$.each(_aScrollbar.inline_css,function(_iIndex,_aInlineCSS){if('undefined'===typeof _aInlineCSS.property){return!0} 7if(''===_aInlineCSS.property){return!0} 8if('undefined'===typeof _aInlineCSS.value){return!0} 9$(_aScrollbar.selector).css(_aInlineCSS.property,_aInlineCSS.value)})} 10function _setCustomColors(_aScrollbar,_iIndex){var _sElementClassName='custom_scrollbar_'+String(_iIndex);$(_aScrollbar.selector).addClass(_sElementClassName);var _sSelector='.'+_sElementClassName;if(_aScrollbar.mCSB_draggerContainer){$(_sSelector+' .mCSB_draggerContainer').css('background-color',_aScrollbar.mCSB_draggerContainer)} 11if(_aScrollbar.mCSB_dragger){$(_sSelector+' .mCSB_dragger').css('background-color',_aScrollbar.mCSB_dragger)} 12if(_aScrollbar.mCSB_dragger_bar){$(_sSelector+' .mCSB_dragger_bar').css('background-color',_aScrollbar.mCSB_dragger_bar)} 13if(_aScrollbar.mCSB_draggerRail){$(_sSelector+' .mCSB_draggerRail').css('background-color',_aScrollbar.mCSB_draggerRail)} 14if(_aScrollbar.mCSB_scrollTools){$(_sSelector+' .mCSB_scrollTools').css('background-color',_aScrollbar.mCSB_scrollTools)}} 15$(document).ready(function(){if('undefined'===typeof customScrollbarEnabler){return!0} 16if(customScrollbarEnabler.debugMode){console.log(customScrollbarEnabler.pluginName,customScrollbarEnabler);console.log('jquery:',jQuery.fn.jquery)} 17$(this).initializeCustomScrollbars(customScrollbarEnabler.scrollbars);var _aScrollbarsThatInitializeOnAjaxLoad=_getScrollbarsByEnabledOption('initialize_on_ajax_load');$(document).ajaxStop(function(){$(this).initializeCustomScrollbars(_aScrollbarsThatInitializeOnAjaxLoad)});var _aResponsiveScrollbars=_getScrollbarsByEnabledOption('responsive','enable');$(window).on('resize',function(){var _iClientWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var _aScrollbarsInRange={};$.each(_aResponsiveScrollbars,function(_iIndex,_aScrollbar){if(_isInTheRanges(_aScrollbar.responsive.screen_width_range,_iClientWidth)){_aScrollbarsInRange[_iIndex]=_aScrollbar}else{$(_aScrollbar.selector).mCustomScrollbar('destroy');$(_aScrollbar.selector).attr('style',function(i,style){return style.replace(/height[^;]+;?/g,'')})}});$(this).initializeCustomScrollbars(_aScrollbarsInRange);function _isInTheRanges(aRanges,iClientWidth){var _bInRange=!1;$.each(aRanges,function(_iIndex,_aRange){if(0===_aRange[1]){if(_aRange[0]<=iClientWidth){_bInRange=!0;return!1} 18return!0} 19if(_aRange[0]<=iClientWidth&&iClientWidth<=_aRange[1]){_bInRange=!0;return!1}});return _bInRange}})});function _getScrollbarsByEnabledOption(sOptionName,$sSecondKey){var _aScrollbars={};if('undefined'===typeof customScrollbarEnabler.scrollbars){return _aScrollbars} 20$.each(customScrollbarEnabler.scrollbars,function(_iIndex,_aScrollbar){if($sSecondKey){if(!_aScrollbar[sOptionName][$sSecondKey]){return!0}}else{if(!_aScrollbar[sOptionName]){return!0}} 21_aScrollbars[_iIndex]=_aScrollbar});return _aScrollbars}}(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.