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,228 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* jQuery plugin paroller.js v1.4.5
|
3
|
-
* https://github.com/tgomilar/paroller.js
|
4
|
-
* preview: https://tgomilar.github.io/paroller/
|
5
|
-
**/
|
6
|
-
(function (factory) {
|
7
|
-
'use strict';
|
8
|
-
if (typeof define === 'function' && define.amd) {
|
9
|
-
define('parollerjs', ['jquery'], factory);
|
10
|
-
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
11
|
-
module.exports = factory(require('jquery'));
|
12
|
-
}
|
13
|
-
else {
|
14
|
-
factory(jQuery);
|
15
|
-
}
|
16
|
-
})(function ($) {
|
17
|
-
'use strict';
|
18
|
-
|
19
|
-
var working = false;
|
20
|
-
var scrollAction = function() {
|
21
|
-
working = false;
|
22
|
-
};
|
23
|
-
|
24
|
-
var setDirection = {
|
25
|
-
bgVertical: function (elem, bgOffset) {
|
26
|
-
return elem.css({'background-position': 'center ' + -bgOffset + 'px'});
|
27
|
-
},
|
28
|
-
bgHorizontal: function (elem, bgOffset) {
|
29
|
-
return elem.css({'background-position': -bgOffset + 'px' + ' center'});
|
30
|
-
},
|
31
|
-
vertical: function (elem, elemOffset, transition, oldTransform) {
|
32
|
-
(oldTransform === 'none' ? oldTransform = '' : true);
|
33
|
-
return elem.css({
|
34
|
-
'-webkit-transform': 'translateY(' + elemOffset + 'px)' + oldTransform,
|
35
|
-
'-moz-transform': 'translateY(' + elemOffset + 'px)' + oldTransform,
|
36
|
-
'transform': 'translateY(' + elemOffset + 'px)' + oldTransform,
|
37
|
-
'transition': transition,
|
38
|
-
'will-change': 'transform'
|
39
|
-
});
|
40
|
-
},
|
41
|
-
horizontal: function (elem, elemOffset, transition, oldTransform) {
|
42
|
-
(oldTransform === 'none' ? oldTransform = '' : true);
|
43
|
-
return elem.css({
|
44
|
-
'-webkit-transform': 'translateX(' + elemOffset + 'px)' + oldTransform,
|
45
|
-
'-moz-transform': 'translateX(' + elemOffset + 'px)' + oldTransform,
|
46
|
-
'transform': 'translateX(' + elemOffset + 'px)' + oldTransform,
|
47
|
-
'transition': transition,
|
48
|
-
'will-change': 'transform'
|
49
|
-
});
|
50
|
-
}
|
51
|
-
};
|
52
|
-
|
53
|
-
var setMovement = {
|
54
|
-
factor: function (elem, width, options) {
|
55
|
-
var dataFactor = elem.data('paroller-factor');
|
56
|
-
var factor = (dataFactor) ? dataFactor : options.factor;
|
57
|
-
if (width < 576) {
|
58
|
-
var dataFactorXs = elem.data('paroller-factor-xs');
|
59
|
-
var factorXs = (dataFactorXs) ? dataFactorXs : options.factorXs;
|
60
|
-
return (factorXs) ? factorXs : factor;
|
61
|
-
}
|
62
|
-
else if (width <= 768) {
|
63
|
-
var dataFactorSm = elem.data('paroller-factor-sm');
|
64
|
-
var factorSm = (dataFactorSm) ? dataFactorSm : options.factorSm;
|
65
|
-
return (factorSm) ? factorSm : factor;
|
66
|
-
}
|
67
|
-
else if (width <= 1024) {
|
68
|
-
var dataFactorMd = elem.data('paroller-factor-md');
|
69
|
-
var factorMd = (dataFactorMd) ? dataFactorMd : options.factorMd;
|
70
|
-
return (factorMd) ? factorMd : factor;
|
71
|
-
}
|
72
|
-
else if (width <= 1200) {
|
73
|
-
var dataFactorLg = elem.data('paroller-factor-lg');
|
74
|
-
var factorLg = (dataFactorLg) ? dataFactorLg : options.factorLg;
|
75
|
-
return (factorLg) ? factorLg : factor;
|
76
|
-
} else if (width <= 1920) {
|
77
|
-
var dataFactorXl = elem.data('paroller-factor-xl');
|
78
|
-
var factorXl = (dataFactorXl) ? dataFactorXl : options.factorXl;
|
79
|
-
return (factorXl) ? factorXl : factor;
|
80
|
-
} else {
|
81
|
-
return factor;
|
82
|
-
}
|
83
|
-
},
|
84
|
-
bgOffset: function (offset, factor) {
|
85
|
-
return Math.round(offset * factor);
|
86
|
-
},
|
87
|
-
transform: function (offset, factor, windowHeight, height) {
|
88
|
-
return Math.round((offset - (windowHeight / 2) + height) * factor);
|
89
|
-
}
|
90
|
-
};
|
91
|
-
|
92
|
-
var clearPositions = {
|
93
|
-
background: function (elem) {
|
94
|
-
return elem.css({'background-position': 'unset'});
|
95
|
-
},
|
96
|
-
foreground: function (elem) {
|
97
|
-
return elem.css({
|
98
|
-
'transform' : 'unset',
|
99
|
-
'transition' : 'unset'
|
100
|
-
});
|
101
|
-
}
|
102
|
-
};
|
103
|
-
|
104
|
-
$.fn.paroller = function (options) {
|
105
|
-
var windowHeight = $(window).height();
|
106
|
-
var documentHeight = $(document).height();
|
107
|
-
|
108
|
-
// default options
|
109
|
-
var options = $.extend({
|
110
|
-
factor: 0, // - to +
|
111
|
-
factorXs: 0, // - to +
|
112
|
-
factorSm: 0, // - to +
|
113
|
-
factorMd: 0, // - to +
|
114
|
-
factorLg: 0, // - to +
|
115
|
-
factorXl: 0, // - to +
|
116
|
-
transition: 'translate 0.1s ease', // CSS transition
|
117
|
-
type: 'background', // foreground
|
118
|
-
direction: 'vertical' // horizontal
|
119
|
-
}, options);
|
120
|
-
|
121
|
-
return this.each(function () {
|
122
|
-
var $this = $(this);
|
123
|
-
var width = $(window).width();
|
124
|
-
var offset = $this.offset().top;
|
125
|
-
var height = $this.outerHeight();
|
126
|
-
|
127
|
-
var dataType = $this.data('paroller-type');
|
128
|
-
var dataDirection = $this.data('paroller-direction');
|
129
|
-
var dataTransition = $this.data('paroller-transition');
|
130
|
-
var oldTransform = $this.css('transform');
|
131
|
-
|
132
|
-
var transition = (dataTransition) ? dataTransition : options.transition;
|
133
|
-
var type = (dataType) ? dataType : options.type;
|
134
|
-
var direction = (dataDirection) ? dataDirection : options.direction;
|
135
|
-
var factor = 0;
|
136
|
-
var bgOffset = setMovement.bgOffset(offset, factor);
|
137
|
-
var transform = setMovement.transform(offset, factor, windowHeight, height);
|
138
|
-
|
139
|
-
if (type === 'background') {
|
140
|
-
if (direction === 'vertical') {
|
141
|
-
setDirection.bgVertical($this, bgOffset);
|
142
|
-
}
|
143
|
-
else if (direction === 'horizontal') {
|
144
|
-
setDirection.bgHorizontal($this, bgOffset);
|
145
|
-
}
|
146
|
-
}
|
147
|
-
else if (type === 'foreground') {
|
148
|
-
if (direction === 'vertical') {
|
149
|
-
setDirection.vertical($this, transform, transition, oldTransform);
|
150
|
-
}
|
151
|
-
else if (direction === 'horizontal') {
|
152
|
-
setDirection.horizontal($this, transform, transition, oldTransform);
|
153
|
-
}
|
154
|
-
}
|
155
|
-
|
156
|
-
$(window).on('resize', function () {
|
157
|
-
var scrolling = $(this).scrollTop();
|
158
|
-
width = $(window).width();
|
159
|
-
offset = $this.offset().top;
|
160
|
-
height = $this.outerHeight();
|
161
|
-
factor = setMovement.factor($this, width, options);
|
162
|
-
|
163
|
-
bgOffset = Math.round(offset * factor);
|
164
|
-
transform = Math.round((offset - (windowHeight / 2) + height) * factor);
|
165
|
-
|
166
|
-
if (! working) {
|
167
|
-
window.requestAnimationFrame(scrollAction);
|
168
|
-
working = true;
|
169
|
-
}
|
170
|
-
|
171
|
-
if (type === 'background') {
|
172
|
-
clearPositions.background($this);
|
173
|
-
if (direction === 'vertical') {
|
174
|
-
setDirection.bgVertical($this, bgOffset);
|
175
|
-
}
|
176
|
-
else if (direction === 'horizontal') {
|
177
|
-
setDirection.bgHorizontal($this, bgOffset);
|
178
|
-
}
|
179
|
-
}
|
180
|
-
else if ((type === 'foreground') && (scrolling <= documentHeight)) {
|
181
|
-
clearPositions.foreground($this);
|
182
|
-
if (direction === 'vertical') {
|
183
|
-
setDirection.vertical($this, transform, transition);
|
184
|
-
}
|
185
|
-
else if (direction === 'horizontal') {
|
186
|
-
setDirection.horizontal($this, transform, transition);
|
187
|
-
}
|
188
|
-
}
|
189
|
-
});
|
190
|
-
|
191
|
-
$(window).on('scroll', function () {
|
192
|
-
var scrolling = $(this).scrollTop();
|
193
|
-
var scrollTop = $(document).scrollTop();
|
194
|
-
|
195
|
-
if (scrollTop === 0) {
|
196
|
-
factor = 0;
|
197
|
-
} else {
|
198
|
-
factor = setMovement.factor($this, width, options);
|
199
|
-
}
|
200
|
-
|
201
|
-
bgOffset = Math.round((offset - scrolling) * factor);
|
202
|
-
transform = Math.round(((offset - (windowHeight / 2) + height) - scrolling) * factor);
|
203
|
-
|
204
|
-
if (! working) {
|
205
|
-
window.requestAnimationFrame(scrollAction);
|
206
|
-
working = true;
|
207
|
-
}
|
208
|
-
|
209
|
-
if (type === 'background') {
|
210
|
-
if (direction === 'vertical') {
|
211
|
-
setDirection.bgVertical($this, bgOffset);
|
212
|
-
}
|
213
|
-
else if (direction === 'horizontal') {
|
214
|
-
setDirection.bgHorizontal($this, bgOffset);
|
215
|
-
}
|
216
|
-
}
|
217
|
-
else if ((type === 'foreground') && (scrolling <= documentHeight)) {
|
218
|
-
if (direction === 'vertical') {
|
219
|
-
setDirection.vertical($this, transform, transition, oldTransform);
|
220
|
-
}
|
221
|
-
else if (direction === 'horizontal') {
|
222
|
-
setDirection.horizontal($this, transform, transition, oldTransform);
|
223
|
-
}
|
224
|
-
}
|
225
|
-
});
|
226
|
-
});
|
227
|
-
};
|
228
|
-
});
|