jekyll-theme-pirati 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/elections.yml +7 -0
- data/_data/menu.yml +3 -3
- data/_includes/candidate_badge.html +3 -7
- data/_includes/contacts/basic_contacts.html +30 -50
- data/_includes/contacts/residance.html +1 -1
- data/_includes/footer.html +3 -3
- data/_includes/head.html +6 -8
- data/_includes/header.html +1 -1
- data/_includes/headline-image.html +16 -0
- data/_includes/js/main.html +7 -13
- data/_includes/js/webpack.html +13 -0
- data/_includes/people/{list_2col.html → list-2col.html} +2 -2
- data/_includes/people/{list_group.html → list-group.html} +1 -1
- data/_includes/people/{profile_badge.html → profile-badge.html} +5 -4
- data/_includes/right-bar/bar_garant.html +1 -1
- data/_includes/right-bar/bar_people.html +1 -1
- data/_includes/right-bar/bar_person_contact.html +8 -8
- data/_includes/right-bar/bar_program.html +7 -5
- data/_layouts/contacts.html +47 -51
- data/_layouts/komunalni-volby.html +1 -1
- data/_layouts/page.html +9 -9
- data/_layouts/person.html +5 -0
- data/_layouts/post.html +30 -38
- data/_layouts/team.html +2 -2
- data/_sass/_base.scss +2 -1
- data/_sass/_fonts.scss +42 -0
- data/_sass/_settings.scss +6 -5
- data/_sass/components/BlogPosting.scss +6 -4
- data/_sass/components/contact-bar.scss +2 -2
- data/_sass/components/content-block.scss +11 -0
- data/_sass/components/footer.scss +5 -0
- data/_sass/components/header-bar.scss +2 -2
- data/_sass/components/headline-image.scss +44 -0
- data/_sass/components/metadata-block.scss +29 -0
- data/_sass/components/program.scss +4 -2
- data/_sass/components/tag.scss +10 -11
- data/_sass/components/top-bar.scss +236 -236
- data/_sass/components/typography.scss +43 -0
- data/_sass/components/widget-accordion.scss +12 -7
- data/_sass/foundation-sites/LICENSE +22 -0
- data/_sass/foundation-sites/README.md +44 -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/code-of-conduct.md +43 -0
- data/_sass/foundation-sites/customizer/complete.json +46 -0
- data/_sass/foundation-sites/customizer/config.yml +218 -0
- data/_sass/foundation-sites/customizer/essential.json +11 -0
- data/_sass/foundation-sites/customizer/index.html +169 -0
- data/_sass/foundation-sites/dist/foundation-flex.css +4028 -0
- data/_sass/foundation-sites/dist/foundation-flex.min.css +2 -0
- data/_sass/foundation-sites/dist/foundation-rtl.css +3583 -0
- data/_sass/foundation-sites/dist/foundation-rtl.min.css +2 -0
- data/_sass/foundation-sites/dist/foundation.css +3578 -0
- data/_sass/foundation-sites/dist/foundation.js +9069 -0
- data/_sass/foundation-sites/dist/foundation.min.css +2 -0
- data/_sass/foundation-sites/dist/foundation.min.js +4 -0
- data/_sass/foundation-sites/dist/plugins/foundation.abide.js +600 -0
- data/_sass/foundation-sites/dist/plugins/foundation.accordion.js +262 -0
- data/_sass/foundation-sites/dist/plugins/foundation.accordionMenu.js +307 -0
- data/_sass/foundation-sites/dist/plugins/foundation.core.js +386 -0
- data/_sass/foundation-sites/dist/plugins/foundation.drilldown.js +409 -0
- data/_sass/foundation-sites/dist/plugins/foundation.dropdown.js +447 -0
- data/_sass/foundation-sites/dist/plugins/foundation.dropdownMenu.js +447 -0
- data/_sass/foundation-sites/dist/plugins/foundation.equalizer.js +364 -0
- data/_sass/foundation-sites/dist/plugins/foundation.interchange.js +227 -0
- data/_sass/foundation-sites/dist/plugins/foundation.magellan.js +257 -0
- data/_sass/foundation-sites/dist/plugins/foundation.offcanvas.js +438 -0
- data/_sass/foundation-sites/dist/plugins/foundation.orbit.js +484 -0
- data/_sass/foundation-sites/dist/plugins/foundation.responsiveMenu.js +171 -0
- data/_sass/foundation-sites/dist/plugins/foundation.responsiveToggle.js +142 -0
- data/_sass/foundation-sites/dist/plugins/foundation.reveal.js +623 -0
- data/_sass/foundation-sites/dist/plugins/foundation.slider.js +648 -0
- data/_sass/foundation-sites/dist/plugins/foundation.sticky.js +495 -0
- data/_sass/foundation-sites/dist/plugins/foundation.tabs.js +348 -0
- data/_sass/foundation-sites/dist/plugins/foundation.toggler.js +166 -0
- data/_sass/foundation-sites/dist/plugins/foundation.tooltip.js +468 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.box.js +196 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.keyboard.js +123 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.mediaQuery.js +216 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.motion.js +97 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.nest.js +69 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.timerAndImageLoader.js +84 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.touch.js +352 -0
- data/_sass/foundation-sites/dist/plugins/foundation.util.triggers.js +243 -0
- data/_sass/foundation-sites/docslink.sh +3 -0
- data/_sass/foundation-sites/js/foundation.abide.js +543 -0
- data/_sass/foundation-sites/js/foundation.accordion.js +237 -0
- data/_sass/foundation-sites/js/foundation.accordionMenu.js +274 -0
- data/_sass/foundation-sites/js/foundation.core.js +378 -0
- data/_sass/foundation-sites/js/foundation.drilldown.js +369 -0
- data/_sass/foundation-sites/js/foundation.dropdown.js +409 -0
- data/_sass/foundation-sites/js/foundation.dropdownMenu.js +404 -0
- data/_sass/foundation-sites/js/foundation.equalizer.js +306 -0
- data/_sass/foundation-sites/js/foundation.interchange.js +198 -0
- data/_sass/foundation-sites/js/foundation.magellan.js +223 -0
- data/_sass/foundation-sites/js/foundation.offcanvas.js +398 -0
- data/_sass/foundation-sites/js/foundation.orbit.js +446 -0
- data/_sass/foundation-sites/js/foundation.responsiveMenu.js +148 -0
- data/_sass/foundation-sites/js/foundation.responsiveToggle.js +119 -0
- data/_sass/foundation-sites/js/foundation.reveal.js +576 -0
- data/_sass/foundation-sites/js/foundation.slider.js +597 -0
- data/_sass/foundation-sites/js/foundation.sticky.js +450 -0
- data/_sass/foundation-sites/js/foundation.tabs.js +333 -0
- data/_sass/foundation-sites/js/foundation.toggler.js +144 -0
- data/_sass/foundation-sites/js/foundation.tooltip.js +444 -0
- data/_sass/foundation-sites/js/foundation.util.box.js +195 -0
- data/_sass/foundation-sites/js/foundation.util.keyboard.js +115 -0
- data/_sass/foundation-sites/js/foundation.util.mediaQuery.js +214 -0
- data/_sass/foundation-sites/js/foundation.util.motion.js +99 -0
- data/_sass/foundation-sites/js/foundation.util.nest.js +76 -0
- data/_sass/foundation-sites/js/foundation.util.timerAndImageLoader.js +86 -0
- data/_sass/foundation-sites/js/foundation.util.touch.js +352 -0
- data/_sass/foundation-sites/js/foundation.util.triggers.js +239 -0
- data/_sass/foundation-sites/node_modules/jquery/AUTHORS.txt +278 -0
- data/_sass/foundation-sites/node_modules/jquery/LICENSE.txt +36 -0
- data/_sass/foundation-sites/node_modules/jquery/README.md +65 -0
- data/_sass/foundation-sites/node_modules/jquery/bower.json +14 -0
- data/_sass/foundation-sites/node_modules/jquery/dist/jquery.js +9814 -0
- data/_sass/foundation-sites/node_modules/jquery/dist/jquery.min.js +4 -0
- data/_sass/foundation-sites/node_modules/jquery/dist/jquery.min.map +1 -0
- data/_sass/foundation-sites/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/_sass/foundation-sites/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/_sass/foundation-sites/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/_sass/foundation-sites/node_modules/jquery/package.json +112 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax.js +845 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/load.js +83 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/parseJSON.js +13 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/parseXML.js +27 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/script.js +68 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/ajax/xhr.js +167 -0
- data/_sass/foundation-sites/node_modules/jquery/src/attributes.js +11 -0
- data/_sass/foundation-sites/node_modules/jquery/src/attributes/attr.js +142 -0
- data/_sass/foundation-sites/node_modules/jquery/src/attributes/classes.js +177 -0
- data/_sass/foundation-sites/node_modules/jquery/src/attributes/prop.js +125 -0
- data/_sass/foundation-sites/node_modules/jquery/src/attributes/support.js +36 -0
- data/_sass/foundation-sites/node_modules/jquery/src/attributes/val.js +177 -0
- data/_sass/foundation-sites/node_modules/jquery/src/callbacks.js +232 -0
- data/_sass/foundation-sites/node_modules/jquery/src/core.js +494 -0
- data/_sass/foundation-sites/node_modules/jquery/src/core/access.js +65 -0
- data/_sass/foundation-sites/node_modules/jquery/src/core/init.js +134 -0
- data/_sass/foundation-sites/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/_sass/foundation-sites/node_modules/jquery/src/core/ready.js +103 -0
- data/_sass/foundation-sites/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css.js +502 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/curCSS.js +60 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/showHide.js +48 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/support.js +121 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/var/getStyles.js +15 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/css/var/swap.js +24 -0
- data/_sass/foundation-sites/node_modules/jquery/src/data.js +187 -0
- data/_sass/foundation-sites/node_modules/jquery/src/data/Data.js +200 -0
- data/_sass/foundation-sites/node_modules/jquery/src/data/var/acceptData.js +18 -0
- data/_sass/foundation-sites/node_modules/jquery/src/data/var/dataPriv.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/data/var/dataUser.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/deferred.js +158 -0
- data/_sass/foundation-sites/node_modules/jquery/src/deprecated.js +32 -0
- data/_sass/foundation-sites/node_modules/jquery/src/dimensions.js +54 -0
- data/_sass/foundation-sites/node_modules/jquery/src/effects.js +629 -0
- data/_sass/foundation-sites/node_modules/jquery/src/effects/Tween.js +121 -0
- data/_sass/foundation-sites/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/_sass/foundation-sites/node_modules/jquery/src/event.js +711 -0
- data/_sass/foundation-sites/node_modules/jquery/src/event/ajax.js +20 -0
- data/_sass/foundation-sites/node_modules/jquery/src/event/alias.js +27 -0
- data/_sass/foundation-sites/node_modules/jquery/src/event/focusin.js +53 -0
- data/_sass/foundation-sites/node_modules/jquery/src/event/support.js +9 -0
- data/_sass/foundation-sites/node_modules/jquery/src/event/trigger.js +183 -0
- data/_sass/foundation-sites/node_modules/jquery/src/exports/amd.js +24 -0
- data/_sass/foundation-sites/node_modules/jquery/src/exports/global.js +26 -0
- data/_sass/foundation-sites/node_modules/jquery/src/intro.js +44 -0
- data/_sass/foundation-sites/node_modules/jquery/src/jquery.js +37 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation.js +481 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/getAll.js +21 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/support.js +33 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
- data/_sass/foundation-sites/node_modules/jquery/src/offset.js +218 -0
- data/_sass/foundation-sites/node_modules/jquery/src/outro.js +2 -0
- data/_sass/foundation-sites/node_modules/jquery/src/queue.js +143 -0
- data/_sass/foundation-sites/node_modules/jquery/src/queue/delay.js +22 -0
- data/_sass/foundation-sites/node_modules/jquery/src/selector-native.js +211 -0
- data/_sass/foundation-sites/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/_sass/foundation-sites/node_modules/jquery/src/selector.js +1 -0
- data/_sass/foundation-sites/node_modules/jquery/src/serialize.js +125 -0
- data/_sass/foundation-sites/node_modules/jquery/src/traversing.js +175 -0
- data/_sass/foundation-sites/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/_sass/foundation-sites/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/_sass/foundation-sites/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/_sass/foundation-sites/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/arr.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/class2type.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/concat.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/document.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/documentElement.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/indexOf.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/pnum.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/push.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/slice.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/support.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/var/toString.js +5 -0
- data/_sass/foundation-sites/node_modules/jquery/src/wrap.js +79 -0
- data/_sass/foundation-sites/package.json +148 -0
- data/_sass/foundation-sites/scss/_global.scss +638 -0
- data/_sass/foundation-sites/scss/components/_accordion-menu.scss +32 -0
- data/_sass/foundation-sites/scss/components/_accordion.scss +129 -0
- data/_sass/foundation-sites/scss/components/_badge.scss +55 -0
- data/_sass/foundation-sites/scss/components/_breadcrumbs.scss +95 -0
- data/_sass/foundation-sites/scss/components/_button-group.scss +195 -0
- data/_sass/foundation-sites/scss/components/_button.scss +265 -0
- data/_sass/foundation-sites/scss/components/_callout.scss +105 -0
- data/_sass/foundation-sites/scss/components/_close-button.scss +61 -0
- data/_sass/foundation-sites/scss/components/_drilldown.scss +79 -0
- data/_sass/foundation-sites/scss/components/_dropdown-menu.scss +221 -0
- data/_sass/foundation-sites/scss/components/_dropdown.scss +65 -0
- data/_sass/foundation-sites/scss/components/_flex-video.scss +63 -0
- data/_sass/foundation-sites/scss/components/_flex.scss +28 -0
- data/_sass/foundation-sites/scss/components/_float.scss +27 -0
- data/_sass/foundation-sites/scss/components/_label.scss +56 -0
- data/_sass/foundation-sites/scss/components/_media-object.scss +115 -0
- data/_sass/foundation-sites/scss/components/_menu-icon.scss +9 -0
- data/_sass/foundation-sites/scss/components/_menu.scss +314 -0
- data/_sass/foundation-sites/scss/components/_off-canvas.scss +177 -0
- data/_sass/foundation-sites/scss/components/_orbit.scss +193 -0
- data/_sass/foundation-sites/scss/components/_pagination.scss +162 -0
- data/_sass/foundation-sites/scss/components/_progress-bar.scss +64 -0
- data/_sass/foundation-sites/scss/components/_reveal.scss +172 -0
- data/_sass/foundation-sites/scss/components/_slider.scss +133 -0
- data/_sass/foundation-sites/scss/components/_sticky.scss +38 -0
- data/_sass/foundation-sites/scss/components/_switch.scss +232 -0
- data/_sass/foundation-sites/scss/components/_table.scss +234 -0
- data/_sass/foundation-sites/scss/components/_tabs.scss +165 -0
- data/_sass/foundation-sites/scss/components/_thumbnail.scss +54 -0
- data/_sass/foundation-sites/scss/components/_title-bar.scss +89 -0
- data/_sass/foundation-sites/scss/components/_tooltip.scss +104 -0
- data/_sass/foundation-sites/scss/components/_top-bar.scss +168 -0
- data/_sass/foundation-sites/scss/components/_visibility.scss +132 -0
- data/_sass/foundation-sites/scss/forms/_checkbox.scss +40 -0
- data/_sass/foundation-sites/scss/forms/_error.scss +84 -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 +128 -0
- data/_sass/foundation-sites/scss/forms/_label.scss +48 -0
- data/_sass/foundation-sites/scss/forms/_meter.scss +109 -0
- data/_sass/foundation-sites/scss/forms/_progress.scss +85 -0
- data/_sass/foundation-sites/scss/forms/_range.scss +144 -0
- data/_sass/foundation-sites/scss/forms/_select.scss +67 -0
- data/_sass/foundation-sites/scss/forms/_text.scss +163 -0
- data/_sass/foundation-sites/scss/foundation.scss +102 -0
- data/_sass/foundation-sites/scss/grid/_classes.scss +151 -0
- data/_sass/foundation-sites/scss/grid/_column.scss +126 -0
- data/_sass/foundation-sites/scss/grid/_flex-grid.scss +274 -0
- data/_sass/foundation-sites/scss/grid/_grid.scss +60 -0
- data/_sass/foundation-sites/scss/grid/_gutter.scss +34 -0
- data/_sass/foundation-sites/scss/grid/_layout.scss +51 -0
- data/_sass/foundation-sites/scss/grid/_position.scss +73 -0
- data/_sass/foundation-sites/scss/grid/_row.scss +95 -0
- data/_sass/foundation-sites/scss/grid/_size.scss +24 -0
- data/_sass/foundation-sites/scss/settings/_settings.scss +567 -0
- data/_sass/foundation-sites/scss/typography/_alignment.scss +22 -0
- data/_sass/foundation-sites/scss/typography/_base.scss +443 -0
- data/_sass/foundation-sites/scss/typography/_helpers.scss +77 -0
- data/_sass/foundation-sites/scss/typography/_print.scss +77 -0
- data/_sass/foundation-sites/scss/typography/_typography.scss +28 -0
- data/_sass/foundation-sites/scss/util/_breakpoint.scss +275 -0
- data/_sass/foundation-sites/scss/util/_color.scss +60 -0
- data/_sass/foundation-sites/scss/util/_flex.scss +68 -0
- data/_sass/foundation-sites/scss/util/_mixins.scss +235 -0
- data/_sass/foundation-sites/scss/util/_selector.scss +40 -0
- data/_sass/foundation-sites/scss/util/_unit.scss +90 -0
- data/_sass/foundation-sites/scss/util/_util.scss +11 -0
- data/_sass/foundation-sites/scss/util/_value.scss +107 -0
- data/_sass/foundation-sites/vendor/fastclick/LICENSE +22 -0
- data/_sass/foundation-sites/vendor/fastclick/README.md +140 -0
- data/_sass/foundation-sites/vendor/jquery-placeholder/jquery.placeholder.js +192 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/content/styles.css +9 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/devbridge-autocomplete.jquery.json +28 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/dist/jquery.autocomplete.js +823 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/dist/jquery.autocomplete.min.js +29 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/dist/license.txt +21 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/index.htm +48 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/license.txt +21 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/readme.md +165 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/countries.js +266 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/demo.js +68 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/jquery-1.8.2.min.js +2 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/scripts/jquery.mockjax.js +564 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/src/jquery.autocomplete.d.ts +40 -0
- data/_sass/foundation-sites/vendor/jquery.autocomplete/src/jquery.autocomplete.js +823 -0
- data/_sass/foundation-sites/vendor/jquery.cookie/jquery.cookie.js +117 -0
- data/_sass/foundation-sites/vendor/jquery/AUTHORS.txt +278 -0
- data/_sass/foundation-sites/vendor/jquery/LICENSE.txt +36 -0
- data/_sass/foundation-sites/vendor/jquery/README.md +65 -0
- data/_sass/foundation-sites/vendor/jquery/dist/jquery.js +9842 -0
- data/_sass/foundation-sites/vendor/jquery/dist/jquery.min.js +4 -0
- data/_sass/foundation-sites/vendor/jquery/dist/jquery.min.map +1 -0
- data/_sass/foundation-sites/vendor/jquery/dist/jquery.slim.js +7877 -0
- data/_sass/foundation-sites/vendor/jquery/dist/jquery.slim.min.js +4 -0
- data/_sass/foundation-sites/vendor/jquery/dist/jquery.slim.min.map +1 -0
- data/_sass/foundation-sites/vendor/jquery/sizzle/LICENSE.txt +36 -0
- data/_sass/foundation-sites/vendor/jquery/sizzle/dist/sizzle.js +2143 -0
- data/_sass/foundation-sites/vendor/jquery/sizzle/dist/sizzle.min.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/sizzle/dist/sizzle.min.map +1 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax.js +845 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/jsonp.js +100 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/load.js +83 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/parseJSON.js +13 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/parseXML.js +27 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/script.js +68 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/var/location.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/var/nonce.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/var/rquery.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/ajax/xhr.js +167 -0
- data/_sass/foundation-sites/vendor/jquery/src/attributes.js +11 -0
- data/_sass/foundation-sites/vendor/jquery/src/attributes/attr.js +142 -0
- data/_sass/foundation-sites/vendor/jquery/src/attributes/classes.js +177 -0
- data/_sass/foundation-sites/vendor/jquery/src/attributes/prop.js +125 -0
- data/_sass/foundation-sites/vendor/jquery/src/attributes/support.js +36 -0
- data/_sass/foundation-sites/vendor/jquery/src/attributes/val.js +177 -0
- data/_sass/foundation-sites/vendor/jquery/src/callbacks.js +232 -0
- data/_sass/foundation-sites/vendor/jquery/src/core.js +494 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/DOMEval.js +14 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/access.js +65 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/init.js +134 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/parseHTML.js +41 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/ready.js +103 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/support.js +18 -0
- data/_sass/foundation-sites/vendor/jquery/src/core/var/rsingleTag.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/css.js +515 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/addGetHookIf.js +24 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/adjustCSS.js +65 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/curCSS.js +60 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/defaultDisplay.js +72 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/showHide.js +48 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/support.js +121 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/var/cssExpand.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/var/getStyles.js +15 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/var/isHidden.js +16 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/var/rmargin.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/var/rnumnonpx.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/css/var/swap.js +24 -0
- data/_sass/foundation-sites/vendor/jquery/src/data.js +187 -0
- data/_sass/foundation-sites/vendor/jquery/src/data/Data.js +200 -0
- data/_sass/foundation-sites/vendor/jquery/src/data/accepts.js +20 -0
- data/_sass/foundation-sites/vendor/jquery/src/data/support.js +23 -0
- data/_sass/foundation-sites/vendor/jquery/src/data/var/acceptData.js +18 -0
- data/_sass/foundation-sites/vendor/jquery/src/data/var/dataPriv.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/data/var/dataUser.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/deferred.js +158 -0
- data/_sass/foundation-sites/vendor/jquery/src/deferred/exceptionHook.js +19 -0
- data/_sass/foundation-sites/vendor/jquery/src/deprecated.js +32 -0
- data/_sass/foundation-sites/vendor/jquery/src/dimensions.js +54 -0
- data/_sass/foundation-sites/vendor/jquery/src/effects.js +629 -0
- data/_sass/foundation-sites/vendor/jquery/src/effects/Tween.js +121 -0
- data/_sass/foundation-sites/vendor/jquery/src/effects/animatedSelector.js +13 -0
- data/_sass/foundation-sites/vendor/jquery/src/effects/support.js +58 -0
- data/_sass/foundation-sites/vendor/jquery/src/event.js +710 -0
- data/_sass/foundation-sites/vendor/jquery/src/event/ajax.js +20 -0
- data/_sass/foundation-sites/vendor/jquery/src/event/alias.js +27 -0
- data/_sass/foundation-sites/vendor/jquery/src/event/focusin.js +53 -0
- data/_sass/foundation-sites/vendor/jquery/src/event/support.js +9 -0
- data/_sass/foundation-sites/vendor/jquery/src/event/trigger.js +199 -0
- data/_sass/foundation-sites/vendor/jquery/src/exports/amd.js +24 -0
- data/_sass/foundation-sites/vendor/jquery/src/exports/global.js +26 -0
- data/_sass/foundation-sites/vendor/jquery/src/intro.js +44 -0
- data/_sass/foundation-sites/vendor/jquery/src/jquery.js +37 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation.js +481 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/_evalUrl.js +20 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/buildFragment.js +102 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/createSafeFragment.js +20 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/getAll.js +21 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/support.js +33 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/nodeNames.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/var/rtagName.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/manipulation/wrapMap.js +27 -0
- data/_sass/foundation-sites/vendor/jquery/src/offset.js +218 -0
- data/_sass/foundation-sites/vendor/jquery/src/outro.js +2 -0
- data/_sass/foundation-sites/vendor/jquery/src/queue.js +143 -0
- data/_sass/foundation-sites/vendor/jquery/src/queue/delay.js +22 -0
- data/_sass/foundation-sites/vendor/jquery/src/selector-native.js +211 -0
- data/_sass/foundation-sites/vendor/jquery/src/selector-sizzle.js +14 -0
- data/_sass/foundation-sites/vendor/jquery/src/selector.js +1 -0
- data/_sass/foundation-sites/vendor/jquery/src/serialize.js +125 -0
- data/_sass/foundation-sites/vendor/jquery/src/support.js +63 -0
- data/_sass/foundation-sites/vendor/jquery/src/traversing.js +175 -0
- data/_sass/foundation-sites/vendor/jquery/src/traversing/findFilter.js +100 -0
- data/_sass/foundation-sites/vendor/jquery/src/traversing/var/dir.js +20 -0
- data/_sass/foundation-sites/vendor/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/_sass/foundation-sites/vendor/jquery/src/traversing/var/siblings.js +15 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/arr.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/class2type.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/concat.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/deletedIds.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/document.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/documentElement.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/hasOwn.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/indexOf.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/pnum.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/push.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/rcssNum.js +7 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/rnotwhite.js +3 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/slice.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/support.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/var/toString.js +5 -0
- data/_sass/foundation-sites/vendor/jquery/src/wrap.js +79 -0
- data/_sass/foundation-sites/vendor/lodash/LICENSE.txt +22 -0
- data/_sass/foundation-sites/vendor/lodash/dist/lodash.compat.js +7158 -0
- data/_sass/foundation-sites/vendor/lodash/dist/lodash.compat.min.js +92 -0
- data/_sass/foundation-sites/vendor/lodash/dist/lodash.js +6786 -0
- data/_sass/foundation-sites/vendor/lodash/dist/lodash.min.js +87 -0
- data/_sass/foundation-sites/vendor/lodash/dist/lodash.underscore.js +4979 -0
- data/_sass/foundation-sites/vendor/lodash/dist/lodash.underscore.min.js +39 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/a-download.js +8 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/audio-audiodata-api.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/audio-webaudio-api.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/battery-api.js +8 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/battery-level.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/blob-constructor.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/canvas-todataurl-type.js +28 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/contenteditable.js +9 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/contentsecuritypolicy.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/contextmenu.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/cookies.js +15 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/cors.js +3 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundposition-shorthand.js +19 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundposition-xy.js +15 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundrepeat.js +31 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-backgroundsizecover.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-boxsizing.js +9 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-calc.js +12 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-cubicbezierrange.js +8 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-displayrunin.js +18 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-displaytable.js +27 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-filters.js +7 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-hyphens.js +205 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-lastchild.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-mask.js +12 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-mediaqueries.js +3 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-objectfit.js +6 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-overflow-scrolling.js +9 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-pointerevents.js +25 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-positionsticky.js +13 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-regions.js +55 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js +19 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-resize.js +8 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-scrollbars.js +19 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-shapes.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-subpixelfont.js +23 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-supports.js +6 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-userselect.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vhunit.js +14 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vmaxunit.js +14 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vminunit.js +14 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/css-vwunit.js +14 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/custom-protocol-handler.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/dart.js +6 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/dataview-api.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-classlist.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-createElement-attrs.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-dataset.js +9 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/dom-microdata.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-datalist.js +12 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-details.js +25 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-output.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-progress-meter.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-ruby.js +53 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-time.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/elem-track.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/emoji.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/es5-strictmode.js +7 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/event-deviceorientation-motion.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/exif-orientation.js +32 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/file-api.js +12 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/file-filesystem.js +9 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-fileinput.js +13 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-formattribute.js +29 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-inputnumber-l10n.js +32 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-placeholder.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-speechinput.js +19 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/forms-validation.js +62 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/fullscreen-api.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/gamepad.js +12 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/getusermedia.js +5 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/ie8compat.js +12 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/iframe-sandbox.js +5 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/iframe-seamless.js +5 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/iframe-srcdoc.js +5 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/img-apng.js +26 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/img-webp.js +20 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/json.js +7 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/lists-reversed.js +6 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/mathml.js +23 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/network-connection.js +22 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/network-eventsource.js +5 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/network-xhr2.js +13 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/notification.js +10 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/performance.js +5 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/pointerlock-api.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/quota-management-api.js +11 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/requestanimationframe.js +7 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/script-async.js +3 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/script-defer.js +3 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/style-scoped.js +6 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/svg-filters.js +13 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/unicode.js +32 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/url-data-uri.js +26 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/userdata.js +7 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/vibration.js +4 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/web-intents.js +6 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/webgl-extensions.js +42 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/websockets-binary.js +20 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/window-framed.js +8 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/workers-blobworkers.js +66 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/workers-dataworkers.js +34 -0
- data/_sass/foundation-sites/vendor/modernizr/feature-detects/workers-sharedworkers.js +3 -0
- data/_sass/foundation-sites/vendor/modernizr/grunt.js +69 -0
- data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.ai +292 -1
- data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.eps +0 -0
- data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.pdf +292 -1
- data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.png +0 -0
- data/_sass/foundation-sites/vendor/modernizr/media/Modernizr 2 Logo.svg +35 -0
- data/_sass/foundation-sites/vendor/modernizr/modernizr.js +1406 -0
- data/_sass/foundation-sites/vendor/modernizr/readme.md +28 -0
- data/_sass/objects/media.scss +7 -2
- data/_sass/objects/section.scss +5 -5
- data/assets/css/main.scss +7 -1
- data/assets/fonts/BebasNeue-Thin.ttf +0 -0
- data/assets/fonts/BebasNeue-Thin.woff +0 -0
- data/assets/fonts/BebasNeueBold.ttf +0 -0
- data/assets/fonts/BebasNeueBold.woff +0 -0
- data/assets/fonts/BebasNeueBook.ttf +0 -0
- data/assets/fonts/BebasNeueBook.woff +0 -0
- data/assets/fonts/BebasNeueLight.ttf +0 -0
- data/assets/fonts/BebasNeueLight.woff +0 -0
- data/assets/fonts/BebasNeueRegular.ttf +0 -0
- data/assets/fonts/BebasNeueRegular.woff +0 -0
- data/assets/fonts/demo.html +311 -0
- data/assets/fonts/stylesheet.css +40 -0
- data/assets/img/people/unknown-pirate.svg +3 -0
- data/assets/js/0.main.98ff15822eba72edef32.js +51 -0
- data/assets/js/0.main.98ff15822eba72edef32.js.map +1 -0
- data/assets/js/main.98ff15822eba72edef32.css +3 -0
- data/assets/js/main.98ff15822eba72edef32.css.map +1 -0
- data/assets/js/main.98ff15822eba72edef32.js +1 -0
- data/assets/js/main.98ff15822eba72edef32.js.map +1 -0
- data/jekyll-theme-pirati.gemspec +26 -0
- metadata +549 -20
- data/_sass/components/BasicPage.scss +0 -469
- data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
- data/assets/fonts/bebasneue_regular-webfont.svg +0 -3906
- data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
- data/assets/js/apps.js +0 -8
- data/assets/js/apps/scroll-top/ScrollTop.vue +0 -83
- data/assets/js/apps/scroll-top/index.js +0 -9
- data/assets/js/apps/site-search/SiteSearch.vue +0 -85
- data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +0 -29
- data/assets/js/apps/site-search/index.js +0 -14
- data/assets/js/index.js +0 -52
@@ -0,0 +1,378 @@
|
|
1
|
+
!function($) {
|
2
|
+
|
3
|
+
"use strict";
|
4
|
+
|
5
|
+
var FOUNDATION_VERSION = '6.2.2';
|
6
|
+
|
7
|
+
// Global Foundation object
|
8
|
+
// This is attached to the window, or used as a module for AMD/Browserify
|
9
|
+
var Foundation = {
|
10
|
+
version: FOUNDATION_VERSION,
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Stores initialized plugins.
|
14
|
+
*/
|
15
|
+
_plugins: {},
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Stores generated unique ids for plugin instances
|
19
|
+
*/
|
20
|
+
_uuids: [],
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Returns a boolean for RTL support
|
24
|
+
*/
|
25
|
+
rtl: function(){
|
26
|
+
return $('html').attr('dir') === 'rtl';
|
27
|
+
},
|
28
|
+
/**
|
29
|
+
* Defines a Foundation plugin, adding it to the `Foundation` namespace and the list of plugins to initialize when reflowing.
|
30
|
+
* @param {Object} plugin - The constructor of the plugin.
|
31
|
+
*/
|
32
|
+
plugin: function(plugin, name) {
|
33
|
+
// Object key to use when adding to global Foundation object
|
34
|
+
// Examples: Foundation.Reveal, Foundation.OffCanvas
|
35
|
+
var className = (name || functionName(plugin));
|
36
|
+
// Object key to use when storing the plugin, also used to create the identifying data attribute for the plugin
|
37
|
+
// Examples: data-reveal, data-off-canvas
|
38
|
+
var attrName = hyphenate(className);
|
39
|
+
|
40
|
+
// Add to the Foundation object and the plugins list (for reflowing)
|
41
|
+
this._plugins[attrName] = this[className] = plugin;
|
42
|
+
},
|
43
|
+
/**
|
44
|
+
* @function
|
45
|
+
* Populates the _uuids array with pointers to each individual plugin instance.
|
46
|
+
* Adds the `zfPlugin` data-attribute to programmatically created plugins to allow use of $(selector).foundation(method) calls.
|
47
|
+
* Also fires the initialization event for each plugin, consolidating repetitive code.
|
48
|
+
* @param {Object} plugin - an instance of a plugin, usually `this` in context.
|
49
|
+
* @param {String} name - the name of the plugin, passed as a camelCased string.
|
50
|
+
* @fires Plugin#init
|
51
|
+
*/
|
52
|
+
registerPlugin: function(plugin, name){
|
53
|
+
var pluginName = name ? hyphenate(name) : functionName(plugin.constructor).toLowerCase();
|
54
|
+
plugin.uuid = this.GetYoDigits(6, pluginName);
|
55
|
+
|
56
|
+
if(!plugin.$element.attr(`data-${pluginName}`)){ plugin.$element.attr(`data-${pluginName}`, plugin.uuid); }
|
57
|
+
if(!plugin.$element.data('zfPlugin')){ plugin.$element.data('zfPlugin', plugin); }
|
58
|
+
/**
|
59
|
+
* Fires when the plugin has initialized.
|
60
|
+
* @event Plugin#init
|
61
|
+
*/
|
62
|
+
plugin.$element.trigger(`init.zf.${pluginName}`);
|
63
|
+
|
64
|
+
this._uuids.push(plugin.uuid);
|
65
|
+
|
66
|
+
return;
|
67
|
+
},
|
68
|
+
/**
|
69
|
+
* @function
|
70
|
+
* Removes the plugins uuid from the _uuids array.
|
71
|
+
* Removes the zfPlugin data attribute, as well as the data-plugin-name attribute.
|
72
|
+
* Also fires the destroyed event for the plugin, consolidating repetitive code.
|
73
|
+
* @param {Object} plugin - an instance of a plugin, usually `this` in context.
|
74
|
+
* @fires Plugin#destroyed
|
75
|
+
*/
|
76
|
+
unregisterPlugin: function(plugin){
|
77
|
+
var pluginName = hyphenate(functionName(plugin.$element.data('zfPlugin').constructor));
|
78
|
+
|
79
|
+
this._uuids.splice(this._uuids.indexOf(plugin.uuid), 1);
|
80
|
+
plugin.$element.removeAttr(`data-${pluginName}`).removeData('zfPlugin')
|
81
|
+
/**
|
82
|
+
* Fires when the plugin has been destroyed.
|
83
|
+
* @event Plugin#destroyed
|
84
|
+
*/
|
85
|
+
.trigger(`destroyed.zf.${pluginName}`);
|
86
|
+
for(var prop in plugin){
|
87
|
+
plugin[prop] = null;//clean up script to prep for garbage collection.
|
88
|
+
}
|
89
|
+
return;
|
90
|
+
},
|
91
|
+
|
92
|
+
/**
|
93
|
+
* @function
|
94
|
+
* Causes one or more active plugins to re-initialize, resetting event listeners, recalculating positions, etc.
|
95
|
+
* @param {String} plugins - optional string of an individual plugin key, attained by calling `$(element).data('pluginName')`, or string of a plugin class i.e. `'dropdown'`
|
96
|
+
* @default If no argument is passed, reflow all currently active plugins.
|
97
|
+
*/
|
98
|
+
reInit: function(plugins){
|
99
|
+
var isJQ = plugins instanceof $;
|
100
|
+
try{
|
101
|
+
if(isJQ){
|
102
|
+
plugins.each(function(){
|
103
|
+
$(this).data('zfPlugin')._init();
|
104
|
+
});
|
105
|
+
}else{
|
106
|
+
var type = typeof plugins,
|
107
|
+
_this = this,
|
108
|
+
fns = {
|
109
|
+
'object': function(plgs){
|
110
|
+
plgs.forEach(function(p){
|
111
|
+
p = hyphenate(p);
|
112
|
+
$('[data-'+ p +']').foundation('_init');
|
113
|
+
});
|
114
|
+
},
|
115
|
+
'string': function(){
|
116
|
+
plugins = hyphenate(plugins);
|
117
|
+
$('[data-'+ plugins +']').foundation('_init');
|
118
|
+
},
|
119
|
+
'undefined': function(){
|
120
|
+
this['object'](Object.keys(_this._plugins));
|
121
|
+
}
|
122
|
+
};
|
123
|
+
fns[type](plugins);
|
124
|
+
}
|
125
|
+
}catch(err){
|
126
|
+
console.error(err);
|
127
|
+
}finally{
|
128
|
+
return plugins;
|
129
|
+
}
|
130
|
+
},
|
131
|
+
|
132
|
+
/**
|
133
|
+
* returns a random base-36 uid with namespacing
|
134
|
+
* @function
|
135
|
+
* @param {Number} length - number of random base-36 digits desired. Increase for more random strings.
|
136
|
+
* @param {String} namespace - name of plugin to be incorporated in uid, optional.
|
137
|
+
* @default {String} '' - if no plugin name is provided, nothing is appended to the uid.
|
138
|
+
* @returns {String} - unique id
|
139
|
+
*/
|
140
|
+
GetYoDigits: function(length, namespace){
|
141
|
+
length = length || 6;
|
142
|
+
return Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).slice(1) + (namespace ? `-${namespace}` : '');
|
143
|
+
},
|
144
|
+
/**
|
145
|
+
* Initialize plugins on any elements within `elem` (and `elem` itself) that aren't already initialized.
|
146
|
+
* @param {Object} elem - jQuery object containing the element to check inside. Also checks the element itself, unless it's the `document` object.
|
147
|
+
* @param {String|Array} plugins - A list of plugins to initialize. Leave this out to initialize everything.
|
148
|
+
*/
|
149
|
+
reflow: function(elem, plugins) {
|
150
|
+
|
151
|
+
// If plugins is undefined, just grab everything
|
152
|
+
if (typeof plugins === 'undefined') {
|
153
|
+
plugins = Object.keys(this._plugins);
|
154
|
+
}
|
155
|
+
// If plugins is a string, convert it to an array with one item
|
156
|
+
else if (typeof plugins === 'string') {
|
157
|
+
plugins = [plugins];
|
158
|
+
}
|
159
|
+
|
160
|
+
var _this = this;
|
161
|
+
|
162
|
+
// Iterate through each plugin
|
163
|
+
$.each(plugins, function(i, name) {
|
164
|
+
// Get the current plugin
|
165
|
+
var plugin = _this._plugins[name];
|
166
|
+
|
167
|
+
// Localize the search to all elements inside elem, as well as elem itself, unless elem === document
|
168
|
+
var $elem = $(elem).find('[data-'+name+']').addBack('[data-'+name+']');
|
169
|
+
|
170
|
+
// For each plugin found, initialize it
|
171
|
+
$elem.each(function() {
|
172
|
+
var $el = $(this),
|
173
|
+
opts = {};
|
174
|
+
// Don't double-dip on plugins
|
175
|
+
if ($el.data('zfPlugin')) {
|
176
|
+
console.warn("Tried to initialize "+name+" on an element that already has a Foundation plugin.");
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
|
180
|
+
if($el.attr('data-options')){
|
181
|
+
var thing = $el.attr('data-options').split(';').forEach(function(e, i){
|
182
|
+
var opt = e.split(':').map(function(el){ return el.trim(); });
|
183
|
+
if(opt[0]) opts[opt[0]] = parseValue(opt[1]);
|
184
|
+
});
|
185
|
+
}
|
186
|
+
try{
|
187
|
+
$el.data('zfPlugin', new plugin($(this), opts));
|
188
|
+
}catch(er){
|
189
|
+
console.error(er);
|
190
|
+
}finally{
|
191
|
+
return;
|
192
|
+
}
|
193
|
+
});
|
194
|
+
});
|
195
|
+
},
|
196
|
+
getFnName: functionName,
|
197
|
+
transitionend: function($elem){
|
198
|
+
var transitions = {
|
199
|
+
'transition': 'transitionend',
|
200
|
+
'WebkitTransition': 'webkitTransitionEnd',
|
201
|
+
'MozTransition': 'transitionend',
|
202
|
+
'OTransition': 'otransitionend'
|
203
|
+
};
|
204
|
+
var elem = document.createElement('div'),
|
205
|
+
end;
|
206
|
+
|
207
|
+
for (var t in transitions){
|
208
|
+
if (typeof elem.style[t] !== 'undefined'){
|
209
|
+
end = transitions[t];
|
210
|
+
}
|
211
|
+
}
|
212
|
+
if(end){
|
213
|
+
return end;
|
214
|
+
}else{
|
215
|
+
end = setTimeout(function(){
|
216
|
+
$elem.triggerHandler('transitionend', [$elem]);
|
217
|
+
}, 1);
|
218
|
+
return 'transitionend';
|
219
|
+
}
|
220
|
+
}
|
221
|
+
};
|
222
|
+
|
223
|
+
Foundation.util = {
|
224
|
+
/**
|
225
|
+
* Function for applying a debounce effect to a function call.
|
226
|
+
* @function
|
227
|
+
* @param {Function} func - Function to be called at end of timeout.
|
228
|
+
* @param {Number} delay - Time in ms to delay the call of `func`.
|
229
|
+
* @returns function
|
230
|
+
*/
|
231
|
+
throttle: function (func, delay) {
|
232
|
+
var timer = null;
|
233
|
+
|
234
|
+
return function () {
|
235
|
+
var context = this, args = arguments;
|
236
|
+
|
237
|
+
if (timer === null) {
|
238
|
+
timer = setTimeout(function () {
|
239
|
+
func.apply(context, args);
|
240
|
+
timer = null;
|
241
|
+
}, delay);
|
242
|
+
}
|
243
|
+
};
|
244
|
+
}
|
245
|
+
};
|
246
|
+
|
247
|
+
// TODO: consider not making this a jQuery function
|
248
|
+
// TODO: need way to reflow vs. re-initialize
|
249
|
+
/**
|
250
|
+
* The Foundation jQuery method.
|
251
|
+
* @param {String|Array} method - An action to perform on the current jQuery object.
|
252
|
+
*/
|
253
|
+
var foundation = function(method) {
|
254
|
+
var type = typeof method,
|
255
|
+
$meta = $('meta.foundation-mq'),
|
256
|
+
$noJS = $('.no-js');
|
257
|
+
|
258
|
+
if(!$meta.length){
|
259
|
+
$('<meta class="foundation-mq">').appendTo(document.head);
|
260
|
+
}
|
261
|
+
if($noJS.length){
|
262
|
+
$noJS.removeClass('no-js');
|
263
|
+
}
|
264
|
+
|
265
|
+
if(type === 'undefined'){//needs to initialize the Foundation object, or an individual plugin.
|
266
|
+
Foundation.MediaQuery._init();
|
267
|
+
Foundation.reflow(this);
|
268
|
+
}else if(type === 'string'){//an individual method to invoke on a plugin or group of plugins
|
269
|
+
var args = Array.prototype.slice.call(arguments, 1);//collect all the arguments, if necessary
|
270
|
+
var plugClass = this.data('zfPlugin');//determine the class of plugin
|
271
|
+
|
272
|
+
if(plugClass !== undefined && plugClass[method] !== undefined){//make sure both the class and method exist
|
273
|
+
if(this.length === 1){//if there's only one, call it directly.
|
274
|
+
plugClass[method].apply(plugClass, args);
|
275
|
+
}else{
|
276
|
+
this.each(function(i, el){//otherwise loop through the jQuery collection and invoke the method on each
|
277
|
+
plugClass[method].apply($(el).data('zfPlugin'), args);
|
278
|
+
});
|
279
|
+
}
|
280
|
+
}else{//error for no class or no method
|
281
|
+
throw new ReferenceError("We're sorry, '" + method + "' is not an available method for " + (plugClass ? functionName(plugClass) : 'this element') + '.');
|
282
|
+
}
|
283
|
+
}else{//error for invalid argument type
|
284
|
+
throw new TypeError(`We're sorry, ${type} is not a valid parameter. You must use a string representing the method you wish to invoke.`);
|
285
|
+
}
|
286
|
+
return this;
|
287
|
+
};
|
288
|
+
|
289
|
+
window.Foundation = Foundation;
|
290
|
+
$.fn.foundation = foundation;
|
291
|
+
|
292
|
+
// Polyfill for requestAnimationFrame
|
293
|
+
(function() {
|
294
|
+
if (!Date.now || !window.Date.now)
|
295
|
+
window.Date.now = Date.now = function() { return new Date().getTime(); };
|
296
|
+
|
297
|
+
var vendors = ['webkit', 'moz'];
|
298
|
+
for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) {
|
299
|
+
var vp = vendors[i];
|
300
|
+
window.requestAnimationFrame = window[vp+'RequestAnimationFrame'];
|
301
|
+
window.cancelAnimationFrame = (window[vp+'CancelAnimationFrame']
|
302
|
+
|| window[vp+'CancelRequestAnimationFrame']);
|
303
|
+
}
|
304
|
+
if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)
|
305
|
+
|| !window.requestAnimationFrame || !window.cancelAnimationFrame) {
|
306
|
+
var lastTime = 0;
|
307
|
+
window.requestAnimationFrame = function(callback) {
|
308
|
+
var now = Date.now();
|
309
|
+
var nextTime = Math.max(lastTime + 16, now);
|
310
|
+
return setTimeout(function() { callback(lastTime = nextTime); },
|
311
|
+
nextTime - now);
|
312
|
+
};
|
313
|
+
window.cancelAnimationFrame = clearTimeout;
|
314
|
+
}
|
315
|
+
/**
|
316
|
+
* Polyfill for performance.now, required by rAF
|
317
|
+
*/
|
318
|
+
if(!window.performance || !window.performance.now){
|
319
|
+
window.performance = {
|
320
|
+
start: Date.now(),
|
321
|
+
now: function(){ return Date.now() - this.start; }
|
322
|
+
};
|
323
|
+
}
|
324
|
+
})();
|
325
|
+
if (!Function.prototype.bind) {
|
326
|
+
Function.prototype.bind = function(oThis) {
|
327
|
+
if (typeof this !== 'function') {
|
328
|
+
// closest thing possible to the ECMAScript 5
|
329
|
+
// internal IsCallable function
|
330
|
+
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
|
331
|
+
}
|
332
|
+
|
333
|
+
var aArgs = Array.prototype.slice.call(arguments, 1),
|
334
|
+
fToBind = this,
|
335
|
+
fNOP = function() {},
|
336
|
+
fBound = function() {
|
337
|
+
return fToBind.apply(this instanceof fNOP
|
338
|
+
? this
|
339
|
+
: oThis,
|
340
|
+
aArgs.concat(Array.prototype.slice.call(arguments)));
|
341
|
+
};
|
342
|
+
|
343
|
+
if (this.prototype) {
|
344
|
+
// native functions don't have a prototype
|
345
|
+
fNOP.prototype = this.prototype;
|
346
|
+
}
|
347
|
+
fBound.prototype = new fNOP();
|
348
|
+
|
349
|
+
return fBound;
|
350
|
+
};
|
351
|
+
}
|
352
|
+
// Polyfill to get the name of a function in IE9
|
353
|
+
function functionName(fn) {
|
354
|
+
if (Function.prototype.name === undefined) {
|
355
|
+
var funcNameRegex = /function\s([^(]{1,})\(/;
|
356
|
+
var results = (funcNameRegex).exec((fn).toString());
|
357
|
+
return (results && results.length > 1) ? results[1].trim() : "";
|
358
|
+
}
|
359
|
+
else if (fn.prototype === undefined) {
|
360
|
+
return fn.constructor.name;
|
361
|
+
}
|
362
|
+
else {
|
363
|
+
return fn.prototype.constructor.name;
|
364
|
+
}
|
365
|
+
}
|
366
|
+
function parseValue(str){
|
367
|
+
if(/true/.test(str)) return true;
|
368
|
+
else if(/false/.test(str)) return false;
|
369
|
+
else if(!isNaN(str * 1)) return parseFloat(str);
|
370
|
+
return str;
|
371
|
+
}
|
372
|
+
// Convert PascalCase to kebab-case
|
373
|
+
// Thank you: http://stackoverflow.com/a/8955580
|
374
|
+
function hyphenate(str) {
|
375
|
+
return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
376
|
+
}
|
377
|
+
|
378
|
+
}(jQuery);
|
@@ -0,0 +1,369 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
!function($) {
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Drilldown module.
|
7
|
+
* @module foundation.drilldown
|
8
|
+
* @requires foundation.util.keyboard
|
9
|
+
* @requires foundation.util.motion
|
10
|
+
* @requires foundation.util.nest
|
11
|
+
*/
|
12
|
+
|
13
|
+
class Drilldown {
|
14
|
+
/**
|
15
|
+
* Creates a new instance of a drilldown menu.
|
16
|
+
* @class
|
17
|
+
* @param {jQuery} element - jQuery object to make into an accordion menu.
|
18
|
+
* @param {Object} options - Overrides to the default plugin settings.
|
19
|
+
*/
|
20
|
+
constructor(element, options) {
|
21
|
+
this.$element = element;
|
22
|
+
this.options = $.extend({}, Drilldown.defaults, this.$element.data(), options);
|
23
|
+
|
24
|
+
Foundation.Nest.Feather(this.$element, 'drilldown');
|
25
|
+
|
26
|
+
this._init();
|
27
|
+
|
28
|
+
Foundation.registerPlugin(this, 'Drilldown');
|
29
|
+
Foundation.Keyboard.register('Drilldown', {
|
30
|
+
'ENTER': 'open',
|
31
|
+
'SPACE': 'open',
|
32
|
+
'ARROW_RIGHT': 'next',
|
33
|
+
'ARROW_UP': 'up',
|
34
|
+
'ARROW_DOWN': 'down',
|
35
|
+
'ARROW_LEFT': 'previous',
|
36
|
+
'ESCAPE': 'close',
|
37
|
+
'TAB': 'down',
|
38
|
+
'SHIFT_TAB': 'up'
|
39
|
+
});
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Initializes the drilldown by creating jQuery collections of elements
|
44
|
+
* @private
|
45
|
+
*/
|
46
|
+
_init() {
|
47
|
+
this.$submenuAnchors = this.$element.find('li.is-drilldown-submenu-parent').children('a');
|
48
|
+
this.$submenus = this.$submenuAnchors.parent('li').children('[data-submenu]');
|
49
|
+
this.$menuItems = this.$element.find('li').not('.js-drilldown-back').attr('role', 'menuitem').find('a');
|
50
|
+
|
51
|
+
this._prepareMenu();
|
52
|
+
|
53
|
+
this._keyboardEvents();
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* prepares drilldown menu by setting attributes to links and elements
|
58
|
+
* sets a min height to prevent content jumping
|
59
|
+
* wraps the element if not already wrapped
|
60
|
+
* @private
|
61
|
+
* @function
|
62
|
+
*/
|
63
|
+
_prepareMenu() {
|
64
|
+
var _this = this;
|
65
|
+
// if(!this.options.holdOpen){
|
66
|
+
// this._menuLinkEvents();
|
67
|
+
// }
|
68
|
+
this.$submenuAnchors.each(function(){
|
69
|
+
var $link = $(this);
|
70
|
+
var $sub = $link.parent();
|
71
|
+
if(_this.options.parentLink){
|
72
|
+
$link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menu-item"></li>');
|
73
|
+
}
|
74
|
+
$link.data('savedHref', $link.attr('href')).removeAttr('href');
|
75
|
+
$link.children('[data-submenu]')
|
76
|
+
.attr({
|
77
|
+
'aria-hidden': true,
|
78
|
+
'tabindex': 0,
|
79
|
+
'role': 'menu'
|
80
|
+
});
|
81
|
+
_this._events($link);
|
82
|
+
});
|
83
|
+
this.$submenus.each(function(){
|
84
|
+
var $menu = $(this),
|
85
|
+
$back = $menu.find('.js-drilldown-back');
|
86
|
+
if(!$back.length){
|
87
|
+
$menu.prepend(_this.options.backButton);
|
88
|
+
}
|
89
|
+
_this._back($menu);
|
90
|
+
});
|
91
|
+
if(!this.$element.parent().hasClass('is-drilldown')){
|
92
|
+
this.$wrapper = $(this.options.wrapper).addClass('is-drilldown');
|
93
|
+
this.$wrapper = this.$element.wrap(this.$wrapper).parent().css(this._getMaxDims());
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Adds event handlers to elements in the menu.
|
99
|
+
* @function
|
100
|
+
* @private
|
101
|
+
* @param {jQuery} $elem - the current menu item to add handlers to.
|
102
|
+
*/
|
103
|
+
_events($elem) {
|
104
|
+
var _this = this;
|
105
|
+
|
106
|
+
$elem.off('click.zf.drilldown')
|
107
|
+
.on('click.zf.drilldown', function(e){
|
108
|
+
if($(e.target).parentsUntil('ul', 'li').hasClass('is-drilldown-submenu-parent')){
|
109
|
+
e.stopImmediatePropagation();
|
110
|
+
e.preventDefault();
|
111
|
+
}
|
112
|
+
|
113
|
+
// if(e.target !== e.currentTarget.firstElementChild){
|
114
|
+
// return false;
|
115
|
+
// }
|
116
|
+
_this._show($elem.parent('li'));
|
117
|
+
|
118
|
+
if(_this.options.closeOnClick){
|
119
|
+
var $body = $('body');
|
120
|
+
$body.off('.zf.drilldown').on('click.zf.drilldown', function(e){
|
121
|
+
if (e.target === _this.$element[0] || $.contains(_this.$element[0], e.target)) { return; }
|
122
|
+
e.preventDefault();
|
123
|
+
_this._hideAll();
|
124
|
+
$body.off('.zf.drilldown');
|
125
|
+
});
|
126
|
+
}
|
127
|
+
});
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Adds keydown event listener to `li`'s in the menu.
|
132
|
+
* @private
|
133
|
+
*/
|
134
|
+
_keyboardEvents() {
|
135
|
+
var _this = this;
|
136
|
+
|
137
|
+
this.$menuItems.add(this.$element.find('.js-drilldown-back > a')).on('keydown.zf.drilldown', function(e){
|
138
|
+
|
139
|
+
var $element = $(this),
|
140
|
+
$elements = $element.parent('li').parent('ul').children('li').children('a'),
|
141
|
+
$prevElement,
|
142
|
+
$nextElement;
|
143
|
+
|
144
|
+
$elements.each(function(i) {
|
145
|
+
if ($(this).is($element)) {
|
146
|
+
$prevElement = $elements.eq(Math.max(0, i-1));
|
147
|
+
$nextElement = $elements.eq(Math.min(i+1, $elements.length-1));
|
148
|
+
return;
|
149
|
+
}
|
150
|
+
});
|
151
|
+
|
152
|
+
Foundation.Keyboard.handleKey(e, 'Drilldown', {
|
153
|
+
next: function() {
|
154
|
+
if ($element.is(_this.$submenuAnchors)) {
|
155
|
+
_this._show($element.parent('li'));
|
156
|
+
$element.parent('li').one(Foundation.transitionend($element), function(){
|
157
|
+
$element.parent('li').find('ul li a').filter(_this.$menuItems).first().focus();
|
158
|
+
});
|
159
|
+
return true;
|
160
|
+
}
|
161
|
+
},
|
162
|
+
previous: function() {
|
163
|
+
_this._hide($element.parent('li').parent('ul'));
|
164
|
+
$element.parent('li').parent('ul').one(Foundation.transitionend($element), function(){
|
165
|
+
setTimeout(function() {
|
166
|
+
$element.parent('li').parent('ul').parent('li').children('a').first().focus();
|
167
|
+
}, 1);
|
168
|
+
});
|
169
|
+
return true;
|
170
|
+
},
|
171
|
+
up: function() {
|
172
|
+
$prevElement.focus();
|
173
|
+
return true;
|
174
|
+
},
|
175
|
+
down: function() {
|
176
|
+
$nextElement.focus();
|
177
|
+
return true;
|
178
|
+
},
|
179
|
+
close: function() {
|
180
|
+
_this._back();
|
181
|
+
//_this.$menuItems.first().focus(); // focus to first element
|
182
|
+
},
|
183
|
+
open: function() {
|
184
|
+
if (!$element.is(_this.$menuItems)) { // not menu item means back button
|
185
|
+
_this._hide($element.parent('li').parent('ul'));
|
186
|
+
$element.parent('li').parent('ul').one(Foundation.transitionend($element), function(){
|
187
|
+
setTimeout(function() {
|
188
|
+
$element.parent('li').parent('ul').parent('li').children('a').first().focus();
|
189
|
+
}, 1);
|
190
|
+
});
|
191
|
+
} else if ($element.is(_this.$submenuAnchors)) {
|
192
|
+
_this._show($element.parent('li'));
|
193
|
+
$element.parent('li').one(Foundation.transitionend($element), function(){
|
194
|
+
$element.parent('li').find('ul li a').filter(_this.$menuItems).first().focus();
|
195
|
+
});
|
196
|
+
}
|
197
|
+
return true;
|
198
|
+
},
|
199
|
+
handled: function(preventDefault) {
|
200
|
+
if (preventDefault) {
|
201
|
+
e.preventDefault();
|
202
|
+
}
|
203
|
+
e.stopImmediatePropagation();
|
204
|
+
}
|
205
|
+
});
|
206
|
+
}); // end keyboardAccess
|
207
|
+
}
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Closes all open elements, and returns to root menu.
|
211
|
+
* @function
|
212
|
+
* @fires Drilldown#closed
|
213
|
+
*/
|
214
|
+
_hideAll() {
|
215
|
+
var $elem = this.$element.find('.is-drilldown-submenu.is-active').addClass('is-closing');
|
216
|
+
$elem.one(Foundation.transitionend($elem), function(e){
|
217
|
+
$elem.removeClass('is-active is-closing');
|
218
|
+
});
|
219
|
+
/**
|
220
|
+
* Fires when the menu is fully closed.
|
221
|
+
* @event Drilldown#closed
|
222
|
+
*/
|
223
|
+
this.$element.trigger('closed.zf.drilldown');
|
224
|
+
}
|
225
|
+
|
226
|
+
/**
|
227
|
+
* Adds event listener for each `back` button, and closes open menus.
|
228
|
+
* @function
|
229
|
+
* @fires Drilldown#back
|
230
|
+
* @param {jQuery} $elem - the current sub-menu to add `back` event.
|
231
|
+
*/
|
232
|
+
_back($elem) {
|
233
|
+
var _this = this;
|
234
|
+
$elem.off('click.zf.drilldown');
|
235
|
+
$elem.children('.js-drilldown-back')
|
236
|
+
.on('click.zf.drilldown', function(e){
|
237
|
+
e.stopImmediatePropagation();
|
238
|
+
// console.log('mouseup on back');
|
239
|
+
_this._hide($elem);
|
240
|
+
});
|
241
|
+
}
|
242
|
+
|
243
|
+
/**
|
244
|
+
* Adds event listener to menu items w/o submenus to close open menus on click.
|
245
|
+
* @function
|
246
|
+
* @private
|
247
|
+
*/
|
248
|
+
_menuLinkEvents() {
|
249
|
+
var _this = this;
|
250
|
+
this.$menuItems.not('.is-drilldown-submenu-parent')
|
251
|
+
.off('click.zf.drilldown')
|
252
|
+
.on('click.zf.drilldown', function(e){
|
253
|
+
// e.stopImmediatePropagation();
|
254
|
+
setTimeout(function(){
|
255
|
+
_this._hideAll();
|
256
|
+
}, 0);
|
257
|
+
});
|
258
|
+
}
|
259
|
+
|
260
|
+
/**
|
261
|
+
* Opens a submenu.
|
262
|
+
* @function
|
263
|
+
* @fires Drilldown#open
|
264
|
+
* @param {jQuery} $elem - the current element with a submenu to open, i.e. the `li` tag.
|
265
|
+
*/
|
266
|
+
_show($elem) {
|
267
|
+
$elem.children('[data-submenu]').addClass('is-active');
|
268
|
+
/**
|
269
|
+
* Fires when the submenu has opened.
|
270
|
+
* @event Drilldown#open
|
271
|
+
*/
|
272
|
+
this.$element.trigger('open.zf.drilldown', [$elem]);
|
273
|
+
};
|
274
|
+
|
275
|
+
/**
|
276
|
+
* Hides a submenu
|
277
|
+
* @function
|
278
|
+
* @fires Drilldown#hide
|
279
|
+
* @param {jQuery} $elem - the current sub-menu to hide, i.e. the `ul` tag.
|
280
|
+
*/
|
281
|
+
_hide($elem) {
|
282
|
+
var _this = this;
|
283
|
+
$elem.addClass('is-closing')
|
284
|
+
.one(Foundation.transitionend($elem), function(){
|
285
|
+
$elem.removeClass('is-active is-closing');
|
286
|
+
$elem.blur();
|
287
|
+
});
|
288
|
+
/**
|
289
|
+
* Fires when the submenu has closed.
|
290
|
+
* @event Drilldown#hide
|
291
|
+
*/
|
292
|
+
$elem.trigger('hide.zf.drilldown', [$elem]);
|
293
|
+
}
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Iterates through the nested menus to calculate the min-height, and max-width for the menu.
|
297
|
+
* Prevents content jumping.
|
298
|
+
* @function
|
299
|
+
* @private
|
300
|
+
*/
|
301
|
+
_getMaxDims() {
|
302
|
+
var max = 0, result = {};
|
303
|
+
this.$submenus.add(this.$element).each(function(){
|
304
|
+
var numOfElems = $(this).children('li').length;
|
305
|
+
max = numOfElems > max ? numOfElems : max;
|
306
|
+
});
|
307
|
+
|
308
|
+
result['min-height'] = `${max * this.$menuItems[0].getBoundingClientRect().height}px`;
|
309
|
+
result['max-width'] = `${this.$element[0].getBoundingClientRect().width}px`;
|
310
|
+
|
311
|
+
return result;
|
312
|
+
}
|
313
|
+
|
314
|
+
/**
|
315
|
+
* Destroys the Drilldown Menu
|
316
|
+
* @function
|
317
|
+
*/
|
318
|
+
destroy() {
|
319
|
+
this._hideAll();
|
320
|
+
Foundation.Nest.Burn(this.$element, 'drilldown');
|
321
|
+
this.$element.unwrap()
|
322
|
+
.find('.js-drilldown-back, .is-submenu-parent-item').remove()
|
323
|
+
.end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu')
|
324
|
+
.end().find('[data-submenu]').removeAttr('aria-hidden tabindex role');
|
325
|
+
this.$submenuAnchors.each(function() {
|
326
|
+
$(this).off('.zf.drilldown');
|
327
|
+
});
|
328
|
+
this.$element.find('a').each(function(){
|
329
|
+
var $link = $(this);
|
330
|
+
if($link.data('savedHref')){
|
331
|
+
$link.attr('href', $link.data('savedHref')).removeData('savedHref');
|
332
|
+
}else{ return; }
|
333
|
+
});
|
334
|
+
Foundation.unregisterPlugin(this);
|
335
|
+
};
|
336
|
+
}
|
337
|
+
|
338
|
+
Drilldown.defaults = {
|
339
|
+
/**
|
340
|
+
* Markup used for JS generated back button. Prepended to submenu lists and deleted on `destroy` method, 'js-drilldown-back' class required. Remove the backslash (`\`) if copy and pasting.
|
341
|
+
* @option
|
342
|
+
* @example '<\li><\a>Back<\/a><\/li>'
|
343
|
+
*/
|
344
|
+
backButton: '<li class="js-drilldown-back"><a tabindex="0">Back</a></li>',
|
345
|
+
/**
|
346
|
+
* Markup used to wrap drilldown menu. Use a class name for independent styling; the JS applied class: `is-drilldown` is required. Remove the backslash (`\`) if copy and pasting.
|
347
|
+
* @option
|
348
|
+
* @example '<\div class="is-drilldown"><\/div>'
|
349
|
+
*/
|
350
|
+
wrapper: '<div></div>',
|
351
|
+
/**
|
352
|
+
* Adds the parent link to the submenu.
|
353
|
+
* @option
|
354
|
+
* @example false
|
355
|
+
*/
|
356
|
+
parentLink: false,
|
357
|
+
/**
|
358
|
+
* Allow the menu to return to root list on body click.
|
359
|
+
* @option
|
360
|
+
* @example false
|
361
|
+
*/
|
362
|
+
closeOnClick: false
|
363
|
+
// holdOpen: false
|
364
|
+
};
|
365
|
+
|
366
|
+
// Window exports
|
367
|
+
Foundation.plugin(Drilldown, 'Drilldown');
|
368
|
+
|
369
|
+
}(jQuery);
|