28 lines
257 B
JavaScript
28 lines
257 B
JavaScript
//
|
|
// Scrollbar
|
|
//
|
|
|
|
'use strict';
|
|
|
|
var Scrollbar = (function() {
|
|
|
|
// Variables
|
|
|
|
var $scrollbar = $('.scrollbar-inner');
|
|
|
|
|
|
// Methods
|
|
|
|
function init() {
|
|
$scrollbar.scrollbar().scrollLock()
|
|
}
|
|
|
|
|
|
// Events
|
|
|
|
if ($scrollbar.length) {
|
|
init();
|
|
}
|
|
|
|
})();
|