phcthemes_admin_panel_pack 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +0 -5
- data/lib/phcthemes_admin_panel_pack/railtie.rb +4 -0
- data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
- data/lib/phcthemes_admin_panel_pack.rb +1 -1
- metadata +10 -239
- data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +0 -3
- data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +0 -1602
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +0 -7013
- data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +0 -2377
- data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +0 -2039
- data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +0 -1390
- data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +0 -3139
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +0 -51
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +0 -41
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +0 -40
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +0 -40
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +0 -44
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +0 -46
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -8
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +0 -39
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +0 -1
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +0 -8
- data/app/assets/javascripts/common/chartjs/chart.js +0 -14680
- data/app/assets/javascripts/common/custom/custom.js +0 -0
- data/app/assets/javascripts/common/datatables/datatables.js +0 -15310
- data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +0 -1565
- data/app/assets/javascripts/common/fastclick/fastclick.js +0 -841
- data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +0 -1252
- data/app/assets/javascripts/common/greenstock/greensock.js +0 -36
- data/app/assets/javascripts/common/icheck/icheck.js +0 -509
- data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +0 -497
- data/app/assets/javascripts/common/isotope/isotope.pkgd.js +0 -3563
- data/app/assets/javascripts/common/jquery/jquery-3.4.1.js +0 -10598
- data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +0 -246
- data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +0 -1
- data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +0 -44
- data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +0 -281
- data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +0 -474
- data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +0 -3054
- data/app/assets/javascripts/common/jquery-ui/jquery-ui.js +0 -18706
- data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +0 -1650
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +0 -1281
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +0 -10
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +0 -6
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +0 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +0 -11
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +0 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +0 -2
- data/app/assets/javascripts/common/js-cookie/js.cookie.js +0 -165
- data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +0 -13
- data/app/assets/javascripts/common/layerslider/layerslider.origami.js +0 -13
- data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +0 -13
- data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +0 -13
- data/app/assets/javascripts/common/leaflet/leaflet.js +0 -5
- data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +0 -1860
- data/app/assets/javascripts/common/mapbox/mapbox.js +0 -51
- data/app/assets/javascripts/common/metismenu/metisMenu.js +0 -340
- data/app/assets/javascripts/common/moderizer/modernizr.js +0 -11
- data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +0 -3448
- data/app/assets/javascripts/common/pace/pace.js +0 -935
- data/app/assets/javascripts/common/paroller/jquery.paroller.js +0 -228
- data/app/assets/javascripts/common/particlejs/particles.js +0 -1541
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.common.js +0 -1318
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.esm.js +0 -1316
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.js +0 -1324
- data/app/assets/javascripts/common/plyr/plyr.js +0 -9137
- data/app/assets/javascripts/common/rangeslider/rangeslider.js +0 -498
- data/app/assets/javascripts/common/retina/retina.js +0 -100
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +0 -386
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +0 -365
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +0 -199
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +0 -2524
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +0 -260
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +0 -1156
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +0 -465
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +0 -1447
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +0 -1464
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +0 -3286
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +0 -8710
- data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +0 -168
- data/app/assets/javascripts/common/select2/select2.full.js +0 -6597
- data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +0 -1092
- data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +0 -788
- data/app/assets/javascripts/common/spectrum/spectrum.js +0 -2323
- data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +0 -339
- data/app/assets/javascripts/common/swiper/swiper.js +0 -8124
- data/app/assets/javascripts/common/toaster/toastr.js +0 -476
- data/app/assets/javascripts/common/typed/typed.js +0 -1045
- data/app/assets/javascripts/common/visable/jquery.visible.js +0 -68
- data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +0 -662
- data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +0 -12
- data/app/assets/javascripts/phcthemes_admin_panel_pack_basic.js +0 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
- data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +0 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +0 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +0 -4
- data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +0 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +0 -5
- data/app/assets/javascripts/themes/adminlte/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +0 -1141
- data/app/assets/javascripts/themes/boomerang/custom/custom.1.js +0 -0
- data/app/assets/javascripts/themes/boomerang/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/theme/apps.js +0 -1650
- data/app/assets/javascripts/themes/coloradmin/theme/default.js +0 -152
- data/app/assets/javascripts/themes/inspinia/custom/custom.js +0 -0
- data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +0 -279
- data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +0 -9916
- data/app/assets/javascripts/themes/metronic/theme/vendors.bundle.js +0 -91352
- data/app/assets/stylesheets/common/custom/custom.scss +0 -0
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +0 -13
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_basic.scss +0 -6
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +0 -24
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +0 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +0 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +0 -7
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +0 -16
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +0 -12
- data/app/assets/stylesheets/themes/adminlte/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/boomerang/custom/custom.scss +0 -0
- data/app/assets/stylesheets/themes/coloradmin/custom/custom.scss +0 -0
- data/lib/phcthemes_admin_panel_pack/engine.rb +0 -19
@@ -1,474 +0,0 @@
|
|
1
|
-
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
|
2
|
-
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
3
|
-
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
4
|
-
*
|
5
|
-
* Version: 1.3.8
|
6
|
-
*
|
7
|
-
*/
|
8
|
-
(function($) {
|
9
|
-
|
10
|
-
$.fn.extend({
|
11
|
-
slimScroll: function(options) {
|
12
|
-
|
13
|
-
var defaults = {
|
14
|
-
|
15
|
-
// width in pixels of the visible scroll area
|
16
|
-
width : 'auto',
|
17
|
-
|
18
|
-
// height in pixels of the visible scroll area
|
19
|
-
height : '250px',
|
20
|
-
|
21
|
-
// width in pixels of the scrollbar and rail
|
22
|
-
size : '7px',
|
23
|
-
|
24
|
-
// scrollbar color, accepts any hex/color value
|
25
|
-
color: '#000',
|
26
|
-
|
27
|
-
// scrollbar position - left/right
|
28
|
-
position : 'right',
|
29
|
-
|
30
|
-
// distance in pixels between the side edge and the scrollbar
|
31
|
-
distance : '1px',
|
32
|
-
|
33
|
-
// default scroll position on load - top / bottom / $('selector')
|
34
|
-
start : 'top',
|
35
|
-
|
36
|
-
// sets scrollbar opacity
|
37
|
-
opacity : .4,
|
38
|
-
|
39
|
-
// enables always-on mode for the scrollbar
|
40
|
-
alwaysVisible : false,
|
41
|
-
|
42
|
-
// check if we should hide the scrollbar when user is hovering over
|
43
|
-
disableFadeOut : false,
|
44
|
-
|
45
|
-
// sets visibility of the rail
|
46
|
-
railVisible : false,
|
47
|
-
|
48
|
-
// sets rail color
|
49
|
-
railColor : '#333',
|
50
|
-
|
51
|
-
// sets rail opacity
|
52
|
-
railOpacity : .2,
|
53
|
-
|
54
|
-
// whether we should use jQuery UI Draggable to enable bar dragging
|
55
|
-
railDraggable : true,
|
56
|
-
|
57
|
-
// defautlt CSS class of the slimscroll rail
|
58
|
-
railClass : 'slimScrollRail',
|
59
|
-
|
60
|
-
// defautlt CSS class of the slimscroll bar
|
61
|
-
barClass : 'slimScrollBar',
|
62
|
-
|
63
|
-
// defautlt CSS class of the slimscroll wrapper
|
64
|
-
wrapperClass : 'slimScrollDiv',
|
65
|
-
|
66
|
-
// check if mousewheel should scroll the window if we reach top/bottom
|
67
|
-
allowPageScroll : false,
|
68
|
-
|
69
|
-
// scroll amount applied to each mouse wheel step
|
70
|
-
wheelStep : 20,
|
71
|
-
|
72
|
-
// scroll amount applied when user is using gestures
|
73
|
-
touchScrollStep : 200,
|
74
|
-
|
75
|
-
// sets border radius
|
76
|
-
borderRadius: '7px',
|
77
|
-
|
78
|
-
// sets border radius of the rail
|
79
|
-
railBorderRadius : '7px'
|
80
|
-
};
|
81
|
-
|
82
|
-
var o = $.extend(defaults, options);
|
83
|
-
|
84
|
-
// do it for every element that matches selector
|
85
|
-
this.each(function(){
|
86
|
-
|
87
|
-
var isOverPanel, isOverBar, isDragg, queueHide, touchDif,
|
88
|
-
barHeight, percentScroll, lastScroll,
|
89
|
-
divS = '<div></div>',
|
90
|
-
minBarHeight = 30,
|
91
|
-
releaseScroll = false;
|
92
|
-
|
93
|
-
// used in event handlers and for better minification
|
94
|
-
var me = $(this);
|
95
|
-
|
96
|
-
// ensure we are not binding it again
|
97
|
-
if (me.parent().hasClass(o.wrapperClass))
|
98
|
-
{
|
99
|
-
// start from last bar position
|
100
|
-
var offset = me.scrollTop();
|
101
|
-
|
102
|
-
// find bar and rail
|
103
|
-
bar = me.siblings('.' + o.barClass);
|
104
|
-
rail = me.siblings('.' + o.railClass);
|
105
|
-
|
106
|
-
getBarHeight();
|
107
|
-
|
108
|
-
// check if we should scroll existing instance
|
109
|
-
if ($.isPlainObject(options))
|
110
|
-
{
|
111
|
-
// Pass height: auto to an existing slimscroll object to force a resize after contents have changed
|
112
|
-
if ( 'height' in options && options.height == 'auto' ) {
|
113
|
-
me.parent().css('height', 'auto');
|
114
|
-
me.css('height', 'auto');
|
115
|
-
var height = me.parent().parent().height();
|
116
|
-
me.parent().css('height', height);
|
117
|
-
me.css('height', height);
|
118
|
-
} else if ('height' in options) {
|
119
|
-
var h = options.height;
|
120
|
-
me.parent().css('height', h);
|
121
|
-
me.css('height', h);
|
122
|
-
}
|
123
|
-
|
124
|
-
if ('scrollTo' in options)
|
125
|
-
{
|
126
|
-
// jump to a static point
|
127
|
-
offset = parseInt(o.scrollTo);
|
128
|
-
}
|
129
|
-
else if ('scrollBy' in options)
|
130
|
-
{
|
131
|
-
// jump by value pixels
|
132
|
-
offset += parseInt(o.scrollBy);
|
133
|
-
}
|
134
|
-
else if ('destroy' in options)
|
135
|
-
{
|
136
|
-
// remove slimscroll elements
|
137
|
-
bar.remove();
|
138
|
-
rail.remove();
|
139
|
-
me.unwrap();
|
140
|
-
return;
|
141
|
-
}
|
142
|
-
|
143
|
-
// scroll content by the given offset
|
144
|
-
scrollContent(offset, false, true);
|
145
|
-
}
|
146
|
-
|
147
|
-
return;
|
148
|
-
}
|
149
|
-
else if ($.isPlainObject(options))
|
150
|
-
{
|
151
|
-
if ('destroy' in options)
|
152
|
-
{
|
153
|
-
return;
|
154
|
-
}
|
155
|
-
}
|
156
|
-
|
157
|
-
// optionally set height to the parent's height
|
158
|
-
o.height = (o.height == 'auto') ? me.parent().height() : o.height;
|
159
|
-
|
160
|
-
// wrap content
|
161
|
-
var wrapper = $(divS)
|
162
|
-
.addClass(o.wrapperClass)
|
163
|
-
.css({
|
164
|
-
position: 'relative',
|
165
|
-
overflow: 'hidden',
|
166
|
-
width: o.width,
|
167
|
-
height: o.height
|
168
|
-
});
|
169
|
-
|
170
|
-
// update style for the div
|
171
|
-
me.css({
|
172
|
-
overflow: 'hidden',
|
173
|
-
width: o.width,
|
174
|
-
height: o.height
|
175
|
-
});
|
176
|
-
|
177
|
-
// create scrollbar rail
|
178
|
-
var rail = $(divS)
|
179
|
-
.addClass(o.railClass)
|
180
|
-
.css({
|
181
|
-
width: o.size,
|
182
|
-
height: '100%',
|
183
|
-
position: 'absolute',
|
184
|
-
top: 0,
|
185
|
-
display: (o.alwaysVisible && o.railVisible) ? 'block' : 'none',
|
186
|
-
'border-radius': o.railBorderRadius,
|
187
|
-
background: o.railColor,
|
188
|
-
opacity: o.railOpacity,
|
189
|
-
zIndex: 90
|
190
|
-
});
|
191
|
-
|
192
|
-
// create scrollbar
|
193
|
-
var bar = $(divS)
|
194
|
-
.addClass(o.barClass)
|
195
|
-
.css({
|
196
|
-
background: o.color,
|
197
|
-
width: o.size,
|
198
|
-
position: 'absolute',
|
199
|
-
top: 0,
|
200
|
-
opacity: o.opacity,
|
201
|
-
display: o.alwaysVisible ? 'block' : 'none',
|
202
|
-
'border-radius' : o.borderRadius,
|
203
|
-
BorderRadius: o.borderRadius,
|
204
|
-
MozBorderRadius: o.borderRadius,
|
205
|
-
WebkitBorderRadius: o.borderRadius,
|
206
|
-
zIndex: 99
|
207
|
-
});
|
208
|
-
|
209
|
-
// set position
|
210
|
-
var posCss = (o.position == 'right') ? { right: o.distance } : { left: o.distance };
|
211
|
-
rail.css(posCss);
|
212
|
-
bar.css(posCss);
|
213
|
-
|
214
|
-
// wrap it
|
215
|
-
me.wrap(wrapper);
|
216
|
-
|
217
|
-
// append to parent div
|
218
|
-
me.parent().append(bar);
|
219
|
-
me.parent().append(rail);
|
220
|
-
|
221
|
-
// make it draggable and no longer dependent on the jqueryUI
|
222
|
-
if (o.railDraggable){
|
223
|
-
bar.bind("mousedown", function(e) {
|
224
|
-
var $doc = $(document);
|
225
|
-
isDragg = true;
|
226
|
-
t = parseFloat(bar.css('top'));
|
227
|
-
pageY = e.pageY;
|
228
|
-
|
229
|
-
$doc.bind("mousemove.slimscroll", function(e){
|
230
|
-
currTop = t + e.pageY - pageY;
|
231
|
-
bar.css('top', currTop);
|
232
|
-
scrollContent(0, bar.position().top, false);// scroll content
|
233
|
-
});
|
234
|
-
|
235
|
-
$doc.bind("mouseup.slimscroll", function(e) {
|
236
|
-
isDragg = false;hideBar();
|
237
|
-
$doc.unbind('.slimscroll');
|
238
|
-
});
|
239
|
-
return false;
|
240
|
-
}).bind("selectstart.slimscroll", function(e){
|
241
|
-
e.stopPropagation();
|
242
|
-
e.preventDefault();
|
243
|
-
return false;
|
244
|
-
});
|
245
|
-
}
|
246
|
-
|
247
|
-
// on rail over
|
248
|
-
rail.hover(function(){
|
249
|
-
showBar();
|
250
|
-
}, function(){
|
251
|
-
hideBar();
|
252
|
-
});
|
253
|
-
|
254
|
-
// on bar over
|
255
|
-
bar.hover(function(){
|
256
|
-
isOverBar = true;
|
257
|
-
}, function(){
|
258
|
-
isOverBar = false;
|
259
|
-
});
|
260
|
-
|
261
|
-
// show on parent mouseover
|
262
|
-
me.hover(function(){
|
263
|
-
isOverPanel = true;
|
264
|
-
showBar();
|
265
|
-
hideBar();
|
266
|
-
}, function(){
|
267
|
-
isOverPanel = false;
|
268
|
-
hideBar();
|
269
|
-
});
|
270
|
-
|
271
|
-
// support for mobile
|
272
|
-
me.bind('touchstart', function(e,b){
|
273
|
-
if (e.originalEvent.touches.length)
|
274
|
-
{
|
275
|
-
// record where touch started
|
276
|
-
touchDif = e.originalEvent.touches[0].pageY;
|
277
|
-
}
|
278
|
-
});
|
279
|
-
|
280
|
-
me.bind('touchmove', function(e){
|
281
|
-
// prevent scrolling the page if necessary
|
282
|
-
if(!releaseScroll)
|
283
|
-
{
|
284
|
-
e.originalEvent.preventDefault();
|
285
|
-
}
|
286
|
-
if (e.originalEvent.touches.length)
|
287
|
-
{
|
288
|
-
// see how far user swiped
|
289
|
-
var diff = (touchDif - e.originalEvent.touches[0].pageY) / o.touchScrollStep;
|
290
|
-
// scroll content
|
291
|
-
scrollContent(diff, true);
|
292
|
-
touchDif = e.originalEvent.touches[0].pageY;
|
293
|
-
}
|
294
|
-
});
|
295
|
-
|
296
|
-
// set up initial height
|
297
|
-
getBarHeight();
|
298
|
-
|
299
|
-
// check start position
|
300
|
-
if (o.start === 'bottom')
|
301
|
-
{
|
302
|
-
// scroll content to bottom
|
303
|
-
bar.css({ top: me.outerHeight() - bar.outerHeight() });
|
304
|
-
scrollContent(0, true);
|
305
|
-
}
|
306
|
-
else if (o.start !== 'top')
|
307
|
-
{
|
308
|
-
// assume jQuery selector
|
309
|
-
scrollContent($(o.start).position().top, null, true);
|
310
|
-
|
311
|
-
// make sure bar stays hidden
|
312
|
-
if (!o.alwaysVisible) { bar.hide(); }
|
313
|
-
}
|
314
|
-
|
315
|
-
// attach scroll events
|
316
|
-
attachWheel(this);
|
317
|
-
|
318
|
-
function _onWheel(e)
|
319
|
-
{
|
320
|
-
// use mouse wheel only when mouse is over
|
321
|
-
if (!isOverPanel) { return; }
|
322
|
-
|
323
|
-
var e = e || window.event;
|
324
|
-
|
325
|
-
var delta = 0;
|
326
|
-
if (e.wheelDelta) { delta = -e.wheelDelta/120; }
|
327
|
-
if (e.detail) { delta = e.detail / 3; }
|
328
|
-
|
329
|
-
var target = e.target || e.srcTarget || e.srcElement;
|
330
|
-
if ($(target).closest('.' + o.wrapperClass).is(me.parent())) {
|
331
|
-
// scroll content
|
332
|
-
scrollContent(delta, true);
|
333
|
-
}
|
334
|
-
|
335
|
-
// stop window scroll
|
336
|
-
if (e.preventDefault && !releaseScroll) { e.preventDefault(); }
|
337
|
-
if (!releaseScroll) { e.returnValue = false; }
|
338
|
-
}
|
339
|
-
|
340
|
-
function scrollContent(y, isWheel, isJump)
|
341
|
-
{
|
342
|
-
releaseScroll = false;
|
343
|
-
var delta = y;
|
344
|
-
var maxTop = me.outerHeight() - bar.outerHeight();
|
345
|
-
|
346
|
-
if (isWheel)
|
347
|
-
{
|
348
|
-
// move bar with mouse wheel
|
349
|
-
delta = parseInt(bar.css('top')) + y * parseInt(o.wheelStep) / 100 * bar.outerHeight();
|
350
|
-
|
351
|
-
// move bar, make sure it doesn't go out
|
352
|
-
delta = Math.min(Math.max(delta, 0), maxTop);
|
353
|
-
|
354
|
-
// if scrolling down, make sure a fractional change to the
|
355
|
-
// scroll position isn't rounded away when the scrollbar's CSS is set
|
356
|
-
// this flooring of delta would happened automatically when
|
357
|
-
// bar.css is set below, but we floor here for clarity
|
358
|
-
delta = (y > 0) ? Math.ceil(delta) : Math.floor(delta);
|
359
|
-
|
360
|
-
// scroll the scrollbar
|
361
|
-
bar.css({ top: delta + 'px' });
|
362
|
-
}
|
363
|
-
|
364
|
-
// calculate actual scroll amount
|
365
|
-
percentScroll = parseInt(bar.css('top')) / (me.outerHeight() - bar.outerHeight());
|
366
|
-
delta = percentScroll * (me[0].scrollHeight - me.outerHeight());
|
367
|
-
|
368
|
-
if (isJump)
|
369
|
-
{
|
370
|
-
delta = y;
|
371
|
-
var offsetTop = delta / me[0].scrollHeight * me.outerHeight();
|
372
|
-
offsetTop = Math.min(Math.max(offsetTop, 0), maxTop);
|
373
|
-
bar.css({ top: offsetTop + 'px' });
|
374
|
-
}
|
375
|
-
|
376
|
-
// scroll content
|
377
|
-
me.scrollTop(delta);
|
378
|
-
|
379
|
-
// fire scrolling event
|
380
|
-
me.trigger('slimscrolling', ~~delta);
|
381
|
-
|
382
|
-
// ensure bar is visible
|
383
|
-
showBar();
|
384
|
-
|
385
|
-
// trigger hide when scroll is stopped
|
386
|
-
hideBar();
|
387
|
-
}
|
388
|
-
|
389
|
-
function attachWheel(target)
|
390
|
-
{
|
391
|
-
if (window.addEventListener)
|
392
|
-
{
|
393
|
-
target.addEventListener('DOMMouseScroll', _onWheel, false );
|
394
|
-
target.addEventListener('mousewheel', _onWheel, false );
|
395
|
-
}
|
396
|
-
else
|
397
|
-
{
|
398
|
-
document.attachEvent("onmousewheel", _onWheel)
|
399
|
-
}
|
400
|
-
}
|
401
|
-
|
402
|
-
function getBarHeight()
|
403
|
-
{
|
404
|
-
// calculate scrollbar height and make sure it is not too small
|
405
|
-
barHeight = Math.max((me.outerHeight() / me[0].scrollHeight) * me.outerHeight(), minBarHeight);
|
406
|
-
bar.css({ height: barHeight + 'px' });
|
407
|
-
|
408
|
-
// hide scrollbar if content is not long enough
|
409
|
-
var display = barHeight == me.outerHeight() ? 'none' : 'block';
|
410
|
-
bar.css({ display: display });
|
411
|
-
}
|
412
|
-
|
413
|
-
function showBar()
|
414
|
-
{
|
415
|
-
// recalculate bar height
|
416
|
-
getBarHeight();
|
417
|
-
clearTimeout(queueHide);
|
418
|
-
|
419
|
-
// when bar reached top or bottom
|
420
|
-
if (percentScroll == ~~percentScroll)
|
421
|
-
{
|
422
|
-
//release wheel
|
423
|
-
releaseScroll = o.allowPageScroll;
|
424
|
-
|
425
|
-
// publish approporiate event
|
426
|
-
if (lastScroll != percentScroll)
|
427
|
-
{
|
428
|
-
var msg = (~~percentScroll == 0) ? 'top' : 'bottom';
|
429
|
-
me.trigger('slimscroll', msg);
|
430
|
-
}
|
431
|
-
}
|
432
|
-
else
|
433
|
-
{
|
434
|
-
releaseScroll = false;
|
435
|
-
}
|
436
|
-
lastScroll = percentScroll;
|
437
|
-
|
438
|
-
// show only when required
|
439
|
-
if(barHeight >= me.outerHeight()) {
|
440
|
-
//allow window scroll
|
441
|
-
releaseScroll = true;
|
442
|
-
return;
|
443
|
-
}
|
444
|
-
bar.stop(true,true).fadeIn('fast');
|
445
|
-
if (o.railVisible) { rail.stop(true,true).fadeIn('fast'); }
|
446
|
-
}
|
447
|
-
|
448
|
-
function hideBar()
|
449
|
-
{
|
450
|
-
// only hide when options allow it
|
451
|
-
if (!o.alwaysVisible)
|
452
|
-
{
|
453
|
-
queueHide = setTimeout(function(){
|
454
|
-
if (!(o.disableFadeOut && isOverPanel) && !isOverBar && !isDragg)
|
455
|
-
{
|
456
|
-
bar.fadeOut('slow');
|
457
|
-
rail.fadeOut('slow');
|
458
|
-
}
|
459
|
-
}, 1000);
|
460
|
-
}
|
461
|
-
}
|
462
|
-
|
463
|
-
});
|
464
|
-
|
465
|
-
// maintain chainability
|
466
|
-
return this;
|
467
|
-
}
|
468
|
-
});
|
469
|
-
|
470
|
-
$.fn.extend({
|
471
|
-
slimscroll: $.fn.slimScroll
|
472
|
-
});
|
473
|
-
|
474
|
-
})(jQuery);
|