jekyll-theme-mozg 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +21 -0
- data/README.md +104 -0
- data/_includes/mode_switcher.html +5 -0
- data/_includes/post_list.html +51 -0
- data/_includes/post_list_item.html +26 -0
- data/_includes/site-categories.html +7 -0
- data/_includes/site-tags.html +7 -0
- data/_includes/snippet-disqus.html +25 -0
- data/_includes/snippet-facebook-like-button.html +8 -0
- data/_includes/snippet-facebook-page-plugin.html +15 -0
- data/_includes/snippet-facebook-send-button.html +5 -0
- data/_includes/snippet-facebook-setup-SDK.html +9 -0
- data/_includes/snippet-github.html +1 -0
- data/_includes/snippet-google-ads.html +9 -0
- data/_includes/snippet-google-analytics.html +12 -0
- data/_includes/snippet-google-custom-search.html +15 -0
- data/_includes/snippet-google-hangout-button.html +7 -0
- data/_includes/snippet-google-map.html +1 -0
- data/_includes/snippet-google-plus-button.html +7 -0
- data/_includes/snippet-google-setup-SDK.html +6 -0
- data/_includes/snippet-google-tag-manager.html +24 -0
- data/_includes/snippet-jekyll-search.html +17 -0
- data/_includes/snippet-linkedin-share.html +5 -0
- data/_includes/snippet-pagseguro-button-comprar.html +7 -0
- data/_includes/snippet-pagseguro-button-doar.html +8 -0
- data/_includes/snippet-post-date.html +19 -0
- data/_includes/snippet-sidebar-menu.html +75 -0
- data/_includes/snippet-social-plugins.html +27 -0
- data/_includes/snippet-top-menu-1.html +56 -0
- data/_includes/snippet-top-menu-2.html +27 -0
- data/_includes/snippet-twitter-follow-button.html +2 -0
- data/_includes/snippet-twitter-setup-SDK.html +20 -0
- data/_includes/snippet-twitter-tweet-button.html +2 -0
- data/_includes/snippet-twitter.html +19 -0
- data/_includes/tags_footer.html +19 -0
- data/_includes/tags_head.html +53 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +203 -0
- data/_layouts/page.html +40 -0
- data/_layouts/post.html +24 -0
- data/_sass/jekyll-theme-mozg.scss +6 -0
- data/_sass/jekyll-theme-primer.scss +8 -0
- data/_sass/rouge.scss +209 -0
- data/assets/css/bootstrap.css +2 -0
- data/assets/css/bootstrap/Gruntfile.js +511 -0
- data/assets/css/bootstrap/LICENSE +21 -0
- data/assets/css/bootstrap/dist/css/bootstrap-theme.css +587 -0
- data/assets/css/bootstrap/dist/css/bootstrap-theme.css.map +1 -0
- data/assets/css/bootstrap/dist/css/bootstrap-theme.min.css +6 -0
- data/assets/css/bootstrap/dist/css/bootstrap-theme.min.css.map +1 -0
- data/assets/css/bootstrap/dist/css/bootstrap.css +6757 -0
- data/assets/css/bootstrap/dist/css/bootstrap.css.map +1 -0
- data/assets/css/bootstrap/dist/css/bootstrap.min.css +6 -0
- data/assets/css/bootstrap/dist/css/bootstrap.min.css.map +1 -0
- data/assets/css/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/assets/css/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- data/assets/css/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/css/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/css/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/css/bootstrap/dist/js/bootstrap.js +2377 -0
- data/assets/css/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/assets/css/bootstrap/dist/js/npm.js +13 -0
- data/assets/css/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/assets/css/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
- data/assets/css/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/css/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/css/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/css/bootstrap/grunt/.jshintrc +7 -0
- data/assets/css/bootstrap/grunt/bs-commonjs-generator.js +30 -0
- data/assets/css/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
- data/assets/css/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
- data/assets/css/bootstrap/grunt/bs-raw-files-generator.js +44 -0
- data/assets/css/bootstrap/grunt/change-version.js +109 -0
- data/assets/css/bootstrap/grunt/configBridge.json +46 -0
- data/assets/css/bootstrap/grunt/npm-shrinkwrap.json +2679 -0
- data/assets/css/bootstrap/grunt/sauce_browsers.yml +82 -0
- data/assets/css/bootstrap/js/affix.js +162 -0
- data/assets/css/bootstrap/js/alert.js +94 -0
- data/assets/css/bootstrap/js/button.js +125 -0
- data/assets/css/bootstrap/js/carousel.js +237 -0
- data/assets/css/bootstrap/js/collapse.js +212 -0
- data/assets/css/bootstrap/js/dropdown.js +165 -0
- data/assets/css/bootstrap/js/modal.js +339 -0
- data/assets/css/bootstrap/js/popover.js +108 -0
- data/assets/css/bootstrap/js/scrollspy.js +172 -0
- data/assets/css/bootstrap/js/tab.js +155 -0
- data/assets/css/bootstrap/js/tooltip.js +520 -0
- data/assets/css/bootstrap/js/transition.js +59 -0
- data/assets/css/bootstrap/less/alerts.less +73 -0
- data/assets/css/bootstrap/less/badges.less +66 -0
- data/assets/css/bootstrap/less/bootstrap.less +56 -0
- data/assets/css/bootstrap/less/breadcrumbs.less +26 -0
- data/assets/css/bootstrap/less/button-groups.less +244 -0
- data/assets/css/bootstrap/less/buttons.less +166 -0
- data/assets/css/bootstrap/less/carousel.less +270 -0
- data/assets/css/bootstrap/less/close.less +34 -0
- data/assets/css/bootstrap/less/code.less +69 -0
- data/assets/css/bootstrap/less/component-animations.less +33 -0
- data/assets/css/bootstrap/less/dropdowns.less +216 -0
- data/assets/css/bootstrap/less/forms.less +613 -0
- data/assets/css/bootstrap/less/glyphicons.less +305 -0
- data/assets/css/bootstrap/less/grid.less +84 -0
- data/assets/css/bootstrap/less/input-groups.less +171 -0
- data/assets/css/bootstrap/less/jumbotron.less +54 -0
- data/assets/css/bootstrap/less/labels.less +64 -0
- data/assets/css/bootstrap/less/list-group.less +130 -0
- data/assets/css/bootstrap/less/media.less +66 -0
- data/assets/css/bootstrap/less/mixins.less +40 -0
- data/assets/css/bootstrap/less/mixins/alerts.less +14 -0
- data/assets/css/bootstrap/less/mixins/background-variant.less +9 -0
- data/assets/css/bootstrap/less/mixins/border-radius.less +18 -0
- data/assets/css/bootstrap/less/mixins/buttons.less +65 -0
- data/assets/css/bootstrap/less/mixins/center-block.less +7 -0
- data/assets/css/bootstrap/less/mixins/clearfix.less +22 -0
- data/assets/css/bootstrap/less/mixins/forms.less +85 -0
- data/assets/css/bootstrap/less/mixins/gradients.less +59 -0
- data/assets/css/bootstrap/less/mixins/grid-framework.less +91 -0
- data/assets/css/bootstrap/less/mixins/grid.less +122 -0
- data/assets/css/bootstrap/less/mixins/hide-text.less +21 -0
- data/assets/css/bootstrap/less/mixins/image.less +33 -0
- data/assets/css/bootstrap/less/mixins/labels.less +12 -0
- data/assets/css/bootstrap/less/mixins/list-group.less +30 -0
- data/assets/css/bootstrap/less/mixins/nav-divider.less +10 -0
- data/assets/css/bootstrap/less/mixins/nav-vertical-align.less +9 -0
- data/assets/css/bootstrap/less/mixins/opacity.less +8 -0
- data/assets/css/bootstrap/less/mixins/pagination.less +24 -0
- data/assets/css/bootstrap/less/mixins/panels.less +24 -0
- data/assets/css/bootstrap/less/mixins/progress-bar.less +10 -0
- data/assets/css/bootstrap/less/mixins/reset-filter.less +8 -0
- data/assets/css/bootstrap/less/mixins/reset-text.less +18 -0
- data/assets/css/bootstrap/less/mixins/resize.less +6 -0
- data/assets/css/bootstrap/less/mixins/responsive-visibility.less +15 -0
- data/assets/css/bootstrap/less/mixins/size.less +10 -0
- data/assets/css/bootstrap/less/mixins/tab-focus.less +9 -0
- data/assets/css/bootstrap/less/mixins/table-row.less +28 -0
- data/assets/css/bootstrap/less/mixins/text-emphasis.less +9 -0
- data/assets/css/bootstrap/less/mixins/text-overflow.less +8 -0
- data/assets/css/bootstrap/less/mixins/vendor-prefixes.less +227 -0
- data/assets/css/bootstrap/less/modals.less +150 -0
- data/assets/css/bootstrap/less/navbar.less +660 -0
- data/assets/css/bootstrap/less/navs.less +242 -0
- data/assets/css/bootstrap/less/normalize.less +424 -0
- data/assets/css/bootstrap/less/pager.less +54 -0
- data/assets/css/bootstrap/less/pagination.less +89 -0
- data/assets/css/bootstrap/less/panels.less +271 -0
- data/assets/css/bootstrap/less/popovers.less +131 -0
- data/assets/css/bootstrap/less/print.less +101 -0
- data/assets/css/bootstrap/less/progress-bars.less +87 -0
- data/assets/css/bootstrap/less/responsive-embed.less +35 -0
- data/assets/css/bootstrap/less/responsive-utilities.less +194 -0
- data/assets/css/bootstrap/less/scaffolding.less +161 -0
- data/assets/css/bootstrap/less/tables.less +234 -0
- data/assets/css/bootstrap/less/theme.less +291 -0
- data/assets/css/bootstrap/less/thumbnails.less +36 -0
- data/assets/css/bootstrap/less/tooltip.less +101 -0
- data/assets/css/bootstrap/less/type.less +302 -0
- data/assets/css/bootstrap/less/utilities.less +55 -0
- data/assets/css/bootstrap/less/variables.less +869 -0
- data/assets/css/bootstrap/less/wells.less +29 -0
- data/assets/css/bootstrap/package.json +144 -0
- data/assets/css/style.scss +4 -0
- data/assets/css/theme.css +7791 -0
- data/assets/fonts/fakt/Fakt-Blond.woff2 +0 -0
- data/assets/fonts/fakt/Fakt-BlondItalic.woff2 +0 -0
- data/assets/fonts/fakt/Fakt-SemiBold.woff2 +0 -0
- data/assets/fonts/theme-website.woff +0 -0
- data/assets/images/backgrounds/mascote-cerebrum-3d.png +0 -0
- data/assets/images/logos/logo.svg +37 -0
- data/assets/images/logos/logo_32_32.png +0 -0
- data/assets/images/logos/theme-logo-green.png +0 -0
- data/assets/images/logos/theme-logo-white.png +0 -0
- data/assets/images/rocket.png +0 -0
- data/assets/javascript/anchor-js/.eslintrc +77 -0
- data/assets/javascript/anchor-js/.gitattributes +2 -0
- data/assets/javascript/anchor-js/.npmignore +4 -0
- data/assets/javascript/anchor-js/.travis.yml +6 -0
- data/assets/javascript/anchor-js/anchor.js +335 -0
- data/assets/javascript/anchor-js/anchor.min.js +6 -0
- data/assets/javascript/anchor-js/banner.js +17 -0
- data/assets/javascript/anchor-js/docs/anchor.js +335 -0
- data/assets/javascript/anchor-js/docs/favicon.ico +0 -0
- data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.eot +0 -0
- data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.svg +11 -0
- data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.ttf +0 -0
- data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.woff +0 -0
- data/assets/javascript/anchor-js/docs/fonts/fonts.css +24 -0
- data/assets/javascript/anchor-js/docs/grunticon/grunticon.loader.js +3 -0
- data/assets/javascript/anchor-js/docs/grunticon/icons.data.png.css +5 -0
- data/assets/javascript/anchor-js/docs/grunticon/icons.data.svg.css +5 -0
- data/assets/javascript/anchor-js/docs/grunticon/icons.fallback.css +5 -0
- data/assets/javascript/anchor-js/docs/grunticon/png/grunticon-link.png +0 -0
- data/assets/javascript/anchor-js/docs/img/anchoring-links.png +0 -0
- data/assets/javascript/anchor-js/docs/img/anchorjs_logo.png +0 -0
- data/assets/javascript/anchor-js/docs/img/anchorlinks2.png +0 -0
- data/assets/javascript/anchor-js/docs/img/gh-link.svg +9 -0
- data/assets/javascript/anchor-js/docs/img/gh_link.svg +9 -0
- data/assets/javascript/anchor-js/docs/img/hyperlink.svg +9 -0
- data/assets/javascript/anchor-js/docs/img/link.svg +6 -0
- data/assets/javascript/anchor-js/docs/img/mini-logo.png +0 -0
- data/assets/javascript/anchor-js/docs/img/primer-md.png +0 -0
- data/assets/javascript/anchor-js/docs/scripts.js +12 -0
- data/assets/javascript/anchor-js/docs/styles.css +494 -0
- data/assets/javascript/jquery-lazy/LICENSE +375 -0
- data/assets/javascript/jquery-lazy/bower.json +48 -0
- data/assets/javascript/jquery-lazy/gulpfile.js +150 -0
- data/assets/javascript/jquery-lazy/jquery.lazy.js +870 -0
- data/assets/javascript/jquery-lazy/jquery.lazy.min.js +2 -0
- data/assets/javascript/jquery-lazy/jquery.lazy.plugins.js +580 -0
- data/assets/javascript/jquery-lazy/jquery.lazy.plugins.min.js +2 -0
- data/assets/javascript/jquery-lazy/package.json +125 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.ajax.js +73 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.ajax.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.av.js +115 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.av.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.iframe.js +81 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.iframe.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.noop.js +30 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.noop.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.picture.js +187 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.picture.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.script.js +27 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.script.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.vimeo.js +30 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.vimeo.min.js +2 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.youtube.js +30 -0
- data/assets/javascript/jquery-lazy/plugins/jquery.lazy.youtube.min.js +2 -0
- data/assets/javascript/jquery/AUTHORS.txt +301 -0
- data/assets/javascript/jquery/LICENSE.txt +36 -0
- data/assets/javascript/jquery/bower.json +14 -0
- data/assets/javascript/jquery/dist/core.js +476 -0
- data/assets/javascript/jquery/dist/jquery.js +10253 -0
- data/assets/javascript/jquery/dist/jquery.min.js +4 -0
- data/assets/javascript/jquery/dist/jquery.min.map +1 -0
- data/assets/javascript/jquery/dist/jquery.slim.js +8160 -0
- data/assets/javascript/jquery/dist/jquery.slim.min.js +4 -0
- data/assets/javascript/jquery/dist/jquery.slim.min.map +1 -0
- data/assets/javascript/jquery/external/sizzle/LICENSE.txt +36 -0
- data/assets/javascript/jquery/external/sizzle/dist/sizzle.js +2272 -0
- data/assets/javascript/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/assets/javascript/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/assets/javascript/jquery/package.json +162 -0
- data/assets/javascript/jquery/src/.eslintrc.json +5 -0
- data/assets/javascript/jquery/src/ajax.js +855 -0
- data/assets/javascript/jquery/src/ajax/jsonp.js +102 -0
- data/assets/javascript/jquery/src/ajax/load.js +76 -0
- data/assets/javascript/jquery/src/ajax/parseXML.js +30 -0
- data/assets/javascript/jquery/src/ajax/script.js +77 -0
- data/assets/javascript/jquery/src/ajax/var/location.js +5 -0
- data/assets/javascript/jquery/src/ajax/var/nonce.js +7 -0
- data/assets/javascript/jquery/src/ajax/var/rquery.js +5 -0
- data/assets/javascript/jquery/src/ajax/xhr.js +169 -0
- data/assets/javascript/jquery/src/attributes.js +13 -0
- data/assets/javascript/jquery/src/attributes/attr.js +141 -0
- data/assets/javascript/jquery/src/attributes/classes.js +174 -0
- data/assets/javascript/jquery/src/attributes/prop.js +143 -0
- data/assets/javascript/jquery/src/attributes/support.js +33 -0
- data/assets/javascript/jquery/src/attributes/val.js +190 -0
- data/assets/javascript/jquery/src/callbacks.js +234 -0
- data/assets/javascript/jquery/src/core.js +476 -0
- data/assets/javascript/jquery/src/core/DOMEval.js +16 -0
- data/assets/javascript/jquery/src/core/access.js +70 -0
- data/assets/javascript/jquery/src/core/init.js +128 -0
- data/assets/javascript/jquery/src/core/nodeName.js +13 -0
- data/assets/javascript/jquery/src/core/parseHTML.js +65 -0
- data/assets/javascript/jquery/src/core/ready-no-deferred.js +96 -0
- data/assets/javascript/jquery/src/core/ready.js +86 -0
- data/assets/javascript/jquery/src/core/readyException.js +13 -0
- data/assets/javascript/jquery/src/core/stripAndCollapse.js +14 -0
- data/assets/javascript/jquery/src/core/support.js +20 -0
- data/assets/javascript/jquery/src/core/var/rsingleTag.js +6 -0
- data/assets/javascript/jquery/src/css.js +438 -0
- data/assets/javascript/jquery/src/css/addGetHookIf.js +26 -0
- data/assets/javascript/jquery/src/css/adjustCSS.js +71 -0
- data/assets/javascript/jquery/src/css/curCSS.js +65 -0
- data/assets/javascript/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/assets/javascript/jquery/src/css/showHide.js +105 -0
- data/assets/javascript/jquery/src/css/support.js +89 -0
- data/assets/javascript/jquery/src/css/var/cssExpand.js +5 -0
- data/assets/javascript/jquery/src/css/var/getStyles.js +17 -0
- data/assets/javascript/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/assets/javascript/jquery/src/css/var/rmargin.js +5 -0
- data/assets/javascript/jquery/src/css/var/rnumnonpx.js +7 -0
- data/assets/javascript/jquery/src/css/var/swap.js +26 -0
- data/assets/javascript/jquery/src/data.js +179 -0
- data/assets/javascript/jquery/src/data/Data.js +161 -0
- data/assets/javascript/jquery/src/data/var/acceptData.js +19 -0
- data/assets/javascript/jquery/src/data/var/dataPriv.js +7 -0
- data/assets/javascript/jquery/src/data/var/dataUser.js +7 -0
- data/assets/javascript/jquery/src/deferred.js +391 -0
- data/assets/javascript/jquery/src/deferred/exceptionHook.js +21 -0
- data/assets/javascript/jquery/src/deprecated.js +40 -0
- data/assets/javascript/jquery/src/dimensions.js +56 -0
- data/assets/javascript/jquery/src/effects.js +699 -0
- data/assets/javascript/jquery/src/effects/Tween.js +123 -0
- data/assets/javascript/jquery/src/effects/animatedSelector.js +15 -0
- data/assets/javascript/jquery/src/event.js +746 -0
- data/assets/javascript/jquery/src/event/ajax.js +22 -0
- data/assets/javascript/jquery/src/event/alias.js +29 -0
- data/assets/javascript/jquery/src/event/focusin.js +55 -0
- data/assets/javascript/jquery/src/event/support.js +11 -0
- data/assets/javascript/jquery/src/event/trigger.js +185 -0
- data/assets/javascript/jquery/src/exports/amd.js +26 -0
- data/assets/javascript/jquery/src/exports/global.js +34 -0
- data/assets/javascript/jquery/src/jquery.js +41 -0
- data/assets/javascript/jquery/src/manipulation.js +488 -0
- data/assets/javascript/jquery/src/manipulation/_evalUrl.js +23 -0
- data/assets/javascript/jquery/src/manipulation/buildFragment.js +104 -0
- data/assets/javascript/jquery/src/manipulation/getAll.js +32 -0
- data/assets/javascript/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/assets/javascript/jquery/src/manipulation/support.js +35 -0
- data/assets/javascript/jquery/src/manipulation/var/rcheckableType.js +5 -0
- data/assets/javascript/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/assets/javascript/jquery/src/manipulation/var/rtagName.js +5 -0
- data/assets/javascript/jquery/src/manipulation/wrapMap.js +29 -0
- data/assets/javascript/jquery/src/offset.js +229 -0
- data/assets/javascript/jquery/src/queue.js +145 -0
- data/assets/javascript/jquery/src/queue/delay.js +24 -0
- data/assets/javascript/jquery/src/selector-native.js +237 -0
- data/assets/javascript/jquery/src/selector-sizzle.js +19 -0
- data/assets/javascript/jquery/src/selector.js +3 -0
- data/assets/javascript/jquery/src/serialize.js +130 -0
- data/assets/javascript/jquery/src/traversing.js +191 -0
- data/assets/javascript/jquery/src/traversing/findFilter.js +106 -0
- data/assets/javascript/jquery/src/traversing/var/dir.js +22 -0
- data/assets/javascript/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/assets/javascript/jquery/src/traversing/var/siblings.js +17 -0
- data/assets/javascript/jquery/src/var/ObjectFunctionString.js +7 -0
- data/assets/javascript/jquery/src/var/arr.js +5 -0
- data/assets/javascript/jquery/src/var/class2type.js +6 -0
- data/assets/javascript/jquery/src/var/concat.js +7 -0
- data/assets/javascript/jquery/src/var/document.js +5 -0
- data/assets/javascript/jquery/src/var/documentElement.js +7 -0
- data/assets/javascript/jquery/src/var/fnToString.js +7 -0
- data/assets/javascript/jquery/src/var/getProto.js +5 -0
- data/assets/javascript/jquery/src/var/hasOwn.js +7 -0
- data/assets/javascript/jquery/src/var/indexOf.js +7 -0
- data/assets/javascript/jquery/src/var/pnum.js +5 -0
- data/assets/javascript/jquery/src/var/push.js +7 -0
- data/assets/javascript/jquery/src/var/rcssNum.js +9 -0
- data/assets/javascript/jquery/src/var/rnothtmlwhite.js +8 -0
- data/assets/javascript/jquery/src/var/slice.js +7 -0
- data/assets/javascript/jquery/src/var/support.js +6 -0
- data/assets/javascript/jquery/src/var/toString.js +7 -0
- data/assets/javascript/jquery/src/wrap.js +77 -0
- data/assets/javascript/velocity-animate/package.json +104 -0
- data/assets/javascript/velocity-animate/velocity.js +4768 -0
- data/assets/javascript/velocity-animate/velocity.min.js +4 -0
- data/assets/javascript/velocity-animate/velocity.ui.js +804 -0
- data/assets/javascript/velocity-animate/velocity.ui.min.js +1 -0
- data/assets/js/0-bootstrap.min.js +7 -0
- data/assets/js/0-jquery.ba-postmessage.min.js +20 -0
- data/assets/js/0-jquery.lazy.min.js +2 -0
- data/assets/js/0-velocity.js +4 -0
- data/assets/js/application.js +103 -0
- data/assets/js/internal/listAndPagi.js +38 -0
- data/assets/js/internal/pagination.js +11 -0
- data/assets/js/internal/search.js +65 -0
- data/assets/js/internal/utils.js +128 -0
- data/assets/js/jquery.js +5 -0
- data/assets/js/web/libs/lunr.js/0.6.0/lunr.min.js +7 -0
- metadata +461 -0
@@ -0,0 +1,339 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: modal.js v3.3.7
|
3
|
+
* http://getbootstrap.com/javascript/#modals
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2016 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// MODAL CLASS DEFINITION
|
14
|
+
// ======================
|
15
|
+
|
16
|
+
var Modal = function (element, options) {
|
17
|
+
this.options = options
|
18
|
+
this.$body = $(document.body)
|
19
|
+
this.$element = $(element)
|
20
|
+
this.$dialog = this.$element.find('.modal-dialog')
|
21
|
+
this.$backdrop = null
|
22
|
+
this.isShown = null
|
23
|
+
this.originalBodyPad = null
|
24
|
+
this.scrollbarWidth = 0
|
25
|
+
this.ignoreBackdropClick = false
|
26
|
+
|
27
|
+
if (this.options.remote) {
|
28
|
+
this.$element
|
29
|
+
.find('.modal-content')
|
30
|
+
.load(this.options.remote, $.proxy(function () {
|
31
|
+
this.$element.trigger('loaded.bs.modal')
|
32
|
+
}, this))
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
Modal.VERSION = '3.3.7'
|
37
|
+
|
38
|
+
Modal.TRANSITION_DURATION = 300
|
39
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150
|
40
|
+
|
41
|
+
Modal.DEFAULTS = {
|
42
|
+
backdrop: true,
|
43
|
+
keyboard: true,
|
44
|
+
show: true
|
45
|
+
}
|
46
|
+
|
47
|
+
Modal.prototype.toggle = function (_relatedTarget) {
|
48
|
+
return this.isShown ? this.hide() : this.show(_relatedTarget)
|
49
|
+
}
|
50
|
+
|
51
|
+
Modal.prototype.show = function (_relatedTarget) {
|
52
|
+
var that = this
|
53
|
+
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
|
54
|
+
|
55
|
+
this.$element.trigger(e)
|
56
|
+
|
57
|
+
if (this.isShown || e.isDefaultPrevented()) return
|
58
|
+
|
59
|
+
this.isShown = true
|
60
|
+
|
61
|
+
this.checkScrollbar()
|
62
|
+
this.setScrollbar()
|
63
|
+
this.$body.addClass('modal-open')
|
64
|
+
|
65
|
+
this.escape()
|
66
|
+
this.resize()
|
67
|
+
|
68
|
+
this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
|
69
|
+
|
70
|
+
this.$dialog.on('mousedown.dismiss.bs.modal', function () {
|
71
|
+
that.$element.one('mouseup.dismiss.bs.modal', function (e) {
|
72
|
+
if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true
|
73
|
+
})
|
74
|
+
})
|
75
|
+
|
76
|
+
this.backdrop(function () {
|
77
|
+
var transition = $.support.transition && that.$element.hasClass('fade')
|
78
|
+
|
79
|
+
if (!that.$element.parent().length) {
|
80
|
+
that.$element.appendTo(that.$body) // don't move modals dom position
|
81
|
+
}
|
82
|
+
|
83
|
+
that.$element
|
84
|
+
.show()
|
85
|
+
.scrollTop(0)
|
86
|
+
|
87
|
+
that.adjustDialog()
|
88
|
+
|
89
|
+
if (transition) {
|
90
|
+
that.$element[0].offsetWidth // force reflow
|
91
|
+
}
|
92
|
+
|
93
|
+
that.$element.addClass('in')
|
94
|
+
|
95
|
+
that.enforceFocus()
|
96
|
+
|
97
|
+
var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
|
98
|
+
|
99
|
+
transition ?
|
100
|
+
that.$dialog // wait for modal to slide in
|
101
|
+
.one('bsTransitionEnd', function () {
|
102
|
+
that.$element.trigger('focus').trigger(e)
|
103
|
+
})
|
104
|
+
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
|
105
|
+
that.$element.trigger('focus').trigger(e)
|
106
|
+
})
|
107
|
+
}
|
108
|
+
|
109
|
+
Modal.prototype.hide = function (e) {
|
110
|
+
if (e) e.preventDefault()
|
111
|
+
|
112
|
+
e = $.Event('hide.bs.modal')
|
113
|
+
|
114
|
+
this.$element.trigger(e)
|
115
|
+
|
116
|
+
if (!this.isShown || e.isDefaultPrevented()) return
|
117
|
+
|
118
|
+
this.isShown = false
|
119
|
+
|
120
|
+
this.escape()
|
121
|
+
this.resize()
|
122
|
+
|
123
|
+
$(document).off('focusin.bs.modal')
|
124
|
+
|
125
|
+
this.$element
|
126
|
+
.removeClass('in')
|
127
|
+
.off('click.dismiss.bs.modal')
|
128
|
+
.off('mouseup.dismiss.bs.modal')
|
129
|
+
|
130
|
+
this.$dialog.off('mousedown.dismiss.bs.modal')
|
131
|
+
|
132
|
+
$.support.transition && this.$element.hasClass('fade') ?
|
133
|
+
this.$element
|
134
|
+
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
|
135
|
+
.emulateTransitionEnd(Modal.TRANSITION_DURATION) :
|
136
|
+
this.hideModal()
|
137
|
+
}
|
138
|
+
|
139
|
+
Modal.prototype.enforceFocus = function () {
|
140
|
+
$(document)
|
141
|
+
.off('focusin.bs.modal') // guard against infinite focus loop
|
142
|
+
.on('focusin.bs.modal', $.proxy(function (e) {
|
143
|
+
if (document !== e.target &&
|
144
|
+
this.$element[0] !== e.target &&
|
145
|
+
!this.$element.has(e.target).length) {
|
146
|
+
this.$element.trigger('focus')
|
147
|
+
}
|
148
|
+
}, this))
|
149
|
+
}
|
150
|
+
|
151
|
+
Modal.prototype.escape = function () {
|
152
|
+
if (this.isShown && this.options.keyboard) {
|
153
|
+
this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
|
154
|
+
e.which == 27 && this.hide()
|
155
|
+
}, this))
|
156
|
+
} else if (!this.isShown) {
|
157
|
+
this.$element.off('keydown.dismiss.bs.modal')
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
Modal.prototype.resize = function () {
|
162
|
+
if (this.isShown) {
|
163
|
+
$(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
|
164
|
+
} else {
|
165
|
+
$(window).off('resize.bs.modal')
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
Modal.prototype.hideModal = function () {
|
170
|
+
var that = this
|
171
|
+
this.$element.hide()
|
172
|
+
this.backdrop(function () {
|
173
|
+
that.$body.removeClass('modal-open')
|
174
|
+
that.resetAdjustments()
|
175
|
+
that.resetScrollbar()
|
176
|
+
that.$element.trigger('hidden.bs.modal')
|
177
|
+
})
|
178
|
+
}
|
179
|
+
|
180
|
+
Modal.prototype.removeBackdrop = function () {
|
181
|
+
this.$backdrop && this.$backdrop.remove()
|
182
|
+
this.$backdrop = null
|
183
|
+
}
|
184
|
+
|
185
|
+
Modal.prototype.backdrop = function (callback) {
|
186
|
+
var that = this
|
187
|
+
var animate = this.$element.hasClass('fade') ? 'fade' : ''
|
188
|
+
|
189
|
+
if (this.isShown && this.options.backdrop) {
|
190
|
+
var doAnimate = $.support.transition && animate
|
191
|
+
|
192
|
+
this.$backdrop = $(document.createElement('div'))
|
193
|
+
.addClass('modal-backdrop ' + animate)
|
194
|
+
.appendTo(this.$body)
|
195
|
+
|
196
|
+
this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
|
197
|
+
if (this.ignoreBackdropClick) {
|
198
|
+
this.ignoreBackdropClick = false
|
199
|
+
return
|
200
|
+
}
|
201
|
+
if (e.target !== e.currentTarget) return
|
202
|
+
this.options.backdrop == 'static'
|
203
|
+
? this.$element[0].focus()
|
204
|
+
: this.hide()
|
205
|
+
}, this))
|
206
|
+
|
207
|
+
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
208
|
+
|
209
|
+
this.$backdrop.addClass('in')
|
210
|
+
|
211
|
+
if (!callback) return
|
212
|
+
|
213
|
+
doAnimate ?
|
214
|
+
this.$backdrop
|
215
|
+
.one('bsTransitionEnd', callback)
|
216
|
+
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
|
217
|
+
callback()
|
218
|
+
|
219
|
+
} else if (!this.isShown && this.$backdrop) {
|
220
|
+
this.$backdrop.removeClass('in')
|
221
|
+
|
222
|
+
var callbackRemove = function () {
|
223
|
+
that.removeBackdrop()
|
224
|
+
callback && callback()
|
225
|
+
}
|
226
|
+
$.support.transition && this.$element.hasClass('fade') ?
|
227
|
+
this.$backdrop
|
228
|
+
.one('bsTransitionEnd', callbackRemove)
|
229
|
+
.emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
|
230
|
+
callbackRemove()
|
231
|
+
|
232
|
+
} else if (callback) {
|
233
|
+
callback()
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
// these following methods are used to handle overflowing modals
|
238
|
+
|
239
|
+
Modal.prototype.handleUpdate = function () {
|
240
|
+
this.adjustDialog()
|
241
|
+
}
|
242
|
+
|
243
|
+
Modal.prototype.adjustDialog = function () {
|
244
|
+
var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
|
245
|
+
|
246
|
+
this.$element.css({
|
247
|
+
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
|
248
|
+
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
|
249
|
+
})
|
250
|
+
}
|
251
|
+
|
252
|
+
Modal.prototype.resetAdjustments = function () {
|
253
|
+
this.$element.css({
|
254
|
+
paddingLeft: '',
|
255
|
+
paddingRight: ''
|
256
|
+
})
|
257
|
+
}
|
258
|
+
|
259
|
+
Modal.prototype.checkScrollbar = function () {
|
260
|
+
var fullWindowWidth = window.innerWidth
|
261
|
+
if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
|
262
|
+
var documentElementRect = document.documentElement.getBoundingClientRect()
|
263
|
+
fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)
|
264
|
+
}
|
265
|
+
this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth
|
266
|
+
this.scrollbarWidth = this.measureScrollbar()
|
267
|
+
}
|
268
|
+
|
269
|
+
Modal.prototype.setScrollbar = function () {
|
270
|
+
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
|
271
|
+
this.originalBodyPad = document.body.style.paddingRight || ''
|
272
|
+
if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
|
273
|
+
}
|
274
|
+
|
275
|
+
Modal.prototype.resetScrollbar = function () {
|
276
|
+
this.$body.css('padding-right', this.originalBodyPad)
|
277
|
+
}
|
278
|
+
|
279
|
+
Modal.prototype.measureScrollbar = function () { // thx walsh
|
280
|
+
var scrollDiv = document.createElement('div')
|
281
|
+
scrollDiv.className = 'modal-scrollbar-measure'
|
282
|
+
this.$body.append(scrollDiv)
|
283
|
+
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
|
284
|
+
this.$body[0].removeChild(scrollDiv)
|
285
|
+
return scrollbarWidth
|
286
|
+
}
|
287
|
+
|
288
|
+
|
289
|
+
// MODAL PLUGIN DEFINITION
|
290
|
+
// =======================
|
291
|
+
|
292
|
+
function Plugin(option, _relatedTarget) {
|
293
|
+
return this.each(function () {
|
294
|
+
var $this = $(this)
|
295
|
+
var data = $this.data('bs.modal')
|
296
|
+
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
297
|
+
|
298
|
+
if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
|
299
|
+
if (typeof option == 'string') data[option](_relatedTarget)
|
300
|
+
else if (options.show) data.show(_relatedTarget)
|
301
|
+
})
|
302
|
+
}
|
303
|
+
|
304
|
+
var old = $.fn.modal
|
305
|
+
|
306
|
+
$.fn.modal = Plugin
|
307
|
+
$.fn.modal.Constructor = Modal
|
308
|
+
|
309
|
+
|
310
|
+
// MODAL NO CONFLICT
|
311
|
+
// =================
|
312
|
+
|
313
|
+
$.fn.modal.noConflict = function () {
|
314
|
+
$.fn.modal = old
|
315
|
+
return this
|
316
|
+
}
|
317
|
+
|
318
|
+
|
319
|
+
// MODAL DATA-API
|
320
|
+
// ==============
|
321
|
+
|
322
|
+
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
|
323
|
+
var $this = $(this)
|
324
|
+
var href = $this.attr('href')
|
325
|
+
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
|
326
|
+
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
327
|
+
|
328
|
+
if ($this.is('a')) e.preventDefault()
|
329
|
+
|
330
|
+
$target.one('show.bs.modal', function (showEvent) {
|
331
|
+
if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
|
332
|
+
$target.one('hidden.bs.modal', function () {
|
333
|
+
$this.is(':visible') && $this.trigger('focus')
|
334
|
+
})
|
335
|
+
})
|
336
|
+
Plugin.call($target, option, this)
|
337
|
+
})
|
338
|
+
|
339
|
+
}(jQuery);
|
@@ -0,0 +1,108 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: popover.js v3.3.7
|
3
|
+
* http://getbootstrap.com/javascript/#popovers
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2016 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// POPOVER PUBLIC CLASS DEFINITION
|
14
|
+
// ===============================
|
15
|
+
|
16
|
+
var Popover = function (element, options) {
|
17
|
+
this.init('popover', element, options)
|
18
|
+
}
|
19
|
+
|
20
|
+
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
21
|
+
|
22
|
+
Popover.VERSION = '3.3.7'
|
23
|
+
|
24
|
+
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
25
|
+
placement: 'right',
|
26
|
+
trigger: 'click',
|
27
|
+
content: '',
|
28
|
+
template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
|
29
|
+
})
|
30
|
+
|
31
|
+
|
32
|
+
// NOTE: POPOVER EXTENDS tooltip.js
|
33
|
+
// ================================
|
34
|
+
|
35
|
+
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
|
36
|
+
|
37
|
+
Popover.prototype.constructor = Popover
|
38
|
+
|
39
|
+
Popover.prototype.getDefaults = function () {
|
40
|
+
return Popover.DEFAULTS
|
41
|
+
}
|
42
|
+
|
43
|
+
Popover.prototype.setContent = function () {
|
44
|
+
var $tip = this.tip()
|
45
|
+
var title = this.getTitle()
|
46
|
+
var content = this.getContent()
|
47
|
+
|
48
|
+
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
|
49
|
+
$tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
|
50
|
+
this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
|
51
|
+
](content)
|
52
|
+
|
53
|
+
$tip.removeClass('fade top bottom left right in')
|
54
|
+
|
55
|
+
// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
|
56
|
+
// this manually by checking the contents.
|
57
|
+
if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
|
58
|
+
}
|
59
|
+
|
60
|
+
Popover.prototype.hasContent = function () {
|
61
|
+
return this.getTitle() || this.getContent()
|
62
|
+
}
|
63
|
+
|
64
|
+
Popover.prototype.getContent = function () {
|
65
|
+
var $e = this.$element
|
66
|
+
var o = this.options
|
67
|
+
|
68
|
+
return $e.attr('data-content')
|
69
|
+
|| (typeof o.content == 'function' ?
|
70
|
+
o.content.call($e[0]) :
|
71
|
+
o.content)
|
72
|
+
}
|
73
|
+
|
74
|
+
Popover.prototype.arrow = function () {
|
75
|
+
return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
// POPOVER PLUGIN DEFINITION
|
80
|
+
// =========================
|
81
|
+
|
82
|
+
function Plugin(option) {
|
83
|
+
return this.each(function () {
|
84
|
+
var $this = $(this)
|
85
|
+
var data = $this.data('bs.popover')
|
86
|
+
var options = typeof option == 'object' && option
|
87
|
+
|
88
|
+
if (!data && /destroy|hide/.test(option)) return
|
89
|
+
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
|
90
|
+
if (typeof option == 'string') data[option]()
|
91
|
+
})
|
92
|
+
}
|
93
|
+
|
94
|
+
var old = $.fn.popover
|
95
|
+
|
96
|
+
$.fn.popover = Plugin
|
97
|
+
$.fn.popover.Constructor = Popover
|
98
|
+
|
99
|
+
|
100
|
+
// POPOVER NO CONFLICT
|
101
|
+
// ===================
|
102
|
+
|
103
|
+
$.fn.popover.noConflict = function () {
|
104
|
+
$.fn.popover = old
|
105
|
+
return this
|
106
|
+
}
|
107
|
+
|
108
|
+
}(jQuery);
|
@@ -0,0 +1,172 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: scrollspy.js v3.3.7
|
3
|
+
* http://getbootstrap.com/javascript/#scrollspy
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2016 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// SCROLLSPY CLASS DEFINITION
|
14
|
+
// ==========================
|
15
|
+
|
16
|
+
function ScrollSpy(element, options) {
|
17
|
+
this.$body = $(document.body)
|
18
|
+
this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
|
19
|
+
this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
|
20
|
+
this.selector = (this.options.target || '') + ' .nav li > a'
|
21
|
+
this.offsets = []
|
22
|
+
this.targets = []
|
23
|
+
this.activeTarget = null
|
24
|
+
this.scrollHeight = 0
|
25
|
+
|
26
|
+
this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
|
27
|
+
this.refresh()
|
28
|
+
this.process()
|
29
|
+
}
|
30
|
+
|
31
|
+
ScrollSpy.VERSION = '3.3.7'
|
32
|
+
|
33
|
+
ScrollSpy.DEFAULTS = {
|
34
|
+
offset: 10
|
35
|
+
}
|
36
|
+
|
37
|
+
ScrollSpy.prototype.getScrollHeight = function () {
|
38
|
+
return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
|
39
|
+
}
|
40
|
+
|
41
|
+
ScrollSpy.prototype.refresh = function () {
|
42
|
+
var that = this
|
43
|
+
var offsetMethod = 'offset'
|
44
|
+
var offsetBase = 0
|
45
|
+
|
46
|
+
this.offsets = []
|
47
|
+
this.targets = []
|
48
|
+
this.scrollHeight = this.getScrollHeight()
|
49
|
+
|
50
|
+
if (!$.isWindow(this.$scrollElement[0])) {
|
51
|
+
offsetMethod = 'position'
|
52
|
+
offsetBase = this.$scrollElement.scrollTop()
|
53
|
+
}
|
54
|
+
|
55
|
+
this.$body
|
56
|
+
.find(this.selector)
|
57
|
+
.map(function () {
|
58
|
+
var $el = $(this)
|
59
|
+
var href = $el.data('target') || $el.attr('href')
|
60
|
+
var $href = /^#./.test(href) && $(href)
|
61
|
+
|
62
|
+
return ($href
|
63
|
+
&& $href.length
|
64
|
+
&& $href.is(':visible')
|
65
|
+
&& [[$href[offsetMethod]().top + offsetBase, href]]) || null
|
66
|
+
})
|
67
|
+
.sort(function (a, b) { return a[0] - b[0] })
|
68
|
+
.each(function () {
|
69
|
+
that.offsets.push(this[0])
|
70
|
+
that.targets.push(this[1])
|
71
|
+
})
|
72
|
+
}
|
73
|
+
|
74
|
+
ScrollSpy.prototype.process = function () {
|
75
|
+
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
76
|
+
var scrollHeight = this.getScrollHeight()
|
77
|
+
var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height()
|
78
|
+
var offsets = this.offsets
|
79
|
+
var targets = this.targets
|
80
|
+
var activeTarget = this.activeTarget
|
81
|
+
var i
|
82
|
+
|
83
|
+
if (this.scrollHeight != scrollHeight) {
|
84
|
+
this.refresh()
|
85
|
+
}
|
86
|
+
|
87
|
+
if (scrollTop >= maxScroll) {
|
88
|
+
return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
|
89
|
+
}
|
90
|
+
|
91
|
+
if (activeTarget && scrollTop < offsets[0]) {
|
92
|
+
this.activeTarget = null
|
93
|
+
return this.clear()
|
94
|
+
}
|
95
|
+
|
96
|
+
for (i = offsets.length; i--;) {
|
97
|
+
activeTarget != targets[i]
|
98
|
+
&& scrollTop >= offsets[i]
|
99
|
+
&& (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
|
100
|
+
&& this.activate(targets[i])
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
ScrollSpy.prototype.activate = function (target) {
|
105
|
+
this.activeTarget = target
|
106
|
+
|
107
|
+
this.clear()
|
108
|
+
|
109
|
+
var selector = this.selector +
|
110
|
+
'[data-target="' + target + '"],' +
|
111
|
+
this.selector + '[href="' + target + '"]'
|
112
|
+
|
113
|
+
var active = $(selector)
|
114
|
+
.parents('li')
|
115
|
+
.addClass('active')
|
116
|
+
|
117
|
+
if (active.parent('.dropdown-menu').length) {
|
118
|
+
active = active
|
119
|
+
.closest('li.dropdown')
|
120
|
+
.addClass('active')
|
121
|
+
}
|
122
|
+
|
123
|
+
active.trigger('activate.bs.scrollspy')
|
124
|
+
}
|
125
|
+
|
126
|
+
ScrollSpy.prototype.clear = function () {
|
127
|
+
$(this.selector)
|
128
|
+
.parentsUntil(this.options.target, '.active')
|
129
|
+
.removeClass('active')
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
// SCROLLSPY PLUGIN DEFINITION
|
134
|
+
// ===========================
|
135
|
+
|
136
|
+
function Plugin(option) {
|
137
|
+
return this.each(function () {
|
138
|
+
var $this = $(this)
|
139
|
+
var data = $this.data('bs.scrollspy')
|
140
|
+
var options = typeof option == 'object' && option
|
141
|
+
|
142
|
+
if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
|
143
|
+
if (typeof option == 'string') data[option]()
|
144
|
+
})
|
145
|
+
}
|
146
|
+
|
147
|
+
var old = $.fn.scrollspy
|
148
|
+
|
149
|
+
$.fn.scrollspy = Plugin
|
150
|
+
$.fn.scrollspy.Constructor = ScrollSpy
|
151
|
+
|
152
|
+
|
153
|
+
// SCROLLSPY NO CONFLICT
|
154
|
+
// =====================
|
155
|
+
|
156
|
+
$.fn.scrollspy.noConflict = function () {
|
157
|
+
$.fn.scrollspy = old
|
158
|
+
return this
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
// SCROLLSPY DATA-API
|
163
|
+
// ==================
|
164
|
+
|
165
|
+
$(window).on('load.bs.scrollspy.data-api', function () {
|
166
|
+
$('[data-spy="scroll"]').each(function () {
|
167
|
+
var $spy = $(this)
|
168
|
+
Plugin.call($spy, $spy.data())
|
169
|
+
})
|
170
|
+
})
|
171
|
+
|
172
|
+
}(jQuery);
|