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