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,40 @@
|
|
1
|
+
|
2
|
+
interface JQueryAutocompleteOptions {
|
3
|
+
serviceUrl?: string;
|
4
|
+
lookup?: AutocompleteSuggestion[];
|
5
|
+
lookupFilter? (suggestion: AutocompleteSuggestion, query: string, queryLowercase: string): any;
|
6
|
+
onSelect? (suggestion: AutocompleteSuggestion): void;
|
7
|
+
minChars: number;
|
8
|
+
maxHeight: number;
|
9
|
+
deferRequestBy?: number;
|
10
|
+
width?: number;
|
11
|
+
params?: Object;
|
12
|
+
formatResult? (suggestion: AutocompleteSuggestion, currentValue: string): string;
|
13
|
+
delimiter?: any;
|
14
|
+
zIndex?: number;
|
15
|
+
type?: string;
|
16
|
+
noCache?: bool;
|
17
|
+
onSearchStart? (query: string): void;
|
18
|
+
onSearchComplete? (query: string): void;
|
19
|
+
tabDisabled?: bool;
|
20
|
+
paramName?: string;
|
21
|
+
transformResult? (response: any, originalQuery: string): AutocompleteSuggestion[];
|
22
|
+
autoSelectFirst?: bool;
|
23
|
+
appendTo: any;
|
24
|
+
dataType: string;
|
25
|
+
}
|
26
|
+
|
27
|
+
interface AutocompleteSuggestion {
|
28
|
+
value: string;
|
29
|
+
data: any;
|
30
|
+
}
|
31
|
+
|
32
|
+
interface AutocompleteInstance {
|
33
|
+
setOptions(options: JQueryAutocompleteOptions): void;
|
34
|
+
clear(): void;
|
35
|
+
clearCache(): void;
|
36
|
+
disable(): void;
|
37
|
+
enable(): void;
|
38
|
+
hide(): void;
|
39
|
+
dispose(): void;
|
40
|
+
}
|
@@ -0,0 +1,823 @@
|
|
1
|
+
/**
|
2
|
+
* Ajax Autocomplete for jQuery, version 1.2.9
|
3
|
+
* (c) 2013 Tomas Kirda
|
4
|
+
*
|
5
|
+
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
|
6
|
+
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
/*jslint browser: true, white: true, plusplus: true */
|
11
|
+
/*global define, window, document, jQuery */
|
12
|
+
|
13
|
+
// Expose plugin as an AMD module if AMD loader is present:
|
14
|
+
(function (factory) {
|
15
|
+
'use strict';
|
16
|
+
if (typeof define === 'function' && define.amd) {
|
17
|
+
// AMD. Register as an anonymous module.
|
18
|
+
define(['jquery'], factory);
|
19
|
+
} else {
|
20
|
+
// Browser globals
|
21
|
+
factory(jQuery);
|
22
|
+
}
|
23
|
+
}(function ($) {
|
24
|
+
'use strict';
|
25
|
+
|
26
|
+
var
|
27
|
+
utils = (function () {
|
28
|
+
return {
|
29
|
+
escapeRegExChars: function (value) {
|
30
|
+
return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
31
|
+
},
|
32
|
+
createNode: function (containerClass) {
|
33
|
+
var div = document.createElement('div');
|
34
|
+
div.className = containerClass;
|
35
|
+
div.style.position = 'absolute';
|
36
|
+
div.style.display = 'none';
|
37
|
+
return div;
|
38
|
+
}
|
39
|
+
};
|
40
|
+
}()),
|
41
|
+
|
42
|
+
keys = {
|
43
|
+
ESC: 27,
|
44
|
+
TAB: 9,
|
45
|
+
RETURN: 13,
|
46
|
+
LEFT: 37,
|
47
|
+
UP: 38,
|
48
|
+
RIGHT: 39,
|
49
|
+
DOWN: 40
|
50
|
+
};
|
51
|
+
|
52
|
+
function Autocomplete(el, options) {
|
53
|
+
var noop = function () { },
|
54
|
+
that = this,
|
55
|
+
defaults = {
|
56
|
+
autoSelectFirst: false,
|
57
|
+
appendTo: 'body',
|
58
|
+
serviceUrl: null,
|
59
|
+
lookup: null,
|
60
|
+
onSelect: null,
|
61
|
+
width: 'auto',
|
62
|
+
minChars: 1,
|
63
|
+
maxHeight: 300,
|
64
|
+
deferRequestBy: 0,
|
65
|
+
params: {},
|
66
|
+
formatResult: Autocomplete.formatResult,
|
67
|
+
delimiter: null,
|
68
|
+
zIndex: 9999,
|
69
|
+
type: 'GET',
|
70
|
+
noCache: false,
|
71
|
+
onSearchStart: noop,
|
72
|
+
onSearchComplete: noop,
|
73
|
+
onSearchError: noop,
|
74
|
+
containerClass: 'autocomplete-suggestions',
|
75
|
+
tabDisabled: false,
|
76
|
+
dataType: 'text',
|
77
|
+
currentRequest: null,
|
78
|
+
triggerSelectOnValidInput: true,
|
79
|
+
lookupFilter: function (suggestion, originalQuery, queryLowerCase) {
|
80
|
+
return suggestion.value.toLowerCase().indexOf(queryLowerCase) !== -1;
|
81
|
+
},
|
82
|
+
paramName: 'query',
|
83
|
+
transformResult: function (response) {
|
84
|
+
return typeof response === 'string' ? $.parseJSON(response) : response;
|
85
|
+
}
|
86
|
+
};
|
87
|
+
|
88
|
+
// Shared variables:
|
89
|
+
that.element = el;
|
90
|
+
that.el = $(el);
|
91
|
+
that.suggestions = [];
|
92
|
+
that.badQueries = [];
|
93
|
+
that.selectedIndex = -1;
|
94
|
+
that.currentValue = that.element.value;
|
95
|
+
that.intervalId = 0;
|
96
|
+
that.cachedResponse = {};
|
97
|
+
that.onChangeInterval = null;
|
98
|
+
that.onChange = null;
|
99
|
+
that.isLocal = false;
|
100
|
+
that.suggestionsContainer = null;
|
101
|
+
that.options = $.extend({}, defaults, options);
|
102
|
+
that.classes = {
|
103
|
+
selected: 'autocomplete-selected',
|
104
|
+
suggestion: 'autocomplete-suggestion'
|
105
|
+
};
|
106
|
+
that.hint = null;
|
107
|
+
that.hintValue = '';
|
108
|
+
that.selection = null;
|
109
|
+
|
110
|
+
// Initialize and set options:
|
111
|
+
that.initialize();
|
112
|
+
that.setOptions(options);
|
113
|
+
}
|
114
|
+
|
115
|
+
Autocomplete.utils = utils;
|
116
|
+
|
117
|
+
$.Autocomplete = Autocomplete;
|
118
|
+
|
119
|
+
Autocomplete.formatResult = function (suggestion, currentValue) {
|
120
|
+
var pattern = '(' + utils.escapeRegExChars(currentValue) + ')';
|
121
|
+
|
122
|
+
return suggestion.value.replace(new RegExp(pattern, 'gi'), '<strong>$1<\/strong>');
|
123
|
+
};
|
124
|
+
|
125
|
+
Autocomplete.prototype = {
|
126
|
+
|
127
|
+
killerFn: null,
|
128
|
+
|
129
|
+
initialize: function () {
|
130
|
+
var that = this,
|
131
|
+
suggestionSelector = '.' + that.classes.suggestion,
|
132
|
+
selected = that.classes.selected,
|
133
|
+
options = that.options,
|
134
|
+
container;
|
135
|
+
|
136
|
+
// Remove autocomplete attribute to prevent native suggestions:
|
137
|
+
that.element.setAttribute('autocomplete', 'off');
|
138
|
+
|
139
|
+
that.killerFn = function (e) {
|
140
|
+
if ($(e.target).closest('.' + that.options.containerClass).length === 0) {
|
141
|
+
that.killSuggestions();
|
142
|
+
that.disableKillerFn();
|
143
|
+
}
|
144
|
+
};
|
145
|
+
|
146
|
+
that.suggestionsContainer = Autocomplete.utils.createNode(options.containerClass);
|
147
|
+
|
148
|
+
container = $(that.suggestionsContainer);
|
149
|
+
|
150
|
+
container.appendTo(options.appendTo);
|
151
|
+
|
152
|
+
// Only set width if it was provided:
|
153
|
+
if (options.width !== 'auto') {
|
154
|
+
container.width(options.width);
|
155
|
+
}
|
156
|
+
|
157
|
+
// Listen for mouse over event on suggestions list:
|
158
|
+
container.on('mouseover.autocomplete', suggestionSelector, function () {
|
159
|
+
that.activate($(this).data('index'));
|
160
|
+
});
|
161
|
+
|
162
|
+
// Deselect active element when mouse leaves suggestions container:
|
163
|
+
container.on('mouseout.autocomplete', function () {
|
164
|
+
that.selectedIndex = -1;
|
165
|
+
container.children('.' + selected).removeClass(selected);
|
166
|
+
});
|
167
|
+
|
168
|
+
// Listen for click event on suggestions list:
|
169
|
+
container.on('click.autocomplete', suggestionSelector, function () {
|
170
|
+
that.select($(this).data('index'));
|
171
|
+
});
|
172
|
+
|
173
|
+
that.fixPosition();
|
174
|
+
|
175
|
+
that.fixPositionCapture = function () {
|
176
|
+
if (that.visible) {
|
177
|
+
that.fixPosition();
|
178
|
+
}
|
179
|
+
};
|
180
|
+
|
181
|
+
$(window).on('resize.autocomplete', that.fixPositionCapture);
|
182
|
+
|
183
|
+
that.el.on('keydown.autocomplete', function (e) { that.onKeyPress(e); });
|
184
|
+
that.el.on('keyup.autocomplete', function (e) { that.onKeyUp(e); });
|
185
|
+
that.el.on('blur.autocomplete', function () { that.onBlur(); });
|
186
|
+
that.el.on('focus.autocomplete', function () { that.onFocus(); });
|
187
|
+
that.el.on('change.autocomplete', function (e) { that.onKeyUp(e); });
|
188
|
+
},
|
189
|
+
|
190
|
+
onFocus: function () {
|
191
|
+
var that = this;
|
192
|
+
that.fixPosition();
|
193
|
+
if (that.options.minChars <= that.el.val().length) {
|
194
|
+
that.onValueChange();
|
195
|
+
}
|
196
|
+
},
|
197
|
+
|
198
|
+
onBlur: function () {
|
199
|
+
this.enableKillerFn();
|
200
|
+
},
|
201
|
+
|
202
|
+
setOptions: function (suppliedOptions) {
|
203
|
+
var that = this,
|
204
|
+
options = that.options;
|
205
|
+
|
206
|
+
$.extend(options, suppliedOptions);
|
207
|
+
|
208
|
+
that.isLocal = $.isArray(options.lookup);
|
209
|
+
|
210
|
+
if (that.isLocal) {
|
211
|
+
options.lookup = that.verifySuggestionsFormat(options.lookup);
|
212
|
+
}
|
213
|
+
|
214
|
+
// Adjust height, width and z-index:
|
215
|
+
$(that.suggestionsContainer).css({
|
216
|
+
'max-height': options.maxHeight + 'px',
|
217
|
+
'width': options.width + 'px',
|
218
|
+
'z-index': options.zIndex
|
219
|
+
});
|
220
|
+
},
|
221
|
+
|
222
|
+
clearCache: function () {
|
223
|
+
this.cachedResponse = {};
|
224
|
+
this.badQueries = [];
|
225
|
+
},
|
226
|
+
|
227
|
+
clear: function () {
|
228
|
+
this.clearCache();
|
229
|
+
this.currentValue = '';
|
230
|
+
this.suggestions = [];
|
231
|
+
},
|
232
|
+
|
233
|
+
disable: function () {
|
234
|
+
var that = this;
|
235
|
+
that.disabled = true;
|
236
|
+
if (that.currentRequest) {
|
237
|
+
that.currentRequest.abort();
|
238
|
+
}
|
239
|
+
},
|
240
|
+
|
241
|
+
enable: function () {
|
242
|
+
this.disabled = false;
|
243
|
+
},
|
244
|
+
|
245
|
+
fixPosition: function () {
|
246
|
+
var that = this,
|
247
|
+
offset,
|
248
|
+
styles;
|
249
|
+
|
250
|
+
// Don't adjsut position if custom container has been specified:
|
251
|
+
if (that.options.appendTo !== 'body') {
|
252
|
+
return;
|
253
|
+
}
|
254
|
+
|
255
|
+
offset = that.el.offset();
|
256
|
+
|
257
|
+
styles = {
|
258
|
+
top: (offset.top + that.el.outerHeight()) + 'px',
|
259
|
+
left: offset.left + 'px'
|
260
|
+
};
|
261
|
+
|
262
|
+
if (that.options.width === 'auto') {
|
263
|
+
styles.width = (that.el.outerWidth() - 2) + 'px';
|
264
|
+
}
|
265
|
+
|
266
|
+
$(that.suggestionsContainer).css(styles);
|
267
|
+
},
|
268
|
+
|
269
|
+
enableKillerFn: function () {
|
270
|
+
var that = this;
|
271
|
+
$(document).on('click.autocomplete', that.killerFn);
|
272
|
+
},
|
273
|
+
|
274
|
+
disableKillerFn: function () {
|
275
|
+
var that = this;
|
276
|
+
$(document).off('click.autocomplete', that.killerFn);
|
277
|
+
},
|
278
|
+
|
279
|
+
killSuggestions: function () {
|
280
|
+
var that = this;
|
281
|
+
that.stopKillSuggestions();
|
282
|
+
that.intervalId = window.setInterval(function () {
|
283
|
+
that.hide();
|
284
|
+
that.stopKillSuggestions();
|
285
|
+
}, 50);
|
286
|
+
},
|
287
|
+
|
288
|
+
stopKillSuggestions: function () {
|
289
|
+
window.clearInterval(this.intervalId);
|
290
|
+
},
|
291
|
+
|
292
|
+
isCursorAtEnd: function () {
|
293
|
+
var that = this,
|
294
|
+
valLength = that.el.val().length,
|
295
|
+
selectionStart = that.element.selectionStart,
|
296
|
+
range;
|
297
|
+
|
298
|
+
if (typeof selectionStart === 'number') {
|
299
|
+
return selectionStart === valLength;
|
300
|
+
}
|
301
|
+
if (document.selection) {
|
302
|
+
range = document.selection.createRange();
|
303
|
+
range.moveStart('character', -valLength);
|
304
|
+
return valLength === range.text.length;
|
305
|
+
}
|
306
|
+
return true;
|
307
|
+
},
|
308
|
+
|
309
|
+
onKeyPress: function (e) {
|
310
|
+
var that = this;
|
311
|
+
|
312
|
+
// If suggestions are hidden and user presses arrow down, display suggestions:
|
313
|
+
if (!that.disabled && !that.visible && e.which === keys.DOWN && that.currentValue) {
|
314
|
+
that.suggest();
|
315
|
+
return;
|
316
|
+
}
|
317
|
+
|
318
|
+
if (that.disabled || !that.visible) {
|
319
|
+
return;
|
320
|
+
}
|
321
|
+
|
322
|
+
switch (e.which) {
|
323
|
+
case keys.ESC:
|
324
|
+
that.el.val(that.currentValue);
|
325
|
+
that.hide();
|
326
|
+
break;
|
327
|
+
case keys.RIGHT:
|
328
|
+
if (that.hint && that.options.onHint && that.isCursorAtEnd()) {
|
329
|
+
that.selectHint();
|
330
|
+
break;
|
331
|
+
}
|
332
|
+
return;
|
333
|
+
case keys.TAB:
|
334
|
+
if (that.hint && that.options.onHint) {
|
335
|
+
that.selectHint();
|
336
|
+
return;
|
337
|
+
}
|
338
|
+
// Fall through to RETURN
|
339
|
+
case keys.RETURN:
|
340
|
+
if (that.selectedIndex === -1) {
|
341
|
+
that.hide();
|
342
|
+
return;
|
343
|
+
}
|
344
|
+
that.select(that.selectedIndex);
|
345
|
+
if (e.which === keys.TAB && that.options.tabDisabled === false) {
|
346
|
+
return;
|
347
|
+
}
|
348
|
+
break;
|
349
|
+
case keys.UP:
|
350
|
+
that.moveUp();
|
351
|
+
break;
|
352
|
+
case keys.DOWN:
|
353
|
+
that.moveDown();
|
354
|
+
break;
|
355
|
+
default:
|
356
|
+
return;
|
357
|
+
}
|
358
|
+
|
359
|
+
// Cancel event if function did not return:
|
360
|
+
e.stopImmediatePropagation();
|
361
|
+
e.preventDefault();
|
362
|
+
},
|
363
|
+
|
364
|
+
onKeyUp: function (e) {
|
365
|
+
var that = this;
|
366
|
+
|
367
|
+
if (that.disabled) {
|
368
|
+
return;
|
369
|
+
}
|
370
|
+
|
371
|
+
switch (e.which) {
|
372
|
+
case keys.UP:
|
373
|
+
case keys.DOWN:
|
374
|
+
return;
|
375
|
+
}
|
376
|
+
|
377
|
+
clearInterval(that.onChangeInterval);
|
378
|
+
|
379
|
+
if (that.currentValue !== that.el.val()) {
|
380
|
+
that.findBestHint();
|
381
|
+
if (that.options.deferRequestBy > 0) {
|
382
|
+
// Defer lookup in case when value changes very quickly:
|
383
|
+
that.onChangeInterval = setInterval(function () {
|
384
|
+
that.onValueChange();
|
385
|
+
}, that.options.deferRequestBy);
|
386
|
+
} else {
|
387
|
+
that.onValueChange();
|
388
|
+
}
|
389
|
+
}
|
390
|
+
},
|
391
|
+
|
392
|
+
onValueChange: function () {
|
393
|
+
var that = this,
|
394
|
+
options = that.options,
|
395
|
+
value = that.el.val(),
|
396
|
+
query = that.getQuery(value),
|
397
|
+
index;
|
398
|
+
|
399
|
+
if (that.selection) {
|
400
|
+
that.selection = null;
|
401
|
+
(options.onInvalidateSelection || $.noop).call(that.element);
|
402
|
+
}
|
403
|
+
|
404
|
+
clearInterval(that.onChangeInterval);
|
405
|
+
that.currentValue = value;
|
406
|
+
that.selectedIndex = -1;
|
407
|
+
|
408
|
+
// Check existing suggestion for the match before proceeding:
|
409
|
+
if (options.triggerSelectOnValidInput) {
|
410
|
+
index = that.findSuggestionIndex(query);
|
411
|
+
if (index !== -1) {
|
412
|
+
that.select(index);
|
413
|
+
return;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
if (query.length < options.minChars) {
|
418
|
+
that.hide();
|
419
|
+
} else {
|
420
|
+
that.getSuggestions(query);
|
421
|
+
}
|
422
|
+
},
|
423
|
+
|
424
|
+
findSuggestionIndex: function (query) {
|
425
|
+
var that = this,
|
426
|
+
index = -1,
|
427
|
+
queryLowerCase = query.toLowerCase();
|
428
|
+
|
429
|
+
$.each(that.suggestions, function (i, suggestion) {
|
430
|
+
if (suggestion.value.toLowerCase() === queryLowerCase) {
|
431
|
+
index = i;
|
432
|
+
return false;
|
433
|
+
}
|
434
|
+
});
|
435
|
+
|
436
|
+
return index;
|
437
|
+
},
|
438
|
+
|
439
|
+
getQuery: function (value) {
|
440
|
+
var delimiter = this.options.delimiter,
|
441
|
+
parts;
|
442
|
+
|
443
|
+
if (!delimiter) {
|
444
|
+
return value;
|
445
|
+
}
|
446
|
+
parts = value.split(delimiter);
|
447
|
+
return $.trim(parts[parts.length - 1]);
|
448
|
+
},
|
449
|
+
|
450
|
+
getSuggestionsLocal: function (query) {
|
451
|
+
var that = this,
|
452
|
+
options = that.options,
|
453
|
+
queryLowerCase = query.toLowerCase(),
|
454
|
+
filter = options.lookupFilter,
|
455
|
+
limit = parseInt(options.lookupLimit, 10),
|
456
|
+
data;
|
457
|
+
|
458
|
+
data = {
|
459
|
+
suggestions: $.grep(options.lookup, function (suggestion) {
|
460
|
+
return filter(suggestion, query, queryLowerCase);
|
461
|
+
})
|
462
|
+
};
|
463
|
+
|
464
|
+
if (limit && data.suggestions.length > limit) {
|
465
|
+
data.suggestions = data.suggestions.slice(0, limit);
|
466
|
+
}
|
467
|
+
|
468
|
+
return data;
|
469
|
+
},
|
470
|
+
|
471
|
+
getSuggestions: function (q) {
|
472
|
+
var response,
|
473
|
+
that = this,
|
474
|
+
options = that.options,
|
475
|
+
serviceUrl = options.serviceUrl,
|
476
|
+
data,
|
477
|
+
cacheKey;
|
478
|
+
|
479
|
+
options.params[options.paramName] = q;
|
480
|
+
data = options.ignoreParams ? null : options.params;
|
481
|
+
|
482
|
+
if (that.isLocal) {
|
483
|
+
response = that.getSuggestionsLocal(q);
|
484
|
+
} else {
|
485
|
+
if ($.isFunction(serviceUrl)) {
|
486
|
+
serviceUrl = serviceUrl.call(that.element, q);
|
487
|
+
}
|
488
|
+
cacheKey = serviceUrl + '?' + $.param(data || {});
|
489
|
+
response = that.cachedResponse[cacheKey];
|
490
|
+
}
|
491
|
+
|
492
|
+
if (response && $.isArray(response.suggestions)) {
|
493
|
+
that.suggestions = response.suggestions;
|
494
|
+
that.suggest();
|
495
|
+
} else if (!that.isBadQuery(q)) {
|
496
|
+
if (options.onSearchStart.call(that.element, options.params) === false) {
|
497
|
+
return;
|
498
|
+
}
|
499
|
+
if (that.currentRequest) {
|
500
|
+
that.currentRequest.abort();
|
501
|
+
}
|
502
|
+
that.currentRequest = $.ajax({
|
503
|
+
url: serviceUrl,
|
504
|
+
data: data,
|
505
|
+
type: options.type,
|
506
|
+
dataType: options.dataType
|
507
|
+
}).done(function (data) {
|
508
|
+
that.currentRequest = null;
|
509
|
+
that.processResponse(data, q, cacheKey);
|
510
|
+
options.onSearchComplete.call(that.element, q);
|
511
|
+
}).fail(function (jqXHR, textStatus, errorThrown) {
|
512
|
+
options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
|
513
|
+
});
|
514
|
+
}
|
515
|
+
},
|
516
|
+
|
517
|
+
isBadQuery: function (q) {
|
518
|
+
var badQueries = this.badQueries,
|
519
|
+
i = badQueries.length;
|
520
|
+
|
521
|
+
while (i--) {
|
522
|
+
if (q.indexOf(badQueries[i]) === 0) {
|
523
|
+
return true;
|
524
|
+
}
|
525
|
+
}
|
526
|
+
|
527
|
+
return false;
|
528
|
+
},
|
529
|
+
|
530
|
+
hide: function () {
|
531
|
+
var that = this;
|
532
|
+
that.visible = false;
|
533
|
+
that.selectedIndex = -1;
|
534
|
+
$(that.suggestionsContainer).hide();
|
535
|
+
that.signalHint(null);
|
536
|
+
},
|
537
|
+
|
538
|
+
suggest: function () {
|
539
|
+
if (this.suggestions.length === 0) {
|
540
|
+
this.hide();
|
541
|
+
return;
|
542
|
+
}
|
543
|
+
|
544
|
+
var that = this,
|
545
|
+
options = that.options,
|
546
|
+
formatResult = options.formatResult,
|
547
|
+
value = that.getQuery(that.currentValue),
|
548
|
+
className = that.classes.suggestion,
|
549
|
+
classSelected = that.classes.selected,
|
550
|
+
container = $(that.suggestionsContainer),
|
551
|
+
beforeRender = options.beforeRender,
|
552
|
+
html = '',
|
553
|
+
index,
|
554
|
+
width;
|
555
|
+
|
556
|
+
if (options.triggerSelectOnValidInput) {
|
557
|
+
index = that.findSuggestionIndex(value);
|
558
|
+
if (index !== -1) {
|
559
|
+
that.select(index);
|
560
|
+
return;
|
561
|
+
}
|
562
|
+
}
|
563
|
+
|
564
|
+
// Build suggestions inner HTML:
|
565
|
+
$.each(that.suggestions, function (i, suggestion) {
|
566
|
+
html += '<div class="' + className + '" data-index="' + i + '">' + formatResult(suggestion, value) + '</div>';
|
567
|
+
});
|
568
|
+
|
569
|
+
// If width is auto, adjust width before displaying suggestions,
|
570
|
+
// because if instance was created before input had width, it will be zero.
|
571
|
+
// Also it adjusts if input width has changed.
|
572
|
+
// -2px to account for suggestions border.
|
573
|
+
if (options.width === 'auto') {
|
574
|
+
width = that.el.outerWidth() - 2;
|
575
|
+
container.width(width > 0 ? width : 300);
|
576
|
+
}
|
577
|
+
|
578
|
+
container.html(html);
|
579
|
+
|
580
|
+
// Select first value by default:
|
581
|
+
if (options.autoSelectFirst) {
|
582
|
+
that.selectedIndex = 0;
|
583
|
+
container.children().first().addClass(classSelected);
|
584
|
+
}
|
585
|
+
|
586
|
+
if ($.isFunction(beforeRender)) {
|
587
|
+
beforeRender.call(that.element, container);
|
588
|
+
}
|
589
|
+
|
590
|
+
container.show();
|
591
|
+
that.visible = true;
|
592
|
+
|
593
|
+
that.findBestHint();
|
594
|
+
},
|
595
|
+
|
596
|
+
findBestHint: function () {
|
597
|
+
var that = this,
|
598
|
+
value = that.el.val().toLowerCase(),
|
599
|
+
bestMatch = null;
|
600
|
+
|
601
|
+
if (!value) {
|
602
|
+
return;
|
603
|
+
}
|
604
|
+
|
605
|
+
$.each(that.suggestions, function (i, suggestion) {
|
606
|
+
var foundMatch = suggestion.value.toLowerCase().indexOf(value) === 0;
|
607
|
+
if (foundMatch) {
|
608
|
+
bestMatch = suggestion;
|
609
|
+
}
|
610
|
+
return !foundMatch;
|
611
|
+
});
|
612
|
+
|
613
|
+
that.signalHint(bestMatch);
|
614
|
+
},
|
615
|
+
|
616
|
+
signalHint: function (suggestion) {
|
617
|
+
var hintValue = '',
|
618
|
+
that = this;
|
619
|
+
if (suggestion) {
|
620
|
+
hintValue = that.currentValue + suggestion.value.substr(that.currentValue.length);
|
621
|
+
}
|
622
|
+
if (that.hintValue !== hintValue) {
|
623
|
+
that.hintValue = hintValue;
|
624
|
+
that.hint = suggestion;
|
625
|
+
(this.options.onHint || $.noop)(hintValue);
|
626
|
+
}
|
627
|
+
},
|
628
|
+
|
629
|
+
verifySuggestionsFormat: function (suggestions) {
|
630
|
+
// If suggestions is string array, convert them to supported format:
|
631
|
+
if (suggestions.length && typeof suggestions[0] === 'string') {
|
632
|
+
return $.map(suggestions, function (value) {
|
633
|
+
return { value: value, data: null };
|
634
|
+
});
|
635
|
+
}
|
636
|
+
|
637
|
+
return suggestions;
|
638
|
+
},
|
639
|
+
|
640
|
+
processResponse: function (response, originalQuery, cacheKey) {
|
641
|
+
var that = this,
|
642
|
+
options = that.options,
|
643
|
+
result = options.transformResult(response, originalQuery);
|
644
|
+
|
645
|
+
result.suggestions = that.verifySuggestionsFormat(result.suggestions);
|
646
|
+
|
647
|
+
// Cache results if cache is not disabled:
|
648
|
+
if (!options.noCache) {
|
649
|
+
that.cachedResponse[cacheKey] = result;
|
650
|
+
if (result.suggestions.length === 0) {
|
651
|
+
that.badQueries.push(cacheKey);
|
652
|
+
}
|
653
|
+
}
|
654
|
+
|
655
|
+
// Return if originalQuery is not matching current query:
|
656
|
+
if (originalQuery !== that.getQuery(that.currentValue)) {
|
657
|
+
return;
|
658
|
+
}
|
659
|
+
|
660
|
+
that.suggestions = result.suggestions;
|
661
|
+
that.suggest();
|
662
|
+
},
|
663
|
+
|
664
|
+
activate: function (index) {
|
665
|
+
var that = this,
|
666
|
+
activeItem,
|
667
|
+
selected = that.classes.selected,
|
668
|
+
container = $(that.suggestionsContainer),
|
669
|
+
children = container.children();
|
670
|
+
|
671
|
+
container.children('.' + selected).removeClass(selected);
|
672
|
+
|
673
|
+
that.selectedIndex = index;
|
674
|
+
|
675
|
+
if (that.selectedIndex !== -1 && children.length > that.selectedIndex) {
|
676
|
+
activeItem = children.get(that.selectedIndex);
|
677
|
+
$(activeItem).addClass(selected);
|
678
|
+
return activeItem;
|
679
|
+
}
|
680
|
+
|
681
|
+
return null;
|
682
|
+
},
|
683
|
+
|
684
|
+
selectHint: function () {
|
685
|
+
var that = this,
|
686
|
+
i = $.inArray(that.hint, that.suggestions);
|
687
|
+
|
688
|
+
that.select(i);
|
689
|
+
},
|
690
|
+
|
691
|
+
select: function (i) {
|
692
|
+
var that = this;
|
693
|
+
that.hide();
|
694
|
+
that.onSelect(i);
|
695
|
+
},
|
696
|
+
|
697
|
+
moveUp: function () {
|
698
|
+
var that = this;
|
699
|
+
|
700
|
+
if (that.selectedIndex === -1) {
|
701
|
+
return;
|
702
|
+
}
|
703
|
+
|
704
|
+
if (that.selectedIndex === 0) {
|
705
|
+
$(that.suggestionsContainer).children().first().removeClass(that.classes.selected);
|
706
|
+
that.selectedIndex = -1;
|
707
|
+
that.el.val(that.currentValue);
|
708
|
+
that.findBestHint();
|
709
|
+
return;
|
710
|
+
}
|
711
|
+
|
712
|
+
that.adjustScroll(that.selectedIndex - 1);
|
713
|
+
},
|
714
|
+
|
715
|
+
moveDown: function () {
|
716
|
+
var that = this;
|
717
|
+
|
718
|
+
if (that.selectedIndex === (that.suggestions.length - 1)) {
|
719
|
+
return;
|
720
|
+
}
|
721
|
+
|
722
|
+
that.adjustScroll(that.selectedIndex + 1);
|
723
|
+
},
|
724
|
+
|
725
|
+
adjustScroll: function (index) {
|
726
|
+
var that = this,
|
727
|
+
activeItem = that.activate(index),
|
728
|
+
offsetTop,
|
729
|
+
upperBound,
|
730
|
+
lowerBound,
|
731
|
+
heightDelta = 25;
|
732
|
+
|
733
|
+
if (!activeItem) {
|
734
|
+
return;
|
735
|
+
}
|
736
|
+
|
737
|
+
offsetTop = activeItem.offsetTop;
|
738
|
+
upperBound = $(that.suggestionsContainer).scrollTop();
|
739
|
+
lowerBound = upperBound + that.options.maxHeight - heightDelta;
|
740
|
+
|
741
|
+
if (offsetTop < upperBound) {
|
742
|
+
$(that.suggestionsContainer).scrollTop(offsetTop);
|
743
|
+
} else if (offsetTop > lowerBound) {
|
744
|
+
$(that.suggestionsContainer).scrollTop(offsetTop - that.options.maxHeight + heightDelta);
|
745
|
+
}
|
746
|
+
|
747
|
+
that.el.val(that.getValue(that.suggestions[index].value));
|
748
|
+
that.signalHint(null);
|
749
|
+
},
|
750
|
+
|
751
|
+
onSelect: function (index) {
|
752
|
+
var that = this,
|
753
|
+
onSelectCallback = that.options.onSelect,
|
754
|
+
suggestion = that.suggestions[index];
|
755
|
+
|
756
|
+
that.currentValue = that.getValue(suggestion.value);
|
757
|
+
that.el.val(that.currentValue);
|
758
|
+
that.signalHint(null);
|
759
|
+
that.suggestions = [];
|
760
|
+
that.selection = suggestion;
|
761
|
+
|
762
|
+
if ($.isFunction(onSelectCallback)) {
|
763
|
+
onSelectCallback.call(that.element, suggestion);
|
764
|
+
}
|
765
|
+
},
|
766
|
+
|
767
|
+
getValue: function (value) {
|
768
|
+
var that = this,
|
769
|
+
delimiter = that.options.delimiter,
|
770
|
+
currentValue,
|
771
|
+
parts;
|
772
|
+
|
773
|
+
if (!delimiter) {
|
774
|
+
return value;
|
775
|
+
}
|
776
|
+
|
777
|
+
currentValue = that.currentValue;
|
778
|
+
parts = currentValue.split(delimiter);
|
779
|
+
|
780
|
+
if (parts.length === 1) {
|
781
|
+
return value;
|
782
|
+
}
|
783
|
+
|
784
|
+
return currentValue.substr(0, currentValue.length - parts[parts.length - 1].length) + value;
|
785
|
+
},
|
786
|
+
|
787
|
+
dispose: function () {
|
788
|
+
var that = this;
|
789
|
+
that.el.off('.autocomplete').removeData('autocomplete');
|
790
|
+
that.disableKillerFn();
|
791
|
+
$(window).off('resize.autocomplete', that.fixPositionCapture);
|
792
|
+
$(that.suggestionsContainer).remove();
|
793
|
+
}
|
794
|
+
};
|
795
|
+
|
796
|
+
// Create chainable jQuery plugin:
|
797
|
+
$.fn.autocomplete = function (options, args) {
|
798
|
+
var dataKey = 'autocomplete';
|
799
|
+
// If function invoked without argument return
|
800
|
+
// instance of the first matched element:
|
801
|
+
if (arguments.length === 0) {
|
802
|
+
return this.first().data(dataKey);
|
803
|
+
}
|
804
|
+
|
805
|
+
return this.each(function () {
|
806
|
+
var inputElement = $(this),
|
807
|
+
instance = inputElement.data(dataKey);
|
808
|
+
|
809
|
+
if (typeof options === 'string') {
|
810
|
+
if (instance && typeof instance[options] === 'function') {
|
811
|
+
instance[options](args);
|
812
|
+
}
|
813
|
+
} else {
|
814
|
+
// If instance already exists, destroy it:
|
815
|
+
if (instance && instance.dispose) {
|
816
|
+
instance.dispose();
|
817
|
+
}
|
818
|
+
instance = new Autocomplete(this, options);
|
819
|
+
inputElement.data(dataKey, instance);
|
820
|
+
}
|
821
|
+
});
|
822
|
+
};
|
823
|
+
}));
|