Files
opensem/resources/views/load/layout/nicescroll.blade.php
Ludovic CANDELLIER e98266e556 Upgrade boilerplate
2021-09-22 21:01:43 +02:00

34 lines
950 B
PHP

@if(!defined('LOAD_NICESCROLL'))
@push('scripts')
<script type="text/javascript" src="{{ asset('/assets/plugins/jquery.slimscroll.min.js') }}"></script>
<script>
function initScroll(selector, options) {
var selector = (typeof(selector) == 'undefined') ? '.nicescrollable' : selector;
var options = (typeof(options) == 'undefined') ? '' : options;
$(selector).niceScroll(options);
/*
$(selector).niceScroll({
horizrailenabled: false,
cursorborder: "0",
cursorwidth: "8px",
cursorcolor: "#fff",
zindex: "5555",
autohidemode: true,
bouncescroll: true,
mousescrollstep: 40,
scrollspeed: 100,
background: "#cdcdcd",
cursoropacitymin: 0.3,
cursoropacitymax: 0.7,
cursorborderradius: 0,
railpadding: {top:0,right:1,left:0,bottom:0}
});
*/
}
</script>
@endpush
@php(define('LOAD_NICESCROLL', true))
@endif