adminlte2-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +30 -13
- data/lib/adminlte2/rails/version.rb +1 -1
- data/lib/generators/{admin_lte → admin_lte2}/USAGE +0 -0
- data/lib/generators/{admin_lte/admin_lte_generator.rb → admin_lte2/admin_lte2_generator.rb} +27 -10
- data/lib/generators/{admin_lte → admin_lte2}/templates/_admin_lte_2_header.html.erb +0 -0
- data/lib/generators/{admin_lte → admin_lte2}/templates/_admin_lte_2_sidebar.html.erb +0 -0
- data/lib/generators/{admin_lte → admin_lte2}/templates/admin_lte_2.html.erb +0 -0
- data/lib/generators/{admin_lte → admin_lte2}/templates/admin_lte_2_login.html.erb +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/USAGE +3 -1
- data/lib/generators/{admin_lte_plugins/admin_lte_plugins_generator.rb → admin_lte2_plugins/admin_lte2_plugins_generator.rb} +30 -3
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/ChartJS/Chart.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/Sparkline/jquery.sparkline.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-slider/bootstrap-slider.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-slider/slider.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-wysihtml5/bootstrap3-wysihtml5.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-wysihtml5/bootstrap3-wysihtml5.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/bootstrap-colorpicker.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/bootstrap-colorpicker.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/alpha-horizontal.png +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/alpha.png +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/hue-horizontal.png +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/hue.png +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/saturation.png +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/bootstrap-datepicker.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/datepicker3.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ar.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.az.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.bg.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ca.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.cs.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.cy.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.da.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.de.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.el.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.es.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.et.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.fa.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.fi.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.fr.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.gl.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.he.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.hr.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.hu.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.id.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.is.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.it.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ja.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ka.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.kk.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.kr.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.lt.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.lv.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.mk.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ms.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.nb.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.nl-BE.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.nl.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.no.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.pl.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.pt-BR.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.pt.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ro.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.rs-latin.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.rs.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ru.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sk.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sl.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sq.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sv.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sw.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.th.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.tr.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ua.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.vi.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.zh-CN.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.zh-TW.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/daterangepicker/daterangepicker-bs3.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/daterangepicker/daterangepicker.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/fullcalendar/fullcalendar.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/fullcalendar/fullcalendar.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/fullcalendar/fullcalendar.print.css +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/all.css +61 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/_all.css +560 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/aero.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/aero.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/aero@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/blue.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/blue.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/blue@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/flat.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/flat.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/flat@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/green.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/green.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/green@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/grey.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/grey.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/grey@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/orange.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/orange.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/orange@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/pink.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/pink.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/pink@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/purple.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/purple.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/purple@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/red.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/red.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/red@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/yellow.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/yellow.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/yellow@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/futurico/futurico.css +56 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/futurico/futurico.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/futurico/futurico@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/icheck.js +478 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/_all.css +740 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/aero.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/blue.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/green.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/grey.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/line.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/line.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/line@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/orange.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/pink.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/purple.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/red.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/line/yellow.css +74 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/_all.css +557 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/aero.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/aero.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/aero@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/blue.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/blue.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/blue@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/green.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/green.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/green@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/grey.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/grey.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/grey@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/minimal.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/minimal.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/minimal@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/orange.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/orange.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/orange@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/pink.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/pink.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/pink@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/purple.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/purple.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/purple@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/red.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/red.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/red@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/yellow.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/yellow.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/yellow@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/polaris/polaris.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/polaris/polaris.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/polaris/polaris@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/_all.css +620 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/aero.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/aero.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/aero@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/blue.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/blue.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/blue@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/green.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/green.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/green@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/grey.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/grey.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/grey@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/orange.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/orange.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/orange@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/pink.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/pink.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/pink@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/purple.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/purple.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/purple@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/red.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/red.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/red@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/square.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/square.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/square@2x.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/yellow.css +62 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/yellow.png +0 -0
- data/lib/generators/admin_lte2_plugins/templates/iCheck/square/yellow@2x.png +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/jVectorMap/jquery-jvectormap-1.2.2.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/jVectorMap/jquery-jvectormap-1.2.2.min.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/jVectorMap/jquery-jvectormap-world-mill-en.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/knob/jquery.knob.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/morris/morris.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/morris/morris.js +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/pace/pace.js +0 -0
- data/lib/generators/admin_lte2_plugins/templates/slimScroll/jquery.slimscroll.js +490 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/timepicker/bootstrap-timepicker.css +0 -0
- data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/timepicker/bootstrap-timepicker.js +0 -0
- data/vendor/assets/javascripts/app.js +70 -70
- data/vendor/assets/stylesheets/{AdminLTE.css → AdminLTE/AdminLTE.css} +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/_all-skins.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/_all-skins.min.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-black.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-black.min.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-blue.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-blue.min.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-green.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-green.min.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-purple.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-purple.min.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-red.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-red.min.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-yellow.css +0 -0
- data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-yellow.min.css +0 -0
- metadata +221 -105
@@ -0,0 +1,62 @@
|
|
1
|
+
/* iCheck plugin Square skin, red
|
2
|
+
----------------------------------- */
|
3
|
+
.icheckbox_square-red,
|
4
|
+
.iradio_square-red {
|
5
|
+
display: inline-block;
|
6
|
+
*display: inline;
|
7
|
+
vertical-align: middle;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
width: 22px;
|
11
|
+
height: 22px;
|
12
|
+
background: url(red.png) no-repeat;
|
13
|
+
border: none;
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
|
17
|
+
.icheckbox_square-red {
|
18
|
+
background-position: 0 0;
|
19
|
+
}
|
20
|
+
.icheckbox_square-red.hover {
|
21
|
+
background-position: -24px 0;
|
22
|
+
}
|
23
|
+
.icheckbox_square-red.checked {
|
24
|
+
background-position: -48px 0;
|
25
|
+
}
|
26
|
+
.icheckbox_square-red.disabled {
|
27
|
+
background-position: -72px 0;
|
28
|
+
cursor: default;
|
29
|
+
}
|
30
|
+
.icheckbox_square-red.checked.disabled {
|
31
|
+
background-position: -96px 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.iradio_square-red {
|
35
|
+
background-position: -120px 0;
|
36
|
+
}
|
37
|
+
.iradio_square-red.hover {
|
38
|
+
background-position: -144px 0;
|
39
|
+
}
|
40
|
+
.iradio_square-red.checked {
|
41
|
+
background-position: -168px 0;
|
42
|
+
}
|
43
|
+
.iradio_square-red.disabled {
|
44
|
+
background-position: -192px 0;
|
45
|
+
cursor: default;
|
46
|
+
}
|
47
|
+
.iradio_square-red.checked.disabled {
|
48
|
+
background-position: -216px 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Retina support */
|
52
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
53
|
+
only screen and (-moz-min-device-pixel-ratio: 1.5),
|
54
|
+
only screen and (-o-min-device-pixel-ratio: 3/2),
|
55
|
+
only screen and (min-device-pixel-ratio: 1.5) {
|
56
|
+
.icheckbox_square-red,
|
57
|
+
.iradio_square-red {
|
58
|
+
background-image: url(red@2x.png);
|
59
|
+
-webkit-background-size: 240px 24px;
|
60
|
+
background-size: 240px 24px;
|
61
|
+
}
|
62
|
+
}
|
Binary file
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/* iCheck plugin Square skin, black
|
2
|
+
----------------------------------- */
|
3
|
+
.icheckbox_square,
|
4
|
+
.iradio_square {
|
5
|
+
display: inline-block;
|
6
|
+
*display: inline;
|
7
|
+
vertical-align: middle;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
width: 22px;
|
11
|
+
height: 22px;
|
12
|
+
background: url(square.png) no-repeat;
|
13
|
+
border: none;
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
|
17
|
+
.icheckbox_square {
|
18
|
+
background-position: 0 0;
|
19
|
+
}
|
20
|
+
.icheckbox_square.hover {
|
21
|
+
background-position: -24px 0;
|
22
|
+
}
|
23
|
+
.icheckbox_square.checked {
|
24
|
+
background-position: -48px 0;
|
25
|
+
}
|
26
|
+
.icheckbox_square.disabled {
|
27
|
+
background-position: -72px 0;
|
28
|
+
cursor: default;
|
29
|
+
}
|
30
|
+
.icheckbox_square.checked.disabled {
|
31
|
+
background-position: -96px 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.iradio_square {
|
35
|
+
background-position: -120px 0;
|
36
|
+
}
|
37
|
+
.iradio_square.hover {
|
38
|
+
background-position: -144px 0;
|
39
|
+
}
|
40
|
+
.iradio_square.checked {
|
41
|
+
background-position: -168px 0;
|
42
|
+
}
|
43
|
+
.iradio_square.disabled {
|
44
|
+
background-position: -192px 0;
|
45
|
+
cursor: default;
|
46
|
+
}
|
47
|
+
.iradio_square.checked.disabled {
|
48
|
+
background-position: -216px 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Retina support */
|
52
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
53
|
+
only screen and (-moz-min-device-pixel-ratio: 1.5),
|
54
|
+
only screen and (-o-min-device-pixel-ratio: 3/2),
|
55
|
+
only screen and (min-device-pixel-ratio: 1.5) {
|
56
|
+
.icheckbox_square,
|
57
|
+
.iradio_square {
|
58
|
+
background-image: url(square@2x.png);
|
59
|
+
-webkit-background-size: 240px 24px;
|
60
|
+
background-size: 240px 24px;
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/* iCheck plugin Square skin, yellow
|
2
|
+
----------------------------------- */
|
3
|
+
.icheckbox_square-yellow,
|
4
|
+
.iradio_square-yellow {
|
5
|
+
display: inline-block;
|
6
|
+
*display: inline;
|
7
|
+
vertical-align: middle;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
width: 22px;
|
11
|
+
height: 22px;
|
12
|
+
background: url(yellow.png) no-repeat;
|
13
|
+
border: none;
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
|
17
|
+
.icheckbox_square-yellow {
|
18
|
+
background-position: 0 0;
|
19
|
+
}
|
20
|
+
.icheckbox_square-yellow.hover {
|
21
|
+
background-position: -24px 0;
|
22
|
+
}
|
23
|
+
.icheckbox_square-yellow.checked {
|
24
|
+
background-position: -48px 0;
|
25
|
+
}
|
26
|
+
.icheckbox_square-yellow.disabled {
|
27
|
+
background-position: -72px 0;
|
28
|
+
cursor: default;
|
29
|
+
}
|
30
|
+
.icheckbox_square-yellow.checked.disabled {
|
31
|
+
background-position: -96px 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.iradio_square-yellow {
|
35
|
+
background-position: -120px 0;
|
36
|
+
}
|
37
|
+
.iradio_square-yellow.hover {
|
38
|
+
background-position: -144px 0;
|
39
|
+
}
|
40
|
+
.iradio_square-yellow.checked {
|
41
|
+
background-position: -168px 0;
|
42
|
+
}
|
43
|
+
.iradio_square-yellow.disabled {
|
44
|
+
background-position: -192px 0;
|
45
|
+
cursor: default;
|
46
|
+
}
|
47
|
+
.iradio_square-yellow.checked.disabled {
|
48
|
+
background-position: -216px 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Retina support */
|
52
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
53
|
+
only screen and (-moz-min-device-pixel-ratio: 1.5),
|
54
|
+
only screen and (-o-min-device-pixel-ratio: 3/2),
|
55
|
+
only screen and (min-device-pixel-ratio: 1.5) {
|
56
|
+
.icheckbox_square-yellow,
|
57
|
+
.iradio_square-yellow {
|
58
|
+
background-image: url(yellow@2x.png);
|
59
|
+
-webkit-background-size: 240px 24px;
|
60
|
+
background-size: 240px 24px;
|
61
|
+
}
|
62
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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);
|