PageSourceSearch

https://icomdp.org/wp-content/plugins/custom-scrollbar/asset/js/custom-scrollbar-enabler.min.js?ver=7.0.6

js icomdp.org collected 2026-09-24 19:14:32 UTC 4,536 bytes, 11 lines download raw bytes

1/**
2	Custom Scrollbar v1.3.5b01 by miunosoft (Michael Uno) 
3	Adds a custom scrollbar to specified HTML elements.
4	<http://en.michaeluno.jp/custom-scrollbar>
5	Copyright (c) 2015, Michael Uno; Licensed under GPL v2 or later */
6(function($){$.fn.initializeCustomScrollbars=function(aScrollbars){$.each(aScrollbars,function(_iIndex,_aScrollbar){var _subjectElement=$(_aScrollbar.selector);if(!_subjectElement.length)return true;_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)})}
7function _getScrollbarOptions(_aScrollbar){var _iWidth=Number(_aScrollbar.width['size']),_iHeight=Number(_aScrollbar.height['size']),_sAxis='';if(_iHeight)_sAxis+='y';if(_iWidth)_sAxis+='x';var _bisWidth=_iWidth?('px'===_aScrollbar.width['unit']?_iWidth:String(_iWidth)+'%'):false,_bisHeight=_iHeight?('px'===_aScrollbar.height['unit']?_iHeight:String(_iHeight)+'%'):false,_aDefaults={advanced:{autoExpandHorizontalScroll:true},mouseWheel:{scrollAmount:'auto'},scrollButtons:{enable:true,scrollAmount:1e3}},_aOptions={axis:_sAxis,theme:_aScrollbar.theme,setWidth:_bisWidth,setHeight:_bisHeight,scrollbarPosition:_aScrollbar.position};$_aOptions=$.extend(true,_aDefaults,_aScrollbar,_aOptions);return $_aOptions}
8function _setInlineCSS(_aScrollbar){$.each(_aScrollbar.inline_css,function(_iIndex,_aInlineCSS){if('undefined'===typeof _aInlineCSS.property)return true;if(''===_aInlineCSS.property)return true;if('undefined'===typeof _aInlineCSS.value)return true;$(_aScrollbar.selector).css(_aInlineCSS.property,_aInlineCSS.value)})}
9function _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);if(_aScrollbar.mCSB_dragger)$(_sSelector+' .mCSB_dragger').css('background-color',_aScrollbar.mCSB_dragger);if(_aScrollbar.mCSB_dragger_bar)$(_sSelector+' .mCSB_dragger_bar').css('background-color',_aScrollbar.mCSB_dragger_bar);if(_aScrollbar.mCSB_draggerRail)$(_sSelector+' .mCSB_draggerRail').css('background-color',_aScrollbar.mCSB_draggerRail);if(_aScrollbar.mCSB_scrollTools)$(_sSelector+' .mCSB_scrollTools').css('background-color',_aScrollbar.mCSB_scrollTools)};$(document).ready(function(){if('undefined'===typeof customScrollbarEnabler)return true;if(customScrollbarEnabler.debugMode)console.log(customScrollbarEnabler.pluginName,customScrollbarEnabler);$(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,_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)
10function _isInTheRanges(aRanges,iClientWidth){var _bInRange=false;$.each(aRanges,function(_iIndex,_aRange){if(0===_aRange[1]){if(_aRange[0]<=iClientWidth){_bInRange=true;return false};return true};if(_aRange[0]<=iClientWidth&&iClientWidth<=_aRange[1]){_bInRange=true;return false}});return _bInRange}})})
11function _getScrollbarsByEnabledOption(sOptionName,$sSecondKey){var _aScrollbars={};if('undefined'===typeof customScrollbarEnabler.scrollbars)return _aScrollbars;$.each(customScrollbarEnabler.scrollbars,function(_iIndex,_aScrollbar){if($sSecondKey){if(!_aScrollbar[sOptionName][$sSecondKey])return true}else if(!_aScrollbar[sOptionName])return true;_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.