linaro-jekyll-theme 0.1.2 → 0.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -19
- data/_data/authors.yml +7 -0
- data/_data/company.yml +29 -0
- data/_data/footer.yml +111 -0
- data/_data/linaro.yml +4 -0
- data/_data/members_db.yaml +115 -0
- data/_data/nav.yml +62 -0
- data/_data/news.yaml +230 -0
- data/_data/sub-nav-stacked.yml +67 -0
- data/_data/sub-nav.yml +61 -0
- data/_includes/_theme-includes/_blog/pagination.html +1 -1
- data/_includes/_theme-includes/_footer/footer.html +54 -23
- data/_includes/_theme-includes/_head/head.html +15 -7
- data/_includes/_theme-includes/_navigation/nav.html +62 -14
- data/_includes/_theme-includes/_navigation/stacked-nav.html +20 -0
- data/_includes/_theme-includes/_navigation/tabbed-nav.html +35 -0
- data/_includes/_theme-includes/_page-structure/breadcrumb.html +77 -27
- data/_includes/_theme-includes/_page-structure/home-hero-shape.html +34 -0
- data/_includes/_theme-includes/_page-structure/home-hero.html +23 -0
- data/_includes/_theme-includes/_page-structure/shape-divider.html +12 -0
- data/_includes/_theme-includes/_script-includes/css.html +40 -1
- data/_includes/_theme-includes/_script-includes/google-analytics/script.html +10 -0
- data/_includes/_theme-includes/_script-includes/gtm/gtm-noscript.html +2 -1
- data/_includes/_theme-includes/_script-includes/gtm/gtm-script.html +9 -7
- data/_includes/_theme-includes/_script-includes/javascript.html +50 -2
- data/_includes/_theme-includes/_third-party/disqus.html +1 -1
- data/_includes/_theme-includes/_third-party/mailchimp-homepage.html +1 -6
- data/_includes/_theme-includes/members.html +3 -3
- data/_includes/image.html +6 -1
- data/_includes/media.html +9 -1
- data/_includes/youtube.html +7 -0
- data/{assets/vendor.js → _layouts/about.html} +0 -0
- data/_layouts/accessory-display-page.html +88 -0
- data/_layouts/blog-breadcrumbless.html +49 -0
- data/_layouts/blog.html +56 -0
- data/_layouts/contact.html +10 -0
- data/_layouts/default-empty.html +11 -0
- data/_layouts/default-no-sub-nav.html +15 -0
- data/_layouts/default-plain.html +16 -0
- data/_layouts/default-stacked-breadcrumb.html +23 -0
- data/_layouts/default-stacked.html +22 -0
- data/_layouts/default.html +20 -0
- data/_layouts/empty.html +10 -0
- data/_layouts/{plain-page.html → fluid-no-sub-nav.html} +2 -2
- data/_layouts/fluid.html +15 -0
- data/_layouts/home-shape.html +18 -0
- data/_layouts/home.html +18 -0
- data/_layouts/post.html +146 -0
- data/_layouts/product-display-page.html +262 -0
- data/_layouts/project-display-page.html +28 -0
- data/_sass/bootstrap/_variables.scss +28 -5
- data/{_assets/css → _sass}/core/animations.scss +0 -0
- data/{_assets/css → _sass}/core/blog.scss +36 -25
- data/{_assets/css → _sass}/core/breadcrumb.scss +20 -1
- data/_sass/core/carousel-styles.scss +3 -0
- data/{_assets/css → _sass}/core/carousel.scss +0 -0
- data/{_assets/css → _sass}/core/cookieconsent.scss +31 -2
- data/_sass/core/custom.scss +3 -0
- data/{_assets/css → _sass}/core/fa.scss +7 -2
- data/{_assets/css → _sass}/core/flipclock.scss +0 -0
- data/{_assets/css → _sass}/core/font-awesome.min.scss +0 -0
- data/{_assets/css → _sass}/core/fonts.scss +0 -0
- data/{_assets/css → _sass}/core/footer.scss +55 -13
- data/_sass/core/homepage.scss +40 -0
- data/{_assets/css → _sass}/core/lightbox.scss +0 -0
- data/{_assets/css → _sass}/core/nav.scss +136 -15
- data/{_assets/css → _sass}/core/openhours.scss +0 -0
- data/{_assets/css → _sass}/core/owl.carousel.min.scss +1 -1
- data/{_assets/css → _sass}/core/owl.theme.default.min.scss +0 -0
- data/{_assets/css → _sass}/core/products.scss +1 -1
- data/{_assets/css → _sass}/core/projects.scss +0 -0
- data/{_assets/css → _sass}/core/social-media-icons.scss +0 -0
- data/{_assets/css → _sass}/core/syntax.scss +0 -0
- data/{_assets/css → _sass}/core/tables.scss +38 -0
- data/_sass/core/theme.scss +538 -0
- data/_sass/custom.scss +0 -0
- data/assets/css/main-blog.scss +19 -0
- data/assets/css/main-home.scss +16 -0
- data/assets/css/main-lightbox.scss +22 -0
- data/assets/css/main-openhours.scss +19 -0
- data/assets/css/main-products.scss +20 -0
- data/assets/css/main-projects.scss +20 -0
- data/{_assets → assets}/css/main.scss +6 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/fonts/fontello.eot +0 -0
- data/assets/fonts/fontello.svg +44 -0
- data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/fonts/lato-regular/LICENSE.txt +93 -0
- data/assets/fonts/lato-regular/Lato-regular.eot +0 -0
- data/assets/fonts/lato-regular/Lato-regular.svg +435 -0
- data/assets/fonts/lato-regular/Lato-regular.ttf +0 -0
- data/assets/fonts/lato-regular/Lato-regular.woff +0 -0
- data/assets/fonts/lato-regular/Lato-regular.woff2 +0 -0
- data/{_assets → assets}/images/96boards-Logo.svg +0 -0
- data/{_assets → assets}/images/Linaro-Logo_light.png +0 -0
- data/{_assets → assets}/images/Linaro-Logo_standard.svg +0 -0
- data/{_assets → assets}/images/Linaro-Sprinkle.svg +0 -0
- data/assets/images/avatar-placeholder.png +0 -0
- data/assets/images/background-image.jpg +0 -0
- data/assets/images/banner.jpg +0 -0
- data/assets/images/close.png +0 -0
- data/assets/images/css3.png +0 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/images/favicon.png +0 -0
- data/assets/images/html5.png +0 -0
- data/assets/images/jekyll.svg +1 -0
- data/assets/images/js.jpeg +0 -0
- data/assets/images/loading.gif +0 -0
- data/assets/images/next.png +0 -0
- data/assets/images/owl.video.play.png +0 -0
- data/assets/images/placeholder.png +0 -0
- data/assets/images/prev.png +0 -0
- data/assets/images/social-media-image.png +0 -0
- data/assets/js/app/main.js +16 -23
- data/{_assets/js/app/search-page.js → assets/js/app/search.js} +1 -1
- data/{_assets/js/app/sticky-navbar.js → assets/js/app/sticky.js} +0 -0
- data/assets/js/app/tables.js +8 -0
- data/assets/js/vendor/cognito-forms.js +150 -0
- data/assets/js/vendor/cookieconsent.min.js +2 -9
- data/assets/js/vendor/flipclock.min.js +33 -0
- data/assets/js/vendor/lightbox.min.js +14 -0
- data/robots.txt +9 -0
- metadata +156 -226
- data/_assets/css/_bootstrap-compass.scss +0 -9
- data/_assets/css/_bootstrap-mincer.scss +0 -19
- data/_assets/css/_bootstrap-sprockets.scss +0 -9
- data/_assets/css/_bootstrap.scss +0 -56
- data/_assets/css/blog-pages.scss +0 -5
- data/_assets/css/bootstrap/_alerts.scss +0 -73
- data/_assets/css/bootstrap/_badges.scss +0 -68
- data/_assets/css/bootstrap/_breadcrumbs.scss +0 -28
- data/_assets/css/bootstrap/_button-groups.scss +0 -244
- data/_assets/css/bootstrap/_buttons.scss +0 -168
- data/_assets/css/bootstrap/_carousel.scss +0 -270
- data/_assets/css/bootstrap/_close.scss +0 -36
- data/_assets/css/bootstrap/_code.scss +0 -69
- data/_assets/css/bootstrap/_component-animations.scss +0 -37
- data/_assets/css/bootstrap/_dropdowns.scss +0 -216
- data/_assets/css/bootstrap/_forms.scss +0 -617
- data/_assets/css/bootstrap/_glyphicons.scss +0 -307
- data/_assets/css/bootstrap/_grid.scss +0 -84
- data/_assets/css/bootstrap/_input-groups.scss +0 -171
- data/_assets/css/bootstrap/_jumbotron.scss +0 -54
- data/_assets/css/bootstrap/_labels.scss +0 -66
- data/_assets/css/bootstrap/_list-group.scss +0 -130
- data/_assets/css/bootstrap/_media.scss +0 -66
- data/_assets/css/bootstrap/_mixins.scss +0 -40
- data/_assets/css/bootstrap/_modals.scss +0 -150
- data/_assets/css/bootstrap/_navbar.scss +0 -662
- data/_assets/css/bootstrap/_navs.scss +0 -242
- data/_assets/css/bootstrap/_normalize.scss +0 -424
- data/_assets/css/bootstrap/_pager.scss +0 -54
- data/_assets/css/bootstrap/_pagination.scss +0 -89
- data/_assets/css/bootstrap/_panels.scss +0 -271
- data/_assets/css/bootstrap/_popovers.scss +0 -131
- data/_assets/css/bootstrap/_print.scss +0 -101
- data/_assets/css/bootstrap/_progress-bars.scss +0 -87
- data/_assets/css/bootstrap/_responsive-embed.scss +0 -35
- data/_assets/css/bootstrap/_responsive-utilities.scss +0 -179
- data/_assets/css/bootstrap/_scaffolding.scss +0 -161
- data/_assets/css/bootstrap/_tables.scss +0 -234
- data/_assets/css/bootstrap/_theme.scss +0 -291
- data/_assets/css/bootstrap/_thumbnails.scss +0 -38
- data/_assets/css/bootstrap/_tooltip.scss +0 -101
- data/_assets/css/bootstrap/_type.scss +0 -298
- data/_assets/css/bootstrap/_utilities.scss +0 -55
- data/_assets/css/bootstrap/_variables.scss +0 -874
- data/_assets/css/bootstrap/_wells.scss +0 -29
- data/_assets/css/bootstrap/mixins/_alerts.scss +0 -14
- data/_assets/css/bootstrap/mixins/_background-variant.scss +0 -12
- data/_assets/css/bootstrap/mixins/_border-radius.scss +0 -18
- data/_assets/css/bootstrap/mixins/_buttons.scss +0 -65
- data/_assets/css/bootstrap/mixins/_center-block.scss +0 -7
- data/_assets/css/bootstrap/mixins/_clearfix.scss +0 -22
- data/_assets/css/bootstrap/mixins/_forms.scss +0 -88
- data/_assets/css/bootstrap/mixins/_gradients.scss +0 -58
- data/_assets/css/bootstrap/mixins/_grid-framework.scss +0 -81
- data/_assets/css/bootstrap/mixins/_grid.scss +0 -122
- data/_assets/css/bootstrap/mixins/_hide-text.scss +0 -21
- data/_assets/css/bootstrap/mixins/_image.scss +0 -33
- data/_assets/css/bootstrap/mixins/_labels.scss +0 -12
- data/_assets/css/bootstrap/mixins/_list-group.scss +0 -32
- data/_assets/css/bootstrap/mixins/_nav-divider.scss +0 -10
- data/_assets/css/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/_assets/css/bootstrap/mixins/_opacity.scss +0 -8
- data/_assets/css/bootstrap/mixins/_pagination.scss +0 -24
- data/_assets/css/bootstrap/mixins/_panels.scss +0 -24
- data/_assets/css/bootstrap/mixins/_progress-bar.scss +0 -10
- data/_assets/css/bootstrap/mixins/_reset-filter.scss +0 -8
- data/_assets/css/bootstrap/mixins/_reset-text.scss +0 -18
- data/_assets/css/bootstrap/mixins/_resize.scss +0 -6
- data/_assets/css/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/_assets/css/bootstrap/mixins/_size.scss +0 -10
- data/_assets/css/bootstrap/mixins/_tab-focus.scss +0 -9
- data/_assets/css/bootstrap/mixins/_table-row.scss +0 -28
- data/_assets/css/bootstrap/mixins/_text-emphasis.scss +0 -12
- data/_assets/css/bootstrap/mixins/_text-overflow.scss +0 -8
- data/_assets/css/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/_assets/css/core/critical.scss +0 -991
- data/_assets/css/core/homepage.scss +0 -16
- data/_assets/css/core/members-sprite.scss +0 -425
- data/_assets/css/core/theme.scss +0 -244
- data/_assets/css/documentation-pages.scss +0 -3
- data/_assets/css/home-page.scss +0 -3
- data/_assets/css/openhours-page.scss +0 -4
- data/_assets/css/products-pages.scss +0 -5
- data/_assets/css/projects-pages.scss +0 -5
- data/_assets/js/app/96boards.js +0 -133
- data/_assets/js/app/mixitup.js +0 -23
- data/_assets/js/app.js +0 -5
- data/_assets/js/vendor/bootstrap.min.js +0 -7
- data/_assets/js/vendor/cookieconsent.min.js +0 -15
- data/_assets/js/vendor/filtrify.js +0 -11
- data/_assets/js/vendor/flipclock.min.js +0 -2
- data/_assets/js/vendor/jquery.min.js +0 -4
- data/_assets/js/vendor/lazysizes.min.js +0 -2
- data/_assets/js/vendor/lightbox.js +0 -519
- data/_assets/js/vendor/loadCSS.js +0 -35
- data/_assets/js/vendor/loadCSS.min.js +0 -2
- data/_assets/js/vendor/mc-validate.js +0 -14
- data/_assets/js/vendor/owl.carousel.min.js +0 -27
- data/_assets/js/vendor/picturefill.min.js +0 -5
- data/_assets/js/vendor/shuffle.js +0 -2004
- data/_assets/js/vendor.js +0 -6
- data/_includes/_theme-includes/_footer/backup.html +0 -71
- data/_includes/_theme-includes/_head/ascii-art.html +0 -11
- data/_includes/_theme-includes/_navigation/_sub-navigation/tabbed-nav.html +0 -150
- data/_includes/_theme-includes/_page-structure/old-breadcrumb.html +0 -139
- data/_includes/_theme-includes/_third-party/mailchimp-sub-footer.html +0 -40
- data/_layouts/empty-container-page.html +0 -13
- data/_sass/animations.scss +0 -125
- data/_sass/blog.scss +0 -188
- data/_sass/breadcrumb.scss +0 -48
- data/_sass/carousel.scss +0 -122
- data/_sass/cookieconsent.scss +0 -13
- data/_sass/critical.scss +0 -991
- data/_sass/fa.scss +0 -2331
- data/_sass/flipclock.scss +0 -435
- data/_sass/font-awesome.min.scss +0 -4
- data/_sass/fonts.scss +0 -7
- data/_sass/footer.scss +0 -76
- data/_sass/lightbox.scss +0 -213
- data/_sass/members-sprite.scss +0 -425
- data/_sass/nav.scss +0 -533
- data/_sass/openhours.scss +0 -51
- data/_sass/owl.carousel.min.scss +0 -6
- data/_sass/owl.theme.default.min.scss +0 -6
- data/_sass/products.scss +0 -214
- data/_sass/projects.scss +0 -34
- data/_sass/social-media-icons.scss +0 -71
- data/_sass/syntax.scss +0 -65
- data/_sass/tables.scss +0 -87
- data/_sass/theme.scss +0 -208
- data/assets/js/app/mixitup.js +0 -23
- data/assets/js/app/search-page.js +0 -41
- data/assets/js/app/sticky-navbar.js +0 -65
- data/assets/js/vendor/lightbox.js +0 -519
- data/assets/js/vendor/picturefill.min.js +0 -5
- data/assets/js/vendor/shuffle.js +0 -2004
@@ -0,0 +1 @@
|
|
1
|
+
<svg width="2500" height="1021" viewBox="0 0 512 209" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><defs><linearGradient x1="23.962%" y1="46.043%" x2="68.784%" y2="55.602%" id="a"><stop stop-color="#919191" offset="0%"/><stop stop-color="#FFF" offset="100%"/></linearGradient><linearGradient x1="26.427%" y1="42.381%" x2="67.132%" y2="51.906%" id="b"><stop stop-color="#900" offset="0%"/><stop stop-color="#E80000" offset="100%"/></linearGradient><linearGradient x1="50%" y1="99.822%" x2="50%" y2="-.044%" id="c"><stop stop-color="#1A1A1A" offset="0%"/><stop stop-color="#4A4A4C" offset="40.26%"/><stop stop-color="#333" offset="100%"/></linearGradient></defs><path d="M459.303 4.292c-.1.399-.1.798 0 1.197 0 0 1.297 8.484-.2 12.276l-61.48 159.988c-4.391 11.777 1.497 24.851 13.274 29.343 11.777 4.49 24.852-1.298 29.543-12.975l61.48-159.988c1.197-3.094 8.084-9.182 8.084-9.182.3-.3.599-.599.798-.898v-.1c0-.1.1-.1.1-.2 1.597-4.091-8.683-11.876-22.855-17.365C473.874.898 461-.2 459.403 3.992c0 0-.1.1-.1.3z" opacity=".1"/><path d="M63.276 2.894c-.1.4-.1.799 0 1.198 0 0 1.298 8.483-.2 12.276L1.597 176.356c-4.39 11.777 1.498 24.851 13.275 29.342 11.777 4.491 24.851-1.297 29.542-12.974l61.48-159.988c1.198-3.094 8.084-9.182 8.084-9.182.3-.3.6-.599.799-.898v-.1c0-.1.1-.1.1-.2 1.597-4.092-8.683-11.876-22.856-17.366C77.848-.499 64.973-1.597 63.376 2.595c0 .1 0 .2-.1.3z" fill="url(#a)" transform="translate(394.23)"/><path d="M82.639 75.253L38.225 190.628c-3.293 8.284-12.775 12.575-21.258 9.282-8.484-3.294-12.975-12.975-9.88-21.259l28.344-73.756s3.493-5.689 10.48-9.78c6.986-4.093 12.675-3.195 20.36-6.588 7.784-3.393 16.368-13.274 16.368-13.274z" fill="url(#b)" transform="translate(394.23)"/><path d="M498.406 19.019c.885-2.309-5.483-6.916-14.222-10.29-8.74-3.374-16.542-4.238-17.426-1.93-.885 2.309 5.483 6.915 14.222 10.29 8.74 3.374 16.542 4.238 17.426 1.93z" fill="#333"/><path d="M457.093 4.08s1.289 8.46-.199 12.242l-61.078 159.537c-4.362 11.743 1.488 24.781 13.188 29.26 1.983.796 4.065 1.293 6.147 1.393a23.035 23.035 0 0 1-7.635-26.274l59.889-156.352s-8.23-7.664-10.312-19.806z" opacity=".3" fill="#FFF"/><g transform="translate(420.01 104.5)" fill="#FFF" opacity=".5"><ellipse cx="17.451" cy="2.488" rx="1.785" ry="1.791"/><ellipse cx="29.052" cy="15.327" rx="2.677" ry="2.687"/><ellipse cx="11.303" cy="30.653" rx="5.057" ry="5.076"/><ellipse cx="3.173" cy="40.009" rx="2.677" ry="2.687"/><ellipse cx="13.782" cy="59.913" rx="1.785" ry="1.791"/></g><path d="M120.465 97.135c2.694 2.19 7.585.896 10.878-2.687 3.494-3.782 3.993-8.658 1.298-10.848-2.695-2.19-7.585-.896-10.879 2.886-3.493 3.782-4.092 8.56-1.297 10.65zm-8.084 7.066c-.7 0-1.997 1.294-.899 1.792 1.497.497 2.196 1.791 2.196 3.583-1.297 7.464-10.58 15.924-14.172 18.81-.899.895.399 2.886 1.297 2.19 1.996-1.593 6.188-4.877 9.581-9.256-5.589 12.44-16.567 28.563-20.759 34.236-16.368 22.592-41.22 43.392-58.286 43.392-13.674 0-25.25-9.256-27.746-22.79-.2-1.494-2.196-1.792-1.797.198 3.094 18.611 17.466 25.876 34.832 25.876 19.063 0 41.42-13.734 53.795-27.866 19.961-22.791 32.836-49.066 29.443-63.895-1.397-5.473-5.29-6.37-7.485-6.27zm122.66 49.663c5.29-1.294 9.581-4.18 9.581-8.758 0-.498-.898-.498-.898 0 0 2.687-3.094 4.976-6.587 5.474-8.184 1.293-24.353-8.261-31.938-18.114 8.184 3.085 24.852-1.393 32.736-7.066 7.286-5.275 10.18-11.047 10.68-15.725.898-7.763-7.586-12.34-19.463-7.763-7.585 3.086-16.667 9.754-26.148 22.294 9.98-16.422 29.642-43.293 48.904-60.411 23.454-20.8 37.028-16.82 15.969 5.275-8.683 9.056-25.051 20.8-36.33 25.876-3.492 1.493-1.796 3.483.7 2.388 11.976-5.274 27.945-16.123 37.626-25.18 28.544-27.368 4.69-47.97-26.848-19.008-21.458 19.705-35.43 40.307-47.607 67.079-4.191 5.075-7.285 9.255-11.078 12.44-.5.398-.798.796-1.098 1.195-10.48 8.957-26.947 21.099-37.227 21.198-7.286.2-10.38-5.275-9.082-12.34 1.996-11.048 13.473-24.086 23.254-28.564 12.675-5.773 20.16 5.474 3.493 14.43-6.387 3.285-13.972 5.076-17.066 5.076-3.593 0-3.294 1.493-.2 1.593 5.09.199 13.274-1.99 18.664-4.479 17.066-8.16 18.164-23.388-.4-23.885-20.16-.697-44.313 16.421-44.113 38.018.2 9.753 7.984 15.028 18.663 15.028 17.865-.2 33.734-13.735 46.809-25.677 1.896-1.593 3.692-3.285 5.489-5.076-4.591 11.545-6.887 22.293-5.789 30.255.699 5.773 3.992 8.46 6.587 10.65.5.397 1.597 0 .899-1.096-3.793-4.478-2.695-17.914 2.495-30.951 4.391 8.758 21.458 19.805 39.323 15.824zm-21.458-37.72c20.86-18.61 29.043-1.99 15.769 8.161-6.887 5.275-20.56 9.256-24.851 6.668l-.899-.497c-.499-.896-1.098-1.792-1.497-2.687 3.493-4.28 7.486-8.062 11.478-11.645zm115.973-21.198c8.384.895 4.89-9.256-3.593-6.668-3.792 1.094-7.485 8.36-10.18 14.63-8.383 12.44-22.356 29.459-32.137 38.416-8.683 7.464-16.667 9.455-6.887-4.479 3.993-5.573 9.083-11.545 11.977-17.516 6.887-15.028-7.785-21.696-19.662-12.64-6.886 5.275-16.168 16.123-23.454 22.095-1.996 1.592-1.497 3.98.5 2.388 5.788-4.677 15.968-15.426 24.751-21.696 7.286-5.573 10.18-1.99 5.988 2.687-5.788 6.668-15.969 18.313-18.563 25.677-3.593 11.048.698 15.924 7.984 15.924 9.98 0 24.851-15.525 34.832-27.866 3.293-4.18 6.886-9.057 9.98-13.735-8.683 16.82-17.765 33.838-29.043 49.265-15.969 21.696-35.93 38.018-54.893 38.018-13.673 0-25.45-9.256-27.945-22.791-.2-1.493-1.996-1.792-1.797.199 3.094 18.61 17.466 25.876 34.832 25.876 19.063 0 37.427-11.047 50.302-24.582 25.95-27.37 29.043-58.122 37.028-75.34 3.792-7.862 7.186-8.16 9.98-7.862zM435.15 68.67c3.793-6.469 3.593-11.544-5.29-11.544-6.687.199-18.863 4.876-24.552 9.255-1.297 1.294-.698 1.99.899 1.294 1.097-.398 2.395-1.095 3.593-1.592 6.387-3.484 3.792 3.782 2.395 6.469-7.585 13.237-21.059 31.847-28.145 41.103a140.677 140.677 0 0 1-10.879 12.938c-6.787 6.47-20.26 17.915-30.54 21.696-33.036 12.341 9.082-43.79 12.575-48.368 7.785-9.753 25.25-26.772 30.54-35.331 3.793-6.47 3.594-11.545-5.29-11.545-6.686.2-18.862 4.877-24.551 9.256-1.298 1.294-.699 1.99.898 1.294 1.098-.398 2.395-1.095 3.593-1.593 6.388-3.483 3.793 3.782 2.395 6.47-7.585 13.236-21.058 31.847-28.145 41.103-5.788 7.763-12.874 15.525-18.364 19.904-2.195 1.792-.898 3.484 1.298 1.991 1.996-1.294 4.89-4.18 8.184-7.564-5.989 11.943-10.879 28.763 4.89 30.753 13.474 1.791 29.443-11.843 39.822-21.995l3.693-3.682.898-.896c-5.988 11.943-10.878 28.763 4.89 30.753 17.267 2.389 38.725-20.8 47.01-29.36 1.596-1.592 1.097-4.379-1.598-1.592-4.89 5.076-21.458 20.104-33.434 24.582-33.036 12.341 9.082-43.79 12.575-48.368 7.885-9.952 25.35-26.971 30.64-35.43z" opacity=".1"/><path d="M118.668 95.443c2.695 2.19 7.585.896 10.879-2.687 3.493-3.782 3.992-8.658 1.297-10.848-2.694-2.19-7.585-.896-10.878 2.886-3.493 3.782-3.993 8.46-1.298 10.65zm-7.984 7.067c-.699 0-1.996 1.293-.898 1.791 1.497.498 2.195 1.791 2.195 3.583-1.297 7.464-10.58 15.924-14.172 18.81-.898.896.4 2.886 1.297 2.19 1.997-1.593 6.188-4.877 9.582-9.256-5.59 12.44-16.568 28.563-20.76 34.236-16.368 22.592-41.22 43.392-58.286 43.392-13.673 0-25.25-9.256-27.746-22.79-.2-1.494-2.195-1.792-1.796.198 3.094 18.611 17.466 25.876 34.832 25.876 19.063 0 41.419-13.734 53.795-27.866 19.96-22.791 32.836-49.065 29.442-63.894-1.497-5.574-5.29-6.47-7.485-6.27zm122.56 49.662c5.29-1.294 9.582-4.18 9.582-8.758 0-.498-.899-.498-.899 0 0 2.687-3.093 4.976-6.587 5.474-8.184 1.293-24.352-8.26-31.937-18.114 8.184 3.086 24.851-1.393 32.736-7.066 7.286-5.275 10.18-11.047 10.679-15.725.898-7.763-7.585-12.34-19.462-7.763-7.585 3.086-16.668 9.754-26.149 22.294 9.98-16.422 29.642-43.293 48.905-60.411 23.454-20.8 37.027-16.82 15.968 5.275-8.683 9.056-25.05 20.8-36.329 25.876-3.493 1.493-1.796 3.483.699 2.388 11.977-5.274 27.945-16.122 37.626-25.18 28.545-27.368 4.691-47.97-26.847-19.008-21.458 19.606-35.43 40.307-47.607 67.079-4.192 5.076-7.286 9.256-11.079 12.44-.499.398-.798.797-1.097 1.195-10.48 8.957-26.948 21.099-37.228 21.198-7.285.2-10.38-5.275-9.082-12.34 1.996-11.048 13.474-24.086 23.255-28.564 12.675-5.772 20.16 5.474 3.493 14.43-6.388 3.285-13.973 5.077-17.067 5.077-3.593 0-3.293 1.492-.2 1.592 5.09.199 13.275-1.99 18.664-4.479 17.067-8.16 18.165-23.388-.4-23.885-20.16-.697-44.313 16.421-44.113 38.018.2 9.753 7.984 15.028 18.664 15.028 17.865-.2 33.734-13.734 46.808-25.677 1.896-1.593 3.693-3.285 5.49-5.076-4.592 11.545-6.887 22.293-5.79 30.255.7 5.773 3.993 8.46 6.588 10.65.499.397 1.597 0 .898-1.095-3.792-4.479-2.695-17.915 2.495-30.952 4.491 8.758 21.558 19.805 39.323 15.824zm-21.458-37.82c20.86-18.61 29.044-1.99 15.77 8.162-6.887 5.275-20.56 9.256-24.852 6.668l-.898-.498c-.5-.895-1.098-1.791-1.497-2.687 3.493-4.18 7.485-8.061 11.477-11.644zM327.76 93.255c8.383.896 4.89-9.256-3.593-6.668-3.793 1.094-7.486 8.36-10.18 14.63-8.384 12.44-22.357 29.459-32.137 38.416-8.684 7.464-16.668 9.455-6.887-4.479 3.992-5.573 9.082-11.544 11.977-17.516 6.886-15.028-7.785-21.696-19.662-12.64-6.887 5.275-16.168 16.123-23.454 22.095-1.996 1.592-1.497 3.98.499 2.388 5.789-4.677 15.969-15.426 24.751-21.696 7.286-5.573 10.18-1.99 5.989 2.687-5.789 6.669-15.969 18.313-18.564 25.678-3.593 11.047.699 15.923 7.984 15.923 9.98 0 24.852-15.525 34.832-27.866 3.294-4.18 6.887-9.057 9.98-13.735-8.682 16.82-17.764 33.839-29.042 49.265-15.97 21.696-35.93 38.018-54.893 38.018-13.673 0-25.45-9.256-27.946-22.791-.2-1.493-1.996-1.792-1.796.199 3.094 18.61 17.466 25.876 34.832 25.876 19.063 0 37.427-11.047 50.302-24.582 25.949-27.37 29.043-58.122 37.027-75.34 3.793-7.862 7.286-8.26 9.98-7.862zM433.354 66.88c3.792-6.469 3.593-11.545-5.29-11.545-6.687.2-18.863 4.877-24.552 9.256-1.298 1.294-.699 1.99.898 1.294 1.098-.398 2.395-1.095 3.593-1.593 6.388-3.483 3.793 3.782 2.395 6.47-7.585 13.236-21.058 31.847-28.145 41.103a140.677 140.677 0 0 1-10.878 12.938c-6.787 6.469-20.26 17.914-30.54 21.696-33.036 12.341 9.082-43.79 12.575-48.369 7.785-9.753 25.25-26.771 30.54-35.33 3.793-6.47 3.593-11.545-5.29-11.545-6.687.199-18.863 4.876-24.552 9.255-1.297 1.294-.698 1.991.899 1.294 1.097-.398 2.395-1.094 3.593-1.592 6.387-3.483 3.792 3.782 2.395 6.469-7.585 13.237-21.059 31.848-28.145 41.103-5.789 7.763-12.875 15.526-18.364 19.905-2.196 1.791-.898 3.483 1.297 1.99 1.996-1.293 4.89-4.18 8.184-7.563-5.988 11.943-10.879 28.762 4.89 30.753 13.474 1.791 29.443-11.844 39.823-21.995l3.693-3.683.898-.895c-5.988 11.943-10.879 28.762 4.89 30.753 17.267 2.388 38.725-20.8 47.009-29.36 1.596-1.592 1.097-4.379-1.597-1.592-4.89 5.075-21.458 20.103-33.435 24.582-33.035 12.341 9.082-43.79 12.575-48.369 7.985-9.952 25.35-26.97 30.64-35.43z" fill="url(#c)"/></svg>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/js/app/main.js
CHANGED
@@ -1,36 +1,21 @@
|
|
1
|
-
$(document).ready(function () {
|
2
|
-
|
3
|
-
function nextDay(x){
|
4
|
-
var now = new Date();
|
5
|
-
now.setDate(now.getDate() + (x+(7-now.getDay())) % 7);
|
6
|
-
return now;
|
7
|
-
}
|
8
1
|
|
9
|
-
var nextOpenHours = nextDay(4);
|
10
2
|
|
11
|
-
//The date of the open hours
|
12
|
-
var date = new Date(Date.UTC(nextOpenHours.getFullYear(), nextOpenHours.getMonth(), nextOpenHours.getDate(), 16, 0, 0));
|
13
|
-
var now = new Date();
|
14
|
-
var diff = date.getTime()/1000 - now.getTime()/1000;
|
15
3
|
|
16
|
-
|
17
|
-
var now2 = new Date();
|
18
|
-
var diff2 = date2.getTime()/1000 - now2.getTime()/1000;
|
4
|
+
$(document).ready(function () {
|
19
5
|
|
20
|
-
|
21
|
-
|
22
|
-
countdown: true
|
23
|
-
});
|
6
|
+
//Scrolling sticking on IOS7
|
7
|
+
if (navigator.userAgent.match(/.*CPU.*OS 7_\d/i)){$('html').addClass('ios7');}
|
24
8
|
|
25
|
-
var clock = $('.expired-clock').FlipClock(diff2, {
|
26
|
-
clockFace: 'DailyCounter',
|
27
|
-
countdown: true
|
28
|
-
});
|
29
9
|
|
30
10
|
$("#closeForm").click(function(){
|
31
11
|
$("#searchDropdown").dropdown('toggle');
|
32
12
|
});
|
33
13
|
|
14
|
+
// //Close the bootstrap navigation bar by clicking another part of the current page.
|
15
|
+
// $(document).on('click',function(){
|
16
|
+
// $('#navbar-collapse').collapse('hide');
|
17
|
+
// });
|
18
|
+
|
34
19
|
$('.main-navbar ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
|
35
20
|
event.preventDefault();
|
36
21
|
event.stopPropagation();
|
@@ -70,6 +55,14 @@ $(document).ready(function () {
|
|
70
55
|
|
71
56
|
$('.main-navbar > nav').removeClass('no-js-navbar');
|
72
57
|
|
58
|
+
// $('.main-navbar .dropdown').on('show.bs.dropdown', function() {
|
59
|
+
// $(this).find('.dropdown-menu').first().stop(true, true).slideDown();
|
60
|
+
// });
|
61
|
+
//
|
62
|
+
// $('.main-navbar .dropdown').on('hide.bs.dropdown', function() {
|
63
|
+
// $(this).find('.dropdown-menu').first().stop(true, true).slideUp();
|
64
|
+
// });
|
65
|
+
|
73
66
|
$(function () {
|
74
67
|
|
75
68
|
function closeSearch() {
|
@@ -38,4 +38,4 @@ function getAllUrlParams(url) {
|
|
38
38
|
var searchQuery = getAllUrlParams().q;
|
39
39
|
|
40
40
|
|
41
|
-
$('#searchIframe').attr('src', "https://search.linaro.org/search/?fields.label=
|
41
|
+
$('#searchIframe').attr('src', "https://search.linaro.org/search/?fields.label=OpTee&q=" + searchQuery);
|
File without changes
|
@@ -0,0 +1,150 @@
|
|
1
|
+
(function (window, document) {
|
2
|
+
// Ensure we have not already been loaded
|
3
|
+
if (window['Cognito'] && window['Cognito'].config && window['Cognito'].config.scripts && window['Cognito'].config.embedLoaded) return;
|
4
|
+
|
5
|
+
if (document.location.hash) {
|
6
|
+
var hash = decodeURIComponent(document.location.hash);
|
7
|
+
|
8
|
+
if (hash.match(/#.{44}[*!]/gi)) {
|
9
|
+
var frames = document.getElementsByTagName('iframe');
|
10
|
+
frames[frames.length - 1].src += hash;
|
11
|
+
frames[frames.length - 1].scrollIntoView();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
// Ensure we do not double-up the script
|
16
|
+
Cognito = window['Cognito'] = window['Cognito'] || {};
|
17
|
+
Cognito.config = Cognito['config'] || {};
|
18
|
+
|
19
|
+
Cognito.config.embedLoaded = true;
|
20
|
+
|
21
|
+
var readyHandlers = [];
|
22
|
+
|
23
|
+
// Locate an iframe element based upon the content window
|
24
|
+
function getIframe(frameWindow) {
|
25
|
+
var iframes = document.getElementsByTagName('iframe');
|
26
|
+
for (var i = 0; i < iframes.length; i++) {
|
27
|
+
if (frameWindow === iframes[i].contentWindow) {
|
28
|
+
return iframes[i];
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
return null;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Helper methods
|
36
|
+
// Prefill framed form
|
37
|
+
Cognito.prefill = function Cognito$prefill(/*entry [,frame]*/) {
|
38
|
+
var targetFrame;
|
39
|
+
var entry = arguments[0];
|
40
|
+
if (arguments.length > 1 && arguments[1].tagName && arguments[1].tagName.toLowerCase() === 'iframe') {
|
41
|
+
targetFrame = arguments[1];
|
42
|
+
}
|
43
|
+
|
44
|
+
if (!targetFrame) {
|
45
|
+
var iframes = document.getElementsByTagName('iframe');
|
46
|
+
for (var i = 0; i < iframes.length && !targetFrame; i++) {
|
47
|
+
if (iframes[i].src.indexOf('cognito') > -1) {
|
48
|
+
targetFrame = iframes[i];
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
readyHandlers.push(function () {
|
54
|
+
targetFrame.contentWindow.postMessage(JSON.stringify({ event: 'prefill', data: { entry: entry } }), '*');
|
55
|
+
});
|
56
|
+
};
|
57
|
+
|
58
|
+
// Allow end users to specify css to be applied to content within the form frame
|
59
|
+
Cognito.setCss = function Cognito$setCss(css) {
|
60
|
+
readyHandlers.push(function (source) {
|
61
|
+
source.postMessage(JSON.stringify({ event: 'setCss', data: { css: css } }), '*');
|
62
|
+
});
|
63
|
+
};
|
64
|
+
|
65
|
+
// Event handlers
|
66
|
+
var handlers =
|
67
|
+
{
|
68
|
+
// Adjust iframe height to match inner content
|
69
|
+
heightChanged: function handlers$heightChanged(source, params) {
|
70
|
+
var height = params.height;
|
71
|
+
|
72
|
+
var cognitoFrame = getIframe(source);
|
73
|
+
|
74
|
+
// Set frame height
|
75
|
+
cognitoFrame.height = (height) + "px";
|
76
|
+
|
77
|
+
// Ensure iframe is visible
|
78
|
+
if (cognitoFrame.style.display === 'none') {
|
79
|
+
cognitoFrame.style.display = 'block';
|
80
|
+
}
|
81
|
+
},
|
82
|
+
|
83
|
+
// Navigate current page, if needed
|
84
|
+
navigate: function handlers$navigate(source, params) {
|
85
|
+
if (params.url) {
|
86
|
+
window.top.document.location.href = params.url;
|
87
|
+
}
|
88
|
+
},
|
89
|
+
|
90
|
+
// Cognito document ready
|
91
|
+
domReady: function handlers$domReady(source, params) {
|
92
|
+
var iframe = getIframe(source);
|
93
|
+
iframe.setAttribute('scrolling', 'no');
|
94
|
+
|
95
|
+
var entry = '';
|
96
|
+
var foundEntry = /[\\?&]entry=([^&#]*)/.exec(document.location.search);
|
97
|
+
if (foundEntry) {
|
98
|
+
entry = foundEntry[1];
|
99
|
+
}
|
100
|
+
|
101
|
+
var initData = {
|
102
|
+
embedUrl: document.location.href,
|
103
|
+
entry: entry
|
104
|
+
};
|
105
|
+
|
106
|
+
source.postMessage(JSON.stringify({ event: 'init', data: initData }), '*');
|
107
|
+
|
108
|
+
for (var i = 0; i < readyHandlers.length; i++) {
|
109
|
+
readyHandlers[i](source);
|
110
|
+
}
|
111
|
+
},
|
112
|
+
|
113
|
+
// Update hash
|
114
|
+
updateHash: function handlers$updateHash(source, params) {
|
115
|
+
document.location.hash = params.hash;
|
116
|
+
},
|
117
|
+
|
118
|
+
// Fire Event
|
119
|
+
fireEvent: function handlers$fireEvent(source, params) {
|
120
|
+
if (window.jQuery) {
|
121
|
+
var jqEvent = $.Event(params.name);
|
122
|
+
$(document).trigger(jqEvent, [params.data]);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
};
|
126
|
+
|
127
|
+
// Event handler for postmessage
|
128
|
+
function handleMessage(e) {
|
129
|
+
if (!e.data) return;
|
130
|
+
|
131
|
+
var payload;
|
132
|
+
try {
|
133
|
+
payload = JSON.parse(e.data);
|
134
|
+
} catch (e) {
|
135
|
+
return;
|
136
|
+
}
|
137
|
+
|
138
|
+
if (!payload) return;
|
139
|
+
|
140
|
+
var handler = handlers[payload.event];
|
141
|
+
if (handler) {
|
142
|
+
handler(e.source, payload);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
// Bind to postMessage
|
147
|
+
var eventMethod = window.addEventListener ? 'addEventListener' : 'attachEvent';
|
148
|
+
var event = window.addEventListener ? 'message' : 'onmessage';
|
149
|
+
window[eventMethod](event, handleMessage, false);
|
150
|
+
})(window, document);
|
@@ -2,14 +2,7 @@
|
|
2
2
|
window.addEventListener("load", function(){
|
3
3
|
window.cookieconsent.initialise({
|
4
4
|
"palette": {
|
5
|
-
"popup": {
|
6
|
-
"background": "#000000",
|
7
|
-
"text": "#ffdf84"
|
8
|
-
},
|
9
|
-
"button": {
|
10
|
-
"background": "#19947b",
|
11
|
-
"text": "#ffffff"
|
12
|
-
}
|
13
5
|
},
|
14
|
-
"
|
6
|
+
"theme": "classic",
|
7
|
+
"position": "bottom-right"
|
15
8
|
})});
|
@@ -1,2 +1,35 @@
|
|
1
1
|
/*! flipclock 2015-08-31 */
|
2
2
|
var Base=function(){};Base.extend=function(a,b){"use strict";var c=Base.prototype.extend;Base._prototyping=!0;var d=new this;c.call(d,a),d.base=function(){},delete Base._prototyping;var e=d.constructor,f=d.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==f)this._constructing=!0,e.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||c).call(arguments[0],d)};return f.ancestor=this,f.extend=this.extend,f.forEach=this.forEach,f.implement=this.implement,f.prototype=d,f.toString=this.toString,f.valueOf=function(a){return"object"==a?f:e.valueOf()},c.call(f,b),"function"==typeof f.init&&f.init(),f},Base.prototype={extend:function(a,b){if(arguments.length>1){var c=this[a];if(c&&"function"==typeof b&&(!c.valueOf||c.valueOf()!=b.valueOf())&&/\bbase\b/.test(b)){var d=b.valueOf();b=function(){var a=this.base||Base.prototype.base;this.base=c;var b=d.apply(this,arguments);return this.base=a,b},b.valueOf=function(a){return"object"==a?b:d},b.toString=Base.toString}this[a]=b}else if(a){var e=Base.prototype.extend;Base._prototyping||"function"==typeof this||(e=this.extend||e);for(var f={toSource:null},g=["constructor","toString","valueOf"],h=Base._prototyping?0:1;i=g[h++];)a[i]!=f[i]&&e.call(this,i,a[i]);for(var i in a)f[i]||e.call(this,i,a[i])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(a,b,c){for(var d in a)void 0===this.prototype[d]&&b.call(c,a[d],d,a)},implement:function(){for(var a=0;a<arguments.length;a++)"function"==typeof arguments[a]?arguments[a](this.prototype):this.prototype.extend(arguments[a]);return this},toString:function(){return String(this.valueOf())}});var FlipClock;!function(a){"use strict";FlipClock=function(a,b,c){return b instanceof Object&&b instanceof Date==!1&&(c=b,b=0),new FlipClock.Factory(a,b,c)},FlipClock.Lang={},FlipClock.Base=Base.extend({buildDate:"2014-12-12",version:"0.7.7",constructor:function(b,c){"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={}),this.setOptions(a.extend(!0,{},b,c))},callback:function(a){if("function"==typeof a){for(var b=[],c=1;c<=arguments.length;c++)arguments[c]&&b.push(arguments[c]);a.apply(this,b)}},log:function(a){window.console&&console.log&&console.log(a)},getOption:function(a){return this[a]?this[a]:!1},getOptions:function(){return this},setOption:function(a,b){this[a]=b},setOptions:function(a){for(var b in a)"undefined"!=typeof a[b]&&this.setOption(b,a[b])}})}(jQuery),function(a){"use strict";FlipClock.Face=FlipClock.Base.extend({autoStart:!0,dividers:[],factory:!1,lists:[],constructor:function(a,b){this.dividers=[],this.lists=[],this.base(b),this.factory=a},build:function(){this.autoStart&&this.start()},createDivider:function(b,c,d){"boolean"!=typeof c&&c||(d=c,c=b);var e=['<span class="'+this.factory.classes.dot+' top"></span>','<span class="'+this.factory.classes.dot+' bottom"></span>'].join("");d&&(e=""),b=this.factory.localize(b);var f=['<span class="'+this.factory.classes.divider+" "+(c?c:"").toLowerCase()+'">','<span class="'+this.factory.classes.label+'">'+(b?b:"")+"</span>",e,"</span>"],g=a(f.join(""));return this.dividers.push(g),g},createList:function(a,b){"object"==typeof a&&(b=a,a=0);var c=new FlipClock.List(this.factory,a,b);return this.lists.push(c),c},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(a){a.$el.append(!1)},addDigit:function(a){var b=this.createList(a,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(b)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(b,c){var d=this;a.each(b,function(a,b){var e=d.lists[a];e?(c||b==e.digit||e.play(),e.select(b)):d.addDigit(b)})}})}(jQuery),function(a){"use strict";FlipClock.Factory=FlipClock.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(b,c,d){d||(d={}),this.lists=[],this.running=!1,this.base(d),this.$el=a(b).addClass(this.classes.wrapper),this.$wrapper=this.$el,this.original=c instanceof Date?c:c?Math.round(c):0,this.time=new FlipClock.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new FlipClock.Timer(this,d),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,d),this.autoStart&&this.start()},loadClockFace:function(a,b){var c,d="Face",e=!1;return a=a.ucfirst()+d,this.face.stop&&(this.stop(),e=!0),this.$el.html(""),this.time.minimumDigits=this.minimumDigits,c=FlipClock[a]?new FlipClock[a](this,b):new FlipClock[this.defaultClockFace+d](this,b),c.build(),this.face=c,e&&this.start(),this.face},loadLanguage:function(a){var b;return b=FlipClock.Lang[a.ucfirst()]?FlipClock.Lang[a.ucfirst()]:FlipClock.Lang[a]?FlipClock.Lang[a]:FlipClock.Lang[this.defaultLanguage],this.lang=b},localize:function(a,b){var c=this.lang;if(!a)return null;var d=a.toLowerCase();return"object"==typeof b&&(c=b),c&&c[d]?c[d]:a},start:function(a){var b=this;b.running||b.countdown&&!(b.countdown&&b.time.time>0)?b.log("Trying to start timer when countdown already at 0"):(b.face.start(b.time),b.timer.start(function(){b.flip(),"function"==typeof a&&a()}))},stop:function(a){this.face.stop(),this.timer.stop(a);for(var b in this.lists)this.lists.hasOwnProperty(b)&&this.lists[b].stop()},reset:function(a){this.timer.reset(a),this.face.reset()},setTime:function(a){this.time.time=a,this.flip(!0)},getTime:function(a){return this.time},setCountdown:function(a){var b=this.running;this.countdown=a?!0:!1,b&&(this.stop(),this.start())},flip:function(a){this.face.flip(!1,a)}})}(jQuery),function(a){"use strict";FlipClock.List=FlipClock.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(a,b,c){this.factory=a,this.digit=b,this.lastDigit=b,this.$el=this.createList(),this.$obj=this.$el,b>0&&this.select(b),this.factory.$el.append(this.$el)},select:function(a){if("undefined"==typeof a?a=this.digit:this.digit=a,this.digit!=this.lastDigit){var b=this.$el.find("."+this.classes.before).removeClass(this.classes.before);this.$el.find("."+this.classes.active).removeClass(this.classes.active).addClass(this.classes.before),this.appendListItem(this.classes.active,this.digit),b.remove(),this.lastDigit=this.digit}},play:function(){this.$el.addClass(this.factory.classes.play)},stop:function(){var a=this;setTimeout(function(){a.$el.removeClass(a.factory.classes.play)},this.factory.timer.interval)},createListItem:function(a,b){return['<li class="'+(a?a:"")+'">','<a href="#">','<div class="up">','<div class="shadow"></div>','<div class="inn">'+(b?b:"")+"</div>","</div>",'<div class="down">','<div class="shadow"></div>','<div class="inn">'+(b?b:"")+"</div>","</div>","</a>","</li>"].join("")},appendListItem:function(a,b){var c=this.createListItem(a,b);this.$el.append(c)},createList:function(){var b=this.getPrevDigit()?this.getPrevDigit():this.digit,c=a(['<ul class="'+this.classes.flip+" "+(this.factory.running?this.factory.classes.play:"")+'">',this.createListItem(this.classes.before,b),this.createListItem(this.classes.active,this.digit),"</ul>"].join(""));return c},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}})}(jQuery),function(a){"use strict";String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},a.fn.FlipClock=function(b,c){return new FlipClock(a(this),b,c)},a.fn.flipClock=function(b,c){return a.fn.FlipClock(b,c)}}(jQuery),function(a){"use strict";FlipClock.Time=FlipClock.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(a,b,c){"object"!=typeof c&&(c={}),c.minimumDigits||(c.minimumDigits=a.minimumDigits),this.base(c),this.factory=a,b&&(this.time=b)},convertDigitsToArray:function(a){var b=[];a=a.toString();for(var c=0;c<a.length;c++)a[c].match(/^\d*$/g)&&b.push(a[c]);return b},digit:function(a){var b=this.toString(),c=b.length;return b[c-a]?b[c-a]:!1},digitize:function(b){var c=[];if(a.each(b,function(a,b){b=b.toString(),1==b.length&&(b="0"+b);for(var d=0;d<b.length;d++)c.push(b.charAt(d))}),c.length>this.minimumDigits&&(this.minimumDigits=c.length),this.minimumDigits>c.length)for(var d=c.length;d<this.minimumDigits;d++)c.unshift("0");return c},getDateObject:function(){return this.time instanceof Date?this.time:new Date((new Date).getTime()+1e3*this.getTimeSeconds())},getDayCounter:function(a){var b=[this.getDays(),this.getHours(!0),this.getMinutes(!0)];return a&&b.push(this.getSeconds(!0)),this.digitize(b)},getDays:function(a){var b=this.getTimeSeconds()/60/60/24;return a&&(b%=7),Math.floor(b)},getHourCounter:function(){var a=this.digitize([this.getHours(),this.getMinutes(!0),this.getSeconds(!0)]);return a},getHourly:function(){return this.getHourCounter()},getHours:function(a){var b=this.getTimeSeconds()/60/60;return a&&(b%=24),Math.floor(b)},getMilitaryTime:function(a,b){"undefined"==typeof b&&(b=!0),a||(a=this.getDateObject());var c=[a.getHours(),a.getMinutes()];return b===!0&&c.push(a.getSeconds()),this.digitize(c)},getMinutes:function(a){var b=this.getTimeSeconds()/60;return a&&(b%=60),Math.floor(b)},getMinuteCounter:function(){var a=this.digitize([this.getMinutes(),this.getSeconds(!0)]);return a},getTimeSeconds:function(a){return a||(a=new Date),this.time instanceof Date?this.factory.countdown?Math.max(this.time.getTime()/1e3-a.getTime()/1e3,0):a.getTime()/1e3-this.time.getTime()/1e3:this.time},getTime:function(a,b){"undefined"==typeof b&&(b=!0),a||(a=this.getDateObject()),console.log(a);var c=a.getHours(),d=[c>12?c-12:0===c?12:c,a.getMinutes()];return b===!0&&d.push(a.getSeconds()),this.digitize(d)},getSeconds:function(a){var b=this.getTimeSeconds();return a&&(60==b?b=0:b%=60),Math.ceil(b)},getWeeks:function(a){var b=this.getTimeSeconds()/60/60/24/7;return a&&(b%=52),Math.floor(b)},removeLeadingZeros:function(b,c){var d=0,e=[];return a.each(c,function(a,f){b>a?d+=parseInt(c[a],10):e.push(c[a])}),0===d?e:c},addSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+a):this.time+=a},addSecond:function(){this.addSeconds(1)},subSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-a):this.time-=a},subSecond:function(){this.subSeconds(1)},toString:function(){return this.getTimeSeconds().toString()}})}(jQuery),function(a){"use strict";FlipClock.Timer=FlipClock.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(a,b){this.base(b),this.factory=a,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(a){clearInterval(this.timer),this.count=0,this._setInterval(a),this.callback(this.callbacks.reset)},start:function(a){this.factory.running=!0,this._createTimer(a),this.callback(this.callbacks.start)},stop:function(a){this.factory.running=!1,this._clearInterval(a),this.callback(this.callbacks.stop),this.callback(a)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(a){this._setInterval(a)},_destroyTimer:function(a){this._clearInterval(),this.timer=!1,this.callback(a),this.callback(this.callbacks.destroy)},_interval:function(a){this.callback(this.callbacks.interval),this.callback(a),this.count++},_setInterval:function(a){var b=this;b._interval(a),b.timer=setInterval(function(){b._interval(a)},this.interval)}})}(jQuery),function(a){FlipClock.TwentyFourHourClockFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new FlipClock.Time(this.factory,this.factory.original));var b=b?b:this.factory.time.getMilitaryTime(!1,this.showSeconds);b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.createDivider(),this.createDivider(),a(this.dividers[0]).insertBefore(this.lists[this.lists.length-2].$el),a(this.dividers[1]).insertBefore(this.lists[this.lists.length-4].$el),this.base()},flip:function(a,b){this.autoIncrement(),a=a?a:this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(a,b)}})}(jQuery),function(a){FlipClock.CounterFace=FlipClock.Face.extend({shouldAutoIncrement:!1,constructor:function(a,b){"object"!=typeof b&&(b={}),a.autoStart=b.autoStart?!0:!1,b.autoStart&&(this.shouldAutoIncrement=!0),a.increment=function(){a.countdown=!1,a.setTime(a.getTime().getTimeSeconds()+1)},a.decrement=function(){a.countdown=!0;var b=a.getTime().getTimeSeconds();b>0&&a.setTime(b-1)},a.setValue=function(b){a.setTime(b)},a.setCounter=function(b){a.setTime(b)},this.base(a,b)},build:function(){var b=this,c=this.factory.$el.find("ul"),d=this.factory.getTime().digitize([this.factory.getTime().time]);d.length>c.length&&a.each(d,function(a,c){var d=b.createList(c);d.select(c)}),a.each(this.lists,function(a,b){b.play()}),this.base()},flip:function(a,b){this.shouldAutoIncrement&&this.autoIncrement(),a||(a=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(a,b)},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}})}(jQuery),function(a){FlipClock.DailyCounterFace=FlipClock.Face.extend({showSeconds:!0,constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul"),e=0;b=b?b:this.factory.time.getDayCounter(this.showSeconds),b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.showSeconds?a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el):e=2,a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4+e].$el),a(this.createDivider("Hours")).insertBefore(this.lists[this.lists.length-6+e].$el),a(this.createDivider("Days",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(a,b)}})}(jQuery),function(a){FlipClock.HourlyCounterFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b,c){var d=this,e=this.factory.$el.find("ul");c=c?c:this.factory.time.getHourCounter(),c.length>e.length&&a.each(c,function(a,b){d.createList(b)}),a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el),a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4].$el),b||a(this.createDivider("Hours",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(a,b)},appendDigitToClock:function(a){this.base(a),this.dividers[0].insertAfter(this.dividers[0].next())}})}(jQuery),function(a){FlipClock.MinuteCounterFace=FlipClock.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(a,b){this.base(a,b)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(a,b){a||(a=this.factory.time.getMinuteCounter()),this.base(a,b)}})}(jQuery),function(a){FlipClock.TwelveHourClockFace=FlipClock.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var b=this.factory.time.getTime(!1,this.showSeconds);this.base(b),this.meridiumText=this.getMeridium(),this.meridium=a(['<ul class="flip-clock-meridium">',"<li>",'<a href="#">'+this.meridiumText+"</a>","</li>","</ul>"].join("")),this.meridium.insertAfter(this.lists[this.lists.length-1].$el)},flip:function(a,b){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),b)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()?!0:!1},isAM:function(){return"AM"==this.getMeridium()?!0:!1}})}(jQuery),function(a){FlipClock.Lang.Arabic={years:"سنوات",months:"شهور",days:"أيام",hours:"ساعات",minutes:"دقائق",seconds:"ثواني"},FlipClock.Lang.ar=FlipClock.Lang.Arabic,FlipClock.Lang["ar-ar"]=FlipClock.Lang.Arabic,FlipClock.Lang.arabic=FlipClock.Lang.Arabic}(jQuery),function(a){FlipClock.Lang.Danish={years:"År",months:"Måneder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.da=FlipClock.Lang.Danish,FlipClock.Lang["da-dk"]=FlipClock.Lang.Danish,FlipClock.Lang.danish=FlipClock.Lang.Danish}(jQuery),function(a){FlipClock.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},FlipClock.Lang.de=FlipClock.Lang.German,FlipClock.Lang["de-de"]=FlipClock.Lang.German,FlipClock.Lang.german=FlipClock.Lang.German}(jQuery),function(a){FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}(jQuery),function(a){FlipClock.Lang.Spanish={years:"Años",months:"Meses",days:"Días",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.es=FlipClock.Lang.Spanish,FlipClock.Lang["es-es"]=FlipClock.Lang.Spanish,FlipClock.Lang.spanish=FlipClock.Lang.Spanish}(jQuery),function(a){FlipClock.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},FlipClock.Lang.fi=FlipClock.Lang.Finnish,FlipClock.Lang["fi-fi"]=FlipClock.Lang.Finnish,FlipClock.Lang.finnish=FlipClock.Lang.Finnish}(jQuery),function(a){FlipClock.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},FlipClock.Lang.fr=FlipClock.Lang.French,FlipClock.Lang["fr-ca"]=FlipClock.Lang.French,FlipClock.Lang.french=FlipClock.Lang.French}(jQuery),function(a){FlipClock.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},FlipClock.Lang.it=FlipClock.Lang.Italian,FlipClock.Lang["it-it"]=FlipClock.Lang.Italian,FlipClock.Lang.italian=FlipClock.Lang.Italian}(jQuery),function(a){FlipClock.Lang.Latvian={years:"Gadi",months:"Mēneši",days:"Dienas",hours:"Stundas",minutes:"Minūtes",seconds:"Sekundes"},FlipClock.Lang.lv=FlipClock.Lang.Latvian,FlipClock.Lang["lv-lv"]=FlipClock.Lang.Latvian,FlipClock.Lang.latvian=FlipClock.Lang.Latvian}(jQuery),function(a){FlipClock.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},FlipClock.Lang.nl=FlipClock.Lang.Dutch,FlipClock.Lang["nl-be"]=FlipClock.Lang.Dutch,FlipClock.Lang.dutch=FlipClock.Lang.Dutch}(jQuery),function(a){FlipClock.Lang.Norwegian={years:"År",months:"Måneder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.no=FlipClock.Lang.Norwegian,FlipClock.Lang.nb=FlipClock.Lang.Norwegian,FlipClock.Lang["no-nb"]=FlipClock.Lang.Norwegian,FlipClock.Lang.norwegian=FlipClock.Lang.Norwegian}(jQuery),function(a){FlipClock.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.pt=FlipClock.Lang.Portuguese,FlipClock.Lang["pt-br"]=FlipClock.Lang.Portuguese,FlipClock.Lang.portuguese=FlipClock.Lang.Portuguese}(jQuery),function(a){FlipClock.Lang.Russian={years:"лет",months:"месяцев",days:"дней",hours:"часов",minutes:"минут",seconds:"секунд"},FlipClock.Lang.ru=FlipClock.Lang.Russian,FlipClock.Lang["ru-ru"]=FlipClock.Lang.Russian,FlipClock.Lang.russian=FlipClock.Lang.Russian}(jQuery),function(a){FlipClock.Lang.Swedish={years:"År",months:"Månader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},FlipClock.Lang.sv=FlipClock.Lang.Swedish,FlipClock.Lang["sv-se"]=FlipClock.Lang.Swedish,FlipClock.Lang.swedish=FlipClock.Lang.Swedish}(jQuery),function(a){FlipClock.Lang.Chinese={years:"年",months:"月",days:"日",hours:"时",minutes:"分",seconds:"秒"},FlipClock.Lang.zh=FlipClock.Lang.Chinese,FlipClock.Lang["zh-cn"]=FlipClock.Lang.Chinese,FlipClock.Lang.chinese=FlipClock.Lang.Chinese}(jQuery);
|
3
|
+
|
4
|
+
$(document).ready(function(){
|
5
|
+
|
6
|
+
//Open Hours CountDown using FlipClick http://flipclockjs.com/
|
7
|
+
|
8
|
+
function nextDay(x){
|
9
|
+
var now = new Date();
|
10
|
+
now.setDate(now.getDate() + (x+(7-now.getDay())) % 7);
|
11
|
+
return now;
|
12
|
+
}
|
13
|
+
|
14
|
+
var nextOpenHours = nextDay(4);
|
15
|
+
|
16
|
+
//The date of the open hours
|
17
|
+
var openhours = new Date(Date.UTC(2017, 06, 27, 16, 0, 0));
|
18
|
+
var now = new Date();
|
19
|
+
var diff = openhours.getTime()/1000 - now.getTime()/1000;
|
20
|
+
|
21
|
+
var date2 = new Date(Date.UTC(1996, nextOpenHours.getMonth(), nextOpenHours.getDate(), 16, 0, 0));
|
22
|
+
var now2 = new Date();
|
23
|
+
var diff2 = date2.getTime()/1000 - now2.getTime()/1000;
|
24
|
+
|
25
|
+
var clock = $('.open-hours-clock').FlipClock(diff, {
|
26
|
+
clockFace: 'DailyCounter',
|
27
|
+
countdown: true
|
28
|
+
});
|
29
|
+
|
30
|
+
var clock2 = $('.expired-clock').FlipClock(diff2, {
|
31
|
+
clockFace: 'DailyCounter',
|
32
|
+
countdown: true
|
33
|
+
});
|
34
|
+
|
35
|
+
}));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/*!
|
2
|
+
* Lightbox v2.9.0
|
3
|
+
* by Lokesh Dhakar
|
4
|
+
*
|
5
|
+
* More info:
|
6
|
+
* http://lokeshdhakar.com/projects/lightbox2/
|
7
|
+
*
|
8
|
+
* Copyright 2007, 2015 Lokesh Dhakar
|
9
|
+
* Released under the MIT license
|
10
|
+
* https://github.com/lokesh/lightbox2/blob/master/LICENSE
|
11
|
+
*
|
12
|
+
* @preserve
|
13
|
+
*/
|
14
|
+
!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):t.lightbox=i(t.jQuery)}(this,function(t){function i(i){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(i)}return i.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},i.prototype.option=function(i){t.extend(this.options,i)},i.prototype.imageCountLabel=function(t,i){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,i)},i.prototype.init=function(){var i=this;t(document).ready(function(){i.enable(),i.build()})},i.prototype.enable=function(){var i=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(e){return i.start(t(e.currentTarget)),!1})},i.prototype.build=function(){var i=this;t('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return i.end(),!1}),this.$lightbox.hide().on("click",function(e){return"lightbox"===t(e.target).attr("id")&&i.end(),!1}),this.$outerContainer.on("click",function(e){return"lightbox"===t(e.target).attr("id")&&i.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return i.changeImage(0===i.currentImageIndex?i.album.length-1:i.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return i.changeImage(i.currentImageIndex===i.album.length-1?0:i.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(i.$nav.css("pointer-events","none"),i.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(i),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return i.end(),!1})},i.prototype.start=function(i){function e(t){n.album.push({link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var n=this,o=t(window);o.on("resize",t.proxy(this.sizeOverlay,this)),t("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var a,s=0,r=i.attr("data-lightbox");if(r){a=t(i.prop("tagName")+'[data-lightbox="'+r+'"]');for(var h=0;h<a.length;h=++h)e(t(a[h])),a[h]===i[0]&&(s=h)}else if("lightbox"===i.attr("rel"))e(i);else{a=t(i.prop("tagName")+'[rel="'+i.attr("rel")+'"]');for(var l=0;l<a.length;l=++l)e(t(a[l])),a[l]===i[0]&&(s=l)}var d=o.scrollTop()+this.options.positionFromTop,g=o.scrollLeft();this.$lightbox.css({top:d+"px",left:g+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(s)},i.prototype.changeImage=function(i){var e=this;this.disableKeyboardNav();var n=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var o=new Image;o.onload=function(){var a,s,r,h,l,d,g;n.attr("src",e.album[i].link),a=t(o),n.width(o.width),n.height(o.height),e.options.fitImagesInViewport&&(g=t(window).width(),d=t(window).height(),l=g-e.containerPadding.left-e.containerPadding.right-e.imageBorderWidth.left-e.imageBorderWidth.right-20,h=d-e.containerPadding.top-e.containerPadding.bottom-e.imageBorderWidth.top-e.imageBorderWidth.bottom-120,e.options.maxWidth&&e.options.maxWidth<l&&(l=e.options.maxWidth),e.options.maxHeight&&e.options.maxHeight<l&&(h=e.options.maxHeight),(o.width>l||o.height>h)&&(o.width/l>o.height/h?(r=l,s=parseInt(o.height/(o.width/r),10),n.width(r),n.height(s)):(s=h,r=parseInt(o.width/(o.height/s),10),n.width(r),n.height(s)))),e.sizeContainer(n.width(),n.height())},o.src=this.album[i].link,this.currentImageIndex=i},i.prototype.sizeOverlay=function(){this.$overlay.width(t(document).width()).height(t(document).height())},i.prototype.sizeContainer=function(t,i){function e(){n.$lightbox.find(".lb-dataContainer").width(s),n.$lightbox.find(".lb-prevLink").height(r),n.$lightbox.find(".lb-nextLink").height(r),n.showImage()}var n=this,o=this.$outerContainer.outerWidth(),a=this.$outerContainer.outerHeight(),s=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,r=i+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;o!==s||a!==r?this.$outerContainer.animate({width:s,height:r},this.options.resizeDuration,"swing",function(){e()}):e()},i.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},i.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=this.options.alwaysShowNavOnTouchDevices?!0:!1}catch(i){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},i.prototype.updateDetails=function(){var i=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var e=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?e.text(this.album[this.currentImageIndex].title):e.html(this.album[this.currentImageIndex].title),e.fadeIn("fast").find("a").on("click",function(){void 0!==t(this).attr("target")?window.open(t(this).attr("href"),t(this).attr("target")):location.href=t(this).attr("href")})}if(this.album.length>1&&this.options.showImageNumberLabel){var n=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(n).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return i.sizeOverlay()})},i.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){var t=new Image;t.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){var i=new Image;i.src=this.album[this.currentImageIndex-1].link}},i.prototype.enableKeyboardNav=function(){t(document).on("keyup.keyboard",t.proxy(this.keyboardAction,this))},i.prototype.disableKeyboardNav=function(){t(document).off(".keyboard")},i.prototype.keyboardAction=function(t){var i=27,e=37,n=39,o=t.keyCode,a=String.fromCharCode(o).toLowerCase();o===i||a.match(/x|o|c/)?this.end():"p"===a||o===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):("n"===a||o===n)&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},i.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),t("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new i}),$(document).ready(function(){lightbox.option({disableScrolling:!0,albumLabel:""})});
|