udt-itf-theme 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/README.md +124 -0
- data/_data/apis.yml +66 -0
- data/_data/calls.yml +6 -0
- data/_data/demos.yml +10 -0
- data/_data/features.yml +9 -0
- data/_data/institutions.yml +61 -0
- data/_data/pastevents.yml +146 -0
- data/_includes/api/acronyms.md +3 -0
- data/_includes/api/anchor_headings.html +152 -0
- data/_includes/api/beta.md +7 -0
- data/_includes/api/code_header.html +4 -0
- data/_includes/api/copyright.md +4 -0
- data/_includes/api/copyright2015.md +4 -0
- data/_includes/api/copyright2017.md +4 -0
- data/_includes/api/editors.md +3 -0
- data/_includes/api/links.md +235 -0
- data/_includes/api/sub-page_header.html +5 -0
- data/_includes/api/toc.html +182 -0
- data/_includes/blocks/api-cards.html +27 -0
- data/_includes/blocks/cards.html +21 -0
- data/_includes/blocks/carousel.html +14 -0
- data/_includes/blocks/demos.html +10 -0
- data/_includes/blocks/event-cards.html +26 -0
- data/_includes/blocks/features.html +9 -0
- data/_includes/blocks/hero.html +61 -0
- data/_includes/blocks/image-and-text.html +30 -0
- data/_includes/blocks/join-newsletter.html +0 -0
- data/_includes/blocks/logo-grid.html +14 -0
- data/_includes/blocks/news-cards.html +32 -0
- data/_includes/blocks/pullquote.html +22 -0
- data/_includes/blocks/related-cards.html +0 -0
- data/_includes/blocks/steps.html +0 -0
- data/_includes/blocks/tabs.html +21 -0
- data/_includes/blocks/text-and-text.html +14 -0
- data/_includes/content/full-width-image.html +10 -0
- data/_includes/content/inline-image.html +13 -0
- data/_includes/footer.html +28 -0
- data/_includes/head.html +36 -0
- data/_includes/misc/button.html +2 -0
- data/_includes/misc/community_calendar.html +4 -0
- data/_includes/misc/feedback.html +79 -0
- data/_includes/misc/google-analytics.html +9 -0
- data/_includes/misc/image.html +7 -0
- data/_includes/misc/notification.html +15 -0
- data/_includes/navbar.html +36 -0
- data/_layouts/default.html +35 -0
- data/_layouts/event.html +7 -0
- data/_layouts/page.html +8 -0
- data/_layouts/post.html +7 -0
- data/_layouts/spec.html +35 -0
- data/_sass/iiifc-theme/api-spec.scss +180 -0
- data/_sass/iiifc-theme/base.scss +317 -0
- data/_sass/iiifc-theme/bulma-base.scss +15 -0
- data/_sass/iiifc-theme/carousel.scss +47 -0
- data/_sass/iiifc-theme/fonts.scss +6 -0
- data/_sass/iiifc-theme/helpers.scss +43 -0
- data/_sass/iiifc-theme/syntax.scss +65 -0
- data/_sass/iiifc-theme/typography.scss +41 -0
- data/_sass/iiifc-theme/vars.scss +47 -0
- data/_sass/node_modules/.yarn-integrity +19 -0
- data/_sass/node_modules/bulma/CHANGELOG.md +1539 -0
- data/_sass/node_modules/bulma/LICENSE +21 -0
- data/_sass/node_modules/bulma/README.md +133 -0
- data/_sass/node_modules/bulma/bulma.sass +10 -0
- data/_sass/node_modules/bulma/css/bulma-rtl.css +11705 -0
- data/_sass/node_modules/bulma/css/bulma-rtl.css.map +1 -0
- data/_sass/node_modules/bulma/css/bulma-rtl.min.css +1 -0
- data/_sass/node_modules/bulma/css/bulma.css +11705 -0
- data/_sass/node_modules/bulma/css/bulma.css.map +1 -0
- data/_sass/node_modules/bulma/css/bulma.min.css +1 -0
- data/_sass/node_modules/bulma/package.json +56 -0
- data/_sass/node_modules/bulma/sass/base/_all.sass +6 -0
- data/_sass/node_modules/bulma/sass/base/animations.sass +5 -0
- data/_sass/node_modules/bulma/sass/base/generic.sass +145 -0
- data/_sass/node_modules/bulma/sass/base/helpers.sass +1 -0
- data/_sass/node_modules/bulma/sass/base/minireset.sass +79 -0
- data/_sass/node_modules/bulma/sass/components/_all.sass +15 -0
- data/_sass/node_modules/bulma/sass/components/breadcrumb.sass +77 -0
- data/_sass/node_modules/bulma/sass/components/card.sass +102 -0
- data/_sass/node_modules/bulma/sass/components/dropdown.sass +83 -0
- data/_sass/node_modules/bulma/sass/components/level.sass +79 -0
- data/_sass/node_modules/bulma/sass/components/media.sass +59 -0
- data/_sass/node_modules/bulma/sass/components/menu.sass +59 -0
- data/_sass/node_modules/bulma/sass/components/message.sass +101 -0
- data/_sass/node_modules/bulma/sass/components/modal.sass +117 -0
- data/_sass/node_modules/bulma/sass/components/navbar.sass +445 -0
- data/_sass/node_modules/bulma/sass/components/pagination.sass +158 -0
- data/_sass/node_modules/bulma/sass/components/panel.sass +121 -0
- data/_sass/node_modules/bulma/sass/components/tabs.sass +176 -0
- data/_sass/node_modules/bulma/sass/elements/_all.sass +16 -0
- data/_sass/node_modules/bulma/sass/elements/box.sass +26 -0
- data/_sass/node_modules/bulma/sass/elements/button.sass +345 -0
- data/_sass/node_modules/bulma/sass/elements/container.sass +29 -0
- data/_sass/node_modules/bulma/sass/elements/content.sass +157 -0
- data/_sass/node_modules/bulma/sass/elements/form.sass +1 -0
- data/_sass/node_modules/bulma/sass/elements/icon.sass +40 -0
- data/_sass/node_modules/bulma/sass/elements/image.sass +73 -0
- data/_sass/node_modules/bulma/sass/elements/notification.sass +52 -0
- data/_sass/node_modules/bulma/sass/elements/other.sass +41 -0
- data/_sass/node_modules/bulma/sass/elements/progress.sass +73 -0
- data/_sass/node_modules/bulma/sass/elements/table.sass +133 -0
- data/_sass/node_modules/bulma/sass/elements/tag.sass +140 -0
- data/_sass/node_modules/bulma/sass/elements/title.sass +72 -0
- data/_sass/node_modules/bulma/sass/form/_all.sass +9 -0
- data/_sass/node_modules/bulma/sass/form/checkbox-radio.sass +22 -0
- data/_sass/node_modules/bulma/sass/form/file.sass +182 -0
- data/_sass/node_modules/bulma/sass/form/input-textarea.sass +66 -0
- data/_sass/node_modules/bulma/sass/form/select.sass +87 -0
- data/_sass/node_modules/bulma/sass/form/shared.sass +60 -0
- data/_sass/node_modules/bulma/sass/form/tools.sass +215 -0
- data/_sass/node_modules/bulma/sass/grid/_all.sass +5 -0
- data/_sass/node_modules/bulma/sass/grid/columns.sass +513 -0
- data/_sass/node_modules/bulma/sass/grid/tiles.sass +36 -0
- data/_sass/node_modules/bulma/sass/helpers/_all.sass +12 -0
- data/_sass/node_modules/bulma/sass/helpers/color.sass +39 -0
- data/_sass/node_modules/bulma/sass/helpers/flexbox.sass +35 -0
- data/_sass/node_modules/bulma/sass/helpers/float.sass +10 -0
- data/_sass/node_modules/bulma/sass/helpers/other.sass +14 -0
- data/_sass/node_modules/bulma/sass/helpers/overflow.sass +2 -0
- data/_sass/node_modules/bulma/sass/helpers/position.sass +7 -0
- data/_sass/node_modules/bulma/sass/helpers/spacing.sass +31 -0
- data/_sass/node_modules/bulma/sass/helpers/typography.sass +100 -0
- data/_sass/node_modules/bulma/sass/helpers/visibility.sass +122 -0
- data/_sass/node_modules/bulma/sass/layout/_all.sass +6 -0
- data/_sass/node_modules/bulma/sass/layout/footer.sass +11 -0
- data/_sass/node_modules/bulma/sass/layout/hero.sass +149 -0
- data/_sass/node_modules/bulma/sass/layout/section.sass +15 -0
- data/_sass/node_modules/bulma/sass/utilities/_all.sass +9 -0
- data/_sass/node_modules/bulma/sass/utilities/animations.sass +1 -0
- data/_sass/node_modules/bulma/sass/utilities/controls.sass +49 -0
- data/_sass/node_modules/bulma/sass/utilities/derived-variables.sass +110 -0
- data/_sass/node_modules/bulma/sass/utilities/extends.sass +22 -0
- data/_sass/node_modules/bulma/sass/utilities/functions.sass +115 -0
- data/_sass/node_modules/bulma/sass/utilities/initial-variables.sass +78 -0
- data/_sass/node_modules/bulma/sass/utilities/mixins.sass +268 -0
- data/_sass/node_modules/jquery/AUTHORS.txt +331 -0
- data/_sass/node_modules/jquery/LICENSE.txt +20 -0
- data/_sass/node_modules/jquery/README.md +62 -0
- data/_sass/node_modules/jquery/bower.json +14 -0
- data/_sass/node_modules/jquery/dist/jquery.js +10881 -0
- data/_sass/node_modules/jquery/dist/jquery.min.js +2 -0
- data/_sass/node_modules/jquery/dist/jquery.min.map +1 -0
- data/_sass/node_modules/jquery/dist/jquery.slim.js +8782 -0
- data/_sass/node_modules/jquery/dist/jquery.slim.min.js +2 -0
- data/_sass/node_modules/jquery/dist/jquery.slim.min.map +1 -0
- data/_sass/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/_sass/node_modules/jquery/external/sizzle/dist/sizzle.js +2478 -0
- data/_sass/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/_sass/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/_sass/node_modules/jquery/package.json +116 -0
- data/_sass/node_modules/jquery/src/ajax/jsonp.js +103 -0
- data/_sass/node_modules/jquery/src/ajax/load.js +77 -0
- data/_sass/node_modules/jquery/src/ajax/script.js +74 -0
- data/_sass/node_modules/jquery/src/ajax/var/location.js +5 -0
- data/_sass/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/_sass/node_modules/jquery/src/ajax/var/rquery.js +5 -0
- data/_sass/node_modules/jquery/src/ajax/xhr.js +170 -0
- data/_sass/node_modules/jquery/src/ajax.js +876 -0
- data/_sass/node_modules/jquery/src/attributes/attr.js +141 -0
- data/_sass/node_modules/jquery/src/attributes/classes.js +186 -0
- data/_sass/node_modules/jquery/src/attributes/prop.js +143 -0
- data/_sass/node_modules/jquery/src/attributes/support.js +33 -0
- data/_sass/node_modules/jquery/src/attributes/val.js +191 -0
- data/_sass/node_modules/jquery/src/attributes.js +13 -0
- data/_sass/node_modules/jquery/src/callbacks.js +236 -0
- data/_sass/node_modules/jquery/src/core/DOMEval.js +43 -0
- data/_sass/node_modules/jquery/src/core/access.js +72 -0
- data/_sass/node_modules/jquery/src/core/camelCase.js +23 -0
- data/_sass/node_modules/jquery/src/core/init.js +129 -0
- data/_sass/node_modules/jquery/src/core/isAttached.js +26 -0
- data/_sass/node_modules/jquery/src/core/nodeName.js +13 -0
- data/_sass/node_modules/jquery/src/core/parseHTML.js +65 -0
- data/_sass/node_modules/jquery/src/core/parseXML.js +35 -0
- data/_sass/node_modules/jquery/src/core/ready-no-deferred.js +97 -0
- data/_sass/node_modules/jquery/src/core/ready.js +86 -0
- data/_sass/node_modules/jquery/src/core/readyException.js +13 -0
- data/_sass/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
- data/_sass/node_modules/jquery/src/core/support.js +20 -0
- data/_sass/node_modules/jquery/src/core/toType.js +20 -0
- data/_sass/node_modules/jquery/src/core/var/rsingleTag.js +7 -0
- data/_sass/node_modules/jquery/src/core.js +400 -0
- data/_sass/node_modules/jquery/src/css/addGetHookIf.js +26 -0
- data/_sass/node_modules/jquery/src/css/adjustCSS.js +74 -0
- data/_sass/node_modules/jquery/src/css/curCSS.js +65 -0
- data/_sass/node_modules/jquery/src/css/finalPropName.js +42 -0
- data/_sass/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/_sass/node_modules/jquery/src/css/showHide.js +105 -0
- data/_sass/node_modules/jquery/src/css/support.js +152 -0
- data/_sass/node_modules/jquery/src/css/var/cssExpand.js +5 -0
- data/_sass/node_modules/jquery/src/css/var/getStyles.js +17 -0
- data/_sass/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/_sass/node_modules/jquery/src/css/var/rboxStyle.js +7 -0
- data/_sass/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
- data/_sass/node_modules/jquery/src/css/var/swap.js +26 -0
- data/_sass/node_modules/jquery/src/css.js +494 -0
- data/_sass/node_modules/jquery/src/data/Data.js +162 -0
- data/_sass/node_modules/jquery/src/data/var/acceptData.js +19 -0
- data/_sass/node_modules/jquery/src/data/var/dataPriv.js +7 -0
- data/_sass/node_modules/jquery/src/data/var/dataUser.js +7 -0
- data/_sass/node_modules/jquery/src/data.js +180 -0
- data/_sass/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
- data/_sass/node_modules/jquery/src/deferred.js +399 -0
- data/_sass/node_modules/jquery/src/deprecated/ajax-event-alias.js +22 -0
- data/_sass/node_modules/jquery/src/deprecated/event.js +50 -0
- data/_sass/node_modules/jquery/src/deprecated.js +87 -0
- data/_sass/node_modules/jquery/src/dimensions.js +60 -0
- data/_sass/node_modules/jquery/src/effects/Tween.js +125 -0
- data/_sass/node_modules/jquery/src/effects/animatedSelector.js +15 -0
- data/_sass/node_modules/jquery/src/effects.js +702 -0
- data/_sass/node_modules/jquery/src/event/focusin.js +58 -0
- data/_sass/node_modules/jquery/src/event/support.js +11 -0
- data/_sass/node_modules/jquery/src/event/trigger.js +199 -0
- data/_sass/node_modules/jquery/src/event.js +874 -0
- data/_sass/node_modules/jquery/src/exports/amd.js +26 -0
- data/_sass/node_modules/jquery/src/exports/global.js +34 -0
- data/_sass/node_modules/jquery/src/jquery.js +41 -0
- data/_sass/node_modules/jquery/src/manipulation/_evalUrl.js +32 -0
- data/_sass/node_modules/jquery/src/manipulation/buildFragment.js +106 -0
- data/_sass/node_modules/jquery/src/manipulation/getAll.js +32 -0
- data/_sass/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/_sass/node_modules/jquery/src/manipulation/support.js +41 -0
- data/_sass/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/_sass/node_modules/jquery/src/manipulation/var/rtagName.js +8 -0
- data/_sass/node_modules/jquery/src/manipulation/wrapMap.js +30 -0
- data/_sass/node_modules/jquery/src/manipulation.js +480 -0
- data/_sass/node_modules/jquery/src/offset.js +232 -0
- data/_sass/node_modules/jquery/src/queue/delay.js +24 -0
- data/_sass/node_modules/jquery/src/queue.js +145 -0
- data/_sass/node_modules/jquery/src/selector-native.js +241 -0
- data/_sass/node_modules/jquery/src/selector-sizzle.js +19 -0
- data/_sass/node_modules/jquery/src/selector.js +3 -0
- data/_sass/node_modules/jquery/src/serialize.js +134 -0
- data/_sass/node_modules/jquery/src/traversing/findFilter.js +97 -0
- data/_sass/node_modules/jquery/src/traversing/var/dir.js +22 -0
- data/_sass/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/_sass/node_modules/jquery/src/traversing/var/siblings.js +17 -0
- data/_sass/node_modules/jquery/src/traversing.js +198 -0
- data/_sass/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
- data/_sass/node_modules/jquery/src/var/arr.js +5 -0
- data/_sass/node_modules/jquery/src/var/class2type.js +6 -0
- data/_sass/node_modules/jquery/src/var/document.js +5 -0
- data/_sass/node_modules/jquery/src/var/documentElement.js +7 -0
- data/_sass/node_modules/jquery/src/var/flat.js +16 -0
- data/_sass/node_modules/jquery/src/var/fnToString.js +7 -0
- data/_sass/node_modules/jquery/src/var/getProto.js +5 -0
- data/_sass/node_modules/jquery/src/var/hasOwn.js +7 -0
- data/_sass/node_modules/jquery/src/var/indexOf.js +7 -0
- data/_sass/node_modules/jquery/src/var/isFunction.js +17 -0
- data/_sass/node_modules/jquery/src/var/isWindow.js +8 -0
- data/_sass/node_modules/jquery/src/var/pnum.js +5 -0
- data/_sass/node_modules/jquery/src/var/push.js +7 -0
- data/_sass/node_modules/jquery/src/var/rcheckableType.js +5 -0
- data/_sass/node_modules/jquery/src/var/rcssNum.js +9 -0
- data/_sass/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
- data/_sass/node_modules/jquery/src/var/slice.js +7 -0
- data/_sass/node_modules/jquery/src/var/support.js +6 -0
- data/_sass/node_modules/jquery/src/var/toString.js +7 -0
- data/_sass/node_modules/jquery/src/wrap.js +78 -0
- data/_sass/node_modules/slick-carousel-no-fonts/.npmignore +2 -0
- data/_sass/node_modules/slick-carousel-no-fonts/CONTRIBUTING.markdown +35 -0
- data/_sass/node_modules/slick-carousel-no-fonts/ISSUE_TEMPLATE.md +50 -0
- data/_sass/node_modules/slick-carousel-no-fonts/LICENSE +20 -0
- data/_sass/node_modules/slick-carousel-no-fonts/Makefile +8 -0
- data/_sass/node_modules/slick-carousel-no-fonts/README.markdown +287 -0
- data/_sass/node_modules/slick-carousel-no-fonts/bower.json +32 -0
- data/_sass/node_modules/slick-carousel-no-fonts/component.json +18 -0
- data/_sass/node_modules/slick-carousel-no-fonts/index.html +163 -0
- data/_sass/node_modules/slick-carousel-no-fonts/package.json +50 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/ajax-loader.gif +0 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/config.rb +10 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/fonts/slick.eot +0 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/fonts/slick.svg +14 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/fonts/slick.ttf +0 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/fonts/slick.woff +0 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick-theme.css +194 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick-theme.less +158 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick-theme.scss +186 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick.css +117 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick.js +2936 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick.less +98 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick.min.js +18 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick/slick.scss +98 -0
- data/_sass/node_modules/slick-carousel-no-fonts/slick.jquery.json +34 -0
- data/assets/android-chrome-192x192.png +0 -0
- data/assets/android-chrome-512x512.png +0 -0
- data/assets/apple-touch-icon.png +0 -0
- data/assets/browserconfig.xml +9 -0
- data/assets/css/ajax-loader.gif +0 -0
- data/assets/css/style.scss +4 -0
- data/assets/favicon-16x16.png +0 -0
- data/assets/favicon-32x32.png +0 -0
- data/assets/favicon.ico +0 -0
- data/assets/images/defaults/blank-image.png +0 -0
- data/assets/images/defaults/just-a-square.png +0 -0
- data/assets/images/heroes/event.png +0 -0
- data/assets/images/heroes/event.webp +0 -0
- data/assets/images/heroes/event@2x.png +0 -0
- data/assets/images/heroes/event@2x.webp +0 -0
- data/assets/images/heroes/event@3x.png +0 -0
- data/assets/images/heroes/event@3x.webp +0 -0
- data/assets/images/heroes/event_2.png +0 -0
- data/assets/images/heroes/event_2.webp +0 -0
- data/assets/images/heroes/event_2@2x.png +0 -0
- data/assets/images/heroes/event_2@2x.webp +0 -0
- data/assets/images/heroes/hero-1.png +0 -0
- data/assets/images/heroes/hero-1.webp +0 -0
- data/assets/images/heroes/hero-1@2x.png +0 -0
- data/assets/images/heroes/hero-1@2x.webp +0 -0
- data/assets/images/heroes/hero-2.png +0 -0
- data/assets/images/heroes/hero-2.webp +0 -0
- data/assets/images/heroes/hero-2@2x.png +0 -0
- data/assets/images/heroes/hero-2@2x.webp +0 -0
- data/assets/images/heroes/hero-2@3x.png +0 -0
- data/assets/images/heroes/hero-2@3x.webp +0 -0
- data/assets/images/heroes/hero-3.png +0 -0
- data/assets/images/heroes/hero-3.webp +0 -0
- data/assets/images/heroes/hero-3@2x.png +0 -0
- data/assets/images/heroes/hero-3@2x.webp +0 -0
- data/assets/images/heroes/hero-3@3x.png +0 -0
- data/assets/images/heroes/hero-3@3x.webp +0 -0
- data/assets/images/heroes/smithsonian_cookbook.jpg +0 -0
- data/assets/images/heroes/smithsonian_cookbook.webp +0 -0
- data/assets/images/icons/auth-group.png +0 -0
- data/assets/images/icons/auth-group.webp +0 -0
- data/assets/images/icons/auth-group@2x.png +0 -0
- data/assets/images/icons/auth-group@2x.webp +0 -0
- data/assets/images/icons/auth-group@3x.png +0 -0
- data/assets/images/icons/auth-group@3x.webp +0 -0
- data/assets/images/icons/calendar.png +0 -0
- data/assets/images/icons/calendar.webp +0 -0
- data/assets/images/icons/calendar@2x.png +0 -0
- data/assets/images/icons/calendar@2x.webp +0 -0
- data/assets/images/icons/calendar@3x.png +0 -0
- data/assets/images/icons/calendar@3x.webp +0 -0
- data/assets/images/icons/developer.png +0 -0
- data/assets/images/icons/developer.webp +0 -0
- data/assets/images/icons/developer@2x.png +0 -0
- data/assets/images/icons/developer@2x.webp +0 -0
- data/assets/images/icons/developer@3x.png +0 -0
- data/assets/images/icons/developer@3x.webp +0 -0
- data/assets/images/icons/image.png +0 -0
- data/assets/images/icons/image.webp +0 -0
- data/assets/images/icons/image@2x.png +0 -0
- data/assets/images/icons/image@2x.webp +0 -0
- data/assets/images/icons/image@3x.png +0 -0
- data/assets/images/icons/image@3x.webp +0 -0
- data/assets/images/icons/info.png +0 -0
- data/assets/images/icons/info.webp +0 -0
- data/assets/images/icons/info@2x.png +0 -0
- data/assets/images/icons/info@2x.webp +0 -0
- data/assets/images/icons/info@3x.png +0 -0
- data/assets/images/icons/info@3x.webp +0 -0
- data/assets/images/icons/leader.png +0 -0
- data/assets/images/icons/leader.webp +0 -0
- data/assets/images/icons/leader@2x.png +0 -0
- data/assets/images/icons/leader@2x.webp +0 -0
- data/assets/images/icons/leader@3x.png +0 -0
- data/assets/images/icons/leader@3x.webp +0 -0
- data/assets/images/icons/left-arrow.png +0 -0
- data/assets/images/icons/left-arrow.webp +0 -0
- data/assets/images/icons/left-arrow@2x.png +0 -0
- data/assets/images/icons/left-arrow@2x.webp +0 -0
- data/assets/images/icons/left-arrow@3x.png +0 -0
- data/assets/images/icons/left-arrow@3x.webp +0 -0
- data/assets/images/icons/link-group.png +0 -0
- data/assets/images/icons/link-group.webp +0 -0
- data/assets/images/icons/link-group@2x.png +0 -0
- data/assets/images/icons/link-group@2x.webp +0 -0
- data/assets/images/icons/link-group@3x.png +0 -0
- data/assets/images/icons/link-group@3x.webp +0 -0
- data/assets/images/icons/link.png +0 -0
- data/assets/images/icons/link.webp +0 -0
- data/assets/images/icons/location-info.png +0 -0
- data/assets/images/icons/location-info.webp +0 -0
- data/assets/images/icons/location-info@2x.png +0 -0
- data/assets/images/icons/location-info@2x.webp +0 -0
- data/assets/images/icons/location-info@3x.png +0 -0
- data/assets/images/icons/location-info@3x.webp +0 -0
- data/assets/images/icons/map-pin.png +0 -0
- data/assets/images/icons/map-pin.webp +0 -0
- data/assets/images/icons/map-pin@2x.png +0 -0
- data/assets/images/icons/map-pin@2x.webp +0 -0
- data/assets/images/icons/map-pin@3x.png +0 -0
- data/assets/images/icons/map-pin@3x.webp +0 -0
- data/assets/images/icons/pagination-dots.png +0 -0
- data/assets/images/icons/pagination-dots.webp +0 -0
- data/assets/images/icons/pagination-dots@2x.png +0 -0
- data/assets/images/icons/pagination-dots@2x.webp +0 -0
- data/assets/images/icons/pagination-dots@3x.png +0 -0
- data/assets/images/icons/pagination-dots@3x.webp +0 -0
- data/assets/images/icons/quote.png +0 -0
- data/assets/images/icons/quote.webp +0 -0
- data/assets/images/icons/quote@2x.png +0 -0
- data/assets/images/icons/quote@2x.webp +0 -0
- data/assets/images/icons/quote@3x.png +0 -0
- data/assets/images/icons/quote@3x.webp +0 -0
- data/assets/images/icons/research.png +0 -0
- data/assets/images/icons/research.webp +0 -0
- data/assets/images/icons/research@2x.png +0 -0
- data/assets/images/icons/research@2x.webp +0 -0
- data/assets/images/icons/research@3x.png +0 -0
- data/assets/images/icons/research@3x.webp +0 -0
- data/assets/images/icons/right-arrow.png +0 -0
- data/assets/images/icons/right-arrow.webp +0 -0
- data/assets/images/icons/right-arrow@2x.png +0 -0
- data/assets/images/icons/right-arrow@2x.webp +0 -0
- data/assets/images/icons/right-arrow@3x.png +0 -0
- data/assets/images/icons/right-arrow@3x.webp +0 -0
- data/assets/images/icons/search-group.png +0 -0
- data/assets/images/icons/search-group.webp +0 -0
- data/assets/images/icons/search-group@2x.png +0 -0
- data/assets/images/icons/search-group@2x.webp +0 -0
- data/assets/images/icons/search-group@3x.png +0 -0
- data/assets/images/icons/search-group@3x.webp +0 -0
- data/assets/images/icons/shape.png +0 -0
- data/assets/images/icons/shape.webp +0 -0
- data/assets/images/icons/shape@2x.png +0 -0
- data/assets/images/icons/shape@2x.webp +0 -0
- data/assets/images/icons/shape@3x.png +0 -0
- data/assets/images/icons/shape@3x.webp +0 -0
- data/assets/images/logos/logo-blue.webp +0 -0
- data/assets/images/logos/logo-blue@2x.webp +0 -0
- data/assets/images/logos/logo-blue@3x.webp +0 -0
- data/assets/images/logos/logo-sm.png +0 -0
- data/assets/images/logos/logo-white.webp +0 -0
- data/assets/images/logos/logo-white@2x.webp +0 -0
- data/assets/images/logos/logo-white@3x.webp +0 -0
- data/assets/images/zeplin/delivery@3x.jpg +0 -0
- data/assets/images/zeplin/delivery@3x.png +0 -0
- data/assets/images/zeplin/delivery@3x.webp +0 -0
- data/assets/images/zeplin/jpg/delivery.jpg +0 -0
- data/assets/images/zeplin/jpg/delivery@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/event.jpg +0 -0
- data/assets/images/zeplin/jpg/event@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/event@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-1.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-1@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-1@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-2.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-2@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-2@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-3.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-3@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/hero-3@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/logo-blue.jpg +0 -0
- data/assets/images/zeplin/jpg/logo-blue@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/logo-blue@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/logo-white.jpg +0 -0
- data/assets/images/zeplin/jpg/logo-white@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/logo-white@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-1.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-1@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-1@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-2.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-2@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-2@3x.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-3.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-3@2x.jpg +0 -0
- data/assets/images/zeplin/jpg/silos-3@3x.jpg +0 -0
- data/assets/images/zeplin/png/delivery.png +0 -0
- data/assets/images/zeplin/png/delivery@2x.png +0 -0
- data/assets/images/zeplin/png/event.png +0 -0
- data/assets/images/zeplin/png/event@2x.png +0 -0
- data/assets/images/zeplin/png/event@3x.png +0 -0
- data/assets/images/zeplin/png/group-11-copy.png +0 -0
- data/assets/images/zeplin/png/group-11-copy@2x.png +0 -0
- data/assets/images/zeplin/png/group-11-copy@3x.png +0 -0
- data/assets/images/zeplin/png/group-19.png +0 -0
- data/assets/images/zeplin/png/group-19@2x.png +0 -0
- data/assets/images/zeplin/png/group-19@3x.png +0 -0
- data/assets/images/zeplin/png/group-24.png +0 -0
- data/assets/images/zeplin/png/group-24@2x.png +0 -0
- data/assets/images/zeplin/png/group-24@3x.png +0 -0
- data/assets/images/zeplin/png/hero-1.png +0 -0
- data/assets/images/zeplin/png/hero-1@2x.png +0 -0
- data/assets/images/zeplin/png/hero-2.png +0 -0
- data/assets/images/zeplin/png/hero-2@2x.png +0 -0
- data/assets/images/zeplin/png/hero-2@3x.png +0 -0
- data/assets/images/zeplin/png/hero-3.png +0 -0
- data/assets/images/zeplin/png/hero-3@2x.png +0 -0
- data/assets/images/zeplin/png/hero-3@3x.png +0 -0
- data/assets/images/zeplin/png/invalid-name.png +0 -0
- data/assets/images/zeplin/png/invalid-name@2x.png +0 -0
- data/assets/images/zeplin/png/invalid-name@3x.png +0 -0
- data/assets/images/zeplin/png/left-arrow.png +0 -0
- data/assets/images/zeplin/png/left-arrow@2x.png +0 -0
- data/assets/images/zeplin/png/left-arrow@3x.png +0 -0
- data/assets/images/zeplin/png/logo-blue.png +0 -0
- data/assets/images/zeplin/png/logo-blue@2x.png +0 -0
- data/assets/images/zeplin/png/logo-blue@3x.png +0 -0
- data/assets/images/zeplin/png/logo-white.png +0 -0
- data/assets/images/zeplin/png/logo-white@2x.png +0 -0
- data/assets/images/zeplin/png/logo-white@3x.png +0 -0
- data/assets/images/zeplin/png/noun-calendar-3896118.png +0 -0
- data/assets/images/zeplin/png/noun-calendar-3896118@2x.png +0 -0
- data/assets/images/zeplin/png/noun-calendar-3896118@3x.png +0 -0
- data/assets/images/zeplin/png/noun-developer-2549191.png +0 -0
- data/assets/images/zeplin/png/noun-developer-2549191@2x.png +0 -0
- data/assets/images/zeplin/png/noun-developer-2549191@3x.png +0 -0
- data/assets/images/zeplin/png/noun-image-3888103.png +0 -0
- data/assets/images/zeplin/png/noun-image-3888103@2x.png +0 -0
- data/assets/images/zeplin/png/noun-image-3888103@3x.png +0 -0
- data/assets/images/zeplin/png/noun-info-1585217.png +0 -0
- data/assets/images/zeplin/png/noun-info-1585217@2x.png +0 -0
- data/assets/images/zeplin/png/noun-info-1585217@3x.png +0 -0
- data/assets/images/zeplin/png/noun-leader-1478173.png +0 -0
- data/assets/images/zeplin/png/noun-leader-1478173@2x.png +0 -0
- data/assets/images/zeplin/png/noun-leader-1478173@3x.png +0 -0
- data/assets/images/zeplin/png/noun-location-info-261887.png +0 -0
- data/assets/images/zeplin/png/noun-location-info-261887@2x.png +0 -0
- data/assets/images/zeplin/png/noun-location-info-261887@3x.png +0 -0
- data/assets/images/zeplin/png/noun-map-pin-800374.png +0 -0
- data/assets/images/zeplin/png/noun-map-pin-800374@2x.png +0 -0
- data/assets/images/zeplin/png/noun-map-pin-800374@3x.png +0 -0
- data/assets/images/zeplin/png/noun-research-1796671.png +0 -0
- data/assets/images/zeplin/png/noun-research-1796671@2x.png +0 -0
- data/assets/images/zeplin/png/noun-research-1796671@3x.png +0 -0
- data/assets/images/zeplin/png/pagination-dots.png +0 -0
- data/assets/images/zeplin/png/pagination-dots@2x.png +0 -0
- data/assets/images/zeplin/png/pagination-dots@3x.png +0 -0
- data/assets/images/zeplin/png/right-arrow.png +0 -0
- data/assets/images/zeplin/png/right-arrow@2x.png +0 -0
- data/assets/images/zeplin/png/right-arrow@3x.png +0 -0
- data/assets/images/zeplin/png/shape.png +0 -0
- data/assets/images/zeplin/png/shape@2x.png +0 -0
- data/assets/images/zeplin/png/shape@3x.png +0 -0
- data/assets/images/zeplin/png/silos-1.png +0 -0
- data/assets/images/zeplin/png/silos-1@2x.png +0 -0
- data/assets/images/zeplin/png/silos-1@3x.png +0 -0
- data/assets/images/zeplin/png/silos-2.png +0 -0
- data/assets/images/zeplin/png/silos-2@2x.png +0 -0
- data/assets/images/zeplin/png/silos-2@3x.png +0 -0
- data/assets/images/zeplin/png/silos-3.png +0 -0
- data/assets/images/zeplin/png/silos-3@2x.png +0 -0
- data/assets/images/zeplin/png/silos-3@3x.png +0 -0
- data/assets/images/zeplin/svg/group-11-copy.svg +20 -0
- data/assets/images/zeplin/svg/group-19.svg +10 -0
- data/assets/images/zeplin/svg/group-24.svg +12 -0
- data/assets/images/zeplin/svg/invalid-name.svg +7 -0
- data/assets/images/zeplin/svg/left-arrow.svg +9 -0
- data/assets/images/zeplin/svg/noun-calendar-3896118.svg +9 -0
- data/assets/images/zeplin/svg/noun-developer-2549191.svg +11 -0
- data/assets/images/zeplin/svg/noun-image-3888103.svg +10 -0
- data/assets/images/zeplin/svg/noun-info-1585217.svg +9 -0
- data/assets/images/zeplin/svg/noun-leader-1478173.svg +12 -0
- data/assets/images/zeplin/svg/noun-location-info-261887.svg +12 -0
- data/assets/images/zeplin/svg/noun-map-pin-800374.svg +9 -0
- data/assets/images/zeplin/svg/noun-research-1796671.svg +13 -0
- data/assets/images/zeplin/svg/pagination-dots.svg +11 -0
- data/assets/images/zeplin/svg/right-arrow.svg +9 -0
- data/assets/images/zeplin/svg/shape.svg +7 -0
- data/assets/images/zeplin/webp/delivery.webp +0 -0
- data/assets/images/zeplin/webp/delivery@2x.webp +0 -0
- data/assets/images/zeplin/webp/event.webp +0 -0
- data/assets/images/zeplin/webp/event@2x.webp +0 -0
- data/assets/images/zeplin/webp/event@3x.webp +0 -0
- data/assets/images/zeplin/webp/group-11-copy.webp +0 -0
- data/assets/images/zeplin/webp/group-11-copy@2x.webp +0 -0
- data/assets/images/zeplin/webp/group-11-copy@3x.webp +0 -0
- data/assets/images/zeplin/webp/group-19.webp +0 -0
- data/assets/images/zeplin/webp/group-19@2x.webp +0 -0
- data/assets/images/zeplin/webp/group-19@3x.webp +0 -0
- data/assets/images/zeplin/webp/group-24.webp +0 -0
- data/assets/images/zeplin/webp/group-24@2x.webp +0 -0
- data/assets/images/zeplin/webp/group-24@3x.webp +0 -0
- data/assets/images/zeplin/webp/hero-1.webp +0 -0
- data/assets/images/zeplin/webp/hero-1@2x.webp +0 -0
- data/assets/images/zeplin/webp/hero-2.webp +0 -0
- data/assets/images/zeplin/webp/hero-2@2x.webp +0 -0
- data/assets/images/zeplin/webp/hero-2@3x.webp +0 -0
- data/assets/images/zeplin/webp/hero-3.webp +0 -0
- data/assets/images/zeplin/webp/hero-3@2x.webp +0 -0
- data/assets/images/zeplin/webp/hero-3@3x.webp +0 -0
- data/assets/images/zeplin/webp/invalid-name.webp +0 -0
- data/assets/images/zeplin/webp/invalid-name@2x.webp +0 -0
- data/assets/images/zeplin/webp/invalid-name@3x.webp +0 -0
- data/assets/images/zeplin/webp/left-arrow.webp +0 -0
- data/assets/images/zeplin/webp/left-arrow@2x.webp +0 -0
- data/assets/images/zeplin/webp/left-arrow@3x.webp +0 -0
- data/assets/images/zeplin/webp/logo-blue.webp +0 -0
- data/assets/images/zeplin/webp/logo-blue@2x.webp +0 -0
- data/assets/images/zeplin/webp/logo-blue@3x.webp +0 -0
- data/assets/images/zeplin/webp/logo-white.webp +0 -0
- data/assets/images/zeplin/webp/logo-white@2x.webp +0 -0
- data/assets/images/zeplin/webp/logo-white@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-calendar-3896118.webp +0 -0
- data/assets/images/zeplin/webp/noun-calendar-3896118@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-calendar-3896118@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-developer-2549191.webp +0 -0
- data/assets/images/zeplin/webp/noun-developer-2549191@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-developer-2549191@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-image-3888103.webp +0 -0
- data/assets/images/zeplin/webp/noun-image-3888103@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-image-3888103@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-info-1585217.webp +0 -0
- data/assets/images/zeplin/webp/noun-info-1585217@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-info-1585217@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-leader-1478173.webp +0 -0
- data/assets/images/zeplin/webp/noun-leader-1478173@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-leader-1478173@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-location-info-261887.webp +0 -0
- data/assets/images/zeplin/webp/noun-location-info-261887@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-location-info-261887@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-map-pin-800374.webp +0 -0
- data/assets/images/zeplin/webp/noun-map-pin-800374@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-map-pin-800374@3x.webp +0 -0
- data/assets/images/zeplin/webp/noun-research-1796671.webp +0 -0
- data/assets/images/zeplin/webp/noun-research-1796671@2x.webp +0 -0
- data/assets/images/zeplin/webp/noun-research-1796671@3x.webp +0 -0
- data/assets/images/zeplin/webp/pagination-dots.webp +0 -0
- data/assets/images/zeplin/webp/pagination-dots@2x.webp +0 -0
- data/assets/images/zeplin/webp/pagination-dots@3x.webp +0 -0
- data/assets/images/zeplin/webp/right-arrow.webp +0 -0
- data/assets/images/zeplin/webp/right-arrow@2x.webp +0 -0
- data/assets/images/zeplin/webp/right-arrow@3x.webp +0 -0
- data/assets/images/zeplin/webp/shape.webp +0 -0
- data/assets/images/zeplin/webp/shape@2x.webp +0 -0
- data/assets/images/zeplin/webp/shape@3x.webp +0 -0
- data/assets/images/zeplin/webp/silos-1.webp +0 -0
- data/assets/images/zeplin/webp/silos-1@2x.webp +0 -0
- data/assets/images/zeplin/webp/silos-1@3x.webp +0 -0
- data/assets/images/zeplin/webp/silos-2.webp +0 -0
- data/assets/images/zeplin/webp/silos-2@2x.webp +0 -0
- data/assets/images/zeplin/webp/silos-2@3x.webp +0 -0
- data/assets/images/zeplin/webp/silos-3.webp +0 -0
- data/assets/images/zeplin/webp/silos-3@2x.webp +0 -0
- data/assets/images/zeplin/webp/silos-3@3x.webp +0 -0
- data/assets/js/carouselInit.js +8 -0
- data/assets/js/copyCodeBlock.js +15 -0
- data/assets/js/deleteButton.js +9 -0
- data/assets/js/tabSwitch.js +24 -0
- data/assets/mstile-150x150.png +0 -0
- data/assets/safari-pinned-tab.svg +61 -0
- data/assets/site.webmanifest +19 -0
- data/lib/iiifc.rb +10 -0
- data/lib/tasks/build.rake +41 -0
- data/lib/tasks/test.rake +59 -0
- metadata +786 -0
@@ -0,0 +1,480 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./core/isAttached",
|
4
|
+
"./var/flat",
|
5
|
+
"./var/isFunction",
|
6
|
+
"./var/push",
|
7
|
+
"./var/rcheckableType",
|
8
|
+
"./core/access",
|
9
|
+
"./manipulation/var/rtagName",
|
10
|
+
"./manipulation/var/rscriptType",
|
11
|
+
"./manipulation/wrapMap",
|
12
|
+
"./manipulation/getAll",
|
13
|
+
"./manipulation/setGlobalEval",
|
14
|
+
"./manipulation/buildFragment",
|
15
|
+
"./manipulation/support",
|
16
|
+
|
17
|
+
"./data/var/dataPriv",
|
18
|
+
"./data/var/dataUser",
|
19
|
+
"./data/var/acceptData",
|
20
|
+
"./core/DOMEval",
|
21
|
+
"./core/nodeName",
|
22
|
+
|
23
|
+
"./core/init",
|
24
|
+
"./traversing",
|
25
|
+
"./selector",
|
26
|
+
"./event"
|
27
|
+
], function( jQuery, isAttached, flat, isFunction, push, rcheckableType,
|
28
|
+
access, rtagName, rscriptType,
|
29
|
+
wrapMap, getAll, setGlobalEval, buildFragment, support,
|
30
|
+
dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
|
31
|
+
|
32
|
+
"use strict";
|
33
|
+
|
34
|
+
var
|
35
|
+
|
36
|
+
// Support: IE <=10 - 11, Edge 12 - 13 only
|
37
|
+
// In IE/Edge using regex groups here causes severe slowdowns.
|
38
|
+
// See https://connect.microsoft.com/IE/feedback/details/1736512/
|
39
|
+
rnoInnerhtml = /<script|<style|<link/i,
|
40
|
+
|
41
|
+
// checked="checked" or checked
|
42
|
+
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
|
43
|
+
rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
|
44
|
+
|
45
|
+
// Prefer a tbody over its parent table for containing new rows
|
46
|
+
function manipulationTarget( elem, content ) {
|
47
|
+
if ( nodeName( elem, "table" ) &&
|
48
|
+
nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
|
49
|
+
|
50
|
+
return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
|
51
|
+
}
|
52
|
+
|
53
|
+
return elem;
|
54
|
+
}
|
55
|
+
|
56
|
+
// Replace/restore the type attribute of script elements for safe DOM manipulation
|
57
|
+
function disableScript( elem ) {
|
58
|
+
elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
|
59
|
+
return elem;
|
60
|
+
}
|
61
|
+
function restoreScript( elem ) {
|
62
|
+
if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
|
63
|
+
elem.type = elem.type.slice( 5 );
|
64
|
+
} else {
|
65
|
+
elem.removeAttribute( "type" );
|
66
|
+
}
|
67
|
+
|
68
|
+
return elem;
|
69
|
+
}
|
70
|
+
|
71
|
+
function cloneCopyEvent( src, dest ) {
|
72
|
+
var i, l, type, pdataOld, udataOld, udataCur, events;
|
73
|
+
|
74
|
+
if ( dest.nodeType !== 1 ) {
|
75
|
+
return;
|
76
|
+
}
|
77
|
+
|
78
|
+
// 1. Copy private data: events, handlers, etc.
|
79
|
+
if ( dataPriv.hasData( src ) ) {
|
80
|
+
pdataOld = dataPriv.get( src );
|
81
|
+
events = pdataOld.events;
|
82
|
+
|
83
|
+
if ( events ) {
|
84
|
+
dataPriv.remove( dest, "handle events" );
|
85
|
+
|
86
|
+
for ( type in events ) {
|
87
|
+
for ( i = 0, l = events[ type ].length; i < l; i++ ) {
|
88
|
+
jQuery.event.add( dest, type, events[ type ][ i ] );
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// 2. Copy user data
|
95
|
+
if ( dataUser.hasData( src ) ) {
|
96
|
+
udataOld = dataUser.access( src );
|
97
|
+
udataCur = jQuery.extend( {}, udataOld );
|
98
|
+
|
99
|
+
dataUser.set( dest, udataCur );
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// Fix IE bugs, see support tests
|
104
|
+
function fixInput( src, dest ) {
|
105
|
+
var nodeName = dest.nodeName.toLowerCase();
|
106
|
+
|
107
|
+
// Fails to persist the checked state of a cloned checkbox or radio button.
|
108
|
+
if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
|
109
|
+
dest.checked = src.checked;
|
110
|
+
|
111
|
+
// Fails to return the selected option to the default selected state when cloning options
|
112
|
+
} else if ( nodeName === "input" || nodeName === "textarea" ) {
|
113
|
+
dest.defaultValue = src.defaultValue;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
function domManip( collection, args, callback, ignored ) {
|
118
|
+
|
119
|
+
// Flatten any nested arrays
|
120
|
+
args = flat( args );
|
121
|
+
|
122
|
+
var fragment, first, scripts, hasScripts, node, doc,
|
123
|
+
i = 0,
|
124
|
+
l = collection.length,
|
125
|
+
iNoClone = l - 1,
|
126
|
+
value = args[ 0 ],
|
127
|
+
valueIsFunction = isFunction( value );
|
128
|
+
|
129
|
+
// We can't cloneNode fragments that contain checked, in WebKit
|
130
|
+
if ( valueIsFunction ||
|
131
|
+
( l > 1 && typeof value === "string" &&
|
132
|
+
!support.checkClone && rchecked.test( value ) ) ) {
|
133
|
+
return collection.each( function( index ) {
|
134
|
+
var self = collection.eq( index );
|
135
|
+
if ( valueIsFunction ) {
|
136
|
+
args[ 0 ] = value.call( this, index, self.html() );
|
137
|
+
}
|
138
|
+
domManip( self, args, callback, ignored );
|
139
|
+
} );
|
140
|
+
}
|
141
|
+
|
142
|
+
if ( l ) {
|
143
|
+
fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
|
144
|
+
first = fragment.firstChild;
|
145
|
+
|
146
|
+
if ( fragment.childNodes.length === 1 ) {
|
147
|
+
fragment = first;
|
148
|
+
}
|
149
|
+
|
150
|
+
// Require either new content or an interest in ignored elements to invoke the callback
|
151
|
+
if ( first || ignored ) {
|
152
|
+
scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
|
153
|
+
hasScripts = scripts.length;
|
154
|
+
|
155
|
+
// Use the original fragment for the last item
|
156
|
+
// instead of the first because it can end up
|
157
|
+
// being emptied incorrectly in certain situations (#8070).
|
158
|
+
for ( ; i < l; i++ ) {
|
159
|
+
node = fragment;
|
160
|
+
|
161
|
+
if ( i !== iNoClone ) {
|
162
|
+
node = jQuery.clone( node, true, true );
|
163
|
+
|
164
|
+
// Keep references to cloned scripts for later restoration
|
165
|
+
if ( hasScripts ) {
|
166
|
+
|
167
|
+
// Support: Android <=4.0 only, PhantomJS 1 only
|
168
|
+
// push.apply(_, arraylike) throws on ancient WebKit
|
169
|
+
jQuery.merge( scripts, getAll( node, "script" ) );
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
callback.call( collection[ i ], node, i );
|
174
|
+
}
|
175
|
+
|
176
|
+
if ( hasScripts ) {
|
177
|
+
doc = scripts[ scripts.length - 1 ].ownerDocument;
|
178
|
+
|
179
|
+
// Reenable scripts
|
180
|
+
jQuery.map( scripts, restoreScript );
|
181
|
+
|
182
|
+
// Evaluate executable scripts on first document insertion
|
183
|
+
for ( i = 0; i < hasScripts; i++ ) {
|
184
|
+
node = scripts[ i ];
|
185
|
+
if ( rscriptType.test( node.type || "" ) &&
|
186
|
+
!dataPriv.access( node, "globalEval" ) &&
|
187
|
+
jQuery.contains( doc, node ) ) {
|
188
|
+
|
189
|
+
if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) {
|
190
|
+
|
191
|
+
// Optional AJAX dependency, but won't run scripts if not present
|
192
|
+
if ( jQuery._evalUrl && !node.noModule ) {
|
193
|
+
jQuery._evalUrl( node.src, {
|
194
|
+
nonce: node.nonce || node.getAttribute( "nonce" )
|
195
|
+
}, doc );
|
196
|
+
}
|
197
|
+
} else {
|
198
|
+
DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
return collection;
|
207
|
+
}
|
208
|
+
|
209
|
+
function remove( elem, selector, keepData ) {
|
210
|
+
var node,
|
211
|
+
nodes = selector ? jQuery.filter( selector, elem ) : elem,
|
212
|
+
i = 0;
|
213
|
+
|
214
|
+
for ( ; ( node = nodes[ i ] ) != null; i++ ) {
|
215
|
+
if ( !keepData && node.nodeType === 1 ) {
|
216
|
+
jQuery.cleanData( getAll( node ) );
|
217
|
+
}
|
218
|
+
|
219
|
+
if ( node.parentNode ) {
|
220
|
+
if ( keepData && isAttached( node ) ) {
|
221
|
+
setGlobalEval( getAll( node, "script" ) );
|
222
|
+
}
|
223
|
+
node.parentNode.removeChild( node );
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
return elem;
|
228
|
+
}
|
229
|
+
|
230
|
+
jQuery.extend( {
|
231
|
+
htmlPrefilter: function( html ) {
|
232
|
+
return html;
|
233
|
+
},
|
234
|
+
|
235
|
+
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
|
236
|
+
var i, l, srcElements, destElements,
|
237
|
+
clone = elem.cloneNode( true ),
|
238
|
+
inPage = isAttached( elem );
|
239
|
+
|
240
|
+
// Fix IE cloning issues
|
241
|
+
if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
|
242
|
+
!jQuery.isXMLDoc( elem ) ) {
|
243
|
+
|
244
|
+
// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
|
245
|
+
destElements = getAll( clone );
|
246
|
+
srcElements = getAll( elem );
|
247
|
+
|
248
|
+
for ( i = 0, l = srcElements.length; i < l; i++ ) {
|
249
|
+
fixInput( srcElements[ i ], destElements[ i ] );
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
// Copy the events from the original to the clone
|
254
|
+
if ( dataAndEvents ) {
|
255
|
+
if ( deepDataAndEvents ) {
|
256
|
+
srcElements = srcElements || getAll( elem );
|
257
|
+
destElements = destElements || getAll( clone );
|
258
|
+
|
259
|
+
for ( i = 0, l = srcElements.length; i < l; i++ ) {
|
260
|
+
cloneCopyEvent( srcElements[ i ], destElements[ i ] );
|
261
|
+
}
|
262
|
+
} else {
|
263
|
+
cloneCopyEvent( elem, clone );
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
// Preserve script evaluation history
|
268
|
+
destElements = getAll( clone, "script" );
|
269
|
+
if ( destElements.length > 0 ) {
|
270
|
+
setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
|
271
|
+
}
|
272
|
+
|
273
|
+
// Return the cloned set
|
274
|
+
return clone;
|
275
|
+
},
|
276
|
+
|
277
|
+
cleanData: function( elems ) {
|
278
|
+
var data, elem, type,
|
279
|
+
special = jQuery.event.special,
|
280
|
+
i = 0;
|
281
|
+
|
282
|
+
for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
|
283
|
+
if ( acceptData( elem ) ) {
|
284
|
+
if ( ( data = elem[ dataPriv.expando ] ) ) {
|
285
|
+
if ( data.events ) {
|
286
|
+
for ( type in data.events ) {
|
287
|
+
if ( special[ type ] ) {
|
288
|
+
jQuery.event.remove( elem, type );
|
289
|
+
|
290
|
+
// This is a shortcut to avoid jQuery.event.remove's overhead
|
291
|
+
} else {
|
292
|
+
jQuery.removeEvent( elem, type, data.handle );
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
// Support: Chrome <=35 - 45+
|
298
|
+
// Assign undefined instead of using delete, see Data#remove
|
299
|
+
elem[ dataPriv.expando ] = undefined;
|
300
|
+
}
|
301
|
+
if ( elem[ dataUser.expando ] ) {
|
302
|
+
|
303
|
+
// Support: Chrome <=35 - 45+
|
304
|
+
// Assign undefined instead of using delete, see Data#remove
|
305
|
+
elem[ dataUser.expando ] = undefined;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
} );
|
311
|
+
|
312
|
+
jQuery.fn.extend( {
|
313
|
+
detach: function( selector ) {
|
314
|
+
return remove( this, selector, true );
|
315
|
+
},
|
316
|
+
|
317
|
+
remove: function( selector ) {
|
318
|
+
return remove( this, selector );
|
319
|
+
},
|
320
|
+
|
321
|
+
text: function( value ) {
|
322
|
+
return access( this, function( value ) {
|
323
|
+
return value === undefined ?
|
324
|
+
jQuery.text( this ) :
|
325
|
+
this.empty().each( function() {
|
326
|
+
if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
|
327
|
+
this.textContent = value;
|
328
|
+
}
|
329
|
+
} );
|
330
|
+
}, null, value, arguments.length );
|
331
|
+
},
|
332
|
+
|
333
|
+
append: function() {
|
334
|
+
return domManip( this, arguments, function( elem ) {
|
335
|
+
if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
|
336
|
+
var target = manipulationTarget( this, elem );
|
337
|
+
target.appendChild( elem );
|
338
|
+
}
|
339
|
+
} );
|
340
|
+
},
|
341
|
+
|
342
|
+
prepend: function() {
|
343
|
+
return domManip( this, arguments, function( elem ) {
|
344
|
+
if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
|
345
|
+
var target = manipulationTarget( this, elem );
|
346
|
+
target.insertBefore( elem, target.firstChild );
|
347
|
+
}
|
348
|
+
} );
|
349
|
+
},
|
350
|
+
|
351
|
+
before: function() {
|
352
|
+
return domManip( this, arguments, function( elem ) {
|
353
|
+
if ( this.parentNode ) {
|
354
|
+
this.parentNode.insertBefore( elem, this );
|
355
|
+
}
|
356
|
+
} );
|
357
|
+
},
|
358
|
+
|
359
|
+
after: function() {
|
360
|
+
return domManip( this, arguments, function( elem ) {
|
361
|
+
if ( this.parentNode ) {
|
362
|
+
this.parentNode.insertBefore( elem, this.nextSibling );
|
363
|
+
}
|
364
|
+
} );
|
365
|
+
},
|
366
|
+
|
367
|
+
empty: function() {
|
368
|
+
var elem,
|
369
|
+
i = 0;
|
370
|
+
|
371
|
+
for ( ; ( elem = this[ i ] ) != null; i++ ) {
|
372
|
+
if ( elem.nodeType === 1 ) {
|
373
|
+
|
374
|
+
// Prevent memory leaks
|
375
|
+
jQuery.cleanData( getAll( elem, false ) );
|
376
|
+
|
377
|
+
// Remove any remaining nodes
|
378
|
+
elem.textContent = "";
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
return this;
|
383
|
+
},
|
384
|
+
|
385
|
+
clone: function( dataAndEvents, deepDataAndEvents ) {
|
386
|
+
dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
|
387
|
+
deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
|
388
|
+
|
389
|
+
return this.map( function() {
|
390
|
+
return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
|
391
|
+
} );
|
392
|
+
},
|
393
|
+
|
394
|
+
html: function( value ) {
|
395
|
+
return access( this, function( value ) {
|
396
|
+
var elem = this[ 0 ] || {},
|
397
|
+
i = 0,
|
398
|
+
l = this.length;
|
399
|
+
|
400
|
+
if ( value === undefined && elem.nodeType === 1 ) {
|
401
|
+
return elem.innerHTML;
|
402
|
+
}
|
403
|
+
|
404
|
+
// See if we can take a shortcut and just use innerHTML
|
405
|
+
if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
|
406
|
+
!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
|
407
|
+
|
408
|
+
value = jQuery.htmlPrefilter( value );
|
409
|
+
|
410
|
+
try {
|
411
|
+
for ( ; i < l; i++ ) {
|
412
|
+
elem = this[ i ] || {};
|
413
|
+
|
414
|
+
// Remove element nodes and prevent memory leaks
|
415
|
+
if ( elem.nodeType === 1 ) {
|
416
|
+
jQuery.cleanData( getAll( elem, false ) );
|
417
|
+
elem.innerHTML = value;
|
418
|
+
}
|
419
|
+
}
|
420
|
+
|
421
|
+
elem = 0;
|
422
|
+
|
423
|
+
// If using innerHTML throws an exception, use the fallback method
|
424
|
+
} catch ( e ) {}
|
425
|
+
}
|
426
|
+
|
427
|
+
if ( elem ) {
|
428
|
+
this.empty().append( value );
|
429
|
+
}
|
430
|
+
}, null, value, arguments.length );
|
431
|
+
},
|
432
|
+
|
433
|
+
replaceWith: function() {
|
434
|
+
var ignored = [];
|
435
|
+
|
436
|
+
// Make the changes, replacing each non-ignored context element with the new content
|
437
|
+
return domManip( this, arguments, function( elem ) {
|
438
|
+
var parent = this.parentNode;
|
439
|
+
|
440
|
+
if ( jQuery.inArray( this, ignored ) < 0 ) {
|
441
|
+
jQuery.cleanData( getAll( this ) );
|
442
|
+
if ( parent ) {
|
443
|
+
parent.replaceChild( elem, this );
|
444
|
+
}
|
445
|
+
}
|
446
|
+
|
447
|
+
// Force callback invocation
|
448
|
+
}, ignored );
|
449
|
+
}
|
450
|
+
} );
|
451
|
+
|
452
|
+
jQuery.each( {
|
453
|
+
appendTo: "append",
|
454
|
+
prependTo: "prepend",
|
455
|
+
insertBefore: "before",
|
456
|
+
insertAfter: "after",
|
457
|
+
replaceAll: "replaceWith"
|
458
|
+
}, function( name, original ) {
|
459
|
+
jQuery.fn[ name ] = function( selector ) {
|
460
|
+
var elems,
|
461
|
+
ret = [],
|
462
|
+
insert = jQuery( selector ),
|
463
|
+
last = insert.length - 1,
|
464
|
+
i = 0;
|
465
|
+
|
466
|
+
for ( ; i <= last; i++ ) {
|
467
|
+
elems = i === last ? this : this.clone( true );
|
468
|
+
jQuery( insert[ i ] )[ original ]( elems );
|
469
|
+
|
470
|
+
// Support: Android <=4.0 only, PhantomJS 1 only
|
471
|
+
// .get() because push.apply(_, arraylike) throws on ancient WebKit
|
472
|
+
push.apply( ret, elems.get() );
|
473
|
+
}
|
474
|
+
|
475
|
+
return this.pushStack( ret );
|
476
|
+
};
|
477
|
+
} );
|
478
|
+
|
479
|
+
return jQuery;
|
480
|
+
} );
|
@@ -0,0 +1,232 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./core/access",
|
4
|
+
"./var/documentElement",
|
5
|
+
"./var/isFunction",
|
6
|
+
"./css/var/rnumnonpx",
|
7
|
+
"./css/curCSS",
|
8
|
+
"./css/addGetHookIf",
|
9
|
+
"./css/support",
|
10
|
+
"./var/isWindow",
|
11
|
+
"./core/init",
|
12
|
+
"./css",
|
13
|
+
"./selector" // contains
|
14
|
+
], function( jQuery, access, documentElement, isFunction, rnumnonpx,
|
15
|
+
curCSS, addGetHookIf, support, isWindow ) {
|
16
|
+
|
17
|
+
"use strict";
|
18
|
+
|
19
|
+
jQuery.offset = {
|
20
|
+
setOffset: function( elem, options, i ) {
|
21
|
+
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
|
22
|
+
position = jQuery.css( elem, "position" ),
|
23
|
+
curElem = jQuery( elem ),
|
24
|
+
props = {};
|
25
|
+
|
26
|
+
// Set position first, in-case top/left are set even on static elem
|
27
|
+
if ( position === "static" ) {
|
28
|
+
elem.style.position = "relative";
|
29
|
+
}
|
30
|
+
|
31
|
+
curOffset = curElem.offset();
|
32
|
+
curCSSTop = jQuery.css( elem, "top" );
|
33
|
+
curCSSLeft = jQuery.css( elem, "left" );
|
34
|
+
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
|
35
|
+
( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
|
36
|
+
|
37
|
+
// Need to be able to calculate position if either
|
38
|
+
// top or left is auto and position is either absolute or fixed
|
39
|
+
if ( calculatePosition ) {
|
40
|
+
curPosition = curElem.position();
|
41
|
+
curTop = curPosition.top;
|
42
|
+
curLeft = curPosition.left;
|
43
|
+
|
44
|
+
} else {
|
45
|
+
curTop = parseFloat( curCSSTop ) || 0;
|
46
|
+
curLeft = parseFloat( curCSSLeft ) || 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
if ( isFunction( options ) ) {
|
50
|
+
|
51
|
+
// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
|
52
|
+
options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
|
53
|
+
}
|
54
|
+
|
55
|
+
if ( options.top != null ) {
|
56
|
+
props.top = ( options.top - curOffset.top ) + curTop;
|
57
|
+
}
|
58
|
+
if ( options.left != null ) {
|
59
|
+
props.left = ( options.left - curOffset.left ) + curLeft;
|
60
|
+
}
|
61
|
+
|
62
|
+
if ( "using" in options ) {
|
63
|
+
options.using.call( elem, props );
|
64
|
+
|
65
|
+
} else {
|
66
|
+
curElem.css( props );
|
67
|
+
}
|
68
|
+
}
|
69
|
+
};
|
70
|
+
|
71
|
+
jQuery.fn.extend( {
|
72
|
+
|
73
|
+
// offset() relates an element's border box to the document origin
|
74
|
+
offset: function( options ) {
|
75
|
+
|
76
|
+
// Preserve chaining for setter
|
77
|
+
if ( arguments.length ) {
|
78
|
+
return options === undefined ?
|
79
|
+
this :
|
80
|
+
this.each( function( i ) {
|
81
|
+
jQuery.offset.setOffset( this, options, i );
|
82
|
+
} );
|
83
|
+
}
|
84
|
+
|
85
|
+
var rect, win,
|
86
|
+
elem = this[ 0 ];
|
87
|
+
|
88
|
+
if ( !elem ) {
|
89
|
+
return;
|
90
|
+
}
|
91
|
+
|
92
|
+
// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
|
93
|
+
// Support: IE <=11 only
|
94
|
+
// Running getBoundingClientRect on a
|
95
|
+
// disconnected node in IE throws an error
|
96
|
+
if ( !elem.getClientRects().length ) {
|
97
|
+
return { top: 0, left: 0 };
|
98
|
+
}
|
99
|
+
|
100
|
+
// Get document-relative position by adding viewport scroll to viewport-relative gBCR
|
101
|
+
rect = elem.getBoundingClientRect();
|
102
|
+
win = elem.ownerDocument.defaultView;
|
103
|
+
return {
|
104
|
+
top: rect.top + win.pageYOffset,
|
105
|
+
left: rect.left + win.pageXOffset
|
106
|
+
};
|
107
|
+
},
|
108
|
+
|
109
|
+
// position() relates an element's margin box to its offset parent's padding box
|
110
|
+
// This corresponds to the behavior of CSS absolute positioning
|
111
|
+
position: function() {
|
112
|
+
if ( !this[ 0 ] ) {
|
113
|
+
return;
|
114
|
+
}
|
115
|
+
|
116
|
+
var offsetParent, offset, doc,
|
117
|
+
elem = this[ 0 ],
|
118
|
+
parentOffset = { top: 0, left: 0 };
|
119
|
+
|
120
|
+
// position:fixed elements are offset from the viewport, which itself always has zero offset
|
121
|
+
if ( jQuery.css( elem, "position" ) === "fixed" ) {
|
122
|
+
|
123
|
+
// Assume position:fixed implies availability of getBoundingClientRect
|
124
|
+
offset = elem.getBoundingClientRect();
|
125
|
+
|
126
|
+
} else {
|
127
|
+
offset = this.offset();
|
128
|
+
|
129
|
+
// Account for the *real* offset parent, which can be the document or its root element
|
130
|
+
// when a statically positioned element is identified
|
131
|
+
doc = elem.ownerDocument;
|
132
|
+
offsetParent = elem.offsetParent || doc.documentElement;
|
133
|
+
while ( offsetParent &&
|
134
|
+
( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
|
135
|
+
jQuery.css( offsetParent, "position" ) === "static" ) {
|
136
|
+
|
137
|
+
offsetParent = offsetParent.parentNode;
|
138
|
+
}
|
139
|
+
if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
|
140
|
+
|
141
|
+
// Incorporate borders into its offset, since they are outside its content origin
|
142
|
+
parentOffset = jQuery( offsetParent ).offset();
|
143
|
+
parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
|
144
|
+
parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
// Subtract parent offsets and element margins
|
149
|
+
return {
|
150
|
+
top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
|
151
|
+
left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
|
152
|
+
};
|
153
|
+
},
|
154
|
+
|
155
|
+
// This method will return documentElement in the following cases:
|
156
|
+
// 1) For the element inside the iframe without offsetParent, this method will return
|
157
|
+
// documentElement of the parent window
|
158
|
+
// 2) For the hidden or detached element
|
159
|
+
// 3) For body or html element, i.e. in case of the html node - it will return itself
|
160
|
+
//
|
161
|
+
// but those exceptions were never presented as a real life use-cases
|
162
|
+
// and might be considered as more preferable results.
|
163
|
+
//
|
164
|
+
// This logic, however, is not guaranteed and can change at any point in the future
|
165
|
+
offsetParent: function() {
|
166
|
+
return this.map( function() {
|
167
|
+
var offsetParent = this.offsetParent;
|
168
|
+
|
169
|
+
while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
|
170
|
+
offsetParent = offsetParent.offsetParent;
|
171
|
+
}
|
172
|
+
|
173
|
+
return offsetParent || documentElement;
|
174
|
+
} );
|
175
|
+
}
|
176
|
+
} );
|
177
|
+
|
178
|
+
// Create scrollLeft and scrollTop methods
|
179
|
+
jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
|
180
|
+
var top = "pageYOffset" === prop;
|
181
|
+
|
182
|
+
jQuery.fn[ method ] = function( val ) {
|
183
|
+
return access( this, function( elem, method, val ) {
|
184
|
+
|
185
|
+
// Coalesce documents and windows
|
186
|
+
var win;
|
187
|
+
if ( isWindow( elem ) ) {
|
188
|
+
win = elem;
|
189
|
+
} else if ( elem.nodeType === 9 ) {
|
190
|
+
win = elem.defaultView;
|
191
|
+
}
|
192
|
+
|
193
|
+
if ( val === undefined ) {
|
194
|
+
return win ? win[ prop ] : elem[ method ];
|
195
|
+
}
|
196
|
+
|
197
|
+
if ( win ) {
|
198
|
+
win.scrollTo(
|
199
|
+
!top ? val : win.pageXOffset,
|
200
|
+
top ? val : win.pageYOffset
|
201
|
+
);
|
202
|
+
|
203
|
+
} else {
|
204
|
+
elem[ method ] = val;
|
205
|
+
}
|
206
|
+
}, method, val, arguments.length );
|
207
|
+
};
|
208
|
+
} );
|
209
|
+
|
210
|
+
// Support: Safari <=7 - 9.1, Chrome <=37 - 49
|
211
|
+
// Add the top/left cssHooks using jQuery.fn.position
|
212
|
+
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
|
213
|
+
// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
|
214
|
+
// getComputedStyle returns percent when specified for top/left/bottom/right;
|
215
|
+
// rather than make the css module depend on the offset module, just check for it here
|
216
|
+
jQuery.each( [ "top", "left" ], function( _i, prop ) {
|
217
|
+
jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
|
218
|
+
function( elem, computed ) {
|
219
|
+
if ( computed ) {
|
220
|
+
computed = curCSS( elem, prop );
|
221
|
+
|
222
|
+
// If curCSS returns percentage, fallback to offset
|
223
|
+
return rnumnonpx.test( computed ) ?
|
224
|
+
jQuery( elem ).position()[ prop ] + "px" :
|
225
|
+
computed;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
);
|
229
|
+
} );
|
230
|
+
|
231
|
+
return jQuery;
|
232
|
+
} );
|