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,246 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/)
|
3
|
-
* Copyright (c) 2016 Edson Hilios
|
4
|
-
*
|
5
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
-
* this software and associated documentation files (the "Software"), to deal in
|
7
|
-
* the Software without restriction, including without limitation the rights to
|
8
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
-
* subject to the following conditions:
|
11
|
-
*
|
12
|
-
* The above copyright notice and this permission notice shall be included in all
|
13
|
-
* copies or substantial portions of the Software.
|
14
|
-
*
|
15
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
-
*/
|
22
|
-
(function(factory) {
|
23
|
-
"use strict";
|
24
|
-
if (typeof define === "function" && define.amd) {
|
25
|
-
define([ "jquery" ], factory);
|
26
|
-
} else {
|
27
|
-
factory(jQuery);
|
28
|
-
}
|
29
|
-
})(function($) {
|
30
|
-
"use strict";
|
31
|
-
var instances = [], matchers = [], defaultOptions = {
|
32
|
-
precision: 100,
|
33
|
-
elapse: false,
|
34
|
-
defer: false
|
35
|
-
};
|
36
|
-
matchers.push(/^[0-9]*$/.source);
|
37
|
-
matchers.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);
|
38
|
-
matchers.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);
|
39
|
-
matchers = new RegExp(matchers.join("|"));
|
40
|
-
function parseDateString(dateString) {
|
41
|
-
if (dateString instanceof Date) {
|
42
|
-
return dateString;
|
43
|
-
}
|
44
|
-
if (String(dateString).match(matchers)) {
|
45
|
-
if (String(dateString).match(/^[0-9]*$/)) {
|
46
|
-
dateString = Number(dateString);
|
47
|
-
}
|
48
|
-
if (String(dateString).match(/\-/)) {
|
49
|
-
dateString = String(dateString).replace(/\-/g, "/");
|
50
|
-
}
|
51
|
-
return new Date(dateString);
|
52
|
-
} else {
|
53
|
-
throw new Error("Couldn't cast `" + dateString + "` to a date object.");
|
54
|
-
}
|
55
|
-
}
|
56
|
-
var DIRECTIVE_KEY_MAP = {
|
57
|
-
Y: "years",
|
58
|
-
m: "months",
|
59
|
-
n: "daysToMonth",
|
60
|
-
d: "daysToWeek",
|
61
|
-
w: "weeks",
|
62
|
-
W: "weeksToMonth",
|
63
|
-
H: "hours",
|
64
|
-
M: "minutes",
|
65
|
-
S: "seconds",
|
66
|
-
D: "totalDays",
|
67
|
-
I: "totalHours",
|
68
|
-
N: "totalMinutes",
|
69
|
-
T: "totalSeconds"
|
70
|
-
};
|
71
|
-
function escapedRegExp(str) {
|
72
|
-
var sanitize = str.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
|
73
|
-
return new RegExp(sanitize);
|
74
|
-
}
|
75
|
-
function strftime(offsetObject) {
|
76
|
-
return function(format) {
|
77
|
-
var directives = format.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);
|
78
|
-
if (directives) {
|
79
|
-
for (var i = 0, len = directives.length; i < len; ++i) {
|
80
|
-
var directive = directives[i].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/), regexp = escapedRegExp(directive[0]), modifier = directive[1] || "", plural = directive[3] || "", value = null;
|
81
|
-
directive = directive[2];
|
82
|
-
if (DIRECTIVE_KEY_MAP.hasOwnProperty(directive)) {
|
83
|
-
value = DIRECTIVE_KEY_MAP[directive];
|
84
|
-
value = Number(offsetObject[value]);
|
85
|
-
}
|
86
|
-
if (value !== null) {
|
87
|
-
if (modifier === "!") {
|
88
|
-
value = pluralize(plural, value);
|
89
|
-
}
|
90
|
-
if (modifier === "") {
|
91
|
-
if (value < 10) {
|
92
|
-
value = "0" + value.toString();
|
93
|
-
}
|
94
|
-
}
|
95
|
-
format = format.replace(regexp, value.toString());
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
format = format.replace(/%%/, "%");
|
100
|
-
return format;
|
101
|
-
};
|
102
|
-
}
|
103
|
-
function pluralize(format, count) {
|
104
|
-
var plural = "s", singular = "";
|
105
|
-
if (format) {
|
106
|
-
format = format.replace(/(:|;|\s)/gi, "").split(/\,/);
|
107
|
-
if (format.length === 1) {
|
108
|
-
plural = format[0];
|
109
|
-
} else {
|
110
|
-
singular = format[0];
|
111
|
-
plural = format[1];
|
112
|
-
}
|
113
|
-
}
|
114
|
-
if (Math.abs(count) > 1) {
|
115
|
-
return plural;
|
116
|
-
} else {
|
117
|
-
return singular;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
var Countdown = function(el, finalDate, options) {
|
121
|
-
this.el = el;
|
122
|
-
this.$el = $(el);
|
123
|
-
this.interval = null;
|
124
|
-
this.offset = {};
|
125
|
-
this.options = $.extend({}, defaultOptions);
|
126
|
-
this.instanceNumber = instances.length;
|
127
|
-
instances.push(this);
|
128
|
-
this.$el.data("countdown-instance", this.instanceNumber);
|
129
|
-
if (options) {
|
130
|
-
if (typeof options === "function") {
|
131
|
-
this.$el.on("update.countdown", options);
|
132
|
-
this.$el.on("stoped.countdown", options);
|
133
|
-
this.$el.on("finish.countdown", options);
|
134
|
-
} else {
|
135
|
-
this.options = $.extend({}, defaultOptions, options);
|
136
|
-
}
|
137
|
-
}
|
138
|
-
this.setFinalDate(finalDate);
|
139
|
-
if (this.options.defer === false) {
|
140
|
-
this.start();
|
141
|
-
}
|
142
|
-
};
|
143
|
-
$.extend(Countdown.prototype, {
|
144
|
-
start: function() {
|
145
|
-
if (this.interval !== null) {
|
146
|
-
clearInterval(this.interval);
|
147
|
-
}
|
148
|
-
var self = this;
|
149
|
-
this.update();
|
150
|
-
this.interval = setInterval(function() {
|
151
|
-
self.update.call(self);
|
152
|
-
}, this.options.precision);
|
153
|
-
},
|
154
|
-
stop: function() {
|
155
|
-
clearInterval(this.interval);
|
156
|
-
this.interval = null;
|
157
|
-
this.dispatchEvent("stoped");
|
158
|
-
},
|
159
|
-
toggle: function() {
|
160
|
-
if (this.interval) {
|
161
|
-
this.stop();
|
162
|
-
} else {
|
163
|
-
this.start();
|
164
|
-
}
|
165
|
-
},
|
166
|
-
pause: function() {
|
167
|
-
this.stop();
|
168
|
-
},
|
169
|
-
resume: function() {
|
170
|
-
this.start();
|
171
|
-
},
|
172
|
-
remove: function() {
|
173
|
-
this.stop.call(this);
|
174
|
-
instances[this.instanceNumber] = null;
|
175
|
-
delete this.$el.data().countdownInstance;
|
176
|
-
},
|
177
|
-
setFinalDate: function(value) {
|
178
|
-
this.finalDate = parseDateString(value);
|
179
|
-
},
|
180
|
-
update: function() {
|
181
|
-
if (this.$el.closest("html").length === 0) {
|
182
|
-
this.remove();
|
183
|
-
return;
|
184
|
-
}
|
185
|
-
var hasEventsAttached = $._data(this.el, "events") !== undefined, now = new Date(), newTotalSecsLeft;
|
186
|
-
newTotalSecsLeft = this.finalDate.getTime() - now.getTime();
|
187
|
-
newTotalSecsLeft = Math.ceil(newTotalSecsLeft / 1e3);
|
188
|
-
newTotalSecsLeft = !this.options.elapse && newTotalSecsLeft < 0 ? 0 : Math.abs(newTotalSecsLeft);
|
189
|
-
if (this.totalSecsLeft === newTotalSecsLeft || !hasEventsAttached) {
|
190
|
-
return;
|
191
|
-
} else {
|
192
|
-
this.totalSecsLeft = newTotalSecsLeft;
|
193
|
-
}
|
194
|
-
this.elapsed = now >= this.finalDate;
|
195
|
-
this.offset = {
|
196
|
-
seconds: this.totalSecsLeft % 60,
|
197
|
-
minutes: Math.floor(this.totalSecsLeft / 60) % 60,
|
198
|
-
hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,
|
199
|
-
days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
|
200
|
-
daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,
|
201
|
-
daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368),
|
202
|
-
weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),
|
203
|
-
weeksToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7) % 4,
|
204
|
-
months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368),
|
205
|
-
years: Math.abs(this.finalDate.getFullYear() - now.getFullYear()),
|
206
|
-
totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),
|
207
|
-
totalHours: Math.floor(this.totalSecsLeft / 60 / 60),
|
208
|
-
totalMinutes: Math.floor(this.totalSecsLeft / 60),
|
209
|
-
totalSeconds: this.totalSecsLeft
|
210
|
-
};
|
211
|
-
if (!this.options.elapse && this.totalSecsLeft === 0) {
|
212
|
-
this.stop();
|
213
|
-
this.dispatchEvent("finish");
|
214
|
-
} else {
|
215
|
-
this.dispatchEvent("update");
|
216
|
-
}
|
217
|
-
},
|
218
|
-
dispatchEvent: function(eventName) {
|
219
|
-
var event = $.Event(eventName + ".countdown");
|
220
|
-
event.finalDate = this.finalDate;
|
221
|
-
event.elapsed = this.elapsed;
|
222
|
-
event.offset = $.extend({}, this.offset);
|
223
|
-
event.strftime = strftime(this.offset);
|
224
|
-
this.$el.trigger(event);
|
225
|
-
}
|
226
|
-
});
|
227
|
-
$.fn.countdown = function() {
|
228
|
-
var argumentsArray = Array.prototype.slice.call(arguments, 0);
|
229
|
-
return this.each(function() {
|
230
|
-
var instanceNumber = $(this).data("countdown-instance");
|
231
|
-
if (instanceNumber !== undefined) {
|
232
|
-
var instance = instances[instanceNumber], method = argumentsArray[0];
|
233
|
-
if (Countdown.prototype.hasOwnProperty(method)) {
|
234
|
-
instance[method].apply(instance, argumentsArray.slice(1));
|
235
|
-
} else if (String(method).match(/^[$A-Z_][0-9A-Z_$]*$/i) === null) {
|
236
|
-
instance.setFinalDate.call(instance, method);
|
237
|
-
instance.start();
|
238
|
-
} else {
|
239
|
-
$.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi, method));
|
240
|
-
}
|
241
|
-
} else {
|
242
|
-
new Countdown(this, argumentsArray[0], argumentsArray[1]);
|
243
|
-
}
|
244
|
-
});
|
245
|
-
};
|
246
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,r){"use strict";r.d(e,"b",function(){return n}),r.d(e,"h",function(){return o}),r.d(e,"i",function(){return s}),r.d(e,"g",function(){return a}),r.d(e,"e",function(){return l}),r.d(e,"j",function(){return u}),r.d(e,"f",function(){return c}),r.d(e,"k",function(){return f}),r.d(e,"c",function(){return p}),r.d(e,"d",function(){return h}),r.d(e,"l",function(){return d}),r.d(e,"a",function(){return v});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(t,e){for(var r=0;r<t.length;r++){for(var i=!1,n=t[r],o=0;o<e.length;o++)n===e[o]&&(i=!0);if(!i)return!1}return!0},o=function(t){var e={};for(var r in t)e[r]=t[r];return e},s=function t(e,r){var n=o(r);for(var s in e)s in n?"object"!==i(n[s])||"object"!==i(e[s])||Array.isArray(e[s])||(n[s]=t("object"===i(n[s])?n[s]:{},e[s])):n[s]=e[s];return n},a=function(t,e){return Array.prototype.filter.call(t,function(t){return e.includes(t)})},l=function(t,e,r){var i=void 0;return function(){var n=this,o=arguments;clearTimeout(i),i=setTimeout(function(){i=null,r||t.apply(n,o)},e),r&&!i&&t.apply(n,o)}},u=function(t){for(var e=t.slice(0),r=[];0!==e.length;){var i=Math.floor(e.length*Math.random());r.push(e[i]),e.splice(i,1)}return r},c=function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r].props.index!==e[r].props.index)return!1;return!0},f=function(t,e){return t.slice(0).sort(function(t){return function(e,r){var i=t(e),n=t(r);return i<n?-1:i>n?1:0}}(e))},p=function(t,e,r,n,o){if(void 0!==e){var s=new Error('Filterizr: expected type of option "'+t+'" to be "'+r+'", but its type is: "'+(void 0===e?"undefined":i(e))+'"'),a=!1,l=!1,u=r.includes("array");if((void 0===e?"undefined":i(e)).match(r)?a=!0:!a&&u&&(l=Array.isArray(e)),!a&&!u)throw s;if(!a&&u&&!l)throw s;var c=function(t){return t?" For further help read here: "+t:""};if(Array.isArray(n)){var f=!1;if(n.forEach(function(t){t===e&&(f=!0)}),!f)throw new Error('Filterizr: allowed values for option "'+t+'" are: '+n.map(function(t){return'"'+t+'"'}).join(", ")+'. Value received: "'+e+'".'+c(o))}else if(n instanceof RegExp){var p=e.match(n);if(!p)throw new Error('Filterizr: invalid value "'+e+'" for option "'+t+'" received.'+c(o))}}},h=/(^linear$)|(^ease-in-out$)|(^ease-in$)|(^ease-out$)|(^ease$)|(^step-start$)|(^step-end$)|(^steps\(\d\s*,\s*(end|start)\))$|(^cubic-bezier\((\d*\.*\d+)\s*,\s*(\d*\.*\d+)\s*,\s*(\d*\.*\d+)\s*,\s*(\d*\.*\d+)\))$/,d="\n webkitTransitionEnd.Filterizr \n otransitionend.Filterizr \n oTransitionEnd.Filterizr \n msTransitionEnd.Filterizr \n transitionend.Filterizr\n",v={IDLE:"IDLE",FILTERING:"FILTERING",SORTING:"SORTING",SHUFFLING:"SHUFFLING"}},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=r(2),o=r(0),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),a=window.jQuery,l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".filtr-container",r=arguments[1];i(this,t),this.$node=a(e),this.$node.css({padding:0,position:"relative",width:"100%",display:"flex","flex-wrap":"wrap"}),this.props={FilterItems:this.getFilterItems(r),w:this.getWidth(),h:0},this.updateFilterItemsDimensions()}return s(t,[{key:"destroy",value:function(){this.$node.attr("style","").find(".filtr-item").attr("style",""),this.unbindEvents()}},{key:"getFilterItems",value:function(t){return a.map(this.$node.find(".filtr-item"),function(e,r){return new n.a(a(e),r,t)})}},{key:"push",value:function(t,e){var r=this.props.FilterItems;this.$node.append(t);var i=r.length,o=new n.a(t,i,e);this.props.FilterItems.push(o)}},{key:"calcColumns",value:function(){return Math.round(this.props.w/this.props.FilterItems[0].props.w)}},{key:"updateFilterItemsTransitionStyle",value:function(t,e,r,i){this.props.FilterItems.forEach(function(n){return n.$node.css({transition:"all "+t+"s "+e+" "+n.calcDelay(r,i)+"ms"})})}},{key:"updateHeight",value:function(t){this.props.h=t,this.$node.css("height",t)}},{key:"updateWidth",value:function(){this.props.w=this.getWidth()}},{key:"updateFilterItemsDimensions",value:function(){this.props.FilterItems.forEach(function(t){return t.updateDimensions()})}},{key:"getWidth",value:function(){return this.$node.innerWidth()}},{key:"bindTransitionEnd",value:function(t,e){this.$node.on(o.l,Object(o.e)(function(){t()},e))}},{key:"bindEvents",value:function(t){this.$node.on("filteringStart.Filterizr",t.onFilteringStart),this.$node.on("filteringEnd.Filterizr",t.onFilteringEnd),this.$node.on("shufflingStart.Filterizr",t.onShufflingStart),this.$node.on("shufflingEnd.Filterizr",t.onShufflingEnd),this.$node.on("sortingStart.Filterizr",t.onSortingStart),this.$node.on("sortingEnd.Filterizr",t.onSortingEnd)}},{key:"unbindEvents",value:function(){this.$node.off(o.l+"\n filteringStart.Filterizr \n filteringEnd.Filterizr \n shufflingStart.Filterizr \n shufflingEnd.Filterizr \n sortingStart.Filterizr \n sortingEnd.Filterizr")}},{key:"trigger",value:function(t){this.$node.trigger(t)}}]),t}();e.a=l},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=r(0),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),s=function(){function t(e,r,n){var o=this;i(this,t);var s=n.delay,a=n.delayMode,l=n.filterOutCss,u=n.animationDuration,c=n.easing;this.$node=e,this.props={data:function(){var t=o.$node.data();return delete t.category,delete t.sort,t}(),index:r,sortData:this.$node.data("sort"),lastPosition:{left:0,top:0},filteredOut:!1,w:this.getWidth(),h:this.getHeight()},this.$node.css(l).css({"-webkit-backface-visibility":"hidden",perspective:"1000px","-webkit-perspective":"1000px","-webkit-transform-style":"preserve-3d",position:"absolute",transition:"all "+u+"s "+c+" "+this.calcDelay(s,a)+"ms"}),this.bindEvents()}return o(t,[{key:"filterIn",value:function(t,e){var r=Object(n.h)(e);r.transform+=" translate3d("+t.left+"px,"+t.top+"px, 0)",this.$node.css(r),this.props.lastPosition=t,this.props.filteredOut=!1}},{key:"filterOut",value:function(t){var e=Object(n.h)(t),r=this.props.lastPosition;e.transform+=" translate3d("+r.left+"px,"+r.top+"px, 0)",this.$node.css(e),this.props.filteredOut=!0}},{key:"calcDelay",value:function(t,e){var r=0;return"progressive"===e?r=t*this.props.index:this.props.index%2==0&&(r=t),r}},{key:"contentsMatchSearch",value:function(t){return Boolean(this.getContentsLowercase().includes(t))}},{key:"getContentsLowercase",value:function(){return this.$node.text().toLowerCase()}},{key:"getCategories",value:function(){return this.$node.attr("data-category").split(/\s*,\s*/g)}},{key:"getHeight",value:function(){return this.$node.innerHeight()}},{key:"getWidth",value:function(){return this.$node.innerWidth()}},{key:"trigger",value:function(t){this.$node.trigger(t)}},{key:"updateDimensions",value:function(){this.props.w=this.getWidth(),this.props.h=this.getHeight()}},{key:"bindEvents",value:function(){var t=this;this.$node.on(n.l,function(){var e=t.props.filteredOut;t.$node.toggleClass("filteredOut",e),t.$node.css("z-index",e?-1e3:"")})}},{key:"unbindEvents",value:function(){this.$node.off(n.l)}}]),t}();e.a=s},function(t,e,r){"use strict";var i={animationDuration:.5,callbacks:{onFilteringStart:function(){},onFilteringEnd:function(){},onShufflingStart:function(){},onShufflingEnd:function(){},onSortingStart:function(){},onSortingEnd:function(){}},controlsSelector:"",delay:0,delayMode:"progressive",easing:"ease-out",filter:"all",filterOutCss:{opacity:0,transform:"scale(0.5)"},filterInCss:{opacity:1,transform:"scale(1)"},layout:"sameSize",multifilterLogicalOperator:"or",setupControls:!0};e.a=i},function(t,e,r){t.exports=r(5)},function(t,e,r){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var n=r(6),o=r(1),s=r(2),a=r(3),l=r(15);r.d(e,"Filterizr",function(){return n.a}),r.d(e,"FilterContainer",function(){return o.a}),r.d(e,"FilterItem",function(){return s.a}),r.d(e,"DefaultOptions",function(){return a.a});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=void 0,f=void 0;c=f=window.jQuery,function(t){if(!t)throw new Error("Filterizr requires jQuery to work.");Object(l.a)(),t.fn.filterizr=function(){var e="."+t.trim(this.get(0).className).replace(/\s+/g,"."),r=arguments;if(!this._fltr&&0===r.length||1===r.length&&"object"===u(r[0])){var o=r.length>0?r[0]:a.a;this._fltr=new n.a(e,o)}else if(r.length>=1&&"string"==typeof r[0]){var s=r[0],l=Array.prototype.slice.call(r,1),c=this._fltr;switch(s){case"filter":return c.filter.apply(c,i(l)),this;case"insertItem":return c.insertItem.apply(c,i(l)),this;case"toggleFilter":return c.toggleFilter.apply(c,i(l)),this;case"sort":return c.sort.apply(c,i(l)),this;case"shuffle":return c.shuffle.apply(c,i(l)),this;case"search":return c.search.apply(c,i(l)),this;case"setOptions":return c.setOptions.apply(c,i(l)),this;case"destroy":return c.destroy.apply(c,i(l)),delete this._fltr,this;default:throw new Error("Filterizr: "+s+" is not part of the Filterizr API. Please refer to the docs for more information.")}}return this}}(f),e.default=c,r(16)},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=r(7),o=r(1),s=r(8),a=r(3),l=r(0),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),c=window.jQuery,f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".filtr-container",r=arguments[1];i(this,t),this.options=Object(l.i)(a.a,r);var s=new o.a(e,this.options);if(!s.$node.length)throw new Error("Filterizr: could not find a container with the selector "+e+", to initialize Filterizr.");new n.a(this,this.options.controlsSelector),this.props={filterizrState:l.a.IDLE,searchTerm:"",sort:"index",sortOrder:"asc",FilterContainer:s,FilterItems:s.props.FilterItems,FilteredItems:[]},this.bindEvents(),this.filter(this.options.filter)}return u(t,[{key:"filter",value:function(t){var e=this.props,r=e.searchTerm,i=e.FilterContainer,n=e.FilterItems;i.trigger("filteringStart"),this.props.filterizrState=l.a.FILTERING,t=Array.isArray(t)?t.map(function(t){return t.toString()}):t.toString();var o=this.searchFilterItems(this.filterFilterItems(n,t),r);this.props.FilteredItems=o,this.render(o)}},{key:"destroy",value:function(){var t=this.props.FilterContainer,e=this.options.controlsSelector;t.destroy(),c(window).off("resize.Filterizr"),c(e+"[data-filter]").off("click.Filterizr"),c(e+"[data-multifilter]").off("click.Filterizr"),c(e+"[data-shuffle]").off("click.Filterizr"),c(e+"[data-search]").off("keyup.Filterizr"),c(e+"[data-sortAsc]").off("click.Filterizr"),c(e+"[data-sortDesc]").off("click.Filterizr")}},{key:"insertItem",value:function(t){var e=this.props.FilterContainer,r=t.clone().attr("style","");e.push(r,this.options);var i=this.filterFilterItems(this.props.FilterItems,this.options.filter);this.render(i)}},{key:"sort",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"index",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",r=this.props,i=r.FilterContainer,n=r.FilterItems;i.trigger("sortingStart"),this.props.filterizrState=l.a.SORTING,this.props.FilterItems=this.sortFilterItems(n,t,e);var o=this.filterFilterItems(this.props.FilterItems,this.options.filter);this.props.FilteredItems=o,this.render(o)}},{key:"search",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.searchTerm,e=this.props.FilterItems,r=this.searchFilterItems(this.filterFilterItems(e,this.options.filter),t);this.props.FilteredItems=r,this.render(r)}},{key:"shuffle",value:function(){var t=this.props,e=t.FilterContainer,r=t.FilteredItems;e.trigger("shufflingStart"),this.props.filterizrState=l.a.SHUFFLING;var i=this.shuffleFilterItems(r);this.props.FilteredItems=i,this.render(i)}},{key:"setOptions",value:function(t){Object(l.c)("animationDuration",t.animationDuration,"number"),Object(l.c)("callbacks",t.callbacks,"object"),Object(l.c)("controlsSelector",t.controlsSelector,"string"),Object(l.c)("delay",t.delay,"number"),Object(l.c)("easing",t.easing,"string",l.d,"https://www.w3schools.com/cssref/css3_pr_transition-timing-function.asp"),Object(l.c)("delayMode",t.delayMode,"string",["progressive","alternate"]),Object(l.c)("filter",t.filter,"string|number|array"),Object(l.c)("filterOutCss",t.filterOutCss,"object"),Object(l.c)("filterInCss",t.filterOutCss,"object"),Object(l.c)("layout",t.layout,"string",["sameSize","vertical","horizontal","sameHeight","sameWidth","packed"]),Object(l.c)("multifilterLogicalOperator",t.multifilterLogicalOperator,"string",["and","or"]),Object(l.c)("setupControls",t.setupControls,"boolean"),this.options=Object(l.i)(this.options,t),(t.animationDuration||t.delay||t.delayMode||t.easing)&&this.props.FilterContainer.updateFilterItemsTransitionStyle(t.animationDuration,t.easing,t.delay,t.delayMode),(t.callbacks||t.animationDuration)&&this.rebindFilterContainerEvents(),t.filter&&this.filter(t.filter),t.multifilterLogicalOperator&&this.filter(this.options.filter)}},{key:"toggleFilter",value:function(t){var e=this.options.filter;"all"===e?e=t:Array.isArray(e)?e.includes(t)?(e=e.filter(function(e){return e!==t}),1===e.length&&(e=e[0])):e.push(t):e=e===t?"all":[e,t],this.options.filter=e,this.filter(this.options.filter)}},{key:"filterFilterItems",value:function(t,e){var r=this.options.multifilterLogicalOperator;return"all"===e?t:t.filter(function(t){var i=t.getCategories();return Array.isArray(e)?"or"===r?Object(l.g)(i,e).length:Object(l.b)(e,i):i.includes(e)})}},{key:"sortFilterItems",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"index",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",i=Object(l.k)(t,function(t){return"index"!==e&&"sortData"!==e?t.props.data[e]:t.props[e]});return"asc"===r?i:i.reverse()}},{key:"searchFilterItems",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.searchTerm;return e?t.filter(function(t){return t.contentsMatchSearch(e)}):t}},{key:"shuffleFilterItems",value:function(t){for(var e=Object(l.j)(t);t.length>1&&Object(l.f)(t,e);)e=Object(l.j)(t);return e}},{key:"render",value:function(t){var e=this,r=this.options,i=r.filter,n=r.filterInCss,o=r.filterOutCss,a=r.layout,u=r.multifilterLogicalOperator;this.props.FilterItems.filter(function(t){var r=t.getCategories(),n=Array.isArray(i),o=t.contentsMatchSearch(e.props.searchTerm);return!(n?"or"===u?Object(l.g)(r,i).length:Object(l.b)(i,r):r.includes(i))||!o}).forEach(function(t){t.filterOut(o)});var c=Object(s.a)(a,this);t.forEach(function(t,e){t.filterIn(c[e],n)})}},{key:"onTransitionEndCallback",value:function(){var t=this.props,e=t.filterizrState,r=t.FilterContainer;switch(e){case l.a.FILTERING:r.trigger("filteringEnd");break;case l.a.SORTING:r.trigger("sortingEnd");break;case l.a.SHUFFLING:r.trigger("shufflingEnd")}this.props.filterizrState=l.a.IDLE}},{key:"rebindFilterContainerEvents",value:function(){var t=this,e=this.props.FilterContainer,r=this.options,i=r.animationDuration,n=r.callbacks;e.unbindEvents(),e.bindEvents(n),e.bindTransitionEnd(function(){t.onTransitionEndCallback()},i)}},{key:"bindEvents",value:function(){var t=this,e=this.props.FilterContainer;this.rebindFilterContainerEvents(),c(window).on("resize.Filterizr",Object(l.e)(function(){e.updateWidth(),e.updateFilterItemsDimensions(),t.filter(t.options.filter)},250))}}]),t}();e.a=f},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=r(0),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),s=window.jQuery,a=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i(this,t),this.props={Filterizr:e,selector:r},this.setupFilterControls(),this.setupShuffleControls(),this.setupSearchControls(),this.setupSortControls()}return o(t,[{key:"setupFilterControls",value:function(){var t=this.props,e=t.Filterizr,r=t.selector;s(r+"[data-filter]").on("click.Filterizr",function(t){var r=s(t.currentTarget),i=r.attr("data-filter");e.options.filter=i,e.filter(e.options.filter)}),s(r+"[data-multifilter]").on("click.Filterizr",function(t){var r=s(t.target),i=r.attr("data-multifilter");e.toggleFilter(i)})}},{key:"setupShuffleControls",value:function(){var t=this.props,e=t.Filterizr,r=t.selector;s(r+"[data-shuffle]").on("click.Filterizr",function(){e.shuffle()})}},{key:"setupSearchControls",value:function(){var t=this.props,e=t.Filterizr,r=t.selector;s(r+"[data-search]").on("keyup.Filterizr",Object(n.e)(function(t){var r=s(t.target),i=r.val();e.props.searchTerm=i.toLowerCase(),e.search(e.props.searchTerm)},250))}},{key:"setupSortControls",value:function(){var t=this.props,e=t.Filterizr,r=t.selector;s(r+"[data-sortAsc]").on("click.Filterizr",function(){var t=s(r+"[data-sortOrder]").val();e.props.sortOrder="asc",e.sort(t,"asc")}),s(r+"[data-sortDesc]").on("click.Filterizr",function(){var t=s(r+"[data-sortOrder]").val();e.props.sortOrder="desc",e.sort(t,"desc")})}}]),t}();e.a=a},function(t,e,r){"use strict";var i=r(9),n=r(10),o=r(11),s=r(12),a=r(13),l=r(14),u=function(t,e){switch(t){case"horizontal":return Object(i.a)(e);case"vertical":return Object(n.a)(e);case"sameHeight":return Object(o.a)(e);case"sameWidth":return Object(s.a)(e);case"sameSize":return Object(a.a)(e);case"packed":return Object(l.a)(e);default:return Object(a.a)(e)}};e.a=u},function(t,e,r){"use strict";var i=function(t){var e=t.props,r=e.FilterContainer,i=e.FilteredItems,n=0,o=0,s=i.map(function(t){var e=t.props,r=e.w,i=e.h,s={left:n,top:0};return n+=r,i>o&&(o=i),s});return r.updateHeight(o),s};e.a=i},function(t,e,r){"use strict";var i=function(t){var e=t.props,r=e.FilterContainer,i=e.FilteredItems,n=0,o=i.map(function(t){var e=t.props.h,r={left:0,top:n};return n+=e,r});return r.updateHeight(n),o};e.a=i},function(t,e,r){"use strict";var i=function(t){var e=t.props,r=e.FilterContainer,i=e.FilteredItems,n=r.props.w,o=i[0].props.h,s=0,a=0,l=i.map(function(t){var e=t.props.w;a+e>n&&(s++,a=0);var r={left:a,top:o*s};return a+=e,r});return r.updateHeight((s+1)*i[0].props.h),l};e.a=i},function(t,e,r){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}var n=function(t){var e=t.props,r=e.FilterContainer,n=e.FilteredItems,s=r.calcColumns(),a=0,l=Array.apply(null,Array(s)).map(Number.prototype.valueOf,0),u=n.map(function(t,e){var r=t.props,i=r.w,u=r.h;e%s==0&&e>=s&&a++;var c=e-s*a;return l[c]+=u,{left:c*i,top:o(n,s,e)}});return r.updateHeight(Math.max.apply(Math,i(l))),u},o=function(t,e,r){if(e<=0)return 0;var i=0;if(r<e-1)return 0;for(r-=e;r>=0;)i+=t[r].props.h,r-=e;return i};e.a=n},function(t,e,r){"use strict";var i=function(t){var e=t.props,r=e.FilterContainer,i=e.FilteredItems,n=r.calcColumns(),o=0,s=i.map(function(t,e){return e%n==0&&e>=n&&o++,{left:(e-n*o)*t.props.w,top:o*t.props.h}}),a=i[0]&&i[0].props.h||0;return r.updateHeight((o+1)*a),s};e.a=i},function(t,e,r){"use strict";var i=function(t){var e=t.props,r=e.FilterContainer,i=e.FilteredItems,o=new n(r.props.w),s=i.map(function(t){var e=t.props;return{w:e.w,h:e.h}});o.fit(s);var a=s.map(function(t){var e=t.fit;return{left:e.x,top:e.y}});return r.updateHeight(o.root.h),a},n=function(t){this.init(t)};n.prototype={init:function(t){this.root={x:0,y:0,w:t}},fit:function(t){var e,r,i,n=t.length,o=n>0?t[0].h:0;for(this.root.h=o,e=0;e<n;e++)i=t[e],(r=this.findNode(this.root,i.w,i.h))?i.fit=this.splitNode(r,i.w,i.h):i.fit=this.growDown(i.w,i.h)},findNode:function(t,e,r){return t.used?this.findNode(t.right,e,r)||this.findNode(t.down,e,r):e<=t.w&&r<=t.h?t:null},splitNode:function(t,e,r){return t.used=!0,t.down={x:t.x,y:t.y+r,w:t.w,h:t.h-r},t.right={x:t.x+e,y:t.y,w:t.w-e,h:r},t},growDown:function(t,e){var r;return this.root={used:!0,x:0,y:0,w:this.root.w,h:this.root.h+e,down:{x:0,y:this.root.h,w:this.root.w,h:e},right:this.root},(r=this.findNode(this.root,t,e))?this.splitNode(r,t,e):null}},e.a=i},function(t,e,r){"use strict";function i(){String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0===i)return!1;for(var n=0|e,o=Math.max(n>=0?n:i-Math.abs(n),0);o<i;){if(function(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}(r[o],t))return!0;o++}return!1}})}e.a=i},function(t,e,r){}]);
|
@@ -1,44 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* jVectorMap version 2.0.4
|
3
|
-
*
|
4
|
-
* Copyright 2011-2014, Kirill Lebedev
|
5
|
-
*
|
6
|
-
*/
|
7
|
-
|
8
|
-
(function( $ ){
|
9
|
-
var apiParams = {
|
10
|
-
set: {
|
11
|
-
colors: 1,
|
12
|
-
values: 1,
|
13
|
-
backgroundColor: 1,
|
14
|
-
scaleColors: 1,
|
15
|
-
normalizeFunction: 1,
|
16
|
-
focus: 1
|
17
|
-
},
|
18
|
-
get: {
|
19
|
-
selectedRegions: 1,
|
20
|
-
selectedMarkers: 1,
|
21
|
-
mapObject: 1,
|
22
|
-
regionName: 1
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
$.fn.vectorMap = function(options) {
|
27
|
-
var map,
|
28
|
-
methodName,
|
29
|
-
map = this.children('.jvectormap-container').data('mapObject');
|
30
|
-
|
31
|
-
if (options === 'addMap') {
|
32
|
-
jvm.Map.maps[arguments[1]] = arguments[2];
|
33
|
-
} else if ((options === 'set' || options === 'get') && apiParams[options][arguments[1]]) {
|
34
|
-
methodName = arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1);
|
35
|
-
return map[options+methodName].apply(map, Array.prototype.slice.call(arguments, 2));
|
36
|
-
} else {
|
37
|
-
options = options || {};
|
38
|
-
options.container = this;
|
39
|
-
map = new jvm.Map(options);
|
40
|
-
}
|
41
|
-
|
42
|
-
return this;
|
43
|
-
};
|
44
|
-
})( jQuery );
|
@@ -1,281 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Placeholder Plugin v2.3.1
|
3
|
-
* https://github.com/mathiasbynens/jquery-placeholder
|
4
|
-
*
|
5
|
-
* Copyright 2011, 2015 Mathias Bynens
|
6
|
-
* Released under the MIT license
|
7
|
-
*/
|
8
|
-
(function(factory) {
|
9
|
-
if (typeof define === 'function' && define.amd) {
|
10
|
-
// AMD
|
11
|
-
define(['jquery'], factory);
|
12
|
-
} else if (typeof module === 'object' && module.exports) {
|
13
|
-
factory(require('jquery'));
|
14
|
-
} else {
|
15
|
-
// Browser globals
|
16
|
-
factory(jQuery);
|
17
|
-
}
|
18
|
-
}(function($) {
|
19
|
-
|
20
|
-
/****
|
21
|
-
* Allows plugin behavior simulation in modern browsers for easier debugging.
|
22
|
-
* When setting to true, use attribute "placeholder-x" rather than the usual "placeholder" in your inputs/textareas
|
23
|
-
* i.e. <input type="text" placeholder-x="my placeholder text" />
|
24
|
-
*/
|
25
|
-
var debugMode = false;
|
26
|
-
|
27
|
-
// Opera Mini v7 doesn't support placeholder although its DOM seems to indicate so
|
28
|
-
var isOperaMini = Object.prototype.toString.call(window.operamini) === '[object OperaMini]';
|
29
|
-
var isInputSupported = 'placeholder' in document.createElement('input') && !isOperaMini && !debugMode;
|
30
|
-
var isTextareaSupported = 'placeholder' in document.createElement('textarea') && !isOperaMini && !debugMode;
|
31
|
-
var valHooks = $.valHooks;
|
32
|
-
var propHooks = $.propHooks;
|
33
|
-
var hooks;
|
34
|
-
var placeholder;
|
35
|
-
var settings = {};
|
36
|
-
|
37
|
-
if (isInputSupported && isTextareaSupported) {
|
38
|
-
|
39
|
-
placeholder = $.fn.placeholder = function() {
|
40
|
-
return this;
|
41
|
-
};
|
42
|
-
|
43
|
-
placeholder.input = true;
|
44
|
-
placeholder.textarea = true;
|
45
|
-
|
46
|
-
} else {
|
47
|
-
|
48
|
-
placeholder = $.fn.placeholder = function(options) {
|
49
|
-
|
50
|
-
var defaults = {customClass: 'placeholder'};
|
51
|
-
settings = $.extend({}, defaults, options);
|
52
|
-
|
53
|
-
return this.filter((isInputSupported ? 'textarea' : ':input') + '[' + (debugMode ? 'placeholder-x' : 'placeholder') + ']')
|
54
|
-
.not('.'+settings.customClass)
|
55
|
-
.not(':radio, :checkbox, [type=hidden]')
|
56
|
-
.bind({
|
57
|
-
'focus.placeholder': clearPlaceholder,
|
58
|
-
'blur.placeholder': setPlaceholder
|
59
|
-
})
|
60
|
-
.data('placeholder-enabled', true)
|
61
|
-
.trigger('blur.placeholder');
|
62
|
-
};
|
63
|
-
|
64
|
-
placeholder.input = isInputSupported;
|
65
|
-
placeholder.textarea = isTextareaSupported;
|
66
|
-
|
67
|
-
hooks = {
|
68
|
-
'get': function(element) {
|
69
|
-
|
70
|
-
var $element = $(element);
|
71
|
-
var $passwordInput = $element.data('placeholder-password');
|
72
|
-
|
73
|
-
if ($passwordInput) {
|
74
|
-
return $passwordInput[0].value;
|
75
|
-
}
|
76
|
-
|
77
|
-
return $element.data('placeholder-enabled') && $element.hasClass(settings.customClass) ? '' : element.value;
|
78
|
-
},
|
79
|
-
'set': function(element, value) {
|
80
|
-
|
81
|
-
var $element = $(element);
|
82
|
-
var $replacement;
|
83
|
-
var $passwordInput;
|
84
|
-
|
85
|
-
if (value !== '') {
|
86
|
-
|
87
|
-
$replacement = $element.data('placeholder-textinput');
|
88
|
-
$passwordInput = $element.data('placeholder-password');
|
89
|
-
|
90
|
-
if ($replacement) {
|
91
|
-
clearPlaceholder.call($replacement[0], true, value) || (element.value = value);
|
92
|
-
$replacement[0].value = value;
|
93
|
-
|
94
|
-
} else if ($passwordInput) {
|
95
|
-
clearPlaceholder.call(element, true, value) || ($passwordInput[0].value = value);
|
96
|
-
element.value = value;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
if (!$element.data('placeholder-enabled')) {
|
101
|
-
element.value = value;
|
102
|
-
return $element;
|
103
|
-
}
|
104
|
-
|
105
|
-
if (value === '') {
|
106
|
-
|
107
|
-
element.value = value;
|
108
|
-
|
109
|
-
// Setting the placeholder causes problems if the element continues to have focus.
|
110
|
-
if (element != safeActiveElement()) {
|
111
|
-
// We can't use `triggerHandler` here because of dummy text/password inputs :(
|
112
|
-
setPlaceholder.call(element);
|
113
|
-
}
|
114
|
-
|
115
|
-
} else {
|
116
|
-
|
117
|
-
if ($element.hasClass(settings.customClass)) {
|
118
|
-
clearPlaceholder.call(element);
|
119
|
-
}
|
120
|
-
|
121
|
-
element.value = value;
|
122
|
-
}
|
123
|
-
// `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363
|
124
|
-
return $element;
|
125
|
-
}
|
126
|
-
};
|
127
|
-
|
128
|
-
if (!isInputSupported) {
|
129
|
-
valHooks.input = hooks;
|
130
|
-
propHooks.value = hooks;
|
131
|
-
}
|
132
|
-
|
133
|
-
if (!isTextareaSupported) {
|
134
|
-
valHooks.textarea = hooks;
|
135
|
-
propHooks.value = hooks;
|
136
|
-
}
|
137
|
-
|
138
|
-
$(function() {
|
139
|
-
// Look for forms
|
140
|
-
$(document).delegate('form', 'submit.placeholder', function() {
|
141
|
-
|
142
|
-
// Clear the placeholder values so they don't get submitted
|
143
|
-
var $inputs = $('.'+settings.customClass, this).each(function() {
|
144
|
-
clearPlaceholder.call(this, true, '');
|
145
|
-
});
|
146
|
-
|
147
|
-
setTimeout(function() {
|
148
|
-
$inputs.each(setPlaceholder);
|
149
|
-
}, 10);
|
150
|
-
});
|
151
|
-
});
|
152
|
-
|
153
|
-
// Clear placeholder values upon page reload
|
154
|
-
$(window).bind('beforeunload.placeholder', function() {
|
155
|
-
|
156
|
-
var clearPlaceholders = true;
|
157
|
-
|
158
|
-
try {
|
159
|
-
// Prevent IE javascript:void(0) anchors from causing cleared values
|
160
|
-
if (document.activeElement.toString() === 'javascript:void(0)') {
|
161
|
-
clearPlaceholders = false;
|
162
|
-
}
|
163
|
-
} catch (exception) { }
|
164
|
-
|
165
|
-
if (clearPlaceholders) {
|
166
|
-
$('.'+settings.customClass).each(function() {
|
167
|
-
this.value = '';
|
168
|
-
});
|
169
|
-
}
|
170
|
-
});
|
171
|
-
}
|
172
|
-
|
173
|
-
function args(elem) {
|
174
|
-
// Return an object of element attributes
|
175
|
-
var newAttrs = {};
|
176
|
-
var rinlinejQuery = /^jQuery\d+$/;
|
177
|
-
|
178
|
-
$.each(elem.attributes, function(i, attr) {
|
179
|
-
if (attr.specified && !rinlinejQuery.test(attr.name)) {
|
180
|
-
newAttrs[attr.name] = attr.value;
|
181
|
-
}
|
182
|
-
});
|
183
|
-
|
184
|
-
return newAttrs;
|
185
|
-
}
|
186
|
-
|
187
|
-
function clearPlaceholder(event, value) {
|
188
|
-
|
189
|
-
var input = this;
|
190
|
-
var $input = $(this);
|
191
|
-
|
192
|
-
if (input.value === $input.attr((debugMode ? 'placeholder-x' : 'placeholder')) && $input.hasClass(settings.customClass)) {
|
193
|
-
|
194
|
-
input.value = '';
|
195
|
-
$input.removeClass(settings.customClass);
|
196
|
-
|
197
|
-
if ($input.data('placeholder-password')) {
|
198
|
-
|
199
|
-
$input = $input.hide().nextAll('input[type="password"]:first').show().attr('id', $input.removeAttr('id').data('placeholder-id'));
|
200
|
-
|
201
|
-
// If `clearPlaceholder` was called from `$.valHooks.input.set`
|
202
|
-
if (event === true) {
|
203
|
-
$input[0].value = value;
|
204
|
-
|
205
|
-
return value;
|
206
|
-
}
|
207
|
-
|
208
|
-
$input.focus();
|
209
|
-
|
210
|
-
} else {
|
211
|
-
input == safeActiveElement() && input.select();
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|
216
|
-
function setPlaceholder(event) {
|
217
|
-
var $replacement;
|
218
|
-
var input = this;
|
219
|
-
var $input = $(this);
|
220
|
-
var id = input.id;
|
221
|
-
|
222
|
-
// If the placeholder is activated, triggering blur event (`$input.trigger('blur')`) should do nothing.
|
223
|
-
if (event && event.type === 'blur' && $input.hasClass(settings.customClass)) {
|
224
|
-
return;
|
225
|
-
}
|
226
|
-
|
227
|
-
if (input.value === '') {
|
228
|
-
if (input.type === 'password') {
|
229
|
-
if (!$input.data('placeholder-textinput')) {
|
230
|
-
|
231
|
-
try {
|
232
|
-
$replacement = $input.clone().prop({ 'type': 'text' });
|
233
|
-
} catch(e) {
|
234
|
-
$replacement = $('<input>').attr($.extend(args(this), { 'type': 'text' }));
|
235
|
-
}
|
236
|
-
|
237
|
-
$replacement
|
238
|
-
.removeAttr('name')
|
239
|
-
.data({
|
240
|
-
'placeholder-enabled': true,
|
241
|
-
'placeholder-password': $input,
|
242
|
-
'placeholder-id': id
|
243
|
-
})
|
244
|
-
.bind('focus.placeholder', clearPlaceholder);
|
245
|
-
|
246
|
-
$input
|
247
|
-
.data({
|
248
|
-
'placeholder-textinput': $replacement,
|
249
|
-
'placeholder-id': id
|
250
|
-
})
|
251
|
-
.before($replacement);
|
252
|
-
}
|
253
|
-
|
254
|
-
input.value = '';
|
255
|
-
$input = $input.removeAttr('id').hide().prevAll('input[type="text"]:first').attr('id', $input.data('placeholder-id')).show();
|
256
|
-
|
257
|
-
} else {
|
258
|
-
|
259
|
-
var $passwordInput = $input.data('placeholder-password');
|
260
|
-
|
261
|
-
if ($passwordInput) {
|
262
|
-
$passwordInput[0].value = '';
|
263
|
-
$input.attr('id', $input.data('placeholder-id')).show().nextAll('input[type="password"]:last').hide().removeAttr('id');
|
264
|
-
}
|
265
|
-
}
|
266
|
-
|
267
|
-
$input.addClass(settings.customClass);
|
268
|
-
$input[0].value = $input.attr((debugMode ? 'placeholder-x' : 'placeholder'));
|
269
|
-
|
270
|
-
} else {
|
271
|
-
$input.removeClass(settings.customClass);
|
272
|
-
}
|
273
|
-
}
|
274
|
-
|
275
|
-
function safeActiveElement() {
|
276
|
-
// Avoid IE9 `document.activeElement` of death
|
277
|
-
try {
|
278
|
-
return document.activeElement;
|
279
|
-
} catch (exception) {}
|
280
|
-
}
|
281
|
-
}));
|