adminlte2assets-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +244 -0
- data/Rakefile +2 -0
- data/adminlte2assets-rails.gemspec +42 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/adminlte2assets/rails/engine.rb +7 -0
- data/lib/adminlte2assets/rails/version.rb +5 -0
- data/lib/adminlte2assets/rails.rb +8 -0
- data/lib/adminlte2assets-rails.rb +7 -0
- data/vendor/assets/images/avatar.png +0 -0
- data/vendor/assets/images/avatar04.png +0 -0
- data/vendor/assets/images/avatar2.png +0 -0
- data/vendor/assets/images/avatar3.png +0 -0
- data/vendor/assets/images/avatar5.png +0 -0
- data/vendor/assets/images/boxed-bg.jpg +0 -0
- data/vendor/assets/images/boxed-bg.png +0 -0
- data/vendor/assets/images/credit/american-express.png +0 -0
- data/vendor/assets/images/credit/cirrus.png +0 -0
- data/vendor/assets/images/credit/mastercard.png +0 -0
- data/vendor/assets/images/credit/mestro.png +0 -0
- data/vendor/assets/images/credit/paypal.png +0 -0
- data/vendor/assets/images/credit/paypal2.png +0 -0
- data/vendor/assets/images/credit/visa.png +0 -0
- data/vendor/assets/images/default-50x50.gif +0 -0
- data/vendor/assets/images/icons.png +0 -0
- data/vendor/assets/images/ionslider/sprite-skin-flat.png +0 -0
- data/vendor/assets/images/ionslider/sprite-skin-nice.png +0 -0
- data/vendor/assets/images/photo1.png +0 -0
- data/vendor/assets/images/photo2.png +0 -0
- data/vendor/assets/images/photo3.jpg +0 -0
- data/vendor/assets/images/photo4.jpg +0 -0
- data/vendor/assets/images/user1-128x128.jpg +0 -0
- data/vendor/assets/images/user2-160x160.jpg +0 -0
- data/vendor/assets/images/user3-128x128.jpg +0 -0
- data/vendor/assets/images/user4-128x128.jpg +0 -0
- data/vendor/assets/images/user5-128x128.jpg +0 -0
- data/vendor/assets/images/user6-128x128.jpg +0 -0
- data/vendor/assets/images/user7-128x128.jpg +0 -0
- data/vendor/assets/images/user8-128x128.jpg +0 -0
- data/vendor/assets/javascript/AdminLTE/app.min.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/bootstrap-slider/bootstrap-slider.js +1576 -0
- data/vendor/assets/javascript/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js +14975 -0
- data/vendor/assets/javascript/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js +8 -0
- data/vendor/assets/javascript/AdminLTE/plugins/chartjs/Chart.js +3736 -0
- data/vendor/assets/javascript/AdminLTE/plugins/chartjs/Chart.min.js +11 -0
- data/vendor/assets/javascript/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.js +1079 -0
- data/vendor/assets/javascript/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/bootstrap-datepicker.js +1671 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ar.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.az.js +12 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.bg.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ca.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.cs.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.cy.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.da.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.de.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.el.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.es.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.et.js +18 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.fa.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.fi.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.fr.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.gl.js +11 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.he.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.hr.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.hu.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.id.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.is.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.it.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ja.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ka.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.kk.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.kr.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.lt.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.lv.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.mk.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ms.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.nb.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.nl-BE.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.nl.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.no.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.pl.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.pt-BR.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.pt.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ro.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.rs-latin.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.rs.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ru.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sk.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sl.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sq.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sv.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sw.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.th.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.tr.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ua.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.vi.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.zh-TW.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/daterangepicker/daterangepicker.js +1542 -0
- data/vendor/assets/javascript/AdminLTE/plugins/daterangepicker/moment.js +3111 -0
- data/vendor/assets/javascript/AdminLTE/plugins/daterangepicker/moment.min.js +7 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fastclick/fastclick.js +841 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fastclick/fastclick.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/excanvas.js +1427 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/excanvas.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.colorhelpers.js +180 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.colorhelpers.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.canvas.js +345 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.canvas.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.categories.js +190 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.categories.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.crosshair.js +176 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.crosshair.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.errorbars.js +353 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.errorbars.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.fillbetween.js +226 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.fillbetween.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.image.js +241 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.image.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.js +3137 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.min.js +2 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.navigate.js +346 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.navigate.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.pie.js +817 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.pie.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.resize.js +60 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.resize.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.selection.js +360 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.selection.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.stack.js +188 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.stack.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.symbol.js +71 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.symbol.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.threshold.js +142 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.threshold.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.time.js +429 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.time.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fullcalendar/fullcalendar.js +9732 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fullcalendar/fullcalendar.min.js +8 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.date.extensions.js +488 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.extensions.js +122 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.js +1627 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.numeric.extensions.js +177 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.phone.extensions.js +50 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.regex.extensions.js +169 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/phone-codes/phone-be.json +45 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/phone-codes/phone-codes.json +294 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/phone-codes/readme.txt +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/ionslider/ion.rangeSlider.min.js +76 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jQueryUI/jquery-ui.js +16617 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jQueryUI/jquery-ui.min.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jvectormap/jquery-jvectormap-usa-en.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/knob/jquery.knob.js +805 -0
- data/vendor/assets/javascript/AdminLTE/plugins/morris/morris.js +1892 -0
- data/vendor/assets/javascript/AdminLTE/plugins/morris/morris.min.js +7 -0
- data/vendor/assets/javascript/AdminLTE/plugins/pace/pace.js +935 -0
- data/vendor/assets/javascript/AdminLTE/plugins/pace/pace.min.js +2 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ar.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/az.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/bg.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ca.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/cs.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/da.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/de.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/el.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/en.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/es.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/et.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/eu.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/fa.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/fi.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/fr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/gl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/he.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/hi.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/hr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/hu.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/id.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/is.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/it.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ja.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/km.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ko.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/lt.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/lv.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/mk.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ms.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/nb.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/nl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/pl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/pt-BR.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/pt.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ro.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ru.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sk.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sr-Cyrl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sv.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/th.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/tr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/uk.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/vi.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/zh-CN.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/zh-TW.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.full.js +6436 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.full.min.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.js +5725 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.min.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/slimScroll/jquery.slimscroll.js +474 -0
- data/vendor/assets/javascript/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/sparkline/jquery.sparkline.js +3054 -0
- data/vendor/assets/javascript/AdminLTE/plugins/sparkline/jquery.sparkline.min.js +5 -0
- data/vendor/assets/javascript/AdminLTE/plugins/timepicker/bootstrap-timepicker.js +903 -0
- data/vendor/assets/javascript/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.js +5 -0
- data/vendor/assets/javascript/AdminLTE.js +4 -0
- data/vendor/assets/stylesheets/AdminLTE/AdminLTE.min.css +7 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/bootstrap-slider/slider.css +282 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css +117 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css +3 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.css +251 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.css +9 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/alpha-horizontal.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/alpha.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/hue-horizontal.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/hue.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/saturation.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/datepicker/datepicker3.css +790 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/daterangepicker/daterangepicker.css +232 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/fullcalendar/fullcalendar.css +977 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/fullcalendar/fullcalendar.min.css +5 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/fullcalendar/fullcalendar.print.css +202 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/ionslider/ion.rangeSlider.css +149 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/ionslider/ion.rangeSlider.skinFlat.css +106 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/ionslider/ion.rangeSlider.skinNice.css +102 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.css +40 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/morris/morris.css +2 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/pace/pace.css +85 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/pace/pace.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/select2/select2.css +484 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/select2/select2.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/timepicker/bootstrap-timepicker.css +121 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.css +10 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/_all-skins.css +1770 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/_all-skins.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black-light.css +173 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black.css +158 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue-light.css +164 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue.css +139 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE.scss +5 -0
- metadata +474 -0
@@ -0,0 +1,474 @@
|
|
1
|
+
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
|
2
|
+
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
3
|
+
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
4
|
+
*
|
5
|
+
* Version: 1.3.8
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
(function($) {
|
9
|
+
|
10
|
+
$.fn.extend({
|
11
|
+
slimScroll: function(options) {
|
12
|
+
|
13
|
+
var defaults = {
|
14
|
+
|
15
|
+
// width in pixels of the visible scroll area
|
16
|
+
width : 'auto',
|
17
|
+
|
18
|
+
// height in pixels of the visible scroll area
|
19
|
+
height : '250px',
|
20
|
+
|
21
|
+
// width in pixels of the scrollbar and rail
|
22
|
+
size : '7px',
|
23
|
+
|
24
|
+
// scrollbar color, accepts any hex/color value
|
25
|
+
color: '#000',
|
26
|
+
|
27
|
+
// scrollbar position - left/right
|
28
|
+
position : 'right',
|
29
|
+
|
30
|
+
// distance in pixels between the side edge and the scrollbar
|
31
|
+
distance : '1px',
|
32
|
+
|
33
|
+
// default scroll position on load - top / bottom / $('selector')
|
34
|
+
start : 'top',
|
35
|
+
|
36
|
+
// sets scrollbar opacity
|
37
|
+
opacity : .4,
|
38
|
+
|
39
|
+
// enables always-on mode for the scrollbar
|
40
|
+
alwaysVisible : false,
|
41
|
+
|
42
|
+
// check if we should hide the scrollbar when user is hovering over
|
43
|
+
disableFadeOut : false,
|
44
|
+
|
45
|
+
// sets visibility of the rail
|
46
|
+
railVisible : false,
|
47
|
+
|
48
|
+
// sets rail color
|
49
|
+
railColor : '#333',
|
50
|
+
|
51
|
+
// sets rail opacity
|
52
|
+
railOpacity : .2,
|
53
|
+
|
54
|
+
// whether we should use jQuery UI Draggable to enable bar dragging
|
55
|
+
railDraggable : true,
|
56
|
+
|
57
|
+
// defautlt CSS class of the slimscroll rail
|
58
|
+
railClass : 'slimScrollRail',
|
59
|
+
|
60
|
+
// defautlt CSS class of the slimscroll bar
|
61
|
+
barClass : 'slimScrollBar',
|
62
|
+
|
63
|
+
// defautlt CSS class of the slimscroll wrapper
|
64
|
+
wrapperClass : 'slimScrollDiv',
|
65
|
+
|
66
|
+
// check if mousewheel should scroll the window if we reach top/bottom
|
67
|
+
allowPageScroll : false,
|
68
|
+
|
69
|
+
// scroll amount applied to each mouse wheel step
|
70
|
+
wheelStep : 20,
|
71
|
+
|
72
|
+
// scroll amount applied when user is using gestures
|
73
|
+
touchScrollStep : 200,
|
74
|
+
|
75
|
+
// sets border radius
|
76
|
+
borderRadius: '7px',
|
77
|
+
|
78
|
+
// sets border radius of the rail
|
79
|
+
railBorderRadius : '7px'
|
80
|
+
};
|
81
|
+
|
82
|
+
var o = $.extend(defaults, options);
|
83
|
+
|
84
|
+
// do it for every element that matches selector
|
85
|
+
this.each(function(){
|
86
|
+
|
87
|
+
var isOverPanel, isOverBar, isDragg, queueHide, touchDif,
|
88
|
+
barHeight, percentScroll, lastScroll,
|
89
|
+
divS = '<div></div>',
|
90
|
+
minBarHeight = 30,
|
91
|
+
releaseScroll = false;
|
92
|
+
|
93
|
+
// used in event handlers and for better minification
|
94
|
+
var me = $(this);
|
95
|
+
|
96
|
+
// ensure we are not binding it again
|
97
|
+
if (me.parent().hasClass(o.wrapperClass))
|
98
|
+
{
|
99
|
+
// start from last bar position
|
100
|
+
var offset = me.scrollTop();
|
101
|
+
|
102
|
+
// find bar and rail
|
103
|
+
bar = me.siblings('.' + o.barClass);
|
104
|
+
rail = me.siblings('.' + o.railClass);
|
105
|
+
|
106
|
+
getBarHeight();
|
107
|
+
|
108
|
+
// check if we should scroll existing instance
|
109
|
+
if ($.isPlainObject(options))
|
110
|
+
{
|
111
|
+
// Pass height: auto to an existing slimscroll object to force a resize after contents have changed
|
112
|
+
if ( 'height' in options && options.height == 'auto' ) {
|
113
|
+
me.parent().css('height', 'auto');
|
114
|
+
me.css('height', 'auto');
|
115
|
+
var height = me.parent().parent().height();
|
116
|
+
me.parent().css('height', height);
|
117
|
+
me.css('height', height);
|
118
|
+
} else if ('height' in options) {
|
119
|
+
var h = options.height;
|
120
|
+
me.parent().css('height', h);
|
121
|
+
me.css('height', h);
|
122
|
+
}
|
123
|
+
|
124
|
+
if ('scrollTo' in options)
|
125
|
+
{
|
126
|
+
// jump to a static point
|
127
|
+
offset = parseInt(o.scrollTo);
|
128
|
+
}
|
129
|
+
else if ('scrollBy' in options)
|
130
|
+
{
|
131
|
+
// jump by value pixels
|
132
|
+
offset += parseInt(o.scrollBy);
|
133
|
+
}
|
134
|
+
else if ('destroy' in options)
|
135
|
+
{
|
136
|
+
// remove slimscroll elements
|
137
|
+
bar.remove();
|
138
|
+
rail.remove();
|
139
|
+
me.unwrap();
|
140
|
+
return;
|
141
|
+
}
|
142
|
+
|
143
|
+
// scroll content by the given offset
|
144
|
+
scrollContent(offset, false, true);
|
145
|
+
}
|
146
|
+
|
147
|
+
return;
|
148
|
+
}
|
149
|
+
else if ($.isPlainObject(options))
|
150
|
+
{
|
151
|
+
if ('destroy' in options)
|
152
|
+
{
|
153
|
+
return;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// optionally set height to the parent's height
|
158
|
+
o.height = (o.height == 'auto') ? me.parent().height() : o.height;
|
159
|
+
|
160
|
+
// wrap content
|
161
|
+
var wrapper = $(divS)
|
162
|
+
.addClass(o.wrapperClass)
|
163
|
+
.css({
|
164
|
+
position: 'relative',
|
165
|
+
overflow: 'hidden',
|
166
|
+
width: o.width,
|
167
|
+
height: o.height
|
168
|
+
});
|
169
|
+
|
170
|
+
// update style for the div
|
171
|
+
me.css({
|
172
|
+
overflow: 'hidden',
|
173
|
+
width: o.width,
|
174
|
+
height: o.height
|
175
|
+
});
|
176
|
+
|
177
|
+
// create scrollbar rail
|
178
|
+
var rail = $(divS)
|
179
|
+
.addClass(o.railClass)
|
180
|
+
.css({
|
181
|
+
width: o.size,
|
182
|
+
height: '100%',
|
183
|
+
position: 'absolute',
|
184
|
+
top: 0,
|
185
|
+
display: (o.alwaysVisible && o.railVisible) ? 'block' : 'none',
|
186
|
+
'border-radius': o.railBorderRadius,
|
187
|
+
background: o.railColor,
|
188
|
+
opacity: o.railOpacity,
|
189
|
+
zIndex: 90
|
190
|
+
});
|
191
|
+
|
192
|
+
// create scrollbar
|
193
|
+
var bar = $(divS)
|
194
|
+
.addClass(o.barClass)
|
195
|
+
.css({
|
196
|
+
background: o.color,
|
197
|
+
width: o.size,
|
198
|
+
position: 'absolute',
|
199
|
+
top: 0,
|
200
|
+
opacity: o.opacity,
|
201
|
+
display: o.alwaysVisible ? 'block' : 'none',
|
202
|
+
'border-radius' : o.borderRadius,
|
203
|
+
BorderRadius: o.borderRadius,
|
204
|
+
MozBorderRadius: o.borderRadius,
|
205
|
+
WebkitBorderRadius: o.borderRadius,
|
206
|
+
zIndex: 99
|
207
|
+
});
|
208
|
+
|
209
|
+
// set position
|
210
|
+
var posCss = (o.position == 'right') ? { right: o.distance } : { left: o.distance };
|
211
|
+
rail.css(posCss);
|
212
|
+
bar.css(posCss);
|
213
|
+
|
214
|
+
// wrap it
|
215
|
+
me.wrap(wrapper);
|
216
|
+
|
217
|
+
// append to parent div
|
218
|
+
me.parent().append(bar);
|
219
|
+
me.parent().append(rail);
|
220
|
+
|
221
|
+
// make it draggable and no longer dependent on the jqueryUI
|
222
|
+
if (o.railDraggable){
|
223
|
+
bar.bind("mousedown", function(e) {
|
224
|
+
var $doc = $(document);
|
225
|
+
isDragg = true;
|
226
|
+
t = parseFloat(bar.css('top'));
|
227
|
+
pageY = e.pageY;
|
228
|
+
|
229
|
+
$doc.bind("mousemove.slimscroll", function(e){
|
230
|
+
currTop = t + e.pageY - pageY;
|
231
|
+
bar.css('top', currTop);
|
232
|
+
scrollContent(0, bar.position().top, false);// scroll content
|
233
|
+
});
|
234
|
+
|
235
|
+
$doc.bind("mouseup.slimscroll", function(e) {
|
236
|
+
isDragg = false;hideBar();
|
237
|
+
$doc.unbind('.slimscroll');
|
238
|
+
});
|
239
|
+
return false;
|
240
|
+
}).bind("selectstart.slimscroll", function(e){
|
241
|
+
e.stopPropagation();
|
242
|
+
e.preventDefault();
|
243
|
+
return false;
|
244
|
+
});
|
245
|
+
}
|
246
|
+
|
247
|
+
// on rail over
|
248
|
+
rail.hover(function(){
|
249
|
+
showBar();
|
250
|
+
}, function(){
|
251
|
+
hideBar();
|
252
|
+
});
|
253
|
+
|
254
|
+
// on bar over
|
255
|
+
bar.hover(function(){
|
256
|
+
isOverBar = true;
|
257
|
+
}, function(){
|
258
|
+
isOverBar = false;
|
259
|
+
});
|
260
|
+
|
261
|
+
// show on parent mouseover
|
262
|
+
me.hover(function(){
|
263
|
+
isOverPanel = true;
|
264
|
+
showBar();
|
265
|
+
hideBar();
|
266
|
+
}, function(){
|
267
|
+
isOverPanel = false;
|
268
|
+
hideBar();
|
269
|
+
});
|
270
|
+
|
271
|
+
// support for mobile
|
272
|
+
me.bind('touchstart', function(e,b){
|
273
|
+
if (e.originalEvent.touches.length)
|
274
|
+
{
|
275
|
+
// record where touch started
|
276
|
+
touchDif = e.originalEvent.touches[0].pageY;
|
277
|
+
}
|
278
|
+
});
|
279
|
+
|
280
|
+
me.bind('touchmove', function(e){
|
281
|
+
// prevent scrolling the page if necessary
|
282
|
+
if(!releaseScroll)
|
283
|
+
{
|
284
|
+
e.originalEvent.preventDefault();
|
285
|
+
}
|
286
|
+
if (e.originalEvent.touches.length)
|
287
|
+
{
|
288
|
+
// see how far user swiped
|
289
|
+
var diff = (touchDif - e.originalEvent.touches[0].pageY) / o.touchScrollStep;
|
290
|
+
// scroll content
|
291
|
+
scrollContent(diff, true);
|
292
|
+
touchDif = e.originalEvent.touches[0].pageY;
|
293
|
+
}
|
294
|
+
});
|
295
|
+
|
296
|
+
// set up initial height
|
297
|
+
getBarHeight();
|
298
|
+
|
299
|
+
// check start position
|
300
|
+
if (o.start === 'bottom')
|
301
|
+
{
|
302
|
+
// scroll content to bottom
|
303
|
+
bar.css({ top: me.outerHeight() - bar.outerHeight() });
|
304
|
+
scrollContent(0, true);
|
305
|
+
}
|
306
|
+
else if (o.start !== 'top')
|
307
|
+
{
|
308
|
+
// assume jQuery selector
|
309
|
+
scrollContent($(o.start).position().top, null, true);
|
310
|
+
|
311
|
+
// make sure bar stays hidden
|
312
|
+
if (!o.alwaysVisible) { bar.hide(); }
|
313
|
+
}
|
314
|
+
|
315
|
+
// attach scroll events
|
316
|
+
attachWheel(this);
|
317
|
+
|
318
|
+
function _onWheel(e)
|
319
|
+
{
|
320
|
+
// use mouse wheel only when mouse is over
|
321
|
+
if (!isOverPanel) { return; }
|
322
|
+
|
323
|
+
var e = e || window.event;
|
324
|
+
|
325
|
+
var delta = 0;
|
326
|
+
if (e.wheelDelta) { delta = -e.wheelDelta/120; }
|
327
|
+
if (e.detail) { delta = e.detail / 3; }
|
328
|
+
|
329
|
+
var target = e.target || e.srcTarget || e.srcElement;
|
330
|
+
if ($(target).closest('.' + o.wrapperClass).is(me.parent())) {
|
331
|
+
// scroll content
|
332
|
+
scrollContent(delta, true);
|
333
|
+
}
|
334
|
+
|
335
|
+
// stop window scroll
|
336
|
+
if (e.preventDefault && !releaseScroll) { e.preventDefault(); }
|
337
|
+
if (!releaseScroll) { e.returnValue = false; }
|
338
|
+
}
|
339
|
+
|
340
|
+
function scrollContent(y, isWheel, isJump)
|
341
|
+
{
|
342
|
+
releaseScroll = false;
|
343
|
+
var delta = y;
|
344
|
+
var maxTop = me.outerHeight() - bar.outerHeight();
|
345
|
+
|
346
|
+
if (isWheel)
|
347
|
+
{
|
348
|
+
// move bar with mouse wheel
|
349
|
+
delta = parseInt(bar.css('top')) + y * parseInt(o.wheelStep) / 100 * bar.outerHeight();
|
350
|
+
|
351
|
+
// move bar, make sure it doesn't go out
|
352
|
+
delta = Math.min(Math.max(delta, 0), maxTop);
|
353
|
+
|
354
|
+
// if scrolling down, make sure a fractional change to the
|
355
|
+
// scroll position isn't rounded away when the scrollbar's CSS is set
|
356
|
+
// this flooring of delta would happened automatically when
|
357
|
+
// bar.css is set below, but we floor here for clarity
|
358
|
+
delta = (y > 0) ? Math.ceil(delta) : Math.floor(delta);
|
359
|
+
|
360
|
+
// scroll the scrollbar
|
361
|
+
bar.css({ top: delta + 'px' });
|
362
|
+
}
|
363
|
+
|
364
|
+
// calculate actual scroll amount
|
365
|
+
percentScroll = parseInt(bar.css('top')) / (me.outerHeight() - bar.outerHeight());
|
366
|
+
delta = percentScroll * (me[0].scrollHeight - me.outerHeight());
|
367
|
+
|
368
|
+
if (isJump)
|
369
|
+
{
|
370
|
+
delta = y;
|
371
|
+
var offsetTop = delta / me[0].scrollHeight * me.outerHeight();
|
372
|
+
offsetTop = Math.min(Math.max(offsetTop, 0), maxTop);
|
373
|
+
bar.css({ top: offsetTop + 'px' });
|
374
|
+
}
|
375
|
+
|
376
|
+
// scroll content
|
377
|
+
me.scrollTop(delta);
|
378
|
+
|
379
|
+
// fire scrolling event
|
380
|
+
me.trigger('slimscrolling', ~~delta);
|
381
|
+
|
382
|
+
// ensure bar is visible
|
383
|
+
showBar();
|
384
|
+
|
385
|
+
// trigger hide when scroll is stopped
|
386
|
+
hideBar();
|
387
|
+
}
|
388
|
+
|
389
|
+
function attachWheel(target)
|
390
|
+
{
|
391
|
+
if (window.addEventListener)
|
392
|
+
{
|
393
|
+
target.addEventListener('DOMMouseScroll', _onWheel, false );
|
394
|
+
target.addEventListener('mousewheel', _onWheel, false );
|
395
|
+
}
|
396
|
+
else
|
397
|
+
{
|
398
|
+
document.attachEvent("onmousewheel", _onWheel)
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
function getBarHeight()
|
403
|
+
{
|
404
|
+
// calculate scrollbar height and make sure it is not too small
|
405
|
+
barHeight = Math.max((me.outerHeight() / me[0].scrollHeight) * me.outerHeight(), minBarHeight);
|
406
|
+
bar.css({ height: barHeight + 'px' });
|
407
|
+
|
408
|
+
// hide scrollbar if content is not long enough
|
409
|
+
var display = barHeight == me.outerHeight() ? 'none' : 'block';
|
410
|
+
bar.css({ display: display });
|
411
|
+
}
|
412
|
+
|
413
|
+
function showBar()
|
414
|
+
{
|
415
|
+
// recalculate bar height
|
416
|
+
getBarHeight();
|
417
|
+
clearTimeout(queueHide);
|
418
|
+
|
419
|
+
// when bar reached top or bottom
|
420
|
+
if (percentScroll == ~~percentScroll)
|
421
|
+
{
|
422
|
+
//release wheel
|
423
|
+
releaseScroll = o.allowPageScroll;
|
424
|
+
|
425
|
+
// publish approporiate event
|
426
|
+
if (lastScroll != percentScroll)
|
427
|
+
{
|
428
|
+
var msg = (~~percentScroll == 0) ? 'top' : 'bottom';
|
429
|
+
me.trigger('slimscroll', msg);
|
430
|
+
}
|
431
|
+
}
|
432
|
+
else
|
433
|
+
{
|
434
|
+
releaseScroll = false;
|
435
|
+
}
|
436
|
+
lastScroll = percentScroll;
|
437
|
+
|
438
|
+
// show only when required
|
439
|
+
if(barHeight >= me.outerHeight()) {
|
440
|
+
//allow window scroll
|
441
|
+
releaseScroll = true;
|
442
|
+
return;
|
443
|
+
}
|
444
|
+
bar.stop(true,true).fadeIn('fast');
|
445
|
+
if (o.railVisible) { rail.stop(true,true).fadeIn('fast'); }
|
446
|
+
}
|
447
|
+
|
448
|
+
function hideBar()
|
449
|
+
{
|
450
|
+
// only hide when options allow it
|
451
|
+
if (!o.alwaysVisible)
|
452
|
+
{
|
453
|
+
queueHide = setTimeout(function(){
|
454
|
+
if (!(o.disableFadeOut && isOverPanel) && !isOverBar && !isDragg)
|
455
|
+
{
|
456
|
+
bar.fadeOut('slow');
|
457
|
+
rail.fadeOut('slow');
|
458
|
+
}
|
459
|
+
}, 1000);
|
460
|
+
}
|
461
|
+
}
|
462
|
+
|
463
|
+
});
|
464
|
+
|
465
|
+
// maintain chainability
|
466
|
+
return this;
|
467
|
+
}
|
468
|
+
});
|
469
|
+
|
470
|
+
$.fn.extend({
|
471
|
+
slimscroll: $.fn.slimScroll
|
472
|
+
});
|
473
|
+
|
474
|
+
})(jQuery);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
|
2
|
+
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
3
|
+
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
4
|
+
*
|
5
|
+
* Version: 1.3.8
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
(function(e){e.fn.extend({slimScroll:function(f){var a=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},f);this.each(function(){function v(d){if(r){d=d||window.event;
|
9
|
+
var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);e(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&n(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function n(d,g,e){k=!1;var f=b.outerHeight()-c.outerHeight();g&&(g=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),g=Math.min(Math.max(g,0),f),g=0<d?Math.ceil(g):Math.floor(g),c.css({top:g+"px"}));l=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight());g=
|
10
|
+
l*(b[0].scrollHeight-b.outerHeight());e&&(g=d,d=g/b[0].scrollHeight*b.outerHeight(),d=Math.min(Math.max(d,0),f),c.css({top:d+"px"}));b.scrollTop(g);b.trigger("slimscrolling",~~g);w();p()}function x(){u=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),30);c.css({height:u+"px"});var a=u==b.outerHeight()?"none":"block";c.css({display:a})}function w(){x();clearTimeout(B);l==~~l?(k=a.allowPageScroll,C!=l&&b.trigger("slimscroll",0==~~l?"top":"bottom")):k=!1;C=l;u>=b.outerHeight()?k=!0:(c.stop(!0,
|
11
|
+
!0).fadeIn("fast"),a.railVisible&&m.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),m.fadeOut("slow"))},1E3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var q=b.scrollTop(),c=b.siblings("."+a.barClass),m=b.siblings("."+a.railClass);x();if(e.isPlainObject(f)){if("height"in f&&"auto"==f.height){b.parent().css("height","auto");b.css("height","auto");var h=b.parent().parent().height();b.parent().css("height",
|
12
|
+
h);b.css("height",h)}else"height"in f&&(h=f.height,b.parent().css("height",h),b.css("height",h));if("scrollTo"in f)q=parseInt(a.scrollTo);else if("scrollBy"in f)q+=parseInt(a.scrollBy);else if("destroy"in f){c.remove();m.remove();b.unwrap();return}n(q,!1,!0)}}else if(!(e.isPlainObject(f)&&"destroy"in f)){a.height="auto"==a.height?b.parent().height():a.height;q=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden",
|
13
|
+
width:a.width,height:a.height});var m=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,
|
14
|
+
WebkitBorderRadius:a.borderRadius,zIndex:99}),h="right"==a.position?{right:a.distance}:{left:a.distance};m.css(h);c.css(h);b.wrap(q);b.parent().append(c);b.parent().append(m);a.railDraggable&&c.bind("mousedown",function(a){var b=e(document);z=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);n(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){z=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll",
|
15
|
+
function(a){a.stopPropagation();a.preventDefault();return!1});m.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(n((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)});
|
16
|
+
x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"top"!==a.start&&(n(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery);
|