phcthemes_admin_panel_pack 4.0.7 → 4.1.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 +20 -20
- data/README.md +2 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +9 -9
- data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +1602 -1602
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +7023 -7023
- data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +2377 -2377
- data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +2039 -2039
- data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +1390 -1390
- data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +7 -7
- data/app/assets/javascripts/common/chartjs/chart.js +0 -0
- data/app/assets/javascripts/common/ckeditor/ckeditor.js +6 -6
- data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/af.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ar.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ast.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/az.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/bg.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ca.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/cs.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/da.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/de.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/el.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/en-au.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/eo.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/es.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/et.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/eu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fa.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fi.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/gl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/gu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/he.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/hr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/hu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/id.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/it.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ja.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/km.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/kn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ko.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ku.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/lt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/lv.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/nb.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ne.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/nl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/no.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/oc.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ro.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ru.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/si.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sk.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sq.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sv.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/th.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/tr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/tt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ug.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/uk.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/vi.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/zh.js +0 -0
- data/app/assets/javascripts/common/clipboardjs/clipboard.js +977 -977
- data/app/assets/javascripts/common/covervid/covervid.js +94 -94
- data/app/assets/javascripts/common/custom/custom.js +0 -0
- data/app/assets/javascripts/common/datatables/datatables.js +15310 -15310
- data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +1565 -1565
- data/app/assets/javascripts/common/fastclick/fastclick.js +841 -841
- data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +1252 -1252
- data/app/assets/javascripts/common/greenstock/greensock.js +35 -35
- data/app/assets/javascripts/common/html5sortable/jquery.sortable.js +98 -98
- data/app/assets/javascripts/common/icheck/icheck.js +509 -509
- data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +497 -497
- data/app/assets/javascripts/common/isotope/isotope.pkgd.js +3563 -3563
- data/app/assets/javascripts/common/jquery/jquery-3.4.1.js +10598 -10598
- data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +245 -245
- data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +0 -0
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.autogrow.js +37 -37
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.charcounter.js +53 -53
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.checkbox.js +54 -54
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.datepicker.js +59 -59
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.js +823 -823
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.masked.js +46 -46
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.time.js +71 -71
- data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +44 -44
- data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +281 -281
- data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +474 -474
- data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +3054 -3054
- data/app/assets/javascripts/common/jquery-ui/jquery-ui.js +18705 -18705
- data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +0 -0
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +1281 -1281
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +9 -9
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +6 -6
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +11 -11
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +2 -2
- data/app/assets/javascripts/common/js-cookie/js.cookie.js +165 -165
- data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.origami.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +12 -12
- data/app/assets/javascripts/common/lazysizes/lazysizes.js +754 -754
- data/app/assets/javascripts/common/leaflet/leaflet.js +4 -4
- data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +1859 -1859
- data/app/assets/javascripts/common/mapbox/mapbox.js +51 -51
- data/app/assets/javascripts/common/metismenu/metisMenu.js +340 -340
- data/app/assets/javascripts/common/moderizer/modernizr.js +11 -11
- data/app/assets/javascripts/common/nouislider/nouislider.js +2637 -2637
- data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +3448 -3448
- data/app/assets/javascripts/common/pace/pace.js +935 -935
- data/app/assets/javascripts/common/paroller/jquery.paroller.js +228 -228
- data/app/assets/javascripts/common/particlejs/particles.js +1540 -1540
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.common.js +1318 -1318
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.esm.js +1316 -1316
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.js +1324 -1324
- data/app/assets/javascripts/common/plyr/plyr.js +9137 -9137
- data/app/assets/javascripts/common/rangeslider/rangeslider.js +498 -498
- data/app/assets/javascripts/common/retina/retina.js +100 -100
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +0 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +0 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +0 -0
- data/app/assets/javascripts/common/scrollme/jquery.scrollme.js +455 -455
- data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +168 -168
- data/app/assets/javascripts/common/select2/select2.full.js +6597 -6597
- data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +1091 -1091
- data/app/assets/javascripts/common/slick/slick.js +3004 -3004
- data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +788 -788
- data/app/assets/javascripts/common/spectrum/spectrum.js +2323 -2323
- data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +339 -339
- data/app/assets/javascripts/common/swiper/swiper.js +8124 -8124
- data/app/assets/javascripts/common/toaster/toastr.js +476 -476
- data/app/assets/javascripts/common/typed/typed.js +1044 -1044
- data/app/assets/javascripts/common/visable/jquery.visible.js +68 -68
- data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +661 -661
- data/app/assets/javascripts/common/wow/wow.js +508 -508
- data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +12 -12
- data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
- data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +5 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +10 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +6 -6
- data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +5 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +5 -5
- data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +1141 -1141
- data/app/assets/javascripts/themes/coloradmin/theme/color_admin_app.min.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/theme/color_admin_default.js +0 -0
- data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +279 -279
- data/app/assets/javascripts/themes/metronic/theme/plugins.bundle.js +0 -0
- data/app/assets/javascripts/themes/metronic/theme/prismjs.bundle.js +1922 -1922
- data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +0 -0
- data/app/assets/javascripts/themes/metronic/theme/widgets.js +0 -0
- data/app/assets/stylesheets/common/hanna_hearts/hanna_hearts.scss +0 -0
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +16 -16
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +27 -27
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +11 -11
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +18 -18
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +15 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +19 -19
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +15 -15
- data/lib/phcthemes_admin_panel_pack/engine.rb +20 -20
- data/lib/phcthemes_admin_panel_pack/version.rb +3 -3
- data/lib/phcthemes_admin_panel_pack.rb +6 -6
- data/lib/tasks/phcthemes_admin_panel_pack_tasks.rake +4 -4
- metadata +3 -3
@@ -1,455 +1,455 @@
|
|
1
|
-
// ----------------------------------------------------------------------------------------------------
|
2
|
-
// ScrollMe
|
3
|
-
// A jQuery plugin for adding simple scrolling effects to web pages
|
4
|
-
// http://scrollme.nckprsn.com
|
5
|
-
// ----------------------------------------------------------------------------------------------------
|
6
|
-
|
7
|
-
var scrollme = ( function( $ )
|
8
|
-
{
|
9
|
-
// ----------------------------------------------------------------------------------------------------
|
10
|
-
// ScrollMe object
|
11
|
-
|
12
|
-
var _this = {};
|
13
|
-
|
14
|
-
// ----------------------------------------------------------------------------------------------------
|
15
|
-
// Properties
|
16
|
-
|
17
|
-
var $document = $( document );
|
18
|
-
var $window = $( window );
|
19
|
-
|
20
|
-
_this.body_height = 0;
|
21
|
-
|
22
|
-
_this.viewport_height = 0;
|
23
|
-
|
24
|
-
_this.viewport_top = 0;
|
25
|
-
_this.viewport_bottom = 0;
|
26
|
-
|
27
|
-
_this.viewport_top_previous = -1;
|
28
|
-
|
29
|
-
_this.elements = [];
|
30
|
-
_this.elements_in_view = [];
|
31
|
-
|
32
|
-
_this.property_defaults =
|
33
|
-
{
|
34
|
-
'opacity' : 1,
|
35
|
-
'translatex' : 0,
|
36
|
-
'translatey' : 0,
|
37
|
-
'translatez' : 0,
|
38
|
-
'rotatex' : 0,
|
39
|
-
'rotatey' : 0,
|
40
|
-
'rotatez' : 0,
|
41
|
-
'scale' : 1,
|
42
|
-
'scalex' : 1,
|
43
|
-
'scaley' : 1,
|
44
|
-
'scalez' : 1
|
45
|
-
};
|
46
|
-
|
47
|
-
_this.scrollme_selector = '.scrollme';
|
48
|
-
_this.animateme_selector = '.animateme';
|
49
|
-
|
50
|
-
_this.update_interval = 10;
|
51
|
-
|
52
|
-
// Easing functions
|
53
|
-
|
54
|
-
_this.easing_functions =
|
55
|
-
{
|
56
|
-
'linear' : function( x )
|
57
|
-
{
|
58
|
-
return x;
|
59
|
-
},
|
60
|
-
|
61
|
-
'easeout' : function( x )
|
62
|
-
{
|
63
|
-
return x * x * x;
|
64
|
-
},
|
65
|
-
|
66
|
-
'easein' : function( x )
|
67
|
-
{
|
68
|
-
x = 1 - x;
|
69
|
-
return 1 - ( x * x * x );
|
70
|
-
},
|
71
|
-
|
72
|
-
'easeinout' : function( x )
|
73
|
-
{
|
74
|
-
if( x < 0.5 )
|
75
|
-
{
|
76
|
-
return ( 4 * x * x * x );
|
77
|
-
}
|
78
|
-
else
|
79
|
-
{
|
80
|
-
x = 1 - x;
|
81
|
-
return 1 - ( 4 * x * x * x ) ;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
};
|
85
|
-
|
86
|
-
// Document events to bind initialisation to
|
87
|
-
|
88
|
-
_this.init_events =
|
89
|
-
[
|
90
|
-
'ready',
|
91
|
-
'page:load', // Turbolinks
|
92
|
-
'page:change' // Turbolinks
|
93
|
-
];
|
94
|
-
|
95
|
-
// ----------------------------------------------------------------------------------------------------
|
96
|
-
// Initialisation conditions
|
97
|
-
|
98
|
-
_this.init_if = function() { return true; }
|
99
|
-
|
100
|
-
// ----------------------------------------------------------------------------------------------------
|
101
|
-
// Initialisation
|
102
|
-
|
103
|
-
_this.init = function()
|
104
|
-
{
|
105
|
-
// Cancel if initialisation conditions not met
|
106
|
-
|
107
|
-
if( !_this.init_if() ) return false;
|
108
|
-
|
109
|
-
// Load all elements to animate
|
110
|
-
|
111
|
-
_this.init_elements();
|
112
|
-
|
113
|
-
// Get element & viewport sizes
|
114
|
-
|
115
|
-
_this.on_resize();
|
116
|
-
|
117
|
-
// Recalculate heights & positions on resize and rotate
|
118
|
-
|
119
|
-
$window.on( 'resize orientationchange' , function(){ _this.on_resize(); } );
|
120
|
-
|
121
|
-
// Recalculate heights & positions when page is fully loaded + a bit just in case
|
122
|
-
|
123
|
-
$window.load( function(){ setTimeout( function(){ _this.on_resize(); } , 100 ) });
|
124
|
-
|
125
|
-
// Start animating
|
126
|
-
|
127
|
-
setInterval( _this.update , _this.update_interval );
|
128
|
-
|
129
|
-
return true;
|
130
|
-
}
|
131
|
-
|
132
|
-
// ----------------------------------------------------------------------------------------------------
|
133
|
-
// Get list and pre-load animated elements
|
134
|
-
|
135
|
-
_this.init_elements = function()
|
136
|
-
{
|
137
|
-
// For each reference element
|
138
|
-
|
139
|
-
$( _this.scrollme_selector ).each( function()
|
140
|
-
{
|
141
|
-
var element = {};
|
142
|
-
|
143
|
-
element.element = $( this );
|
144
|
-
|
145
|
-
var effects = [];
|
146
|
-
|
147
|
-
// For each animated element
|
148
|
-
|
149
|
-
$( this ).find( _this.animateme_selector ).addBack( _this.animateme_selector ).each( function()
|
150
|
-
{
|
151
|
-
// Get effect details
|
152
|
-
|
153
|
-
var effect = {};
|
154
|
-
|
155
|
-
effect.element = $( this );
|
156
|
-
|
157
|
-
effect.when = effect.element.data( 'when' );
|
158
|
-
effect.from = effect.element.data( 'from' );
|
159
|
-
effect.to = effect.element.data( 'to' );
|
160
|
-
|
161
|
-
if( effect.element.is( '[data-crop]' ) )
|
162
|
-
{
|
163
|
-
effect.crop = effect.element.data( 'crop' );
|
164
|
-
}
|
165
|
-
else
|
166
|
-
{
|
167
|
-
effect.crop = true;
|
168
|
-
}
|
169
|
-
|
170
|
-
if( effect.element.is( '[data-easing]' ) )
|
171
|
-
{
|
172
|
-
effect.easing = _this.easing_functions[ effect.element.data( 'easing' ) ]
|
173
|
-
}
|
174
|
-
else
|
175
|
-
{
|
176
|
-
effect.easing = _this.easing_functions[ 'easeout' ];
|
177
|
-
}
|
178
|
-
|
179
|
-
// Get animated properties
|
180
|
-
|
181
|
-
var properties = {};
|
182
|
-
|
183
|
-
if( effect.element.is( '[data-opacity]' ) ) properties.opacity = effect.element.data( 'opacity' );
|
184
|
-
if( effect.element.is( '[data-translatex]' ) ) properties.translatex = effect.element.data( 'translatex' );
|
185
|
-
if( effect.element.is( '[data-translatey]' ) ) properties.translatey = effect.element.data( 'translatey' );
|
186
|
-
if( effect.element.is( '[data-translatez]' ) ) properties.translatez = effect.element.data( 'translatez' );
|
187
|
-
if( effect.element.is( '[data-rotatex]' ) ) properties.rotatex = effect.element.data( 'rotatex' );
|
188
|
-
if( effect.element.is( '[data-rotatey]' ) ) properties.rotatey = effect.element.data( 'rotatey' );
|
189
|
-
if( effect.element.is( '[data-rotatez]' ) ) properties.rotatez = effect.element.data( 'rotatez' );
|
190
|
-
if( effect.element.is( '[data-scale]' ) ) properties.scale = effect.element.data( 'scale' );
|
191
|
-
if( effect.element.is( '[data-scalex]' ) ) properties.scalex = effect.element.data( 'scalex' );
|
192
|
-
if( effect.element.is( '[data-scaley]' ) ) properties.scaley = effect.element.data( 'scaley' );
|
193
|
-
if( effect.element.is( '[data-scalez]' ) ) properties.scalez = effect.element.data( 'scalez' );
|
194
|
-
|
195
|
-
effect.properties = properties;
|
196
|
-
|
197
|
-
effects.push( effect );
|
198
|
-
});
|
199
|
-
|
200
|
-
element.effects = effects;
|
201
|
-
|
202
|
-
_this.elements.push( element );
|
203
|
-
});
|
204
|
-
}
|
205
|
-
|
206
|
-
// ----------------------------------------------------------------------------------------------------
|
207
|
-
// Update elements
|
208
|
-
|
209
|
-
_this.update = function()
|
210
|
-
{
|
211
|
-
window.requestAnimationFrame( function()
|
212
|
-
{
|
213
|
-
_this.update_viewport_position();
|
214
|
-
|
215
|
-
if( _this.viewport_top_previous != _this.viewport_top )
|
216
|
-
{
|
217
|
-
_this.update_elements_in_view();
|
218
|
-
_this.animate();
|
219
|
-
}
|
220
|
-
|
221
|
-
_this.viewport_top_previous = _this.viewport_top;
|
222
|
-
});
|
223
|
-
}
|
224
|
-
|
225
|
-
// ----------------------------------------------------------------------------------------------------
|
226
|
-
// Animate stuff
|
227
|
-
|
228
|
-
_this.animate = function()
|
229
|
-
{
|
230
|
-
// For each element in viewport
|
231
|
-
|
232
|
-
var elements_in_view_length = _this.elements_in_view.length;
|
233
|
-
|
234
|
-
for( var i=0 ; i<elements_in_view_length ; i++ )
|
235
|
-
{
|
236
|
-
var element = _this.elements_in_view[i];
|
237
|
-
|
238
|
-
// For each effect
|
239
|
-
|
240
|
-
var effects_length = element.effects.length;
|
241
|
-
|
242
|
-
for( var e=0 ; e<effects_length ; e++ )
|
243
|
-
{
|
244
|
-
var effect = element.effects[e];
|
245
|
-
|
246
|
-
// Get effect animation boundaries
|
247
|
-
|
248
|
-
switch( effect.when )
|
249
|
-
{
|
250
|
-
case 'view' : // Maintained for backwards compatibility
|
251
|
-
case 'span' :
|
252
|
-
var start = element.top - _this.viewport_height;
|
253
|
-
var end = element.bottom;
|
254
|
-
break;
|
255
|
-
|
256
|
-
case 'exit' :
|
257
|
-
var start = element.bottom - _this.viewport_height;
|
258
|
-
var end = element.bottom;
|
259
|
-
break;
|
260
|
-
|
261
|
-
default :
|
262
|
-
var start = element.top - _this.viewport_height;
|
263
|
-
var end = element.top;
|
264
|
-
break;
|
265
|
-
}
|
266
|
-
|
267
|
-
// Crop boundaries
|
268
|
-
|
269
|
-
if( effect.crop )
|
270
|
-
{
|
271
|
-
if( start < 0 ) start = 0;
|
272
|
-
if( end > ( _this.body_height - _this.viewport_height ) ) end = _this.body_height - _this.viewport_height;
|
273
|
-
}
|
274
|
-
|
275
|
-
// Get scroll position of reference selector
|
276
|
-
|
277
|
-
var scroll = ( _this.viewport_top - start ) / ( end - start );
|
278
|
-
|
279
|
-
// Get relative scroll position for effect
|
280
|
-
|
281
|
-
var from = effect[ 'from' ];
|
282
|
-
var to = effect[ 'to' ];
|
283
|
-
|
284
|
-
var length = to - from;
|
285
|
-
|
286
|
-
var scroll_relative = ( scroll - from ) / length;
|
287
|
-
|
288
|
-
// Apply easing
|
289
|
-
|
290
|
-
var scroll_eased = effect.easing( scroll_relative );
|
291
|
-
|
292
|
-
// Get new value for each property
|
293
|
-
|
294
|
-
var opacity = _this.animate_value( scroll , scroll_eased , from , to , effect , 'opacity' );
|
295
|
-
var translatey = _this.animate_value( scroll , scroll_eased , from , to , effect , 'translatey' );
|
296
|
-
var translatex = _this.animate_value( scroll , scroll_eased , from , to , effect , 'translatex' );
|
297
|
-
var translatez = _this.animate_value( scroll , scroll_eased , from , to , effect , 'translatez' );
|
298
|
-
var rotatex = _this.animate_value( scroll , scroll_eased , from , to , effect , 'rotatex' );
|
299
|
-
var rotatey = _this.animate_value( scroll , scroll_eased , from , to , effect , 'rotatey' );
|
300
|
-
var rotatez = _this.animate_value( scroll , scroll_eased , from , to , effect , 'rotatez' );
|
301
|
-
var scale = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scale' );
|
302
|
-
var scalex = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scalex' );
|
303
|
-
var scaley = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scaley' );
|
304
|
-
var scalez = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scalez' );
|
305
|
-
|
306
|
-
// Override scale values
|
307
|
-
|
308
|
-
if( 'scale' in effect.properties )
|
309
|
-
{
|
310
|
-
scalex = scale;
|
311
|
-
scaley = scale;
|
312
|
-
scalez = scale;
|
313
|
-
}
|
314
|
-
|
315
|
-
// Update properties
|
316
|
-
|
317
|
-
effect.element.css(
|
318
|
-
{
|
319
|
-
'opacity' : opacity,
|
320
|
-
'transform' : 'translate3d( '+translatex+'px , '+translatey+'px , '+translatez+'px ) rotateX( '+rotatex+'deg ) rotateY( '+rotatey+'deg ) rotateZ( '+rotatez+'deg ) scale3d( '+scalex+' , '+scaley+' , '+scalez+' )'
|
321
|
-
} );
|
322
|
-
}
|
323
|
-
}
|
324
|
-
}
|
325
|
-
|
326
|
-
// ----------------------------------------------------------------------------------------------------
|
327
|
-
// Calculate property values
|
328
|
-
|
329
|
-
_this.animate_value = function( scroll , scroll_eased , from , to , effect , property )
|
330
|
-
{
|
331
|
-
var value_default = _this.property_defaults[ property ];
|
332
|
-
|
333
|
-
// Return default value if property is not animated
|
334
|
-
|
335
|
-
if( !( property in effect.properties ) ) return value_default;
|
336
|
-
|
337
|
-
var value_target = effect.properties[ property ];
|
338
|
-
|
339
|
-
var forwards = ( to > from ) ? true : false;
|
340
|
-
|
341
|
-
// Return boundary value if outside effect boundaries
|
342
|
-
|
343
|
-
if( scroll < from && forwards ) { return value_default; }
|
344
|
-
if( scroll > to && forwards ) { return value_target; }
|
345
|
-
|
346
|
-
if( scroll > from && !forwards ) { return value_default; }
|
347
|
-
if( scroll < to && !forwards ) { return value_target; }
|
348
|
-
|
349
|
-
// Calculate new property value
|
350
|
-
|
351
|
-
var new_value = value_default + ( scroll_eased * ( value_target - value_default ) );
|
352
|
-
|
353
|
-
// Round as required
|
354
|
-
|
355
|
-
switch( property )
|
356
|
-
{
|
357
|
-
case 'opacity' : new_value = new_value.toFixed(2); break;
|
358
|
-
case 'translatex' : new_value = new_value.toFixed(0); break;
|
359
|
-
case 'translatey' : new_value = new_value.toFixed(0); break;
|
360
|
-
case 'translatez' : new_value = new_value.toFixed(0); break;
|
361
|
-
case 'rotatex' : new_value = new_value.toFixed(1); break;
|
362
|
-
case 'rotatey' : new_value = new_value.toFixed(1); break;
|
363
|
-
case 'rotatez' : new_value = new_value.toFixed(1); break;
|
364
|
-
case 'scale' : new_value = new_value.toFixed(3); break;
|
365
|
-
default : break;
|
366
|
-
}
|
367
|
-
|
368
|
-
// Done
|
369
|
-
|
370
|
-
return new_value;
|
371
|
-
}
|
372
|
-
|
373
|
-
// ----------------------------------------------------------------------------------------------------
|
374
|
-
// Update viewport position
|
375
|
-
|
376
|
-
_this.update_viewport_position = function()
|
377
|
-
{
|
378
|
-
_this.viewport_top = $window.scrollTop();
|
379
|
-
_this.viewport_bottom = _this.viewport_top + _this.viewport_height;
|
380
|
-
}
|
381
|
-
|
382
|
-
// ----------------------------------------------------------------------------------------------------
|
383
|
-
// Update list of elements in view
|
384
|
-
|
385
|
-
_this.update_elements_in_view = function()
|
386
|
-
{
|
387
|
-
_this.elements_in_view = [];
|
388
|
-
|
389
|
-
var elements_length = _this.elements.length;
|
390
|
-
|
391
|
-
for( var i=0 ; i<elements_length ; i++ )
|
392
|
-
{
|
393
|
-
if ( ( _this.elements[i].top < _this.viewport_bottom ) && ( _this.elements[i].bottom > _this.viewport_top ) )
|
394
|
-
{
|
395
|
-
_this.elements_in_view.push( _this.elements[i] );
|
396
|
-
}
|
397
|
-
}
|
398
|
-
}
|
399
|
-
|
400
|
-
// ----------------------------------------------------------------------------------------------------
|
401
|
-
// Stuff to do on resize
|
402
|
-
|
403
|
-
_this.on_resize = function()
|
404
|
-
{
|
405
|
-
// Update viewport/element data
|
406
|
-
|
407
|
-
_this.update_viewport();
|
408
|
-
_this.update_element_heights();
|
409
|
-
|
410
|
-
// Update display
|
411
|
-
|
412
|
-
_this.update_viewport_position();
|
413
|
-
_this.update_elements_in_view();
|
414
|
-
_this.animate();
|
415
|
-
}
|
416
|
-
|
417
|
-
// ----------------------------------------------------------------------------------------------------
|
418
|
-
// Update viewport parameters
|
419
|
-
|
420
|
-
_this.update_viewport = function()
|
421
|
-
{
|
422
|
-
_this.body_height = $document.height();
|
423
|
-
_this.viewport_height = $window.height();
|
424
|
-
}
|
425
|
-
|
426
|
-
// ----------------------------------------------------------------------------------------------------
|
427
|
-
// Update height of animated elements
|
428
|
-
|
429
|
-
_this.update_element_heights = function()
|
430
|
-
{
|
431
|
-
var elements_length = _this.elements.length;
|
432
|
-
|
433
|
-
for( var i=0 ; i<elements_length ; i++ )
|
434
|
-
{
|
435
|
-
var element_height = _this.elements[i].element.outerHeight();
|
436
|
-
var position = _this.elements[i].element.offset();
|
437
|
-
|
438
|
-
_this.elements[i].height = element_height;
|
439
|
-
_this.elements[i].top = position.top;
|
440
|
-
_this.elements[i].bottom = position.top + element_height;
|
441
|
-
}
|
442
|
-
}
|
443
|
-
|
444
|
-
// ----------------------------------------------------------------------------------------------------
|
445
|
-
// Bind initialisation
|
446
|
-
|
447
|
-
$document.on( _this.init_events.join( ' ' ) , function(){ _this.init(); } );
|
448
|
-
|
449
|
-
// ----------------------------------------------------------------------------------------------------
|
450
|
-
|
451
|
-
return _this;
|
452
|
-
|
453
|
-
// ----------------------------------------------------------------------------------------------------
|
454
|
-
|
455
|
-
})( jQuery );
|
1
|
+
// ----------------------------------------------------------------------------------------------------
|
2
|
+
// ScrollMe
|
3
|
+
// A jQuery plugin for adding simple scrolling effects to web pages
|
4
|
+
// http://scrollme.nckprsn.com
|
5
|
+
// ----------------------------------------------------------------------------------------------------
|
6
|
+
|
7
|
+
var scrollme = ( function( $ )
|
8
|
+
{
|
9
|
+
// ----------------------------------------------------------------------------------------------------
|
10
|
+
// ScrollMe object
|
11
|
+
|
12
|
+
var _this = {};
|
13
|
+
|
14
|
+
// ----------------------------------------------------------------------------------------------------
|
15
|
+
// Properties
|
16
|
+
|
17
|
+
var $document = $( document );
|
18
|
+
var $window = $( window );
|
19
|
+
|
20
|
+
_this.body_height = 0;
|
21
|
+
|
22
|
+
_this.viewport_height = 0;
|
23
|
+
|
24
|
+
_this.viewport_top = 0;
|
25
|
+
_this.viewport_bottom = 0;
|
26
|
+
|
27
|
+
_this.viewport_top_previous = -1;
|
28
|
+
|
29
|
+
_this.elements = [];
|
30
|
+
_this.elements_in_view = [];
|
31
|
+
|
32
|
+
_this.property_defaults =
|
33
|
+
{
|
34
|
+
'opacity' : 1,
|
35
|
+
'translatex' : 0,
|
36
|
+
'translatey' : 0,
|
37
|
+
'translatez' : 0,
|
38
|
+
'rotatex' : 0,
|
39
|
+
'rotatey' : 0,
|
40
|
+
'rotatez' : 0,
|
41
|
+
'scale' : 1,
|
42
|
+
'scalex' : 1,
|
43
|
+
'scaley' : 1,
|
44
|
+
'scalez' : 1
|
45
|
+
};
|
46
|
+
|
47
|
+
_this.scrollme_selector = '.scrollme';
|
48
|
+
_this.animateme_selector = '.animateme';
|
49
|
+
|
50
|
+
_this.update_interval = 10;
|
51
|
+
|
52
|
+
// Easing functions
|
53
|
+
|
54
|
+
_this.easing_functions =
|
55
|
+
{
|
56
|
+
'linear' : function( x )
|
57
|
+
{
|
58
|
+
return x;
|
59
|
+
},
|
60
|
+
|
61
|
+
'easeout' : function( x )
|
62
|
+
{
|
63
|
+
return x * x * x;
|
64
|
+
},
|
65
|
+
|
66
|
+
'easein' : function( x )
|
67
|
+
{
|
68
|
+
x = 1 - x;
|
69
|
+
return 1 - ( x * x * x );
|
70
|
+
},
|
71
|
+
|
72
|
+
'easeinout' : function( x )
|
73
|
+
{
|
74
|
+
if( x < 0.5 )
|
75
|
+
{
|
76
|
+
return ( 4 * x * x * x );
|
77
|
+
}
|
78
|
+
else
|
79
|
+
{
|
80
|
+
x = 1 - x;
|
81
|
+
return 1 - ( 4 * x * x * x ) ;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
};
|
85
|
+
|
86
|
+
// Document events to bind initialisation to
|
87
|
+
|
88
|
+
_this.init_events =
|
89
|
+
[
|
90
|
+
'ready',
|
91
|
+
'page:load', // Turbolinks
|
92
|
+
'page:change' // Turbolinks
|
93
|
+
];
|
94
|
+
|
95
|
+
// ----------------------------------------------------------------------------------------------------
|
96
|
+
// Initialisation conditions
|
97
|
+
|
98
|
+
_this.init_if = function() { return true; }
|
99
|
+
|
100
|
+
// ----------------------------------------------------------------------------------------------------
|
101
|
+
// Initialisation
|
102
|
+
|
103
|
+
_this.init = function()
|
104
|
+
{
|
105
|
+
// Cancel if initialisation conditions not met
|
106
|
+
|
107
|
+
if( !_this.init_if() ) return false;
|
108
|
+
|
109
|
+
// Load all elements to animate
|
110
|
+
|
111
|
+
_this.init_elements();
|
112
|
+
|
113
|
+
// Get element & viewport sizes
|
114
|
+
|
115
|
+
_this.on_resize();
|
116
|
+
|
117
|
+
// Recalculate heights & positions on resize and rotate
|
118
|
+
|
119
|
+
$window.on( 'resize orientationchange' , function(){ _this.on_resize(); } );
|
120
|
+
|
121
|
+
// Recalculate heights & positions when page is fully loaded + a bit just in case
|
122
|
+
|
123
|
+
$window.load( function(){ setTimeout( function(){ _this.on_resize(); } , 100 ) });
|
124
|
+
|
125
|
+
// Start animating
|
126
|
+
|
127
|
+
setInterval( _this.update , _this.update_interval );
|
128
|
+
|
129
|
+
return true;
|
130
|
+
}
|
131
|
+
|
132
|
+
// ----------------------------------------------------------------------------------------------------
|
133
|
+
// Get list and pre-load animated elements
|
134
|
+
|
135
|
+
_this.init_elements = function()
|
136
|
+
{
|
137
|
+
// For each reference element
|
138
|
+
|
139
|
+
$( _this.scrollme_selector ).each( function()
|
140
|
+
{
|
141
|
+
var element = {};
|
142
|
+
|
143
|
+
element.element = $( this );
|
144
|
+
|
145
|
+
var effects = [];
|
146
|
+
|
147
|
+
// For each animated element
|
148
|
+
|
149
|
+
$( this ).find( _this.animateme_selector ).addBack( _this.animateme_selector ).each( function()
|
150
|
+
{
|
151
|
+
// Get effect details
|
152
|
+
|
153
|
+
var effect = {};
|
154
|
+
|
155
|
+
effect.element = $( this );
|
156
|
+
|
157
|
+
effect.when = effect.element.data( 'when' );
|
158
|
+
effect.from = effect.element.data( 'from' );
|
159
|
+
effect.to = effect.element.data( 'to' );
|
160
|
+
|
161
|
+
if( effect.element.is( '[data-crop]' ) )
|
162
|
+
{
|
163
|
+
effect.crop = effect.element.data( 'crop' );
|
164
|
+
}
|
165
|
+
else
|
166
|
+
{
|
167
|
+
effect.crop = true;
|
168
|
+
}
|
169
|
+
|
170
|
+
if( effect.element.is( '[data-easing]' ) )
|
171
|
+
{
|
172
|
+
effect.easing = _this.easing_functions[ effect.element.data( 'easing' ) ]
|
173
|
+
}
|
174
|
+
else
|
175
|
+
{
|
176
|
+
effect.easing = _this.easing_functions[ 'easeout' ];
|
177
|
+
}
|
178
|
+
|
179
|
+
// Get animated properties
|
180
|
+
|
181
|
+
var properties = {};
|
182
|
+
|
183
|
+
if( effect.element.is( '[data-opacity]' ) ) properties.opacity = effect.element.data( 'opacity' );
|
184
|
+
if( effect.element.is( '[data-translatex]' ) ) properties.translatex = effect.element.data( 'translatex' );
|
185
|
+
if( effect.element.is( '[data-translatey]' ) ) properties.translatey = effect.element.data( 'translatey' );
|
186
|
+
if( effect.element.is( '[data-translatez]' ) ) properties.translatez = effect.element.data( 'translatez' );
|
187
|
+
if( effect.element.is( '[data-rotatex]' ) ) properties.rotatex = effect.element.data( 'rotatex' );
|
188
|
+
if( effect.element.is( '[data-rotatey]' ) ) properties.rotatey = effect.element.data( 'rotatey' );
|
189
|
+
if( effect.element.is( '[data-rotatez]' ) ) properties.rotatez = effect.element.data( 'rotatez' );
|
190
|
+
if( effect.element.is( '[data-scale]' ) ) properties.scale = effect.element.data( 'scale' );
|
191
|
+
if( effect.element.is( '[data-scalex]' ) ) properties.scalex = effect.element.data( 'scalex' );
|
192
|
+
if( effect.element.is( '[data-scaley]' ) ) properties.scaley = effect.element.data( 'scaley' );
|
193
|
+
if( effect.element.is( '[data-scalez]' ) ) properties.scalez = effect.element.data( 'scalez' );
|
194
|
+
|
195
|
+
effect.properties = properties;
|
196
|
+
|
197
|
+
effects.push( effect );
|
198
|
+
});
|
199
|
+
|
200
|
+
element.effects = effects;
|
201
|
+
|
202
|
+
_this.elements.push( element );
|
203
|
+
});
|
204
|
+
}
|
205
|
+
|
206
|
+
// ----------------------------------------------------------------------------------------------------
|
207
|
+
// Update elements
|
208
|
+
|
209
|
+
_this.update = function()
|
210
|
+
{
|
211
|
+
window.requestAnimationFrame( function()
|
212
|
+
{
|
213
|
+
_this.update_viewport_position();
|
214
|
+
|
215
|
+
if( _this.viewport_top_previous != _this.viewport_top )
|
216
|
+
{
|
217
|
+
_this.update_elements_in_view();
|
218
|
+
_this.animate();
|
219
|
+
}
|
220
|
+
|
221
|
+
_this.viewport_top_previous = _this.viewport_top;
|
222
|
+
});
|
223
|
+
}
|
224
|
+
|
225
|
+
// ----------------------------------------------------------------------------------------------------
|
226
|
+
// Animate stuff
|
227
|
+
|
228
|
+
_this.animate = function()
|
229
|
+
{
|
230
|
+
// For each element in viewport
|
231
|
+
|
232
|
+
var elements_in_view_length = _this.elements_in_view.length;
|
233
|
+
|
234
|
+
for( var i=0 ; i<elements_in_view_length ; i++ )
|
235
|
+
{
|
236
|
+
var element = _this.elements_in_view[i];
|
237
|
+
|
238
|
+
// For each effect
|
239
|
+
|
240
|
+
var effects_length = element.effects.length;
|
241
|
+
|
242
|
+
for( var e=0 ; e<effects_length ; e++ )
|
243
|
+
{
|
244
|
+
var effect = element.effects[e];
|
245
|
+
|
246
|
+
// Get effect animation boundaries
|
247
|
+
|
248
|
+
switch( effect.when )
|
249
|
+
{
|
250
|
+
case 'view' : // Maintained for backwards compatibility
|
251
|
+
case 'span' :
|
252
|
+
var start = element.top - _this.viewport_height;
|
253
|
+
var end = element.bottom;
|
254
|
+
break;
|
255
|
+
|
256
|
+
case 'exit' :
|
257
|
+
var start = element.bottom - _this.viewport_height;
|
258
|
+
var end = element.bottom;
|
259
|
+
break;
|
260
|
+
|
261
|
+
default :
|
262
|
+
var start = element.top - _this.viewport_height;
|
263
|
+
var end = element.top;
|
264
|
+
break;
|
265
|
+
}
|
266
|
+
|
267
|
+
// Crop boundaries
|
268
|
+
|
269
|
+
if( effect.crop )
|
270
|
+
{
|
271
|
+
if( start < 0 ) start = 0;
|
272
|
+
if( end > ( _this.body_height - _this.viewport_height ) ) end = _this.body_height - _this.viewport_height;
|
273
|
+
}
|
274
|
+
|
275
|
+
// Get scroll position of reference selector
|
276
|
+
|
277
|
+
var scroll = ( _this.viewport_top - start ) / ( end - start );
|
278
|
+
|
279
|
+
// Get relative scroll position for effect
|
280
|
+
|
281
|
+
var from = effect[ 'from' ];
|
282
|
+
var to = effect[ 'to' ];
|
283
|
+
|
284
|
+
var length = to - from;
|
285
|
+
|
286
|
+
var scroll_relative = ( scroll - from ) / length;
|
287
|
+
|
288
|
+
// Apply easing
|
289
|
+
|
290
|
+
var scroll_eased = effect.easing( scroll_relative );
|
291
|
+
|
292
|
+
// Get new value for each property
|
293
|
+
|
294
|
+
var opacity = _this.animate_value( scroll , scroll_eased , from , to , effect , 'opacity' );
|
295
|
+
var translatey = _this.animate_value( scroll , scroll_eased , from , to , effect , 'translatey' );
|
296
|
+
var translatex = _this.animate_value( scroll , scroll_eased , from , to , effect , 'translatex' );
|
297
|
+
var translatez = _this.animate_value( scroll , scroll_eased , from , to , effect , 'translatez' );
|
298
|
+
var rotatex = _this.animate_value( scroll , scroll_eased , from , to , effect , 'rotatex' );
|
299
|
+
var rotatey = _this.animate_value( scroll , scroll_eased , from , to , effect , 'rotatey' );
|
300
|
+
var rotatez = _this.animate_value( scroll , scroll_eased , from , to , effect , 'rotatez' );
|
301
|
+
var scale = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scale' );
|
302
|
+
var scalex = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scalex' );
|
303
|
+
var scaley = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scaley' );
|
304
|
+
var scalez = _this.animate_value( scroll , scroll_eased , from , to , effect , 'scalez' );
|
305
|
+
|
306
|
+
// Override scale values
|
307
|
+
|
308
|
+
if( 'scale' in effect.properties )
|
309
|
+
{
|
310
|
+
scalex = scale;
|
311
|
+
scaley = scale;
|
312
|
+
scalez = scale;
|
313
|
+
}
|
314
|
+
|
315
|
+
// Update properties
|
316
|
+
|
317
|
+
effect.element.css(
|
318
|
+
{
|
319
|
+
'opacity' : opacity,
|
320
|
+
'transform' : 'translate3d( '+translatex+'px , '+translatey+'px , '+translatez+'px ) rotateX( '+rotatex+'deg ) rotateY( '+rotatey+'deg ) rotateZ( '+rotatez+'deg ) scale3d( '+scalex+' , '+scaley+' , '+scalez+' )'
|
321
|
+
} );
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
// ----------------------------------------------------------------------------------------------------
|
327
|
+
// Calculate property values
|
328
|
+
|
329
|
+
_this.animate_value = function( scroll , scroll_eased , from , to , effect , property )
|
330
|
+
{
|
331
|
+
var value_default = _this.property_defaults[ property ];
|
332
|
+
|
333
|
+
// Return default value if property is not animated
|
334
|
+
|
335
|
+
if( !( property in effect.properties ) ) return value_default;
|
336
|
+
|
337
|
+
var value_target = effect.properties[ property ];
|
338
|
+
|
339
|
+
var forwards = ( to > from ) ? true : false;
|
340
|
+
|
341
|
+
// Return boundary value if outside effect boundaries
|
342
|
+
|
343
|
+
if( scroll < from && forwards ) { return value_default; }
|
344
|
+
if( scroll > to && forwards ) { return value_target; }
|
345
|
+
|
346
|
+
if( scroll > from && !forwards ) { return value_default; }
|
347
|
+
if( scroll < to && !forwards ) { return value_target; }
|
348
|
+
|
349
|
+
// Calculate new property value
|
350
|
+
|
351
|
+
var new_value = value_default + ( scroll_eased * ( value_target - value_default ) );
|
352
|
+
|
353
|
+
// Round as required
|
354
|
+
|
355
|
+
switch( property )
|
356
|
+
{
|
357
|
+
case 'opacity' : new_value = new_value.toFixed(2); break;
|
358
|
+
case 'translatex' : new_value = new_value.toFixed(0); break;
|
359
|
+
case 'translatey' : new_value = new_value.toFixed(0); break;
|
360
|
+
case 'translatez' : new_value = new_value.toFixed(0); break;
|
361
|
+
case 'rotatex' : new_value = new_value.toFixed(1); break;
|
362
|
+
case 'rotatey' : new_value = new_value.toFixed(1); break;
|
363
|
+
case 'rotatez' : new_value = new_value.toFixed(1); break;
|
364
|
+
case 'scale' : new_value = new_value.toFixed(3); break;
|
365
|
+
default : break;
|
366
|
+
}
|
367
|
+
|
368
|
+
// Done
|
369
|
+
|
370
|
+
return new_value;
|
371
|
+
}
|
372
|
+
|
373
|
+
// ----------------------------------------------------------------------------------------------------
|
374
|
+
// Update viewport position
|
375
|
+
|
376
|
+
_this.update_viewport_position = function()
|
377
|
+
{
|
378
|
+
_this.viewport_top = $window.scrollTop();
|
379
|
+
_this.viewport_bottom = _this.viewport_top + _this.viewport_height;
|
380
|
+
}
|
381
|
+
|
382
|
+
// ----------------------------------------------------------------------------------------------------
|
383
|
+
// Update list of elements in view
|
384
|
+
|
385
|
+
_this.update_elements_in_view = function()
|
386
|
+
{
|
387
|
+
_this.elements_in_view = [];
|
388
|
+
|
389
|
+
var elements_length = _this.elements.length;
|
390
|
+
|
391
|
+
for( var i=0 ; i<elements_length ; i++ )
|
392
|
+
{
|
393
|
+
if ( ( _this.elements[i].top < _this.viewport_bottom ) && ( _this.elements[i].bottom > _this.viewport_top ) )
|
394
|
+
{
|
395
|
+
_this.elements_in_view.push( _this.elements[i] );
|
396
|
+
}
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
// ----------------------------------------------------------------------------------------------------
|
401
|
+
// Stuff to do on resize
|
402
|
+
|
403
|
+
_this.on_resize = function()
|
404
|
+
{
|
405
|
+
// Update viewport/element data
|
406
|
+
|
407
|
+
_this.update_viewport();
|
408
|
+
_this.update_element_heights();
|
409
|
+
|
410
|
+
// Update display
|
411
|
+
|
412
|
+
_this.update_viewport_position();
|
413
|
+
_this.update_elements_in_view();
|
414
|
+
_this.animate();
|
415
|
+
}
|
416
|
+
|
417
|
+
// ----------------------------------------------------------------------------------------------------
|
418
|
+
// Update viewport parameters
|
419
|
+
|
420
|
+
_this.update_viewport = function()
|
421
|
+
{
|
422
|
+
_this.body_height = $document.height();
|
423
|
+
_this.viewport_height = $window.height();
|
424
|
+
}
|
425
|
+
|
426
|
+
// ----------------------------------------------------------------------------------------------------
|
427
|
+
// Update height of animated elements
|
428
|
+
|
429
|
+
_this.update_element_heights = function()
|
430
|
+
{
|
431
|
+
var elements_length = _this.elements.length;
|
432
|
+
|
433
|
+
for( var i=0 ; i<elements_length ; i++ )
|
434
|
+
{
|
435
|
+
var element_height = _this.elements[i].element.outerHeight();
|
436
|
+
var position = _this.elements[i].element.offset();
|
437
|
+
|
438
|
+
_this.elements[i].height = element_height;
|
439
|
+
_this.elements[i].top = position.top;
|
440
|
+
_this.elements[i].bottom = position.top + element_height;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
// ----------------------------------------------------------------------------------------------------
|
445
|
+
// Bind initialisation
|
446
|
+
|
447
|
+
$document.on( _this.init_events.join( ' ' ) , function(){ _this.init(); } );
|
448
|
+
|
449
|
+
// ----------------------------------------------------------------------------------------------------
|
450
|
+
|
451
|
+
return _this;
|
452
|
+
|
453
|
+
// ----------------------------------------------------------------------------------------------------
|
454
|
+
|
455
|
+
})( jQuery );
|