aacinfo-theme 0.2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +25 -1
- data/_includes/footer.html +54 -0
- data/_includes/header.html +46 -0
- data/_includes/parts/content.html +6 -0
- data/_includes/parts/social-media.html +10 -0
- data/_includes/theme-menu.html +27 -28
- data/_layouts/theme.html +14 -26
- data/_layouts/title-page.html +22 -0
- data/_sass/_style.scss +122 -0
- data/_sass/components/_blockquotes.scss +62 -0
- data/_sass/components/_buttons.scss +100 -0
- data/_sass/components/_cards.scss +29 -0
- data/_sass/components/_dividers.scss +165 -0
- data/_sass/components/_featured-image.scss +14 -0
- data/_sass/components/_forms.scss +414 -0
- data/_sass/components/_links.scss +83 -0
- data/_sass/components/_pagination.scss +91 -0
- data/_sass/components/_selectric.scss +200 -0
- data/_sass/components/_slick-theme.scss +194 -0
- data/_sass/components/_slick.scss +98 -0
- data/_sass/components/_spinner.scss +356 -0
- data/_sass/components/_svg.scss +12 -0
- data/_sass/fontawesome/.bower.json +36 -0
- data/_sass/fontawesome/.gitignore +33 -0
- data/_sass/fontawesome/.npmignore +42 -0
- data/_sass/fontawesome/HELP-US-OUT.txt +7 -0
- data/_sass/fontawesome/bower.json +22 -0
- data/{assets → _sass/fontawesome}/css/font-awesome.css +547 -11
- data/_sass/fontawesome/css/font-awesome.css.map +7 -0
- data/_sass/fontawesome/css/font-awesome.min.css +4 -0
- data/_sass/fontawesome/fonts/FontAwesome.otf +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.svg +2671 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/_sass/fontawesome/less/animated.less +34 -0
- data/_sass/fontawesome/less/bordered-pulled.less +25 -0
- data/_sass/fontawesome/less/core.less +12 -0
- data/_sass/fontawesome/less/fixed-width.less +6 -0
- data/_sass/fontawesome/less/font-awesome.less +18 -0
- data/_sass/fontawesome/less/icons.less +789 -0
- data/_sass/fontawesome/less/larger.less +13 -0
- data/_sass/fontawesome/less/list.less +19 -0
- data/_sass/fontawesome/less/mixins.less +60 -0
- data/_sass/fontawesome/less/path.less +15 -0
- data/_sass/fontawesome/less/rotated-flipped.less +20 -0
- data/_sass/fontawesome/less/screen-reader.less +5 -0
- data/_sass/fontawesome/less/stacked.less +20 -0
- data/_sass/fontawesome/less/variables.less +800 -0
- data/_sass/fontawesome/scss/_animated.scss +34 -0
- data/_sass/fontawesome/scss/_bordered-pulled.scss +25 -0
- data/_sass/fontawesome/scss/_core.scss +12 -0
- data/_sass/fontawesome/scss/_fixed-width.scss +6 -0
- data/_sass/fontawesome/scss/_icons.scss +789 -0
- data/_sass/fontawesome/scss/_larger.scss +13 -0
- data/_sass/fontawesome/scss/_list.scss +19 -0
- data/_sass/fontawesome/scss/_mixins.scss +60 -0
- data/_sass/fontawesome/scss/_path.scss +15 -0
- data/_sass/fontawesome/scss/_rotated-flipped.scss +20 -0
- data/_sass/fontawesome/scss/_screen-reader.scss +5 -0
- data/_sass/fontawesome/scss/_stacked.scss +20 -0
- data/_sass/fontawesome/scss/_variables.scss +800 -0
- data/_sass/fontawesome/scss/font-awesome.scss +18 -0
- data/_sass/foundation-sites/.bower.json +44 -0
- data/_sass/foundation-sites/.bowerrc +3 -0
- data/_sass/foundation-sites/.eslintrc +64 -0
- data/_sass/foundation-sites/.github/ISSUE_TEMPLATE.md +21 -0
- data/_sass/foundation-sites/.github/PULL_REQUEST_TEMPLATE.md +9 -0
- data/_sass/foundation-sites/.sass-lint.yml +409 -0
- data/_sass/foundation-sites/.travis.yml +9 -0
- data/_sass/foundation-sites/LICENSE +22 -0
- data/_sass/foundation-sites/README.md +52 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/_sass/foundation-sites/assets/foundation-flex.scss +3 -0
- data/_sass/foundation-sites/assets/foundation-rtl.scss +5 -0
- data/_sass/foundation-sites/assets/foundation.scss +3 -0
- data/_sass/foundation-sites/bower.json +34 -0
- data/_sass/foundation-sites/browserstack.json +32 -0
- data/_sass/foundation-sites/code-of-conduct.md +43 -0
- data/_sass/foundation-sites/customizer/complete.json +48 -0
- data/_sass/foundation-sites/customizer/config.yml +228 -0
- data/_sass/foundation-sites/customizer/essential.json +11 -0
- data/_sass/foundation-sites/customizer/index.html +169 -0
- data/_sass/foundation-sites/dist/css/foundation-flex.css +4566 -0
- data/_sass/foundation-sites/dist/css/foundation-flex.min.css +2 -0
- data/_sass/foundation-sites/dist/css/foundation-rtl.css +4006 -0
- data/_sass/foundation-sites/dist/css/foundation-rtl.min.css +2 -0
- data/_sass/foundation-sites/dist/css/foundation.css +4001 -0
- data/_sass/foundation-sites/dist/css/foundation.min.css +2 -0
- data/_sass/foundation-sites/dist/js/foundation.d.ts +496 -0
- data/_sass/foundation-sites/dist/js/foundation.js +10207 -0
- data/_sass/foundation-sites/dist/js/foundation.min.js +4 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.abide.js +637 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.abide.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordion.js +252 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordion.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordionMenu.js +318 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordionMenu.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.core.js +386 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.core.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.drilldown.js +565 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.drilldown.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdown.js +465 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdown.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdownMenu.js +486 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdownMenu.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.equalizer.js +374 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.equalizer.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.interchange.js +233 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.interchange.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.magellan.js +285 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.magellan.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.offcanvas.js +474 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.offcanvas.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.orbit.js +566 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.orbit.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveMenu.js +169 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveMenu.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveToggle.js +177 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveToggle.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.reveal.js +633 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.reveal.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.slider.js +762 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.slider.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.sticky.js +518 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.sticky.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tabs.js +512 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tabs.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.toggler.js +169 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.toggler.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tooltip.js +492 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tooltip.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.box.js +196 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.box.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.keyboard.js +163 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.keyboard.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.mediaQuery.js +233 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.mediaQuery.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.motion.js +103 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.motion.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.nest.js +74 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.nest.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.timerAndImageLoader.js +90 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.timerAndImageLoader.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.touch.js +352 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.touch.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.triggers.js +261 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.triggers.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.zf.responsiveAccordionTabs.js +262 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.zf.responsiveAccordionTabs.min.js +1 -0
- data/_sass/foundation-sites/docslink.sh +3 -0
- data/_sass/foundation-sites/js/foundation.abide.js +584 -0
- data/_sass/foundation-sites/js/foundation.accordion.js +315 -0
- data/_sass/foundation-sites/js/foundation.accordionMenu.js +283 -0
- data/_sass/foundation-sites/js/foundation.core.js +378 -0
- data/_sass/foundation-sites/js/foundation.drilldown.js +518 -0
- data/_sass/foundation-sites/js/foundation.dropdown.js +432 -0
- data/_sass/foundation-sites/js/foundation.dropdownMenu.js +442 -0
- data/_sass/foundation-sites/js/foundation.equalizer.js +317 -0
- data/_sass/foundation-sites/js/foundation.interchange.js +203 -0
- data/_sass/foundation-sites/js/foundation.magellan.js +251 -0
- data/_sass/foundation-sites/js/foundation.offcanvas.js +434 -0
- data/_sass/foundation-sites/js/foundation.orbit.js +523 -0
- data/_sass/foundation-sites/js/foundation.responsiveMenu.js +147 -0
- data/_sass/foundation-sites/js/foundation.responsiveToggle.js +155 -0
- data/_sass/foundation-sites/js/foundation.reveal.js +603 -0
- data/_sass/foundation-sites/js/foundation.slider.js +697 -0
- data/_sass/foundation-sites/js/foundation.sticky.js +499 -0
- data/_sass/foundation-sites/js/foundation.tabs.js +490 -0
- data/_sass/foundation-sites/js/foundation.toggler.js +148 -0
- data/_sass/foundation-sites/js/foundation.tooltip.js +470 -0
- data/_sass/foundation-sites/js/foundation.util.box.js +195 -0
- data/_sass/foundation-sites/js/foundation.util.keyboard.js +152 -0
- data/_sass/foundation-sites/js/foundation.util.mediaQuery.js +230 -0
- data/_sass/foundation-sites/js/foundation.util.motion.js +105 -0
- data/_sass/foundation-sites/js/foundation.util.nest.js +81 -0
- data/_sass/foundation-sites/js/foundation.util.timerAndImageLoader.js +88 -0
- data/_sass/foundation-sites/js/foundation.util.touch.js +352 -0
- data/_sass/foundation-sites/js/foundation.util.triggers.js +210 -0
- data/_sass/foundation-sites/js/foundation.zf.responsiveAccordionTabs.js +240 -0
- data/_sass/foundation-sites/scss/_global.scss +219 -0
- data/_sass/foundation-sites/scss/components/_accordion-menu.scss +36 -0
- data/_sass/foundation-sites/scss/components/_accordion.scss +150 -0
- data/_sass/foundation-sites/scss/components/_badge.scss +63 -0
- data/_sass/foundation-sites/scss/components/_breadcrumbs.scss +100 -0
- data/_sass/foundation-sites/scss/components/_button-group.scss +253 -0
- data/_sass/foundation-sites/scss/components/_button.scss +332 -0
- data/_sass/foundation-sites/scss/components/_callout.scss +106 -0
- data/_sass/foundation-sites/scss/components/_card.scss +121 -0
- data/_sass/foundation-sites/scss/components/_close-button.scss +102 -0
- data/_sass/foundation-sites/scss/components/_drilldown.scss +93 -0
- data/_sass/foundation-sites/scss/components/_dropdown-menu.scss +226 -0
- data/_sass/foundation-sites/scss/components/_dropdown.scss +72 -0
- data/_sass/foundation-sites/scss/components/_flex-video.scss +1 -0
- data/_sass/foundation-sites/scss/components/_flex.scss +34 -0
- data/_sass/foundation-sites/scss/components/_float.scss +27 -0
- data/_sass/foundation-sites/scss/components/_label.scss +64 -0
- data/_sass/foundation-sites/scss/components/_media-object.scss +114 -0
- data/_sass/foundation-sites/scss/components/_menu-icon.scss +9 -0
- data/_sass/foundation-sites/scss/components/_menu.scss +376 -0
- data/_sass/foundation-sites/scss/components/_off-canvas.scss +329 -0
- data/_sass/foundation-sites/scss/components/_orbit.scss +196 -0
- data/_sass/foundation-sites/scss/components/_pagination.scss +193 -0
- data/_sass/foundation-sites/scss/components/_progress-bar.scss +64 -0
- data/_sass/foundation-sites/scss/components/_responsive-embed.scss +70 -0
- data/_sass/foundation-sites/scss/components/_reveal.scss +178 -0
- data/_sass/foundation-sites/scss/components/_slider.scss +138 -0
- data/_sass/foundation-sites/scss/components/_sticky.scss +38 -0
- data/_sass/foundation-sites/scss/components/_switch.scss +247 -0
- data/_sass/foundation-sites/scss/components/_table.scss +329 -0
- data/_sass/foundation-sites/scss/components/_tabs.scss +196 -0
- data/_sass/foundation-sites/scss/components/_thumbnail.scss +67 -0
- data/_sass/foundation-sites/scss/components/_title-bar.scss +84 -0
- data/_sass/foundation-sites/scss/components/_tooltip.scss +107 -0
- data/_sass/foundation-sites/scss/components/_top-bar.scss +173 -0
- data/_sass/foundation-sites/scss/components/_visibility.scss +132 -0
- data/_sass/foundation-sites/scss/forms/_checkbox.scss +41 -0
- data/_sass/foundation-sites/scss/forms/_error.scss +88 -0
- data/_sass/foundation-sites/scss/forms/_fieldset.scss +54 -0
- data/_sass/foundation-sites/scss/forms/_forms.scss +34 -0
- data/_sass/foundation-sites/scss/forms/_help-text.scss +30 -0
- data/_sass/foundation-sites/scss/forms/_input-group.scss +135 -0
- data/_sass/foundation-sites/scss/forms/_label.scss +50 -0
- data/_sass/foundation-sites/scss/forms/_meter.scss +110 -0
- data/_sass/foundation-sites/scss/forms/_progress.scss +94 -0
- data/_sass/foundation-sites/scss/forms/_range.scss +149 -0
- data/_sass/foundation-sites/scss/forms/_select.scss +85 -0
- data/_sass/foundation-sites/scss/forms/_text.scss +170 -0
- data/_sass/foundation-sites/scss/foundation.scss +118 -0
- data/_sass/foundation-sites/scss/grid/_classes.scss +176 -0
- data/_sass/foundation-sites/scss/grid/_column.scss +112 -0
- data/_sass/foundation-sites/scss/grid/_flex-grid.scss +312 -0
- data/_sass/foundation-sites/scss/grid/_grid.scss +48 -0
- data/_sass/foundation-sites/scss/grid/_gutter.scss +82 -0
- data/_sass/foundation-sites/scss/grid/_layout.scss +76 -0
- data/_sass/foundation-sites/scss/grid/_position.scss +76 -0
- data/_sass/foundation-sites/scss/grid/_row.scss +99 -0
- data/_sass/foundation-sites/scss/grid/_size.scss +24 -0
- data/_sass/foundation-sites/scss/settings/_settings.scss +620 -0
- data/_sass/foundation-sites/scss/typography/_alignment.scss +22 -0
- data/_sass/foundation-sites/scss/typography/_base.scss +509 -0
- data/_sass/foundation-sites/scss/typography/_helpers.scss +78 -0
- data/_sass/foundation-sites/scss/typography/_print.scss +86 -0
- data/_sass/foundation-sites/scss/typography/_typography.scss +26 -0
- data/_sass/foundation-sites/scss/util/_breakpoint.scss +281 -0
- data/_sass/foundation-sites/scss/util/_color.scss +126 -0
- data/_sass/foundation-sites/scss/util/_direction.scss +31 -0
- data/_sass/foundation-sites/scss/util/_flex.scss +85 -0
- data/_sass/foundation-sites/scss/util/_math.scss +72 -0
- data/_sass/foundation-sites/scss/util/_mixins.scss +276 -0
- data/_sass/foundation-sites/scss/util/_selector.scss +41 -0
- data/_sass/foundation-sites/scss/util/_typography.scss +26 -0
- data/_sass/foundation-sites/scss/util/_unit.scss +152 -0
- data/_sass/foundation-sites/scss/util/_util.scss +14 -0
- data/_sass/foundation-sites/scss/util/_value.scss +160 -0
- data/_sass/global/_accessibility.scss +32 -0
- data/_sass/global/_functions.scss +7 -0
- data/_sass/global/_modernizr.scss +0 -0
- data/_sass/global/_settings.scss +657 -0
- data/_sass/global/_wp-admin.scss +24 -0
- data/_sass/global/_wp-overrides.scss +51 -0
- data/_sass/jquery/.bower.json +25 -0
- data/_sass/jquery/AUTHORS.txt +278 -0
- data/_sass/jquery/LICENSE.txt +36 -0
- data/_sass/jquery/README.md +65 -0
- data/_sass/jquery/bower.json +14 -0
- data/_sass/jquery/dist/jquery.js +9814 -0
- data/_sass/jquery/dist/jquery.min.js +4 -0
- data/_sass/jquery/dist/jquery.min.map +1 -0
- data/_sass/jquery/external/sizzle/LICENSE.txt +36 -0
- data/_sass/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/_sass/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/_sass/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/_sass/jquery/src/.jshintrc +29 -0
- data/_sass/jquery/src/ajax.js +845 -0
- data/_sass/jquery/src/ajax/jsonp.js +100 -0
- data/_sass/jquery/src/ajax/load.js +83 -0
- data/_sass/jquery/src/ajax/parseJSON.js +13 -0
- data/_sass/jquery/src/ajax/parseXML.js +27 -0
- data/_sass/jquery/src/ajax/script.js +68 -0
- data/_sass/jquery/src/ajax/var/location.js +3 -0
- data/_sass/jquery/src/ajax/var/nonce.js +5 -0
- data/_sass/jquery/src/ajax/var/rquery.js +3 -0
- data/_sass/jquery/src/ajax/xhr.js +167 -0
- data/_sass/jquery/src/attributes.js +11 -0
- data/_sass/jquery/src/attributes/attr.js +142 -0
- data/_sass/jquery/src/attributes/classes.js +177 -0
- data/_sass/jquery/src/attributes/prop.js +125 -0
- data/_sass/jquery/src/attributes/support.js +36 -0
- data/_sass/jquery/src/attributes/val.js +177 -0
- data/_sass/jquery/src/callbacks.js +232 -0
- data/_sass/jquery/src/core.js +494 -0
- data/_sass/jquery/src/core/access.js +65 -0
- data/_sass/jquery/src/core/init.js +134 -0
- data/_sass/jquery/src/core/parseHTML.js +41 -0
- data/_sass/jquery/src/core/ready.js +103 -0
- data/_sass/jquery/src/core/var/rsingleTag.js +5 -0
- data/_sass/jquery/src/css.js +502 -0
- data/_sass/jquery/src/css/addGetHookIf.js +24 -0
- data/_sass/jquery/src/css/adjustCSS.js +65 -0
- data/_sass/jquery/src/css/curCSS.js +60 -0
- data/_sass/jquery/src/css/defaultDisplay.js +72 -0
- data/_sass/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/_sass/jquery/src/css/showHide.js +48 -0
- data/_sass/jquery/src/css/support.js +121 -0
- data/_sass/jquery/src/css/var/cssExpand.js +3 -0
- data/_sass/jquery/src/css/var/getStyles.js +15 -0
- data/_sass/jquery/src/css/var/isHidden.js +16 -0
- data/_sass/jquery/src/css/var/rmargin.js +3 -0
- data/_sass/jquery/src/css/var/rnumnonpx.js +5 -0
- data/_sass/jquery/src/css/var/swap.js +24 -0
- data/_sass/jquery/src/data.js +187 -0
- data/_sass/jquery/src/data/Data.js +200 -0
- data/_sass/jquery/src/data/var/acceptData.js +18 -0
- data/_sass/jquery/src/data/var/dataPriv.js +5 -0
- data/_sass/jquery/src/data/var/dataUser.js +5 -0
- data/_sass/jquery/src/deferred.js +158 -0
- data/_sass/jquery/src/deprecated.js +32 -0
- data/_sass/jquery/src/dimensions.js +54 -0
- data/_sass/jquery/src/effects.js +629 -0
- data/_sass/jquery/src/effects/Tween.js +121 -0
- data/_sass/jquery/src/effects/animatedSelector.js +13 -0
- data/_sass/jquery/src/event.js +711 -0
- data/_sass/jquery/src/event/ajax.js +20 -0
- data/_sass/jquery/src/event/alias.js +27 -0
- data/_sass/jquery/src/event/focusin.js +53 -0
- data/_sass/jquery/src/event/support.js +9 -0
- data/_sass/jquery/src/event/trigger.js +183 -0
- data/_sass/jquery/src/exports/amd.js +24 -0
- data/_sass/jquery/src/exports/global.js +26 -0
- data/_sass/jquery/src/intro.js +44 -0
- data/_sass/jquery/src/jquery.js +37 -0
- data/_sass/jquery/src/manipulation.js +481 -0
- data/_sass/jquery/src/manipulation/_evalUrl.js +20 -0
- data/_sass/jquery/src/manipulation/buildFragment.js +102 -0
- data/_sass/jquery/src/manipulation/getAll.js +21 -0
- data/_sass/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/_sass/jquery/src/manipulation/support.js +33 -0
- data/_sass/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/_sass/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/_sass/jquery/src/manipulation/var/rtagName.js +3 -0
- data/_sass/jquery/src/manipulation/wrapMap.js +27 -0
- data/_sass/jquery/src/offset.js +218 -0
- data/_sass/jquery/src/outro.js +2 -0
- data/_sass/jquery/src/queue.js +143 -0
- data/_sass/jquery/src/queue/delay.js +22 -0
- data/_sass/jquery/src/selector-native.js +211 -0
- data/_sass/jquery/src/selector-sizzle.js +14 -0
- data/_sass/jquery/src/selector.js +1 -0
- data/_sass/jquery/src/serialize.js +125 -0
- data/_sass/jquery/src/traversing.js +175 -0
- data/_sass/jquery/src/traversing/findFilter.js +100 -0
- data/_sass/jquery/src/traversing/var/dir.js +20 -0
- data/_sass/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/_sass/jquery/src/traversing/var/siblings.js +15 -0
- data/_sass/jquery/src/var/arr.js +3 -0
- data/_sass/jquery/src/var/class2type.js +5 -0
- data/_sass/jquery/src/var/concat.js +5 -0
- data/_sass/jquery/src/var/document.js +3 -0
- data/_sass/jquery/src/var/documentElement.js +5 -0
- data/_sass/jquery/src/var/hasOwn.js +5 -0
- data/_sass/jquery/src/var/indexOf.js +5 -0
- data/_sass/jquery/src/var/pnum.js +3 -0
- data/_sass/jquery/src/var/push.js +5 -0
- data/_sass/jquery/src/var/rcssNum.js +7 -0
- data/_sass/jquery/src/var/rnotwhite.js +3 -0
- data/_sass/jquery/src/var/slice.js +5 -0
- data/_sass/jquery/src/var/support.js +5 -0
- data/_sass/jquery/src/var/toString.js +5 -0
- data/_sass/jquery/src/wrap.js +79 -0
- data/_sass/modules/_editor-style.scss +5 -0
- data/_sass/modules/_footer.scss +115 -0
- data/_sass/modules/_navigation.scss +570 -0
- data/_sass/modules/_sidebar.scss +66 -0
- data/_sass/modules/_twitter.scss +58 -0
- data/_sass/motion-ui/.bower.json +38 -0
- data/_sass/motion-ui/LICENSE +22 -0
- data/_sass/motion-ui/README.md +29 -0
- data/_sass/motion-ui/bower.json +28 -0
- data/_sass/motion-ui/composer.json +25 -0
- data/_sass/motion-ui/dist/motion-ui.css +634 -0
- data/_sass/motion-ui/dist/motion-ui.js +117 -0
- data/_sass/motion-ui/dist/motion-ui.min.css +1 -0
- data/_sass/motion-ui/dist/motion-ui.min.js +1 -0
- data/_sass/motion-ui/docs/animations.md +230 -0
- data/_sass/motion-ui/docs/classes.md +81 -0
- data/_sass/motion-ui/docs/configuration.md +63 -0
- data/_sass/motion-ui/docs/installation.md +50 -0
- data/_sass/motion-ui/docs/javascript.md +36 -0
- data/_sass/motion-ui/docs/readme.md +32 -0
- data/_sass/motion-ui/docs/transitions.md +112 -0
- data/_sass/motion-ui/docs/wow.md +35 -0
- data/_sass/motion-ui/gulpfile.js +90 -0
- data/_sass/motion-ui/lib/handlebars.js +8 -0
- data/_sass/motion-ui/motion-ui.js +105 -0
- data/_sass/motion-ui/motion-ui.scss +4 -0
- data/_sass/motion-ui/package.json +44 -0
- data/_sass/motion-ui/src/_classes.scss +109 -0
- data/_sass/motion-ui/src/_settings.scss +61 -0
- data/_sass/motion-ui/src/effects/_fade.scss +32 -0
- data/_sass/motion-ui/src/effects/_hinge.scss +65 -0
- data/_sass/motion-ui/src/effects/_shake.scss +15 -0
- data/_sass/motion-ui/src/effects/_slide.scss +41 -0
- data/_sass/motion-ui/src/effects/_spin.scss +28 -0
- data/_sass/motion-ui/src/effects/_wiggle.scss +13 -0
- data/_sass/motion-ui/src/effects/_zoom.scss +15 -0
- data/_sass/motion-ui/src/motion-ui.scss +29 -0
- data/_sass/motion-ui/src/transitions/_fade.scss +28 -0
- data/_sass/motion-ui/src/transitions/_hinge.scss +43 -0
- data/_sass/motion-ui/src/transitions/_slide.scss +42 -0
- data/_sass/motion-ui/src/transitions/_spin.scss +39 -0
- data/_sass/motion-ui/src/transitions/_zoom.scss +39 -0
- data/_sass/motion-ui/src/util/_animation.scss +7 -0
- data/_sass/motion-ui/src/util/_args.scss +15 -0
- data/_sass/motion-ui/src/util/_keyframe.scss +136 -0
- data/_sass/motion-ui/src/util/_selector.scss +23 -0
- data/_sass/motion-ui/src/util/_series.scss +54 -0
- data/_sass/motion-ui/src/util/_transition.scss +45 -0
- data/_sass/motion-ui/src/util/_unit.scss +7 -0
- data/_sass/templates/_archive.scss +66 -0
- data/_sass/templates/_page-accordion-sidebar.scss +137 -0
- data/_sass/templates/_page-contact.scss +33 -0
- data/_sass/templates/_page-default.scss +472 -0
- data/_sass/templates/_page-faq-sidebar.scss +77 -0
- data/_sass/templates/_page-front.scss +549 -0
- data/_sass/templates/_page-full-width.scss +11 -0
- data/_sass/templates/_page-highlights.scss +156 -0
- data/_sass/templates/_page-sidebar-left.scss +27 -0
- data/_sass/templates/_print.scss +69 -0
- data/_sass/templates/_single-post.scss +12 -0
- data/_sass/what-input/.bower.json +35 -0
- data/_sass/what-input/Gulpfile.js +104 -0
- data/_sass/what-input/LICENSE +21 -0
- data/_sass/what-input/README.md +178 -0
- data/_sass/what-input/bower.json +26 -0
- data/_sass/what-input/dist/lte-IE8.js +1 -0
- data/_sass/what-input/dist/what-input.js +337 -0
- data/_sass/what-input/dist/what-input.min.js +7 -0
- data/_sass/what-input/index.html +164 -0
- data/_sass/what-input/package.json +38 -0
- data/_sass/what-input/src/polyfills/ie8/EventListener.js +150 -0
- data/_sass/what-input/src/polyfills/ie8/indexOf.js +65 -0
- data/_sass/what-input/src/what-input.js +269 -0
- data/_sass/what-input/yarn.lock +3482 -0
- data/assets/css/style.scss +4 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.eot +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.svg +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.ttf +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.woff +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.woff2 +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.eot +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.svg +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.ttf +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.woff +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.woff2 +0 -0
- data/assets/{css → fonts}/raleway-regular-webfont.svg +0 -0
- data/assets/images/ace-centre-logo.png +0 -0
- data/assets/images/getting-started-with-aac-logo.png +0 -0
- data/assets/images/getting-started-with-aac.png +0 -0
- data/assets/images/icon/ace-icon-180x180.png +0 -0
- data/assets/images/icon/ace-icon-192x192.png +0 -0
- data/assets/images/icon/ace-icon-270x270.png +0 -0
- data/assets/images/icon/ace-icon-32x32.png +0 -0
- data/assets/javascript/scripts.js +10 -0
- metadata +477 -29
- data/_includes/theme-footer.html +0 -16
- data/_includes/theme-head.html +0 -48
- data/assets/css/bootstrap-select.min.css +0 -7
- data/assets/css/bootstrap-theme.css +0 -442
- data/assets/css/bootstrap.css +0 -6203
- data/assets/css/draganddrop.css +0 -210
- data/assets/css/fonts.css +0 -41
- data/assets/css/responsive.css +0 -90
- data/assets/css/style.css +0 -260
- data/assets/images/divider.png +0 -0
- data/assets/images/logo-1.png +0 -0
- data/assets/images/logo-2.png +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}();!function(e){function t(){return/iP(ad|hone|od).*OS/.test(window.navigator.userAgent)}function i(){return/Android/.test(window.navigator.userAgent)}function o(){return t()||i()}var n=function(){function t(i,o){_classCallCheck(this,t),this.$element=i,this.options=e.extend({},t.defaults,this.$element.data(),o),this._init(),Foundation.registerPlugin(this,"Reveal"),Foundation.Keyboard.register("Reveal",{ENTER:"open",SPACE:"open",ESCAPE:"close"})}return _createClass(t,[{key:"_init",value:function(){this.id=this.$element.attr("id"),this.isActive=!1,this.cached={mq:Foundation.MediaQuery.current},this.isMobile=o(),this.$anchor=e(e('[data-open="'+this.id+'"]').length?'[data-open="'+this.id+'"]':'[data-toggle="'+this.id+'"]'),this.$anchor.attr({"aria-controls":this.id,"aria-haspopup":!0,tabindex:0}),(this.options.fullScreen||this.$element.hasClass("full"))&&(this.options.fullScreen=!0,this.options.overlay=!1),this.options.overlay&&!this.$overlay&&(this.$overlay=this._makeOverlay(this.id)),this.$element.attr({role:"dialog","aria-hidden":!0,"data-yeti-box":this.id,"data-resize":this.id}),this.$overlay?this.$element.detach().appendTo(this.$overlay):(this.$element.detach().appendTo(e(this.options.appendTo)),this.$element.addClass("without-overlay")),this._events(),this.options.deepLink&&window.location.hash==="#"+this.id&&e(window).one("load.zf.reveal",this.open.bind(this))}},{key:"_makeOverlay",value:function(){return e("<div></div>").addClass("reveal-overlay").appendTo(this.options.appendTo)}},{key:"_updatePosition",value:function(){var t,i,o=this.$element.outerWidth(),n=e(window).width(),s=this.$element.outerHeight(),a=e(window).height();t="auto"===this.options.hOffset?parseInt((n-o)/2,10):parseInt(this.options.hOffset,10),i="auto"===this.options.vOffset?s>a?parseInt(Math.min(100,a/10),10):parseInt((a-s)/4,10):parseInt(this.options.vOffset,10),this.$element.css({top:i+"px"}),this.$overlay&&"auto"===this.options.hOffset||(this.$element.css({left:t+"px"}),this.$element.css({margin:"0px"}))}},{key:"_events",value:function(){var t=this,i=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":function(o,n){if(o.target===i.$element[0]||e(o.target).parents("[data-closable]")[0]===n)return t.close.apply(t)},"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":function(){i._updatePosition()}}),this.$anchor.length&&this.$anchor.on("keydown.zf.reveal",function(e){13!==e.which&&32!==e.which||(e.stopPropagation(),e.preventDefault(),i.open())}),this.options.closeOnClick&&this.options.overlay&&this.$overlay.off(".zf.reveal").on("click.zf.reveal",function(t){t.target!==i.$element[0]&&!e.contains(i.$element[0],t.target)&&e.contains(document,t.target)&&i.close()}),this.options.deepLink&&e(window).on("popstate.zf.reveal:"+this.id,this._handleState.bind(this))}},{key:"_handleState",value:function(e){window.location.hash!=="#"+this.id||this.isActive?this.close():this.open()}},{key:"open",value:function(){function t(){n.isMobile?(n.originalScrollPos||(n.originalScrollPos=window.pageYOffset),e("html, body").addClass("is-reveal-open")):e("body").addClass("is-reveal-open")}var i=this;if(this.options.deepLink){var o="#"+this.id;window.history.pushState?window.history.pushState(null,null,o):window.location.hash=o}this.isActive=!0,this.$element.css({visibility:"hidden"}).show().scrollTop(0),this.options.overlay&&this.$overlay.css({visibility:"hidden"}).show(),this._updatePosition(),this.$element.hide().css({visibility:""}),this.$overlay&&(this.$overlay.css({visibility:""}).hide(),this.$element.hasClass("fast")?this.$overlay.addClass("fast"):this.$element.hasClass("slow")&&this.$overlay.addClass("slow")),this.options.multipleOpened||this.$element.trigger("closeme.zf.reveal",this.id);var n=this;this.options.animationIn?!function(){var e=function(){n.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),t(),Foundation.Keyboard.trapFocus(n.$element)};i.options.overlay&&Foundation.Motion.animateIn(i.$overlay,"fade-in"),Foundation.Motion.animateIn(i.$element,i.options.animationIn,function(){i.$element&&(i.focusableElements=Foundation.Keyboard.findFocusable(i.$element),e())})}():(this.options.overlay&&this.$overlay.show(0),this.$element.show(this.options.showDelay)),this.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),Foundation.Keyboard.trapFocus(this.$element),this.$element.trigger("open.zf.reveal"),t(),setTimeout(function(){i._extraHandlers()},0)}},{key:"_extraHandlers",value:function(){var t=this;this.$element&&(this.focusableElements=Foundation.Keyboard.findFocusable(this.$element),this.options.overlay||!this.options.closeOnClick||this.options.fullScreen||e("body").on("click.zf.reveal",function(i){i.target!==t.$element[0]&&!e.contains(t.$element[0],i.target)&&e.contains(document,i.target)&&t.close()}),this.options.closeOnEsc&&e(window).on("keydown.zf.reveal",function(e){Foundation.Keyboard.handleKey(e,"Reveal",{close:function(){t.options.closeOnEsc&&(t.close(),t.$anchor.focus())}})}),this.$element.on("keydown.zf.reveal",function(i){var o=e(this);Foundation.Keyboard.handleKey(i,"Reveal",{open:function(){t.$element.find(":focus").is(t.$element.find("[data-close]"))?setTimeout(function(){t.$anchor.focus()},1):o.is(t.focusableElements)&&t.open()},close:function(){t.options.closeOnEsc&&(t.close(),t.$anchor.focus())},handled:function(e){e&&i.preventDefault()}})}))}},{key:"close",value:function(){function t(){i.isMobile?(e("html, body").removeClass("is-reveal-open"),i.originalScrollPos&&(e("body").scrollTop(i.originalScrollPos),i.originalScrollPos=null)):e("body").removeClass("is-reveal-open"),Foundation.Keyboard.releaseFocus(i.$element),i.$element.attr("aria-hidden",!0),i.$element.trigger("closed.zf.reveal")}if(!this.isActive||!this.$element.is(":visible"))return!1;var i=this;this.options.animationOut?(this.options.overlay?Foundation.Motion.animateOut(this.$overlay,"fade-out",t):t(),Foundation.Motion.animateOut(this.$element,this.options.animationOut)):(this.options.overlay?this.$overlay.hide(0,t):t(),this.$element.hide(this.options.hideDelay)),this.options.closeOnEsc&&e(window).off("keydown.zf.reveal"),!this.options.overlay&&this.options.closeOnClick&&e("body").off("click.zf.reveal"),this.$element.off("keydown.zf.reveal"),this.options.resetOnClose&&this.$element.html(this.$element.html()),this.isActive=!1,i.options.deepLink&&(window.history.replaceState?window.history.replaceState("",document.title,window.location.href.replace("#"+this.id,"")):window.location.hash="")}},{key:"toggle",value:function(){this.isActive?this.close():this.open()}},{key:"destroy",value:function(){this.options.overlay&&(this.$element.appendTo(e(this.options.appendTo)),this.$overlay.hide().off().remove()),this.$element.hide().off(),this.$anchor.off(".zf"),e(window).off(".zf.reveal:"+this.id),Foundation.unregisterPlugin(this)}}]),t}();n.defaults={animationIn:"",animationOut:"",showDelay:0,hideDelay:0,closeOnClick:!0,closeOnEsc:!0,multipleOpened:!1,vOffset:"auto",hOffset:"auto",fullScreen:!1,btmOffsetPct:10,overlay:!0,resetOnClose:!1,deepLink:!1,appendTo:"body"},Foundation.plugin(n,"Reveal")}(jQuery);
|
@@ -0,0 +1,762 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
4
|
+
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
6
|
+
|
7
|
+
!function ($) {
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Slider module.
|
11
|
+
* @module foundation.slider
|
12
|
+
* @requires foundation.util.motion
|
13
|
+
* @requires foundation.util.triggers
|
14
|
+
* @requires foundation.util.keyboard
|
15
|
+
* @requires foundation.util.touch
|
16
|
+
*/
|
17
|
+
|
18
|
+
var Slider = function () {
|
19
|
+
/**
|
20
|
+
* Creates a new instance of a slider control.
|
21
|
+
* @class
|
22
|
+
* @param {jQuery} element - jQuery object to make into a slider control.
|
23
|
+
* @param {Object} options - Overrides to the default plugin settings.
|
24
|
+
*/
|
25
|
+
function Slider(element, options) {
|
26
|
+
_classCallCheck(this, Slider);
|
27
|
+
|
28
|
+
this.$element = element;
|
29
|
+
this.options = $.extend({}, Slider.defaults, this.$element.data(), options);
|
30
|
+
|
31
|
+
this._init();
|
32
|
+
|
33
|
+
Foundation.registerPlugin(this, 'Slider');
|
34
|
+
Foundation.Keyboard.register('Slider', {
|
35
|
+
'ltr': {
|
36
|
+
'ARROW_RIGHT': 'increase',
|
37
|
+
'ARROW_UP': 'increase',
|
38
|
+
'ARROW_DOWN': 'decrease',
|
39
|
+
'ARROW_LEFT': 'decrease',
|
40
|
+
'SHIFT_ARROW_RIGHT': 'increase_fast',
|
41
|
+
'SHIFT_ARROW_UP': 'increase_fast',
|
42
|
+
'SHIFT_ARROW_DOWN': 'decrease_fast',
|
43
|
+
'SHIFT_ARROW_LEFT': 'decrease_fast'
|
44
|
+
},
|
45
|
+
'rtl': {
|
46
|
+
'ARROW_LEFT': 'increase',
|
47
|
+
'ARROW_RIGHT': 'decrease',
|
48
|
+
'SHIFT_ARROW_LEFT': 'increase_fast',
|
49
|
+
'SHIFT_ARROW_RIGHT': 'decrease_fast'
|
50
|
+
}
|
51
|
+
});
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Initilizes the plugin by reading/setting attributes, creating collections and setting the initial position of the handle(s).
|
56
|
+
* @function
|
57
|
+
* @private
|
58
|
+
*/
|
59
|
+
|
60
|
+
|
61
|
+
_createClass(Slider, [{
|
62
|
+
key: '_init',
|
63
|
+
value: function _init() {
|
64
|
+
this.inputs = this.$element.find('input');
|
65
|
+
this.handles = this.$element.find('[data-slider-handle]');
|
66
|
+
|
67
|
+
this.$handle = this.handles.eq(0);
|
68
|
+
this.$input = this.inputs.length ? this.inputs.eq(0) : $('#' + this.$handle.attr('aria-controls'));
|
69
|
+
this.$fill = this.$element.find('[data-slider-fill]').css(this.options.vertical ? 'height' : 'width', 0);
|
70
|
+
|
71
|
+
var isDbl = false,
|
72
|
+
_this = this;
|
73
|
+
if (this.options.disabled || this.$element.hasClass(this.options.disabledClass)) {
|
74
|
+
this.options.disabled = true;
|
75
|
+
this.$element.addClass(this.options.disabledClass);
|
76
|
+
}
|
77
|
+
if (!this.inputs.length) {
|
78
|
+
this.inputs = $().add(this.$input);
|
79
|
+
this.options.binding = true;
|
80
|
+
}
|
81
|
+
|
82
|
+
this._setInitAttr(0);
|
83
|
+
|
84
|
+
if (this.handles[1]) {
|
85
|
+
this.options.doubleSided = true;
|
86
|
+
this.$handle2 = this.handles.eq(1);
|
87
|
+
this.$input2 = this.inputs.length > 1 ? this.inputs.eq(1) : $('#' + this.$handle2.attr('aria-controls'));
|
88
|
+
|
89
|
+
if (!this.inputs[1]) {
|
90
|
+
this.inputs = this.inputs.add(this.$input2);
|
91
|
+
}
|
92
|
+
isDbl = true;
|
93
|
+
|
94
|
+
// this.$handle.triggerHandler('click.zf.slider');
|
95
|
+
this._setInitAttr(1);
|
96
|
+
}
|
97
|
+
|
98
|
+
// Set handle positions
|
99
|
+
this.setHandles();
|
100
|
+
|
101
|
+
this._events();
|
102
|
+
}
|
103
|
+
}, {
|
104
|
+
key: 'setHandles',
|
105
|
+
value: function setHandles() {
|
106
|
+
var _this2 = this;
|
107
|
+
|
108
|
+
if (this.handles[1]) {
|
109
|
+
this._setHandlePos(this.$handle, this.inputs.eq(0).val(), true, function () {
|
110
|
+
_this2._setHandlePos(_this2.$handle2, _this2.inputs.eq(1).val(), true);
|
111
|
+
});
|
112
|
+
} else {
|
113
|
+
this._setHandlePos(this.$handle, this.inputs.eq(0).val(), true);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}, {
|
117
|
+
key: '_reflow',
|
118
|
+
value: function _reflow() {
|
119
|
+
this.setHandles();
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* @function
|
123
|
+
* @private
|
124
|
+
* @param {Number} value - floating point (the value) to be transformed using to a relative position on the slider (the inverse of _value)
|
125
|
+
*/
|
126
|
+
|
127
|
+
}, {
|
128
|
+
key: '_pctOfBar',
|
129
|
+
value: function _pctOfBar(value) {
|
130
|
+
var pctOfBar = percent(value - this.options.start, this.options.end - this.options.start);
|
131
|
+
|
132
|
+
switch (this.options.positionValueFunction) {
|
133
|
+
case "pow":
|
134
|
+
pctOfBar = this._logTransform(pctOfBar);
|
135
|
+
break;
|
136
|
+
case "log":
|
137
|
+
pctOfBar = this._powTransform(pctOfBar);
|
138
|
+
break;
|
139
|
+
}
|
140
|
+
|
141
|
+
return pctOfBar.toFixed(2);
|
142
|
+
}
|
143
|
+
|
144
|
+
/**
|
145
|
+
* @function
|
146
|
+
* @private
|
147
|
+
* @param {Number} pctOfBar - floating point, the relative position of the slider (typically between 0-1) to be transformed to a value
|
148
|
+
*/
|
149
|
+
|
150
|
+
}, {
|
151
|
+
key: '_value',
|
152
|
+
value: function _value(pctOfBar) {
|
153
|
+
switch (this.options.positionValueFunction) {
|
154
|
+
case "pow":
|
155
|
+
pctOfBar = this._powTransform(pctOfBar);
|
156
|
+
break;
|
157
|
+
case "log":
|
158
|
+
pctOfBar = this._logTransform(pctOfBar);
|
159
|
+
break;
|
160
|
+
}
|
161
|
+
var value = (this.options.end - this.options.start) * pctOfBar + this.options.start;
|
162
|
+
|
163
|
+
return value;
|
164
|
+
}
|
165
|
+
|
166
|
+
/**
|
167
|
+
* @function
|
168
|
+
* @private
|
169
|
+
* @param {Number} value - floating point (typically between 0-1) to be transformed using the log function
|
170
|
+
*/
|
171
|
+
|
172
|
+
}, {
|
173
|
+
key: '_logTransform',
|
174
|
+
value: function _logTransform(value) {
|
175
|
+
return baseLog(this.options.nonLinearBase, value * (this.options.nonLinearBase - 1) + 1);
|
176
|
+
}
|
177
|
+
|
178
|
+
/**
|
179
|
+
* @function
|
180
|
+
* @private
|
181
|
+
* @param {Number} value - floating point (typically between 0-1) to be transformed using the power function
|
182
|
+
*/
|
183
|
+
|
184
|
+
}, {
|
185
|
+
key: '_powTransform',
|
186
|
+
value: function _powTransform(value) {
|
187
|
+
return (Math.pow(this.options.nonLinearBase, value) - 1) / (this.options.nonLinearBase - 1);
|
188
|
+
}
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Sets the position of the selected handle and fill bar.
|
192
|
+
* @function
|
193
|
+
* @private
|
194
|
+
* @param {jQuery} $hndl - the selected handle to move.
|
195
|
+
* @param {Number} location - floating point between the start and end values of the slider bar.
|
196
|
+
* @param {Function} cb - callback function to fire on completion.
|
197
|
+
* @fires Slider#moved
|
198
|
+
* @fires Slider#changed
|
199
|
+
*/
|
200
|
+
|
201
|
+
}, {
|
202
|
+
key: '_setHandlePos',
|
203
|
+
value: function _setHandlePos($hndl, location, noInvert, cb) {
|
204
|
+
// don't move if the slider has been disabled since its initialization
|
205
|
+
if (this.$element.hasClass(this.options.disabledClass)) {
|
206
|
+
return;
|
207
|
+
}
|
208
|
+
//might need to alter that slightly for bars that will have odd number selections.
|
209
|
+
location = parseFloat(location); //on input change events, convert string to number...grumble.
|
210
|
+
|
211
|
+
// prevent slider from running out of bounds, if value exceeds the limits set through options, override the value to min/max
|
212
|
+
if (location < this.options.start) {
|
213
|
+
location = this.options.start;
|
214
|
+
} else if (location > this.options.end) {
|
215
|
+
location = this.options.end;
|
216
|
+
}
|
217
|
+
|
218
|
+
var isDbl = this.options.doubleSided;
|
219
|
+
|
220
|
+
if (isDbl) {
|
221
|
+
//this block is to prevent 2 handles from crossing eachother. Could/should be improved.
|
222
|
+
if (this.handles.index($hndl) === 0) {
|
223
|
+
var h2Val = parseFloat(this.$handle2.attr('aria-valuenow'));
|
224
|
+
location = location >= h2Val ? h2Val - this.options.step : location;
|
225
|
+
} else {
|
226
|
+
var h1Val = parseFloat(this.$handle.attr('aria-valuenow'));
|
227
|
+
location = location <= h1Val ? h1Val + this.options.step : location;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
//this is for single-handled vertical sliders, it adjusts the value to account for the slider being "upside-down"
|
232
|
+
//for click and drag events, it's weird due to the scale(-1, 1) css property
|
233
|
+
if (this.options.vertical && !noInvert) {
|
234
|
+
location = this.options.end - location;
|
235
|
+
}
|
236
|
+
|
237
|
+
var _this = this,
|
238
|
+
vert = this.options.vertical,
|
239
|
+
hOrW = vert ? 'height' : 'width',
|
240
|
+
lOrT = vert ? 'top' : 'left',
|
241
|
+
handleDim = $hndl[0].getBoundingClientRect()[hOrW],
|
242
|
+
elemDim = this.$element[0].getBoundingClientRect()[hOrW],
|
243
|
+
|
244
|
+
//percentage of bar min/max value based on click or drag point
|
245
|
+
pctOfBar = this._pctOfBar(location),
|
246
|
+
|
247
|
+
//number of actual pixels to shift the handle, based on the percentage obtained above
|
248
|
+
pxToMove = (elemDim - handleDim) * pctOfBar,
|
249
|
+
|
250
|
+
//percentage of bar to shift the handle
|
251
|
+
movement = (percent(pxToMove, elemDim) * 100).toFixed(this.options.decimal);
|
252
|
+
//fixing the decimal value for the location number, is passed to other methods as a fixed floating-point value
|
253
|
+
location = parseFloat(location.toFixed(this.options.decimal));
|
254
|
+
// declare empty object for css adjustments, only used with 2 handled-sliders
|
255
|
+
var css = {};
|
256
|
+
|
257
|
+
this._setValues($hndl, location);
|
258
|
+
|
259
|
+
// TODO update to calculate based on values set to respective inputs??
|
260
|
+
if (isDbl) {
|
261
|
+
var isLeftHndl = this.handles.index($hndl) === 0,
|
262
|
+
|
263
|
+
//empty variable, will be used for min-height/width for fill bar
|
264
|
+
dim,
|
265
|
+
|
266
|
+
//percentage w/h of the handle compared to the slider bar
|
267
|
+
handlePct = ~~(percent(handleDim, elemDim) * 100);
|
268
|
+
//if left handle, the math is slightly different than if it's the right handle, and the left/top property needs to be changed for the fill bar
|
269
|
+
if (isLeftHndl) {
|
270
|
+
//left or top percentage value to apply to the fill bar.
|
271
|
+
css[lOrT] = movement + '%';
|
272
|
+
//calculate the new min-height/width for the fill bar.
|
273
|
+
dim = parseFloat(this.$handle2[0].style[lOrT]) - movement + handlePct;
|
274
|
+
//this callback is necessary to prevent errors and allow the proper placement and initialization of a 2-handled slider
|
275
|
+
//plus, it means we don't care if 'dim' isNaN on init, it won't be in the future.
|
276
|
+
if (cb && typeof cb === 'function') {
|
277
|
+
cb();
|
278
|
+
} //this is only needed for the initialization of 2 handled sliders
|
279
|
+
} else {
|
280
|
+
//just caching the value of the left/bottom handle's left/top property
|
281
|
+
var handlePos = parseFloat(this.$handle[0].style[lOrT]);
|
282
|
+
//calculate the new min-height/width for the fill bar. Use isNaN to prevent false positives for numbers <= 0
|
283
|
+
//based on the percentage of movement of the handle being manipulated, less the opposing handle's left/top position, plus the percentage w/h of the handle itself
|
284
|
+
dim = movement - (isNaN(handlePos) ? (this.options.initialStart - this.options.start) / ((this.options.end - this.options.start) / 100) : handlePos) + handlePct;
|
285
|
+
}
|
286
|
+
// assign the min-height/width to our css object
|
287
|
+
css['min-' + hOrW] = dim + '%';
|
288
|
+
}
|
289
|
+
|
290
|
+
this.$element.one('finished.zf.animate', function () {
|
291
|
+
/**
|
292
|
+
* Fires when the handle is done moving.
|
293
|
+
* @event Slider#moved
|
294
|
+
*/
|
295
|
+
_this.$element.trigger('moved.zf.slider', [$hndl]);
|
296
|
+
});
|
297
|
+
|
298
|
+
//because we don't know exactly how the handle will be moved, check the amount of time it should take to move.
|
299
|
+
var moveTime = this.$element.data('dragging') ? 1000 / 60 : this.options.moveTime;
|
300
|
+
|
301
|
+
Foundation.Move(moveTime, $hndl, function () {
|
302
|
+
// adjusting the left/top property of the handle, based on the percentage calculated above
|
303
|
+
// if movement isNaN, that is because the slider is hidden and we cannot determine handle width,
|
304
|
+
// fall back to next best guess.
|
305
|
+
if (isNaN(movement)) {
|
306
|
+
$hndl.css(lOrT, pctOfBar * 100 + '%');
|
307
|
+
} else {
|
308
|
+
$hndl.css(lOrT, movement + '%');
|
309
|
+
}
|
310
|
+
|
311
|
+
if (!_this.options.doubleSided) {
|
312
|
+
//if single-handled, a simple method to expand the fill bar
|
313
|
+
_this.$fill.css(hOrW, pctOfBar * 100 + '%');
|
314
|
+
} else {
|
315
|
+
//otherwise, use the css object we created above
|
316
|
+
_this.$fill.css(css);
|
317
|
+
}
|
318
|
+
});
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Fires when the value has not been change for a given time.
|
322
|
+
* @event Slider#changed
|
323
|
+
*/
|
324
|
+
clearTimeout(_this.timeout);
|
325
|
+
_this.timeout = setTimeout(function () {
|
326
|
+
_this.$element.trigger('changed.zf.slider', [$hndl]);
|
327
|
+
}, _this.options.changedDelay);
|
328
|
+
}
|
329
|
+
|
330
|
+
/**
|
331
|
+
* Sets the initial attribute for the slider element.
|
332
|
+
* @function
|
333
|
+
* @private
|
334
|
+
* @param {Number} idx - index of the current handle/input to use.
|
335
|
+
*/
|
336
|
+
|
337
|
+
}, {
|
338
|
+
key: '_setInitAttr',
|
339
|
+
value: function _setInitAttr(idx) {
|
340
|
+
var initVal = idx === 0 ? this.options.initialStart : this.options.initialEnd;
|
341
|
+
var id = this.inputs.eq(idx).attr('id') || Foundation.GetYoDigits(6, 'slider');
|
342
|
+
this.inputs.eq(idx).attr({
|
343
|
+
'id': id,
|
344
|
+
'max': this.options.end,
|
345
|
+
'min': this.options.start,
|
346
|
+
'step': this.options.step
|
347
|
+
});
|
348
|
+
this.inputs.eq(idx).val(initVal);
|
349
|
+
this.handles.eq(idx).attr({
|
350
|
+
'role': 'slider',
|
351
|
+
'aria-controls': id,
|
352
|
+
'aria-valuemax': this.options.end,
|
353
|
+
'aria-valuemin': this.options.start,
|
354
|
+
'aria-valuenow': initVal,
|
355
|
+
'aria-orientation': this.options.vertical ? 'vertical' : 'horizontal',
|
356
|
+
'tabindex': 0
|
357
|
+
});
|
358
|
+
}
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Sets the input and `aria-valuenow` values for the slider element.
|
362
|
+
* @function
|
363
|
+
* @private
|
364
|
+
* @param {jQuery} $handle - the currently selected handle.
|
365
|
+
* @param {Number} val - floating point of the new value.
|
366
|
+
*/
|
367
|
+
|
368
|
+
}, {
|
369
|
+
key: '_setValues',
|
370
|
+
value: function _setValues($handle, val) {
|
371
|
+
var idx = this.options.doubleSided ? this.handles.index($handle) : 0;
|
372
|
+
this.inputs.eq(idx).val(val);
|
373
|
+
$handle.attr('aria-valuenow', val);
|
374
|
+
}
|
375
|
+
|
376
|
+
/**
|
377
|
+
* Handles events on the slider element.
|
378
|
+
* Calculates the new location of the current handle.
|
379
|
+
* If there are two handles and the bar was clicked, it determines which handle to move.
|
380
|
+
* @function
|
381
|
+
* @private
|
382
|
+
* @param {Object} e - the `event` object passed from the listener.
|
383
|
+
* @param {jQuery} $handle - the current handle to calculate for, if selected.
|
384
|
+
* @param {Number} val - floating point number for the new value of the slider.
|
385
|
+
* TODO clean this up, there's a lot of repeated code between this and the _setHandlePos fn.
|
386
|
+
*/
|
387
|
+
|
388
|
+
}, {
|
389
|
+
key: '_handleEvent',
|
390
|
+
value: function _handleEvent(e, $handle, val) {
|
391
|
+
var value, hasVal;
|
392
|
+
if (!val) {
|
393
|
+
//click or drag events
|
394
|
+
e.preventDefault();
|
395
|
+
var _this = this,
|
396
|
+
vertical = this.options.vertical,
|
397
|
+
param = vertical ? 'height' : 'width',
|
398
|
+
direction = vertical ? 'top' : 'left',
|
399
|
+
eventOffset = vertical ? e.pageY : e.pageX,
|
400
|
+
halfOfHandle = this.$handle[0].getBoundingClientRect()[param] / 2,
|
401
|
+
barDim = this.$element[0].getBoundingClientRect()[param],
|
402
|
+
windowScroll = vertical ? $(window).scrollTop() : $(window).scrollLeft();
|
403
|
+
|
404
|
+
var elemOffset = this.$element.offset()[direction];
|
405
|
+
|
406
|
+
// touch events emulated by the touch util give position relative to screen, add window.scroll to event coordinates...
|
407
|
+
// best way to guess this is simulated is if clientY == pageY
|
408
|
+
if (e.clientY === e.pageY) {
|
409
|
+
eventOffset = eventOffset + windowScroll;
|
410
|
+
}
|
411
|
+
var eventFromBar = eventOffset - elemOffset;
|
412
|
+
var barXY;
|
413
|
+
if (eventFromBar < 0) {
|
414
|
+
barXY = 0;
|
415
|
+
} else if (eventFromBar > barDim) {
|
416
|
+
barXY = barDim;
|
417
|
+
} else {
|
418
|
+
barXY = eventFromBar;
|
419
|
+
}
|
420
|
+
var offsetPct = percent(barXY, barDim);
|
421
|
+
|
422
|
+
value = this._value(offsetPct);
|
423
|
+
|
424
|
+
// turn everything around for RTL, yay math!
|
425
|
+
if (Foundation.rtl() && !this.options.vertical) {
|
426
|
+
value = this.options.end - value;
|
427
|
+
}
|
428
|
+
|
429
|
+
value = _this._adjustValue(null, value);
|
430
|
+
//boolean flag for the setHandlePos fn, specifically for vertical sliders
|
431
|
+
hasVal = false;
|
432
|
+
|
433
|
+
if (!$handle) {
|
434
|
+
//figure out which handle it is, pass it to the next function.
|
435
|
+
var firstHndlPos = absPosition(this.$handle, direction, barXY, param),
|
436
|
+
secndHndlPos = absPosition(this.$handle2, direction, barXY, param);
|
437
|
+
$handle = firstHndlPos <= secndHndlPos ? this.$handle : this.$handle2;
|
438
|
+
}
|
439
|
+
} else {
|
440
|
+
//change event on input
|
441
|
+
value = this._adjustValue(null, val);
|
442
|
+
hasVal = true;
|
443
|
+
}
|
444
|
+
|
445
|
+
this._setHandlePos($handle, value, hasVal);
|
446
|
+
}
|
447
|
+
|
448
|
+
/**
|
449
|
+
* Adjustes value for handle in regard to step value. returns adjusted value
|
450
|
+
* @function
|
451
|
+
* @private
|
452
|
+
* @param {jQuery} $handle - the selected handle.
|
453
|
+
* @param {Number} value - value to adjust. used if $handle is falsy
|
454
|
+
*/
|
455
|
+
|
456
|
+
}, {
|
457
|
+
key: '_adjustValue',
|
458
|
+
value: function _adjustValue($handle, value) {
|
459
|
+
var val,
|
460
|
+
step = this.options.step,
|
461
|
+
div = parseFloat(step / 2),
|
462
|
+
left,
|
463
|
+
prev_val,
|
464
|
+
next_val;
|
465
|
+
if (!!$handle) {
|
466
|
+
val = parseFloat($handle.attr('aria-valuenow'));
|
467
|
+
} else {
|
468
|
+
val = value;
|
469
|
+
}
|
470
|
+
left = val % step;
|
471
|
+
prev_val = val - left;
|
472
|
+
next_val = prev_val + step;
|
473
|
+
if (left === 0) {
|
474
|
+
return val;
|
475
|
+
}
|
476
|
+
val = val >= prev_val + div ? next_val : prev_val;
|
477
|
+
return val;
|
478
|
+
}
|
479
|
+
|
480
|
+
/**
|
481
|
+
* Adds event listeners to the slider elements.
|
482
|
+
* @function
|
483
|
+
* @private
|
484
|
+
*/
|
485
|
+
|
486
|
+
}, {
|
487
|
+
key: '_events',
|
488
|
+
value: function _events() {
|
489
|
+
this._eventsForHandle(this.$handle);
|
490
|
+
if (this.handles[1]) {
|
491
|
+
this._eventsForHandle(this.$handle2);
|
492
|
+
}
|
493
|
+
}
|
494
|
+
|
495
|
+
/**
|
496
|
+
* Adds event listeners a particular handle
|
497
|
+
* @function
|
498
|
+
* @private
|
499
|
+
* @param {jQuery} $handle - the current handle to apply listeners to.
|
500
|
+
*/
|
501
|
+
|
502
|
+
}, {
|
503
|
+
key: '_eventsForHandle',
|
504
|
+
value: function _eventsForHandle($handle) {
|
505
|
+
var _this = this,
|
506
|
+
curHandle,
|
507
|
+
timer;
|
508
|
+
|
509
|
+
this.inputs.off('change.zf.slider').on('change.zf.slider', function (e) {
|
510
|
+
var idx = _this.inputs.index($(this));
|
511
|
+
_this._handleEvent(e, _this.handles.eq(idx), $(this).val());
|
512
|
+
});
|
513
|
+
|
514
|
+
if (this.options.clickSelect) {
|
515
|
+
this.$element.off('click.zf.slider').on('click.zf.slider', function (e) {
|
516
|
+
if (_this.$element.data('dragging')) {
|
517
|
+
return false;
|
518
|
+
}
|
519
|
+
|
520
|
+
if (!$(e.target).is('[data-slider-handle]')) {
|
521
|
+
if (_this.options.doubleSided) {
|
522
|
+
_this._handleEvent(e);
|
523
|
+
} else {
|
524
|
+
_this._handleEvent(e, _this.$handle);
|
525
|
+
}
|
526
|
+
}
|
527
|
+
});
|
528
|
+
}
|
529
|
+
|
530
|
+
if (this.options.draggable) {
|
531
|
+
this.handles.addTouch();
|
532
|
+
|
533
|
+
var $body = $('body');
|
534
|
+
$handle.off('mousedown.zf.slider').on('mousedown.zf.slider', function (e) {
|
535
|
+
$handle.addClass('is-dragging');
|
536
|
+
_this.$fill.addClass('is-dragging'); //
|
537
|
+
_this.$element.data('dragging', true);
|
538
|
+
|
539
|
+
curHandle = $(e.currentTarget);
|
540
|
+
|
541
|
+
$body.on('mousemove.zf.slider', function (e) {
|
542
|
+
e.preventDefault();
|
543
|
+
_this._handleEvent(e, curHandle);
|
544
|
+
}).on('mouseup.zf.slider', function (e) {
|
545
|
+
_this._handleEvent(e, curHandle);
|
546
|
+
|
547
|
+
$handle.removeClass('is-dragging');
|
548
|
+
_this.$fill.removeClass('is-dragging');
|
549
|
+
_this.$element.data('dragging', false);
|
550
|
+
|
551
|
+
$body.off('mousemove.zf.slider mouseup.zf.slider');
|
552
|
+
});
|
553
|
+
})
|
554
|
+
// prevent events triggered by touch
|
555
|
+
.on('selectstart.zf.slider touchmove.zf.slider', function (e) {
|
556
|
+
e.preventDefault();
|
557
|
+
});
|
558
|
+
}
|
559
|
+
|
560
|
+
$handle.off('keydown.zf.slider').on('keydown.zf.slider', function (e) {
|
561
|
+
var _$handle = $(this),
|
562
|
+
idx = _this.options.doubleSided ? _this.handles.index(_$handle) : 0,
|
563
|
+
oldValue = parseFloat(_this.inputs.eq(idx).val()),
|
564
|
+
newValue;
|
565
|
+
|
566
|
+
// handle keyboard event with keyboard util
|
567
|
+
Foundation.Keyboard.handleKey(e, 'Slider', {
|
568
|
+
decrease: function () {
|
569
|
+
newValue = oldValue - _this.options.step;
|
570
|
+
},
|
571
|
+
increase: function () {
|
572
|
+
newValue = oldValue + _this.options.step;
|
573
|
+
},
|
574
|
+
decrease_fast: function () {
|
575
|
+
newValue = oldValue - _this.options.step * 10;
|
576
|
+
},
|
577
|
+
increase_fast: function () {
|
578
|
+
newValue = oldValue + _this.options.step * 10;
|
579
|
+
},
|
580
|
+
handled: function () {
|
581
|
+
// only set handle pos when event was handled specially
|
582
|
+
e.preventDefault();
|
583
|
+
_this._setHandlePos(_$handle, newValue, true);
|
584
|
+
}
|
585
|
+
});
|
586
|
+
/*if (newValue) { // if pressed key has special function, update value
|
587
|
+
e.preventDefault();
|
588
|
+
_this._setHandlePos(_$handle, newValue);
|
589
|
+
}*/
|
590
|
+
});
|
591
|
+
}
|
592
|
+
|
593
|
+
/**
|
594
|
+
* Destroys the slider plugin.
|
595
|
+
*/
|
596
|
+
|
597
|
+
}, {
|
598
|
+
key: 'destroy',
|
599
|
+
value: function destroy() {
|
600
|
+
this.handles.off('.zf.slider');
|
601
|
+
this.inputs.off('.zf.slider');
|
602
|
+
this.$element.off('.zf.slider');
|
603
|
+
|
604
|
+
clearTimeout(this.timeout);
|
605
|
+
|
606
|
+
Foundation.unregisterPlugin(this);
|
607
|
+
}
|
608
|
+
}]);
|
609
|
+
|
610
|
+
return Slider;
|
611
|
+
}();
|
612
|
+
|
613
|
+
Slider.defaults = {
|
614
|
+
/**
|
615
|
+
* Minimum value for the slider scale.
|
616
|
+
* @option
|
617
|
+
* @type {number}
|
618
|
+
* @default 0
|
619
|
+
*/
|
620
|
+
start: 0,
|
621
|
+
/**
|
622
|
+
* Maximum value for the slider scale.
|
623
|
+
* @option
|
624
|
+
* @type {number}
|
625
|
+
* @default 100
|
626
|
+
*/
|
627
|
+
end: 100,
|
628
|
+
/**
|
629
|
+
* Minimum value change per change event.
|
630
|
+
* @option
|
631
|
+
* @type {number}
|
632
|
+
* @default 1
|
633
|
+
*/
|
634
|
+
step: 1,
|
635
|
+
/**
|
636
|
+
* Value at which the handle/input *(left handle/first input)* should be set to on initialization.
|
637
|
+
* @option
|
638
|
+
* @type {number}
|
639
|
+
* @default 0
|
640
|
+
*/
|
641
|
+
initialStart: 0,
|
642
|
+
/**
|
643
|
+
* Value at which the right handle/second input should be set to on initialization.
|
644
|
+
* @option
|
645
|
+
* @type {number}
|
646
|
+
* @default 100
|
647
|
+
*/
|
648
|
+
initialEnd: 100,
|
649
|
+
/**
|
650
|
+
* Allows the input to be located outside the container and visible. Set to by the JS
|
651
|
+
* @option
|
652
|
+
* @type {boolean}
|
653
|
+
* @default false
|
654
|
+
*/
|
655
|
+
binding: false,
|
656
|
+
/**
|
657
|
+
* Allows the user to click/tap on the slider bar to select a value.
|
658
|
+
* @option
|
659
|
+
* @type {boolean}
|
660
|
+
* @default true
|
661
|
+
*/
|
662
|
+
clickSelect: true,
|
663
|
+
/**
|
664
|
+
* Set to true and use the `vertical` class to change alignment to vertical.
|
665
|
+
* @option
|
666
|
+
* @type {boolean}
|
667
|
+
* @default false
|
668
|
+
*/
|
669
|
+
vertical: false,
|
670
|
+
/**
|
671
|
+
* Allows the user to drag the slider handle(s) to select a value.
|
672
|
+
* @option
|
673
|
+
* @type {boolean}
|
674
|
+
* @default true
|
675
|
+
*/
|
676
|
+
draggable: true,
|
677
|
+
/**
|
678
|
+
* Disables the slider and prevents event listeners from being applied. Double checked by JS with `disabledClass`.
|
679
|
+
* @option
|
680
|
+
* @type {boolean}
|
681
|
+
* @default false
|
682
|
+
*/
|
683
|
+
disabled: false,
|
684
|
+
/**
|
685
|
+
* Allows the use of two handles. Double checked by the JS. Changes some logic handling.
|
686
|
+
* @option
|
687
|
+
* @type {boolean}
|
688
|
+
* @default false
|
689
|
+
*/
|
690
|
+
doubleSided: false,
|
691
|
+
/**
|
692
|
+
* Potential future feature.
|
693
|
+
*/
|
694
|
+
// steps: 100,
|
695
|
+
/**
|
696
|
+
* Number of decimal places the plugin should go to for floating point precision.
|
697
|
+
* @option
|
698
|
+
* @type {number}
|
699
|
+
* @default 2
|
700
|
+
*/
|
701
|
+
decimal: 2,
|
702
|
+
/**
|
703
|
+
* Time delay for dragged elements.
|
704
|
+
*/
|
705
|
+
// dragDelay: 0,
|
706
|
+
/**
|
707
|
+
* Time, in ms, to animate the movement of a slider handle if user clicks/taps on the bar. Needs to be manually set if updating the transition time in the Sass settings.
|
708
|
+
* @option
|
709
|
+
* @type {number}
|
710
|
+
* @default 200
|
711
|
+
*/
|
712
|
+
moveTime: 200, //update this if changing the transition time in the sass
|
713
|
+
/**
|
714
|
+
* Class applied to disabled sliders.
|
715
|
+
* @option
|
716
|
+
* @type {string}
|
717
|
+
* @default 'disabled'
|
718
|
+
*/
|
719
|
+
disabledClass: 'disabled',
|
720
|
+
/**
|
721
|
+
* Will invert the default layout for a vertical<span data-tooltip title="who would do this???"> </span>slider.
|
722
|
+
* @option
|
723
|
+
* @type {boolean}
|
724
|
+
* @default false
|
725
|
+
*/
|
726
|
+
invertVertical: false,
|
727
|
+
/**
|
728
|
+
* Milliseconds before the `changed.zf-slider` event is triggered after value change.
|
729
|
+
* @option
|
730
|
+
* @type {number}
|
731
|
+
* @default 500
|
732
|
+
*/
|
733
|
+
changedDelay: 500,
|
734
|
+
/**
|
735
|
+
* Basevalue for non-linear sliders
|
736
|
+
* @option
|
737
|
+
* @type {number}
|
738
|
+
* @default 5
|
739
|
+
*/
|
740
|
+
nonLinearBase: 5,
|
741
|
+
/**
|
742
|
+
* Basevalue for non-linear sliders, possible values are: `'linear'`, `'pow'` & `'log'`. Pow and Log use the nonLinearBase setting.
|
743
|
+
* @option
|
744
|
+
* @type {string}
|
745
|
+
* @default 'linear'
|
746
|
+
*/
|
747
|
+
positionValueFunction: 'linear'
|
748
|
+
};
|
749
|
+
|
750
|
+
function percent(frac, num) {
|
751
|
+
return frac / num;
|
752
|
+
}
|
753
|
+
function absPosition($handle, dir, clickPos, param) {
|
754
|
+
return Math.abs($handle.position()[dir] + $handle[param]() / 2 - clickPos);
|
755
|
+
}
|
756
|
+
function baseLog(base, value) {
|
757
|
+
return Math.log(value) / Math.log(base);
|
758
|
+
}
|
759
|
+
|
760
|
+
// Window exports
|
761
|
+
Foundation.plugin(Slider, 'Slider');
|
762
|
+
}(jQuery);
|