promethee 1.7.12 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promethee/rails/version.rb +1 -1
- data/node_modules/@fancyapps/fancybox/README.md +1 -1
- data/node_modules/@fancyapps/fancybox/dist/jquery.fancybox.css +162 -161
- data/node_modules/@fancyapps/fancybox/dist/jquery.fancybox.js +1281 -790
- data/node_modules/@fancyapps/fancybox/dist/jquery.fancybox.min.css +1 -1
- data/node_modules/@fancyapps/fancybox/dist/jquery.fancybox.min.js +4 -3
- data/node_modules/@fancyapps/fancybox/docs/index.html +1398 -1321
- data/node_modules/@fancyapps/fancybox/package.json +52 -43
- data/node_modules/@fancyapps/fancybox/src/css/core.css +144 -142
- data/node_modules/@fancyapps/fancybox/src/css/thumbs.css +20 -23
- data/node_modules/@fancyapps/fancybox/src/js/core.js +883 -536
- data/node_modules/@fancyapps/fancybox/src/js/fullscreen.js +67 -64
- data/node_modules/@fancyapps/fancybox/src/js/guestures.js +114 -78
- data/node_modules/@fancyapps/fancybox/src/js/hash.js +13 -18
- data/node_modules/@fancyapps/fancybox/src/js/media.js +118 -29
- data/node_modules/@fancyapps/fancybox/src/js/share.js +8 -6
- data/node_modules/@fancyapps/fancybox/src/js/slideshow.js +55 -32
- data/node_modules/@fancyapps/fancybox/src/js/thumbs.js +22 -26
- data/node_modules/@fancyapps/fancybox/src/js/wheel.js +1 -1
- metadata +2 -46
- data/node_modules/fancybox/CHANGELOG.md +0 -125
- data/node_modules/fancybox/README.md +0 -249
- data/node_modules/fancybox/bower.json +0 -24
- data/node_modules/fancybox/demo/1_b.jpg +0 -0
- data/node_modules/fancybox/demo/1_s.jpg +0 -0
- data/node_modules/fancybox/demo/2_b.jpg +0 -0
- data/node_modules/fancybox/demo/2_s.jpg +0 -0
- data/node_modules/fancybox/demo/3_b.jpg +0 -0
- data/node_modules/fancybox/demo/3_s.jpg +0 -0
- data/node_modules/fancybox/demo/4_b.jpg +0 -0
- data/node_modules/fancybox/demo/4_s.jpg +0 -0
- data/node_modules/fancybox/demo/5_b.jpg +0 -0
- data/node_modules/fancybox/demo/5_s.jpg +0 -0
- data/node_modules/fancybox/demo/ajax.txt +0 -15
- data/node_modules/fancybox/demo/iframe.html +0 -26
- data/node_modules/fancybox/demo/index.html +0 -312
- data/node_modules/fancybox/dist/css/jquery.fancybox.css +0 -222
- data/node_modules/fancybox/dist/helpers/css/jquery.fancybox-buttons.css +0 -82
- data/node_modules/fancybox/dist/helpers/css/jquery.fancybox-thumbs.css +0 -46
- data/node_modules/fancybox/dist/helpers/img/fancybox_buttons.png +0 -0
- data/node_modules/fancybox/dist/helpers/js/jquery.fancybox-buttons.cjs.js +0 -121
- data/node_modules/fancybox/dist/helpers/js/jquery.fancybox-buttons.js +0 -122
- data/node_modules/fancybox/dist/helpers/js/jquery.fancybox-media.cjs.js +0 -199
- data/node_modules/fancybox/dist/helpers/js/jquery.fancybox-media.js +0 -199
- data/node_modules/fancybox/dist/helpers/js/jquery.fancybox-thumbs.cjs.js +0 -164
- data/node_modules/fancybox/dist/helpers/js/jquery.fancybox-thumbs.js +0 -165
- data/node_modules/fancybox/dist/helpers/scss/jquery.fancybox-buttons.scss +0 -100
- data/node_modules/fancybox/dist/helpers/scss/jquery.fancybox-thumbs.scss +0 -55
- data/node_modules/fancybox/dist/img/blank.gif +0 -0
- data/node_modules/fancybox/dist/img/fancybox_loading.gif +0 -0
- data/node_modules/fancybox/dist/img/fancybox_loading@2x.gif +0 -0
- data/node_modules/fancybox/dist/img/fancybox_overlay.png +0 -0
- data/node_modules/fancybox/dist/img/fancybox_sprite.png +0 -0
- data/node_modules/fancybox/dist/img/fancybox_sprite@2x.png +0 -0
- data/node_modules/fancybox/dist/js/jquery.fancybox.cjs.js +0 -2027
- data/node_modules/fancybox/dist/js/jquery.fancybox.js +0 -2018
- data/node_modules/fancybox/dist/js/jquery.fancybox.pack.js +0 -46
- data/node_modules/fancybox/dist/scss/jquery.fancybox.scss +0 -276
- data/node_modules/fancybox/fancybox.jquery.json +0 -31
- data/node_modules/fancybox/lib/jquery-1.10.2.min.js +0 -6
- data/node_modules/fancybox/lib/jquery.mousewheel.pack.js +0 -14
- data/node_modules/fancybox/package.json +0 -32
- data/node_modules/fancybox/sprite.psd +0 -0
- data/node_modules/fancybox/test.js +0 -10
@@ -1 +1 @@
|
|
1
|
-
body.compensate-for-scrollbar{overflow:hidden}.fancybox-active{height:auto}.fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}.fancybox-container{-webkit-backface-visibility:hidden;backface-visibility:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;height:100%;left:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-webkit-transform:translateZ(0);transform:translateZ(0);width:100%;z-index:99992}.fancybox-container *{box-sizing:border-box}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}.fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}.fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.87;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption,.fancybox-infobar,.fancybox-navigation .fancybox-button,.fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s,visibility 0s linear .25s;visibility:hidden;z-index:99997}.fancybox-show-caption .fancybox-caption,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-nav .fancybox-navigation .fancybox-button,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;transition:opacity .25s,visibility 0s;visibility:visible}.fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;text-align:center;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-toolbar{right:0;top:0}.fancybox-stage{direction:ltr;overflow:visible;-webkit-transform:translateZ(0);z-index:99994}.fancybox-is-open .fancybox-stage{overflow:hidden}.fancybox-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:none;height:100%;left:0;outline:none;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;white-space:normal;width:100%;z-index:99994}.fancybox-slide:before{content:"";display:inline-block;height:100%;margin-right:-.25em;vertical-align:middle;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--next{z-index:99995}.fancybox-slide--image{overflow:visible;padding:44px 0}.fancybox-slide--image:before{display:none}.fancybox-slide--html{padding:6px 6px 0}.fancybox-slide--iframe{padding:44px 44px 0}.fancybox-content{background:#fff;display:inline-block;margin:0 0 6px;max-width:100%;overflow:auto;padding:0;padding:24px;position:relative;text-align:left;vertical-align:middle}.fancybox-slide--image .fancybox-content{-webkit-animation-timing-function:cubic-bezier(.5,0,.14,1);animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;backface-visibility:hidden;background:transparent;background-repeat:no-repeat;background-size:100% 100%;left:0;margin:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-webkit-transform-origin:top left;transform-origin:top left;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}.fancybox-can-zoomOut .fancybox-content{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-content{cursor:zoom-in}.fancybox-can-drag .fancybox-content{cursor:-webkit-grab;cursor:grab}.fancybox-is-dragging .fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}.fancybox-container [data-selectable=true]{cursor:text}.fancybox-image,.fancybox-spaceball{background:transparent;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.fancybox-spaceball{z-index:1}.fancybox-slide--html .fancybox-content{margin-bottom:6px}.fancybox-slide--iframe .fancybox-content,.fancybox-slide--map .fancybox-content,.fancybox-slide--video .fancybox-content{height:100%;margin:0;overflow:visible;padding:0;width:100%}.fancybox-slide--video .fancybox-content{background:#000}.fancybox-slide--map .fancybox-content{background:#e5e3df}.fancybox-slide--iframe .fancybox-content{background:#fff;height:calc(100% - 44px);margin-bottom:44px}.fancybox-iframe,.fancybox-video{background:transparent;border:0;height:100%;margin:0;overflow:hidden;padding:0;width:100%}.fancybox-iframe{vertical-align:top}.fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}.fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}.fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;cursor:pointer;display:inline-block;height:44px;margin:0;outline:none;padding:10px;transition:color .2s;vertical-align:top;width:44px}.fancybox-button,.fancybox-button:link,.fancybox-button:visited{color:#ccc}.fancybox-button:focus,.fancybox-button:hover{color:#fff}.fancybox-button.disabled,.fancybox-button.disabled:hover,.fancybox-button[disabled],.fancybox-button[disabled]:hover{color:#888;cursor:default}.fancybox-button svg{display:block;overflow:visible;position:relative;shape-rendering:geometricPrecision}.fancybox-button svg path{fill:transparent;stroke:currentColor;stroke-linejoin:round;stroke-width:3}.fancybox-button--pause svg path:nth-child(1),.fancybox-button--play svg path:nth-child(2){display:none}.fancybox-button--play svg path,.fancybox-button--share svg path,.fancybox-button--thumbs svg path{fill:currentColor}.fancybox-button--share svg path{stroke-width:1}.fancybox-navigation .fancybox-button{height:38px;opacity:0;padding:6px;position:absolute;top:50%;width:38px}.fancybox-show-nav .fancybox-navigation .fancybox-button{transition:opacity .25s,visibility 0s,color .25s}.fancybox-navigation .fancybox-button:after{content:"";left:-25px;padding:50px;position:absolute;top:-25px}.fancybox-navigation .fancybox-button--arrow_left{left:6px}.fancybox-navigation .fancybox-button--arrow_right{right:6px}.fancybox-close-small{background:transparent;border:0;border-radius:0;color:#555;cursor:pointer;height:44px;margin:0;padding:6px;position:absolute;right:0;top:0;width:44px;z-index:10}.fancybox-close-small svg{fill:transparent;opacity:.8;stroke:currentColor;stroke-width:1.5;transition:stroke .1s}.fancybox-close-small:focus{outline:none}.fancybox-close-small:hover svg{opacity:1}.fancybox-slide--iframe .fancybox-close-small,.fancybox-slide--image .fancybox-close-small,.fancybox-slide--video .fancybox-close-small{color:#ccc;padding:5px;right:-12px;top:-44px}.fancybox-slide--iframe .fancybox-close-small:hover svg,.fancybox-slide--image .fancybox-close-small:hover svg,.fancybox-slide--video .fancybox-close-small:hover svg{background:transparent;color:#fff}.fancybox-is-scaling .fancybox-close-small,.fancybox-is-zoomable.fancybox-can-drag .fancybox-close-small{display:none}.fancybox-caption{bottom:0;color:#fff;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:25px 44px;right:0}.fancybox-caption:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAEtCAQAAABjBcL7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHRJREFUKM+Vk8EOgDAIQ0vj/3+xBw8qIZZueFnIKC90MCAI8DlrkHGeqqGIU6lVigrBtpCWqeRWoHDNqs0F7VNVBVxmHRlvoVqjaYkdnDIaivH2HqZ5+oZj3JUzWB+cOz4G48Bg+tsJ/tqu4dLC/4Xb+0GcF5BwBC0AA53qAAAAAElFTkSuQmCC);background-repeat:repeat-x;background-size:contain;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:-25px;z-index:-1}.fancybox-caption:after{border-bottom:1px solid hsla(0,0%,100%,.3);content:"";display:block;left:44px;position:absolute;right:44px;top:0}.fancybox-caption a,.fancybox-caption a:link,.fancybox-caption a:visited{color:#ccc;text-decoration:none}.fancybox-caption a:hover{color:#fff;text-decoration:underline}.fancybox-loading{-webkit-animation:a .8s infinite linear;animation:a .8s infinite linear;background:transparent;border:6px solid hsla(0,0%,39%,.5);border-radius:100%;border-top-color:#fff;height:60px;left:50%;margin:-30px 0 0 -30px;opacity:.6;padding:0;position:absolute;top:50%;width:60px;z-index:99999}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.fancybox-fx-slide.fancybox-slide--next{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.fancybox-fx-slide.fancybox-slide--current{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{opacity:0;-webkit-transform:scale3d(1.5,1.5,1.5);transform:scale3d(1.5,1.5,1.5)}.fancybox-fx-zoom-in-out.fancybox-slide--next{opacity:0;-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5)}.fancybox-fx-zoom-in-out.fancybox-slide--current{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}.fancybox-fx-rotate.fancybox-slide--previous{opacity:0;-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}.fancybox-fx-rotate.fancybox-slide--next{opacity:0;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.fancybox-fx-rotate.fancybox-slide--current{opacity:1;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.fancybox-fx-circular.fancybox-slide--previous{opacity:0;-webkit-transform:scale3d(0,0,0) translate3d(-100%,0,0);transform:scale3d(0,0,0) translate3d(-100%,0,0)}.fancybox-fx-circular.fancybox-slide--next{opacity:0;-webkit-transform:scale3d(0,0,0) translate3d(100%,0,0);transform:scale3d(0,0,0) translate3d(100%,0,0)}.fancybox-fx-circular.fancybox-slide--current{opacity:1;-webkit-transform:scaleX(1) translateZ(0);transform:scaleX(1) translateZ(0)}.fancybox-fx-tube.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0) scale(.1) skew(-10deg);transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0) scale(.1) skew(10deg);transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}.fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}.fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px}.fancybox-share p{margin:0;padding:0}.fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.fancybox-share__button:link,.fancybox-share__button:visited{color:#fff}.fancybox-share__button:hover{text-decoration:none}.fancybox-share__button--fb{background:#3b5998}.fancybox-share__button--fb:hover{background:#344e86}.fancybox-share__button--pt{background:#bd081d}.fancybox-share__button--pt:hover{background:#aa0719}.fancybox-share__button--tw{background:#1da1f2}.fancybox-share__button--tw:hover{background:#0d95e8}.fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px}.fancybox-share__button svg path{fill:#fff}.fancybox-share__input{background:transparent;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0;outline:none;padding:10px 15px;width:100%}.fancybox-thumbs{background:#fff;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}.fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:212px}.fancybox-thumbs>ul{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}.fancybox-thumbs-x>ul{overflow:hidden}.fancybox-thumbs-y>ul::-webkit-scrollbar{width:7px}.fancybox-thumbs-y>ul::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.fancybox-thumbs-y>ul::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}.fancybox-thumbs>ul>li{-webkit-backface-visibility:hidden;backface-visibility:hidden;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:none;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}.fancybox-thumbs-loading{background:rgba(0,0,0,.1)}.fancybox-thumbs>ul>li{background-position:50%;background-repeat:no-repeat;background-size:cover}.fancybox-thumbs>ul>li:before{border:4px solid #4ea7f9;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}.fancybox-thumbs .fancybox-thumbs-active:before{opacity:1}@media (max-width:800px){.fancybox-thumbs{width:110px}.fancybox-show-thumbs .fancybox-inner{right:110px}.fancybox-thumbs>ul>li{max-width:calc(100% - 10px)}}
|
1
|
+
body.compensate-for-scrollbar{overflow:hidden}.fancybox-active{height:auto}.fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}.fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:none;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-transform:translateZ(0);transform:translateZ(0);width:100%;z-index:99992}.fancybox-container *{box-sizing:border-box}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}.fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}.fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption,.fancybox-infobar,.fancybox-navigation .fancybox-button,.fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}.fancybox-show-caption .fancybox-caption,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-nav .fancybox-navigation .fancybox-button,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}.fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-toolbar{right:0;top:0}.fancybox-stage{direction:ltr;overflow:visible;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99994}.fancybox-is-open .fancybox-stage{overflow:hidden}.fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:none;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;white-space:normal;width:100%;z-index:99994}.fancybox-slide:before{content:"";display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:hidden;padding:44px 0}.fancybox-slide--image:before{display:none}.fancybox-slide--html{padding:6px}.fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}.fancybox-slide--image .fancybox-content{-webkit-animation-timing-function:cubic-bezier(.5,0,.14,1);animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:transparent;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-webkit-transform-origin:top left;transform-origin:top left;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}.fancybox-can-zoomOut .fancybox-content{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-content{cursor:zoom-in}.fancybox-can-pan .fancybox-content,.fancybox-can-swipe .fancybox-content{cursor:-webkit-grab;cursor:grab}.fancybox-is-grabbing .fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}.fancybox-container [data-selectable=true]{cursor:text}.fancybox-image,.fancybox-spaceball{background:transparent;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content,.fancybox-slide--map .fancybox-content,.fancybox-slide--pdf .fancybox-content,.fancybox-slide--video .fancybox-content{height:100%;overflow:visible;padding:0;width:100%}.fancybox-slide--video .fancybox-content{background:#000}.fancybox-slide--map .fancybox-content{background:#e5e3df}.fancybox-slide--iframe .fancybox-content{background:#fff}.fancybox-iframe,.fancybox-video{background:transparent;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}.fancybox-iframe{left:0;position:absolute;top:0}.fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}.fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}.fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}.fancybox-button,.fancybox-button:link,.fancybox-button:visited{color:#ccc}.fancybox-button:hover{color:#fff}.fancybox-button:focus{outline:none}.fancybox-button.fancybox-focus{outline:1px dotted}.fancybox-button[disabled],.fancybox-button[disabled]:hover{color:#888;cursor:default;outline:none}.fancybox-button div{height:100%}.fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}.fancybox-button svg path{fill:currentColor;stroke-width:0}.fancybox-button--fsenter svg:nth-child(2),.fancybox-button--fsexit svg:nth-child(1),.fancybox-button--pause svg:nth-child(1),.fancybox-button--play svg:nth-child(2){display:none}.fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:0;transform-origin:0;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-timing-function:linear;z-index:99998}.fancybox-close-small{background:transparent;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}.fancybox-close-small:hover{color:#fff;opacity:1}.fancybox-slide--html .fancybox-close-small{color:currentColor;padding:10px;right:0;top:0}.fancybox-slide--image.fancybox-is-scaling .fancybox-content{overflow:hidden}.fancybox-is-scaling .fancybox-close-small,.fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small{display:none}.fancybox-navigation .fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}.fancybox-navigation .fancybox-button div{padding:7px}.fancybox-navigation .fancybox-button--arrow_left{left:0;padding:31px 26px 31px 6px}.fancybox-navigation .fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0}.fancybox-caption{bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:25px 44px;right:0;text-align:center;z-index:99996}.fancybox-caption:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAD6CAQAAADKSeXYAAAAYklEQVQoz42RwQ3AMAgDjfcfup8WoRykfBAK5mQHKSz5rbXJPis1hjiV3CIqgG0hLZPkVkA4p4x5oR1bVeDrdCLrW2Q0D5bcwY3TGMHbdw3mPRuOtaspYP1w//G1OIcW148H0DMCqI/3mMMAAAAASUVORK5CYII=);background-repeat:repeat-x;background-size:contain;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:-44px;z-index:-1}.fancybox-caption a,.fancybox-caption a:link,.fancybox-caption a:visited{color:#ccc;text-decoration:none}.fancybox-caption a:hover{color:#fff;text-decoration:underline}.fancybox-loading{-webkit-animation:a 1s linear infinite;animation:a 1s linear infinite;background:transparent;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@-webkit-keyframes a{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.fancybox-fx-slide.fancybox-slide--next{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.fancybox-fx-slide.fancybox-slide--current{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{opacity:0;-webkit-transform:scale3d(1.5,1.5,1.5);transform:scale3d(1.5,1.5,1.5)}.fancybox-fx-zoom-in-out.fancybox-slide--next{opacity:0;-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5)}.fancybox-fx-zoom-in-out.fancybox-slide--current{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}.fancybox-fx-rotate.fancybox-slide--previous{opacity:0;-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}.fancybox-fx-rotate.fancybox-slide--next{opacity:0;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.fancybox-fx-rotate.fancybox-slide--current{opacity:1;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.fancybox-fx-circular.fancybox-slide--previous{opacity:0;-webkit-transform:scale3d(0,0,0) translate3d(-100%,0,0);transform:scale3d(0,0,0) translate3d(-100%,0,0)}.fancybox-fx-circular.fancybox-slide--next{opacity:0;-webkit-transform:scale3d(0,0,0) translate3d(100%,0,0);transform:scale3d(0,0,0) translate3d(100%,0,0)}.fancybox-fx-circular.fancybox-slide--current{opacity:1;-webkit-transform:scaleX(1) translateZ(0);transform:scaleX(1) translateZ(0)}.fancybox-fx-tube.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0) scale(.1) skew(-10deg);transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0) scale(.1) skew(10deg);transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}@media (max-height:576px){.fancybox-caption{padding:12px}.fancybox-slide{padding-left:6px;padding-right:6px}.fancybox-slide--image{padding:6px 0}.fancybox-close-small{right:-6px}.fancybox-slide--image .fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}}.fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}.fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px}.fancybox-share p{margin:0;padding:0}.fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.fancybox-share__button:link,.fancybox-share__button:visited{color:#fff}.fancybox-share__button:hover{text-decoration:none}.fancybox-share__button--fb{background:#3b5998}.fancybox-share__button--fb:hover{background:#344e86}.fancybox-share__button--pt{background:#bd081d}.fancybox-share__button--pt:hover{background:#aa0719}.fancybox-share__button--tw{background:#1da1f2}.fancybox-share__button--tw:hover{background:#0d95e8}.fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px}.fancybox-share__button svg path{fill:#fff}.fancybox-share__input{background:transparent;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0;outline:none;padding:10px 15px;width:100%}.fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}.fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:212px}.fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}.fancybox-thumbs-x .fancybox-thumbs__list{overflow:hidden}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar{width:7px}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}.fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:50%;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:none;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}.fancybox-thumbs__list a:before{border:6px solid #ff5268;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}.fancybox-thumbs__list a:focus:before{opacity:.5}.fancybox-thumbs__list a.fancybox-thumbs-active:before{opacity:1}@media (max-width:576px){.fancybox-thumbs{width:110px}.fancybox-show-thumbs .fancybox-inner{right:110px}.fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// ==================================================
|
2
|
-
// fancyBox v3.
|
2
|
+
// fancyBox v3.5.2
|
3
3
|
//
|
4
4
|
// Licensed GPLv3 for open source use
|
5
5
|
// or fancyBox Commercial License for commercial use
|
@@ -8,5 +8,6 @@
|
|
8
8
|
// Copyright 2018 fancyApps
|
9
9
|
//
|
10
10
|
// ==================================================
|
11
|
-
!function(t,e,n,o){"use strict";function i(t,e){var o,i,a=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=t&&t.data?t.data.options:e||{},o=e.$target||n(t.currentTarget),i=o.attr("data-fancybox")||"",i?(a=e.selector?n(e.selector):t.data?t.data.items:[],a=a.length?a.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]'),s=a.index(o),s<0&&(s=0)):a=[o],n.fancybox.open(a,e,s))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={loop:!1,gutter:50,keyboard:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" /></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg viewBox="0 0 40 40"><path d="M18,17 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0 M24,22 L31,29" /></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg viewBox="0 0 40 40"><path d="M10,10 L30,30 M30,10 L10,30" /></svg></button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><svg viewBox="0 0 32 32"><path d="M10,10 L22,22 M22,10 L10,22"></path></svg></button>',arrowLeft:'<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M18,12 L10,20 L18,28 M10,20 L30,20"></path></svg></a>',arrowRight:'<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path></svg></a>'},parentEl:"body",autoFocus:!1,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){var t,n=e.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(n.style[t]!==o)return i[t];return"transitionend"}(),f=function(t){return t&&t.length&&t[0].offsetHeight},p=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},h=function(t,o,i){var a=this;a.opts=p({index:i},n.fancybox.defaults),n.isPlainObject(o)&&(a.opts=p(a.opts,o)),n.fancybox.isMobile&&(a.opts=p(a.opts,a.opts.mobile)),a.id=a.opts.id||++c,a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=!0,a.group=[],a.slides={},a.addContent(t),a.group.length&&(a.$lastFocus=n(e.activeElement).trigger("blur"),a.init())};n.extend(h.prototype,{init:function(){var i,a,s,r=this,c=r.group[r.currIndex],l=c.opts,d=n.fancybox.scrollbarWidth;n.fancybox.getInstance()||l.hideScrollbar===!1||(n("body").addClass("fancybox-active"),!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(d===o&&(i=n('<div style="width:100px;height:100px;overflow:scroll;" />').appendTo("body"),d=n.fancybox.scrollbarWidth=i[0].offsetWidth-i[0].clientWidth,i.remove()),n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+d+"px; }</style>"),n("body").addClass("compensate-for-scrollbar"))),s="",n.each(l.buttons,function(t,e){s+=l.btnTpl[e]||""}),a=n(r.translate(r,l.baseTpl.replace("{{buttons}}",s).replace("{{arrows}}",l.btnTpl.arrowLeft+l.btnTpl.arrowRight))).attr("id","fancybox-container-"+r.id).addClass("fancybox-is-hidden").addClass(l.baseClass).data("FancyBox",r).appendTo(l.parentEl),r.$refs={container:a},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){r.$refs[t]=a.find(".fancybox-"+t)}),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var i=n[e];return i===o?t:i})},addContent:function(t){var e,i=this,a=n.makeArray(t);n.each(a,function(t,e){var a,s,r,c,l,d={},u={};n.isPlainObject(e)?(d=e,u=e.opts||e):"object"===n.type(e)&&n(e).length?(a=n(e),u=a.data()||{},u=n.extend(!0,{},u,u.options),u.$orig=a,d.src=i.opts.src||u.src||a.attr("href"),d.type||d.src||(d.type="inline",d.src=e)):d={type:"html",src:e+""},d.opts=n.extend(!0,{},i.opts,u),n.isArray(u.buttons)&&(d.opts.buttons=u.buttons),s=d.type||d.opts.type,c=d.src||"",!s&&c&&((r=c.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(s="video",d.opts.videoFormat||(d.opts.videoFormat="video/"+("ogv"===r[1]?"ogg":r[1]))):c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":c.match(/\.(pdf)((\?|#).*)?$/i)?s="iframe":"#"===c.charAt(0)&&(s="inline")),s?d.type=s:i.trigger("objectNeedsType",d),d.contentType||(d.contentType=n.inArray(d.type,["html","inline","ajax"])>-1?"html":d.type),d.index=i.group.length,"auto"==d.opts.smallBtn&&(d.opts.smallBtn=n.inArray(d.type,["html","inline","ajax"])>-1),"auto"===d.opts.toolbar&&(d.opts.toolbar=!d.opts.smallBtn),d.opts.$trigger&&d.index===i.opts.index&&(d.opts.$thumb=d.opts.$trigger.find("img:first")),d.opts.$thumb&&d.opts.$thumb.length||!d.opts.$orig||(d.opts.$thumb=d.opts.$orig.find("img:first")),"function"===n.type(d.opts.caption)&&(d.opts.caption=d.opts.caption.apply(e,[i,d])),"function"===n.type(i.opts.caption)&&(d.opts.caption=i.opts.caption.apply(e,[i,d])),d.opts.caption instanceof n||(d.opts.caption=d.opts.caption===o?"":d.opts.caption+""),"ajax"===d.type&&(l=c.split(/\s+/,2),l.length>1&&(d.src=l.shift(),d.opts.filter=l.shift())),d.opts.modal&&(d.opts=n.extend(!0,d.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),i.group.push(d)}),Object.keys(i.slides).length&&(i.updateControls(),e=i.Thumbs,e&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var o=this;o.removeEvents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),o.next()}).on("click.fb","[data-fancybox-zoom]",function(t){o[o.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?d(function(){o.update()}):(o.$refs.stage.hide(),setTimeout(function(){o.$refs.stage.show(),o.update()},n.fancybox.isMobile?600:250))}),r.on("focusin.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null;o.isClosing||!o.current||!o.current.opts.trapFocus||n(t.target).hasClass("fancybox-container")||n(t.target).is(e)||o&&"fixed"!==n(t.target).css("position")&&!o.$refs.container.has(t.target).length&&(t.stopPropagation(),o.focus())}),r.on("keydown.fb",function(t){var e=o.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!(t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input")||n(t.target).is("textarea")))return 8===i||27===i?(t.preventDefault(),void o.close(t)):37===i||38===i?(t.preventDefault(),void o.previous()):39===i||40===i?(t.preventDefault(),void o.next()):void o.trigger("afterKeydown",t,i)}),o.group[o.currIndex].opts.idleTime&&(o.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){o.idleSecondsCounter=0,o.isIdle&&o.showControls(),o.isIdle=!1}),o.idleInterval=t.setInterval(function(){o.idleSecondsCounter++,o.idleSecondsCounter>=o.group[o.currIndex].opts.idleTime&&!o.isDragging&&(o.isIdle=!0,o.idleSecondsCounter=0,o.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var i,a,s,r,c,l,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),a=u.current?u.current.opts.loop:u.opts.loop,!a&&(t<0||t>=p))return!1;if(i=u.firstRun=!Object.keys(u.slides).length,!(p<2&&!i&&u.isDragging)){if(r=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,s=u.createSlide(t),p>1&&((a||s.index>0)&&u.createSlide(t-1),(a||s.index<p-1)&&u.createSlide(t+1)),u.current=s,u.currIndex=s.index,u.currPos=s.pos,u.trigger("beforeShow",i),u.updateControls(),l=n.fancybox.getTranslate(s.$slide),s.isMoved=(0!==l.left||0!==l.top)&&!s.$slide.hasClass("fancybox-animated"),s.forcedDuration=o,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[i?"animationDuration":"transitionDuration"],e=parseInt(e,10),i)return s.opts.animationEffect&&e&&u.$refs.container.css("transition-duration",e+"ms"),u.$refs.container.removeClass("fancybox-is-hidden"),f(u.$refs.container),u.$refs.container.addClass("fancybox-is-open"),f(u.$refs.container),s.$slide.addClass("fancybox-slide--previous"),u.loadSlide(s),s.$slide.removeClass("fancybox-slide--previous").addClass("fancybox-slide--current"),void u.preload("image");n.each(u.slides,function(t,e){n.fancybox.stop(e.$slide)}),s.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current"),s.isMoved?(c=Math.round(s.$slide.width()),n.each(u.slides,function(t,o){var i=o.pos-s.pos;n.fancybox.animate(o.$slide,{top:0,left:i*c+i*o.opts.gutter},e,function(){o.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===u.currPos&&(s.isMoved=!1,u.complete())})})):u.$refs.stage.children().removeAttr("style"),s.isLoaded?u.revealContent(s):u.loadSlide(s),u.preload("image"),r.pos!==s.pos&&(d="fancybox-slide--"+(r.pos>s.pos?"next":"previous"),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),r.isComplete=!1,e&&(s.isMoved||s.opts.transitionEffect)&&(s.isMoved?r.$slide.addClass(d):(d="fancybox-animated "+d+" fancybox-fx-"+s.opts.transitionEffect,n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeAttr("style")}))))}}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var a,s,r,c,l,d=this,u=d.current,f=u.$content,p=n.fancybox.getTranslate(u.$slide).width,h=n.fancybox.getTranslate(u.$slide).height,g=u.width,b=u.height;!d.isAnimating&&f&&"image"==u.type&&u.isLoaded&&!u.hasError&&(n.fancybox.stop(f),d.isAnimating=!0,t=t===o?.5*p:t,e=e===o?.5*h:e,a=n.fancybox.getTranslate(f),a.top-=n.fancybox.getTranslate(u.$slide).top,a.left-=n.fancybox.getTranslate(u.$slide).left,c=g/a.width,l=b/a.height,s=.5*p-.5*g,r=.5*h-.5*b,g>p&&(s=a.left*c-(t*c-t),s>0&&(s=0),s<p-g&&(s=p-g)),b>h&&(r=a.top*l-(e*l-e),r>0&&(r=0),r<h-b&&(r=h-b)),d.updateCursor(g,b),n.fancybox.animate(f,{top:r,left:s,scaleX:c,scaleY:l},i||330,function(){d.isAnimating=!1}),d.SlideShow&&d.SlideShow.isActive&&d.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;!o.isAnimating&&a&&"image"==i.type&&i.isLoaded&&!i.hasError&&(n.fancybox.stop(a),o.isAnimating=!0,e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||330,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,n,o,i,a,s=this,r=t.$content,c=t.width||t.opts.width,l=t.height||t.opts.height,d={};return!!(t.isLoaded&&r&&r.length)&&(i={top:parseInt(t.$slide.css("paddingTop"),10),right:parseInt(t.$slide.css("paddingRight"),10),bottom:parseInt(t.$slide.css("paddingBottom"),10),left:parseInt(t.$slide.css("paddingLeft"),10)},e=parseInt(s.$refs.stage.width(),10)-(i.left+i.right),n=parseInt(s.$refs.stage.height(),10)-(i.top+i.bottom),c&&l||(c=e,l=n),o=Math.min(1,e/c,n/l),c=Math.floor(o*c),l=Math.floor(o*l),"image"===t.type?(d.top=Math.floor(.5*(n-l))+i.top,d.left=Math.floor(.5*(e-c))+i.left):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?c/l:t.opts.ratio||16/9,l>c/a?l=c/a:c>l*a&&(c=l*a)),d.width=c,d.height=l,d)},update:function(){var t=this;n.each(t.slides,function(e,n){t.updateSlide(n)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height;i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),t.$slide.trigger("refresh"),o.$refs.toolbar.toggleClass("compensate-for-scrollbar",t.$slide.get(0).scrollHeight>t.$slide.get(0).clientHeight),o.trigger("onUpdate",t)},centerSlide:function(t,e){var i,a,s=this;s.current&&(i=Math.round(t.$slide.width()),a=t.pos-s.current.pos,n.fancybox.animate(t.$slide,{top:0,left:a*i+a*t.opts.gutter,opacity:1},e===o?0:e,null,!1))},updateCursor:function(t,e){var o,i=this,a=i.current,s=i.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");a&&!i.isClosing&&(o=i.isZoomable(),s.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),o&&("zoom"===a.opts.clickContent||n.isFunction(a.opts.clickContent)&&"zoom"===a.opts.clickContent(a))?i.isScaledDown(t,e)?s.addClass("fancybox-can-zoomIn"):a.opts.touch?s.addClass("fancybox-can-drag"):s.addClass("fancybox-can-zoomOut"):a.opts.touch&&"video"!==a.contentType&&s.addClass("fancybox-can-drag"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if(t=e.getFitPos(n),n.width>t.width||n.height>t.height)return!0}return!1},isScaledDown:function(t,e){var i=this,a=!1,s=i.current,r=s.$content;return t!==o&&e!==o?a=t<s.width&&e<s.height:r&&(a=n.fancybox.getTranslate(r),a=a.width<s.width&&a.height<s.height),a},canPan:function(){var t,e=this,n=!1,o=e.current;return"image"===o.type&&(t=o.$content)&&!o.hasError&&(n=e.getFitPos(o),n=Math.abs(t.width()-n.width)>1||Math.abs(t.height()-n.height)>1),n},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){switch(t.isLoading=!0,a.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,'<video class="fancybox-video" controls controlsList="nodownload"><source src="'+t.src+'" type="'+t.opts.videoFormat+"\">Your browser doesn't support HTML5 video</video");break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(e){var o,i,a,s,r,c=this,l=e.opts.srcset||e.opts.image.srcset;if(e.timouts=setTimeout(function(){var t=e.$image;!e.isLoading||t&&t[0].complete||e.hasError||c.showLoading(e)},350),l){s=t.devicePixelRatio||1,r=t.innerWidth*s,a=l.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),a.sort(function(t,e){return t.value-e.value});for(var d=0;d<a.length;d++){var u=a[d];if("w"===u.postfix&&u.value>=r||"x"===u.postfix&&u.value>=s){i=u;break}}!i&&a.length&&(i=a[a.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=l)}e.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),o=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&o&&(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("<img />").one("error",function(){n(this).remove(),e.$ghost=null}).one("load",function(){c.afterLoad(e)}).addClass("fancybox-image").appendTo(e.$content).attr("src",o)),c.setBigImage(e)},setBigImage:function(t){var e=this,o=n("<img />");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){var n;t.$ghost||(e.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),e.afterLoad(t)),t.timouts&&(clearTimeout(t.timouts),t.timouts=null),e.isClosing||(t.opts.srcset&&(n=t.opts.sizes,n&&"auto"!==n||(n=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),o.attr("sizes",n).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!e.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),e.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(o[0].complete||"complete"==o[0].readyState)&&o[0].naturalWidth&&o[0].naturalHeight?o.trigger("load"):o[0].error&&o.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('<div class="fancybox-content'+(a.preload?" fancybox-is-hidden":"")+'"></div>').css(a.css).appendTo(s),s.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(a.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(a.attr).appendTo(t.$content),a.preload?(i.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),i.afterLoad(t)}),s.on("refresh.fb",function(){var n,i,s=t.$content,r=a.css.width,c=a.css.height;if(1===e[0].isReady){try{n=e.contents(),i=n.find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css({width:"",height:""}),r===o&&(r=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),r&&s.width(r),c===o&&(c=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),c&&s.height(c)),s.removeClass("fancybox-is-hidden")}})):this.afterLoad(t),e.attr("src",t.src),s.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?(e.parent().parent(".fancybox-slide--inline").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents(),3===e[0].nodeType&&(e=n("<div>").html(e))),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio").first().addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.pos===e.currPos&&e.updateCursor(),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).prependTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,i,a,s,r=this,c=t.$slide,l=!1,d=!1;return e=t.opts[r.firstRun?"animationEffect":"transitionEffect"],a=t.opts[r.firstRun?"animationDuration":"transitionDuration"],a=parseInt(t.forcedDuration===o?a:t.forcedDuration,10),t.pos===r.currPos&&(t.isComplete?e=!1:r.isAnimating=!0),!t.isMoved&&t.pos===r.currPos&&a||(e=!1),"zoom"===e&&(t.pos===r.currPos&&a&&"image"===t.type&&!t.hasError&&(d=r.getThumbPos(t))?l=r.getFitPos(t):e="fade"),"zoom"===e?(l.scaleX=l.width/d.width,l.scaleY=l.height/d.height,s=t.opts.zoomOpacity,"auto"==s&&(s=Math.abs(t.width/t.height-d.width/d.height)>.1),s&&(d.opacity=.1,l.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),d),f(t.$content),void n.fancybox.animate(t.$content,l,a,function(){r.isAnimating=!1,r.complete()})):(r.updateSlide(t),e?(n.fancybox.stop(c),i="fancybox-animated fancybox-slide--"+(t.pos>=r.prevPos?"next":"previous")+" fancybox-fx-"+e,c.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(i),t.$content.removeClass("fancybox-is-hidden"),f(c),void n.fancybox.animate(c,"fancybox-slide--current",a,function(e){c.removeClass(i).removeAttr("style"),t.pos===r.currPos&&r.complete()},!0)):(f(c),t.$content.removeClass("fancybox-is-hidden"),void(t.pos===r.currPos&&r.complete())))},getThumbPos:function(o){var i,a=this,s=!1,r=o.opts.$thumb,c=r&&r.length&&r[0].ownerDocument===e?r.offset():0,l=function(e){for(var o,i=e[0],a=i.getBoundingClientRect(),s=[];null!==i.parentElement;)"hidden"!==n(i.parentElement).css("overflow")&&"auto"!==n(i.parentElement).css("overflow")||s.push(i.parentElement.getBoundingClientRect()),i=i.parentElement;return o=s.every(function(t){var e=Math.min(a.right,t.right)-Math.max(a.left,t.left),n=Math.min(a.bottom,t.bottom)-Math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left<n(t).width()&&a.top<n(t).height()};return c&&l(r)&&(i=a.$refs.stage.offset(),s={top:c.top-i.top+parseFloat(r.css("border-top-width")||0),left:c.left-i.left+parseFloat(r.css("border-left-width")||0),width:r.width(),height:r.height(),scaleX:1,scaleY:1}),s},complete:function(){var t=this,o=t.current,i={};!o.isMoved&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),t.preload("inline"),f(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,o){o.pos>=t.currPos-1&&o.pos<=t.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=i),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),o.$slide.find("video,audio").filter(":visible:first").trigger("play"),(n(e.activeElement).is("[disabled]")||o.opts.autoFocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(t){var e=this,n=e.slides[e.currPos+1],o=e.slides[e.currPos-1];n&&n.type===t&&e.loadSlide(n),o&&o.type===t&&e.loadSlide(o)},focus:function(){var t,e=this.current;this.isClosing||e&&e.isComplete&&e.$content&&(t=e.$content.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$content.find("button,:input,[tabindex],a").filter(":enabled:visible:first")),t=t&&t.length?t:e.$content,t.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,p=this,h=p.current,g=function(){p.cleanUp(t)};return!p.isClosing&&(p.isClosing=!0,p.trigger("beforeClose",t)===!1?(p.isClosing=!1,d(function(){p.update()}),!1):(p.removeEvents(),h.timouts&&clearTimeout(h.timouts),a=h.$content,o=h.opts.animationEffect,i=n.isNumeric(e)?e:o?h.opts.animationDuration:0,h.$slide.off(u).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),h.$slide.siblings().trigger("onReset").remove(),i&&p.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),p.hideLoading(h),p.hideControls(),p.updateCursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===h.type&&!h.hasError&&(l=p.getThumbPos(h))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=h.opts.zoomOpacity,"auto"==r&&(r=Math.abs(h.width/h.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),f(a),n.fancybox.animate(a,l,i,g),!0):(o&&i?t===!0?setTimeout(g,i):n.fancybox.animate(h.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,g):g(),!0)))},cleanUp:function(t){var e,o=this,i=n("body");o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.$lastFocus&&o.current.opts.backFocus&&o.$lastFocus.trigger("focus"),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(i.removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i))},updateControls:function(t){var e=this,n=e.current,o=n.index,i=n.opts.caption,a=e.$refs.container,s=e.$refs.caption;n.$slide.trigger("refresh"),e.$caption=i&&i.length?s.html(i):null,e.isHiddenControls||e.isIdle||e.showControls(),a.find("[data-fancybox-count]").html(e.group.length),a.find("[data-fancybox-index]").html(o+1),a.find("[data-fancybox-prev]").toggleClass("disabled",!n.opts.loop&&o<=0),a.find("[data-fancybox-next]").toggleClass("disabled",!n.opts.loop&&o>=e.group.length-1),"image"===n.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.3.5",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=!1;n.isFunction(i)&&(a=i,i=null),n.isPlainObject(e)||t.removeAttr("style"),n.fancybox.stop(t),t.on(u,function(o){(!o||!o.originalEvent||t.is(o.originalEvent.target)&&"z-index"!=o.originalEvent.propertyName)&&(n.fancybox.stop(t),r&&n.fancybox.setTranslate(t,r),
|
12
|
-
n.isPlainObject(e)?s===!1&&t.removeAttr("style"):s!==!0&&t.removeClass(e),n.isFunction(a)&&a(o))}),n.isNumeric(i)&&t.css("transition-duration",i+"ms"),n.isPlainObject(e)?(e.scaleX!==o&&e.scaleY!==o&&(r=n.extend({},e,{width:t.width()*e.scaleX,height:t.height()*e.scaleY,scaleX:1,scaleY:1}),delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){t&&t.length&&(clearTimeout(t.data("timer")),t.off("transitionend").css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-trigger]",function(t){i(t,{$target:n('[data-fancybox="'+n(t.currentTarget).attr("data-trigger")+'"]').eq(n(t.currentTarget).attr("data-index")||0),$trigger:n(this)})})}}(window,document,window.jQuery||jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},n,a.opts.media),t.each(s,function(n,o){if(c=p.match(o.matcher)){if(h=o.type,f=n,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[n],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):e(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):e(o.thumb,c),"youtube"===n?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===n&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)})}(window.jQuery||jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){this.$container.off(".fb.touch")},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$content,p="touchstart"==o.type;if(p&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||d.isClosing)return o.stopPropagation(),void o.preventDefault();if(i.realPoints=i.startPoints=a(o),i.startPoints.length){if(o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=f,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(u.$slide[0].clientWidth),i.canvasHeight=Math.round(u.$slide[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=i.sliderLastPos||n.fancybox.getTranslate(u.$slide),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),!i.opts&&!d.canPan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is(".fancybox-image")&&o.preventDefault());n.fancybox.isMobile&&(l(c)||l(c.parent()))||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.instance.canPan()?(n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-controls--isGrabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))}}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this,o=n(t.target);return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling||!o.is(e.$stage)&&!e.$stage.find(o).length?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.instance.canPan())&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&e.isSwiping===!0||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.isSwiping,c=s.sliderStartPos.left||0;if(r!==!0)"x"==r&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=Math.pow(-s.distanceX,.8):c+=s.distanceX),s.sliderLastPos={top:"x"==r?0:s.sliderStartPos.top+s.distanceY,left:c},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,s.instance.group.length<2&&s.opts.vertical?s.isSwiping="y":s.instance.isDragging||s.opts.vertical===!1||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),s.canTap=!1,"y"===s.isSwiping&&n.fancybox.isMobile&&(l(s.$target)||l(s.$target.parent())))return void(s.isScrolling=!0);s.instance.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(s.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration",""),e.inTransition=!1,e.pos===s.instance.current.pos&&(s.sliderStartPos.left=n.fancybox.getTranslate(e.$slide).left-n.fancybox.getTranslate(s.instance.$refs.stage).left)}),s.instance.SlideShow&&s.instance.SlideShow.isActive&&s.instance.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;return s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)?void(t.startPoints=t.newPoints):(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&(i(t.requestId),t.requestId=null),void(t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})))},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),y=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),v=m-e.centerPointStartX,x=y-e.centerPointStartY,w=l+(g+v),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&(i(e.requestId),e.requestId=null),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=Math.max((new Date).getTime()-o.startTime,1),r=o.isSwiping,c=o.isPanning,l=o.isZooming,d=o.isScrolling;return o.endPoints=a(t),o.$container.removeClass("fancybox-controls--isGrabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap?o.onTap(t):(o.speed=366,o.velocityX=o.distanceX/s*.5,o.velocityY=o.distanceY/s*.5,o.speedX=Math.max(.5*o.speed,Math.min(1.5*o.speed,1/Math.abs(o.velocityX)*o.speed)),void(c?o.endPanning():l?o.endZooming():o.endSwiping(r,d)))},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length;o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,200)):"x"==t&&o.distanceX>50&&a>1?i=o.instance.previous(o.speedX):"x"==t&&o.distanceX<-50&&a>1&&(i=o.instance.next(o.speedX)),i!==!1||"x"!=t&&"y"!=t||(e||a<2?o.instance.centerSlide(o.instance.current,150):o.instance.jumpTo(o.instance.current.index)),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(i.opts.momentum===!1?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+i.velocityX*i.speed,e=i.contentLastPos.top+i.velocityY*i.speed),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,330))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.setTranslate(a.$content,n.fancybox.getTranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls(!0);break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))})}(window,document,window.jQuery||jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg viewBox="0 0 40 40"><path d="M13,12 L27,20 L13,27 Z" /><path d="M15,10 v19 M23,10 v19" /></svg></button>'},slideShow:{autoStart:!1,speed:3e3}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow)&&t.$button.hide()},set:function(t){var e=this;e.instance&&e.instance.current&&(t===!0||e.instance.current.opts.loop||e.instance.currIndex<e.instance.group.length-1)?e.timer=setTimeout(function(){e.isActive&&e.instance.jumpTo((e.instance.currIndex+1)%e.instance.group.length)},e.instance.current.opts.slideShow.speed):(e.stop(),e.instance.idleSecondsCounter=0,e.instance.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null},start:function(){var t=this,e=t.instance.current;e&&(t.isActive=!0,t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.set(!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,window.jQuery||jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(!n)return void(e&&e.fancybox&&(e.fancybox.defaults.btnTpl.fullScreen=!1));var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><svg viewBox="0 0 40 40"><path d="M9,12 v16 h22 v-16 h-22 v8" /></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on({"onInit.fb":function(t,e){var n;e&&e.group[e.currIndex].opts.fullScreen?(n=e.$refs.container,n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&e.opts.fullScreen.autoStart===!0&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.current.$content.css("transition","none"),n.isAnimating=!1,n.update(!0,!0,0)),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t))})}(document,window.jQuery||jQuery),function(t,e){"use strict";var n="fancybox-thumbs",o=n+"-active",i=n+"-loading";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg viewBox="0 0 120 120"><path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" /></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var a=function(t){this.init(t)};e.extend(a.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e,n,o=this;o.instance=t,t.Thumbs=o,o.opts=t.group[t.currIndex].opts.thumbs,e=t.group[0],e=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),t.group.length>1&&(n=t.group[1],n=n.opts.thumb||!(!n.opts.$thumb||!n.opts.$thumb.length)&&n.opts.$thumb.attr("src")),o.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]"),o.opts&&e&&n&&e&&n?(o.$button.show().on("click",function(){o.toggle()}),o.isActive=!0):o.$button.hide()},create:function(){var t,o=this,a=o.instance,s=o.opts.parentEl,r=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(a.$refs.container.find(s).addBack().filter(s)),o.$grid.on("click","li",function(){a.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e("<ul>").appendTo(o.$grid)),e.each(a.group,function(e,n){t=n.opts.thumb||(n.opts.$thumb?n.opts.$thumb.attr("src"):null),t||"image"!==n.type||(t=n.src),r.push('<li data-index="'+e+'" tabindex="0" class="'+i+'"'+(t&&t.length?' style="background-image:url('+t+')" />':"")+"></li>")}),o.$list[0].innerHTML=r.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+a.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,i=this,a=i.$list,s=i.$grid;i.instance.current&&(e=a.children().removeClass(o).filter('[data-index="'+i.instance.current.index+'"]').addClass(o),n=e.position(),"y"===i.opts.axis&&(n.top<0||n.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+n.top},t):"x"===i.opts.axis&&(n.left<s.scrollLeft()||n.left>s.scrollLeft()+(s.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new a(e),n.isActive&&n.opts.autoStart===!0&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&n.opts.hideOnClose!==!1&&n.$grid.hide()}})}(document,window.jQuery||jQuery),function(t,e){"use strict";function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg viewBox="0 0 40 40"><path d="M6,30 C8,18 19,16 23,16 L23,16 L23,10 L33,20 L23,29 L23,24 C19,24 8,27 6,30 Z"></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}}}))})}(document,window.jQuery||jQuery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:t,index:o<1?1:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).trigger("click.fb-start"))}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,n=e.hash||(e.$orig?e.$orig.data("fancybox"):""),""!==n&&n)}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};return(t+"").replace(e,n)}),n(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"onInit.fb":function(t,e){var n,i;e.group[e.currIndex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&i.opts.hash!==!1&&(r=a(o),r&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),e.location.hash!=="#"+o.currentHash&&(o.origHash||(o.origHash=e.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[s?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):e.location.hash=o.currentHash,o.hashTimer=null},300))))},"beforeClose.fb":function(n,o,i){var s;i.opts.hash!==!1&&(s=a(o),o.currentHash&&o.hasCreatedHistory?e.history.back():o.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(o.origHash||"")):e.location.hash=o.origHash),o.currentHash=null,clearTimeout(o.hashTimer))}}),n(e).on("hashchange.fb",function(){var t,e=o();n.each(n(".fancybox-container").get().reverse(),function(e,o){var i=n(o).data("FancyBox");if(i.currentHash)return t=i,!1}),t?!t.currentHash||t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&i(e)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(document,window,window.jQuery||jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||o.opts.wheel===!1||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jQuery||jQuery);
|
11
|
+
!function(t,e,n,o){"use strict";function a(t,e){var o,a,i,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),i=n.fancybox.getInstance(),i&&i.$trigger&&i.$trigger.is(o)||(e.selector?s=n(e.selector):(a=o.attr("data-fancybox")||"",a?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+a+'"]'):n('[data-fancybox="'+a+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),i=n.fancybox.open(s,e,r),i.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var i={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(n.style[t]!==o)return a[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,a;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},a=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),a)},b=function(t,e,o){var a=this;a.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(a.opts=h(a.opts,e)),n.fancybox.isMobile&&(a.opts=h(a.opts,a.opts.mobile)),a.id=a.opts.id||++c,a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=!0,a.group=[],a.slides={},a.addContent(t),a.group.length&&a.init()};n.extend(b.prototype,{init:function(){var o,a,i=this,s=i.group[i.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&r.hideScrollbar!==!1&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),a="",n.each(r.buttons,function(t,e){a+=r.btnTpl[e]||""}),o=n(i.translate(i,r.baseTpl.replace("{{buttons}}",a).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(r.baseClass).data("FancyBox",i).appendTo(r.parentEl),i.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){i.$refs[t]=o.find(".fancybox-"+t)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var a=n[e];return a===o?t:a})},addContent:function(t){var e,a=this,i=n.makeArray(t);n.each(i,function(t,e){var i,s,r,c,l,d={},u={};n.isPlainObject(e)?(d=e,u=e.opts||e):"object"===n.type(e)&&n(e).length?(i=n(e),u=i.data()||{},u=n.extend(!0,{},u,u.options),u.$orig=i,d.src=a.opts.src||u.src||i.attr("href"),d.type||d.src||(d.type="inline",d.src=e)):d={type:"html",src:e+""},d.opts=n.extend(!0,{},a.opts,u),n.isArray(u.buttons)&&(d.opts.buttons=u.buttons),n.fancybox.isMobile&&d.opts.mobile&&(d.opts=h(d.opts,d.opts.mobile)),s=d.type||d.opts.type,c=d.src||"",!s&&c&&((r=c.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",d.opts.video.format||(d.opts.video.format="video/"+("ogv"===r[1]?"ogg":r[1]))):c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":c.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",d=n.extend(!0,d,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===c.charAt(0)&&(s="inline")),s?d.type=s:a.trigger("objectNeedsType",d),d.contentType||(d.contentType=n.inArray(d.type,["html","inline","ajax"])>-1?"html":d.type),d.index=a.group.length,"auto"==d.opts.smallBtn&&(d.opts.smallBtn=n.inArray(d.type,["html","inline","ajax"])>-1),"auto"===d.opts.toolbar&&(d.opts.toolbar=!d.opts.smallBtn),d.$thumb=d.opts.$thumb||null,d.opts.$trigger&&d.index===a.opts.index&&(d.$thumb=d.opts.$trigger.find("img:first"),d.$thumb.length&&(d.opts.$orig=d.opts.$trigger)),d.$thumb&&d.$thumb.length||!d.opts.$orig||(d.$thumb=d.opts.$orig.find("img:first")),d.$thumb&&!d.$thumb.length&&(d.$thumb=null),d.thumb=d.opts.thumb||(d.$thumb?d.$thumb[0].src:null),"function"===n.type(d.opts.caption)&&(d.opts.caption=d.opts.caption.apply(e,[a,d])),"function"===n.type(a.opts.caption)&&(d.opts.caption=a.opts.caption.apply(e,[a,d])),d.opts.caption instanceof n||(d.opts.caption=d.opts.caption===o?"":d.opts.caption+""),"ajax"===d.type&&(l=c.split(/\s+/,2),l.length>1&&(d.src=l.shift(),d.opts.filter=l.shift())),d.opts.modal&&(d.opts=n.extend(!0,d.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),a.group.push(d)}),Object.keys(a.slides).length&&(a.updateControls(),e=a.Thumbs,e&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,a=o.current,i=t.keyCode||t.which;if(9==i)return void(a.opts.trapFocus&&e.focus(t));if(!(!a.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input")||n(t.target).is("textarea")))return 8===i||27===i?(t.preventDefault(),void e.close(t)):37===i||38===i?(t.preventDefault(),void e.previous()):39===i||40===i?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,i)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){e.idleSecondsCounter++,e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var a,i,s,r,c,l,d,u,f,h=this,g=h.group.length;if(!(h.isDragging||h.isClosing||h.isAnimating&&h.firstRun)){if(t=parseInt(t,10),s=h.current?h.current.opts.loop:h.opts.loop,!s&&(t<0||t>=g))return!1;if(a=h.firstRun=!Object.keys(h.slides).length,c=h.current,h.prevIndex=h.currIndex,h.prevPos=h.currPos,r=h.createSlide(t),g>1&&((s||r.index<g-1)&&h.createSlide(t+1),(s||r.index>0)&&h.createSlide(t-1)),h.current=r,h.currIndex=r.index,h.currPos=r.pos,h.trigger("beforeShow",a),h.updateControls(),r.forcedDuration=o,n.isNumeric(e)?r.forcedDuration=e:e=r.opts[a?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=h.isMoved(r),r.$slide.addClass("fancybox-slide--current"),a)return r.opts.animationEffect&&e&&h.$refs.container.css("transition-duration",e+"ms"),h.$refs.container.addClass("fancybox-is-open").trigger("focus"),h.loadSlide(r),void h.preload("image");l=n.fancybox.getTranslate(c.$slide),d=n.fancybox.getTranslate(h.$refs.stage),n.each(h.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),c.pos!==r.pos&&(c.isComplete=!1),c.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(f=l.left-(c.pos*l.width+c.pos*c.opts.gutter),n.each(h.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var a=o.pos*l.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:a-d.left+f}),o.pos!==r.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>r.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-r.pos)*l.width+(o.pos-r.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===h.currPos&&h.complete()})})):e&&r.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+r.opts.transitionEffect,c.$slide.addClass("fancybox-slide--"+(c.pos>r.pos?"next":"previous")),n.fancybox.animate(c.$slide,u,e,function(){c.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),r.isLoaded?h.revealContent(r):h.loadSlide(r),h.preload("image")}},createSlide:function(t){var e,o,a=this;return o=t%a.group.length,o=o<0?a.group.length+o:o,!a.slides[t]&&a.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(a.$refs.stage),a.slides[t]=n.extend(!0,{},a.group[o],{pos:t,$slide:e,isLoaded:!1}),a.updateSlide(a.slides[t])),a.slides[t]},scaleToActual:function(t,e,a){var i,s,r,c,l,d=this,u=d.current,f=u.$content,p=n.fancybox.getTranslate(u.$slide).width,h=n.fancybox.getTranslate(u.$slide).height,g=u.width,b=u.height;d.isAnimating||d.isMoved()||!f||"image"!=u.type||!u.isLoaded||u.hasError||(d.isAnimating=!0,n.fancybox.stop(f),t=t===o?.5*p:t,e=e===o?.5*h:e,i=n.fancybox.getTranslate(f),i.top-=n.fancybox.getTranslate(u.$slide).top,i.left-=n.fancybox.getTranslate(u.$slide).left,c=g/i.width,l=b/i.height,s=.5*p-.5*g,r=.5*h-.5*b,g>p&&(s=i.left*c-(t*c-t),s>0&&(s=0),s<p-g&&(s=p-g)),b>h&&(r=i.top*l-(e*l-e),r>0&&(r=0),r<h-b&&(r=h-b)),d.updateCursor(g,b),n.fancybox.animate(f,{top:r,left:s,scaleX:c,scaleY:l},a||330,function(){d.isAnimating=!1}),d.SlideShow&&d.SlideShow.isActive&&d.SlideShow.stop())},scaleToFit:function(t){var e,o=this,a=o.current,i=a.$content;o.isAnimating||o.isMoved()||!i||"image"!=a.type||!a.isLoaded||a.hasError||(o.isAnimating=!0,n.fancybox.stop(i),e=o.getFitPos(a),o.updateCursor(e.width,e.height),n.fancybox.animate(i,{top:e.top,left:e.left,scaleX:e.width/i.width(),scaleY:e.height/i.height()},t||330,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,a,i,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),a=Math.min(1,e/l,o/d),l=a*l,d=a*d,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(i=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/i?d=l/i:l>d*i&&(l=d*i)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,a=t&&t.$content,i=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),a&&(i||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(a),n.fancybox.setTranslate(a,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,a=e.current,i=a.$slide;!e.isClosing&&a&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},t===o?0:t,function(){i.css({transform:"",opacity:""}),a.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,a=t||this.current;return!!a&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(a.$slide),!a.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,a,i=this,s=i.current,r=i.$refs.container;s&&!i.isClosing&&i.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=i.canPan(t,e),a=!!o||i.isZoomable(),r.toggleClass("fancybox-is-zoomable",a),n("[data-fancybox-zoom]").prop("disabled",!a),o?r.addClass("fancybox-can-pan"):a&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||i.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if(t=e.getFitPos(n),t&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var a=this,i=!1,s=a.current,r=s.$content;return t!==o&&e!==o?i=t<s.width&&e<s.height:r&&(i=n.fancybox.getTranslate(r),i=i.width<s.width&&i.height<s.height),i},canPan:function(t,e){var a=this,i=a.current,s=null,r=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(r=a.getFitPos(i),t!==o&&e!==o?s={width:t,height:e}:i.isComplete&&(s=n.fancybox.getTranslate(i.$content)),s&&r&&(r=Math.abs(s.width-r.width)>1.5||Math.abs(s.height-r.height)>1.5)),r},loadSlide:function(t){var e,o,a,i=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,i.trigger("beforeLoad",t)===!1)return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":i.setImage(t);break;case"iframe":i.setIframe(t);break;case"html":i.setContent(t,t.src||t.content);break;case"video":i.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?i.setContent(t,n(t.src)):i.setError(t);break;case"ajax":i.showLoading(t),a=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&i.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&i.setError(t)}})),o.one("onReset",function(){a.abort()});break;default:i.setError(t)}return!0}},setImage:function(t){var o,a=this;setTimeout(function(){var e=t.$image;a.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||a.showLoading(t)},50),a.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),t.opts.preload!==!1&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){a.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),a.setBigImage(t)},checkSrcset:function(e){var n,o,a,i,s=e.opts.srcset||e.opts.image.srcset;if(s){a=t.devicePixelRatio||1,i=t.innerWidth*a,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=i||"x"===c.postfix&&c.value>=a){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,a=e.createElement("img"),i=n(a);t.$image=i.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),i.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(a.complete||"complete"==a.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):a.error&&i.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),a>0&&(t.width=Math.floor(a*e/n),t.height=a)},setIframe:function(t){var e,a=this,i=t.opts.iframe,s=t.$slide;n.fancybox.isMobile&&(i.css.overflow="scroll"),t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(s),s.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(a.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),a.afterLoad(t)}),s.on("refresh.fb",function(){var n,a,r=t.$content,c=i.css.width,l=i.css.height;if(1===e[0].isReady){try{n=e.contents(),a=n.find("body")}catch(t){}a&&a.length&&a.children().length&&(s.css("overflow","visible"),r.css({width:"100%","max-width":"100%",height:"9999px"}),c===o&&(c=Math.ceil(Math.max(a[0].clientWidth,a.outerWidth(!0)))),r.css("width",c?c:"").css("max-width",""),l===o&&(l=Math.ceil(Math.max(a[0].clientHeight,a.outerHeight(!0)))),r.css("height",l?l:""),s.css("overflow","auto")),r.removeClass("fancybox-is-hidden")}})):a.afterLoad(t),e.attr("src",t.src),s.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e=this,n=t||e.current,o=n.opts.caption,a=e.$refs.caption,i=!1;n.opts.preventCaptionOverlap&&o&&o.length&&(n.pos!==e.currPos?(a=a.clone().empty().appendTo(a.parent()),a.html(o),i=a.outerHeight(!0),a.empty().remove()):e.$caption&&(i=e.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",i||""))},adjustLayout:function(t){var e,n,o,a,i=this,s=t||i.current;s.isLoaded&&s.opts.disableLayoutFix!==!0&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],a=s.$slide.css("padding-bottom"),parseFloat(a)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=a),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,a,i,s,r=this,c=t.$slide,l=!1,d=!1,u=r.isMoved(t),f=t.isRevealed;return t.isRevealed=!0,e=t.opts[r.firstRun?"animationEffect":"transitionEffect"],i=t.opts[r.firstRun?"animationDuration":"transitionDuration"],i=parseInt(t.forcedDuration===o?i:t.forcedDuration,10),!u&&t.pos===r.currPos&&i||(e=!1),"zoom"===e&&(t.pos===r.currPos&&i&&"image"===t.type&&!t.hasError&&(d=r.getThumbPos(t))?l=r.getFitPos(t):e="fade"),"zoom"===e?(r.isAnimating=!0,l.scaleX=l.width/d.width,l.scaleY=l.height/d.height,s=t.opts.zoomOpacity,"auto"==s&&(s=Math.abs(t.width/t.height-d.width/d.height)>.1),s&&(d.opacity=.1,l.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),d),p(t.$content),void n.fancybox.animate(t.$content,l,i,function(){r.isAnimating=!1,r.complete()})):(r.updateSlide(t),e?(n.fancybox.stop(c),a="fancybox-slide--"+(t.pos>=r.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,c.addClass(a).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(c),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(c,"fancybox-slide--current",i,function(){c.removeClass(a).css({transform:"",opacity:""}),t.pos===r.currPos&&r.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),f||!u||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===r.currPos&&r.complete())))},getThumbPos:function(t){var e,o,a,i,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),a=parseFloat(c.css("border-right-width")||0),i=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-a-s,height:e.height-o-i,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,a={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?a[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=a),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var a,i,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(a=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),a=a.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),a.length?(i=a.index(e.activeElement),t&&t.shiftKey?(i<0||0==i)&&(t.preventDefault(),a.eq(a.length-1).trigger("focus")):(i<0||i==a.length-1)&&(t&&t.preventDefault(),a.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,a,i,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,u.trigger("beforeClose",t)===!1?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),i=f.$content,o=f.opts.animationEffect,a=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),t!==!0?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),a&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",a+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||i&&a&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(i),s=n.fancybox.getTranslate(i),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(i,c),p(i),n.fancybox.animate(i,l,a,h),!0):(o&&a?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,a,h):t===!0?setTimeout(h,a):h(),
|
12
|
+
!0)))},cleanUp:function(e){var o,a,i,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(a=t.scrollX,i=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(i).scrollLeft(a))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,a=Array.prototype.slice.call(arguments,1),i=this,s=e&&e.opts?e:i.current;return s?a.unshift(s):s=i,a.unshift(i),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,a)),o===!1?o:void("afterClose"!==t&&i.$refs?i.$refs.container.trigger(t+".fb",a):r.trigger(t+".fb",a))},updateControls:function(){var t=this,o=t.current,a=o.index,i=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),t.$caption=r&&r.length?s.html(r):null,t.hasHiddenControls||t.isIdle||t.showControls(),i.find("[data-fancybox-count]").html(t.group.length),i.find("[data-fancybox-index]").html(a+1),i.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&a<=0),i.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&a>=t.group.length-1),"image"===o.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.2",defaults:i,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",a={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o?n+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==o&&(n+=" scaleX("+e.scaleX+")"),n.length&&(a.transform=n),e.opacity!==o&&(a.opacity=e.opacity),e.width!==o&&(a.width=e.width),e.height!==o&&(a.height=e.height),t.css(a)},animate:function(t,e,a,i,s){var r,c=this;n.isFunction(a)&&(i=a,a=null),c.stop(t),r=c.getTranslate(t),t.on(f,function(l){(!l||!l.originalEvent||t.is(l.originalEvent.target)&&"z-index"!=l.originalEvent.propertyName)&&(c.stop(t),n.isNumeric(a)&&t.css("transition-duration",""),n.isPlainObject(e)?e.scaleX!==o&&e.scaleY!==o&&c.setTranslate(t,{top:e.top,left:e.left,width:r.width*e.scaleX,height:r.height*e.scaleY,scaleX:1,scaleY:1}):s!==!0&&t.removeClass(e),n.isFunction(i)&&i(l))}),n.isNumeric(a)&&t.css("transition-duration",a+"ms"),n.isPlainObject(e)?(e.scaleX!==o&&e.scaleY!==o&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},a+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},a):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},a),this},r.on("click.fb-start","[data-fancybox]",a),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=".fancybox-button",e="fancybox-focus",o=null;r.on("mousedown mouseup focus blur",t,function(a){switch(a.type){case"mousedown":o=n(this);break;case"mouseup":o=null;break;case"focusin":n(t).removeClass(e),n(this).is(o)||n(this).is("[disabled]")||n(this).addClass(e);break;case"focusout":n(t).removeClass(e)}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube-nocookie.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,a,i){var s,r,c,l,d,u,f,p=i.src||"",h=!1;s=t.extend(!0,{},e,i.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var a=0;a<d.length;++a){var s=d[a].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,i.opts[e],u),p="function"===t.type(o.url)?o.url.call(this,c,l,i):n(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,i):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(i.opts.thumb||i.opts.$thumb&&i.opts.$thumb.length||(i.opts.thumb=r),"iframe"===h&&(i.opts=t.extend(!0,i.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(i,{type:h,src:p,origSrc:i.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(i.type=i.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;return this[t].loaded?void setTimeout(function(){n.done(t)}):void(this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e)))},done:function(e){var n,o,a;"youtube"===e&&delete window.onYouTubeIframeAPIReady,n=t.fancybox.getInstance(),n&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?a=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(a=new Vimeo.Player(o),a.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),a=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),i=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,a=o.length;e<a;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],a=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,i=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return a||i},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(a(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var a=this,c=n(o.target),d=a.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&a.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();a.realPoints=a.startPoints=i(o),a.startPoints.length&&(u.touch&&o.stopPropagation(),a.startEvent=o,a.canTap=!0,a.$target=c,a.$content=p,a.opts=u.opts.touch,a.isPanning=!1,a.isSwiping=!1,a.isZooming=!1,a.isScrolling=!1,a.canPan=d.canPan(),a.startTime=(new Date).getTime(),a.distanceX=a.distanceY=a.distance=0,a.canvasWidth=Math.round(f[0].clientWidth),a.canvasHeight=Math.round(f[0].clientHeight),a.contentLastPos=null,a.contentStartPos=n.fancybox.getTranslate(a.$content)||{top:0,left:0},a.sliderStartPos=n.fancybox.getTranslate(f),a.stagePos=n.fancybox.getTranslate(d.$refs.stage),a.sliderStartPos.top-=a.stagePos.top,a.sliderStartPos.left-=a.stagePos.left,a.contentStartPos.top-=a.stagePos.top,a.contentStartPos.left-=a.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(a,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(a,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",a.onscroll,!0),((a.opts||a.canPan)&&(c.is(a.$stage)||a.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.hasClass("fancybox-caption")))&&(a.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&a.isScrollable||o.preventDefault(),(1===a.startPoints.length||u.hasError)&&(a.canPan?(n.fancybox.stop(a.$content),a.isPanning=!0):a.isSwiping=!0,a.$container.addClass("fancybox-is-grabbing")),2===a.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(a.canTap=!1,a.isSwiping=!1,a.isPanning=!1,a.isZooming=!0,n.fancybox.stop(a.$content),a.centerPointStartX=.5*(a.startPoints[0].x+a.startPoints[1].x)-n(t).scrollLeft(),a.centerPointStartY=.5*(a.startPoints[0].y+a.startPoints[1].y)-n(t).scrollTop(),a.percentageOfImageAtPinchPointX=(a.centerPointStartX-a.contentStartPos.left)/a.contentStartPos.width,a.percentageOfImageAtPinchPointY=(a.centerPointStartY-a.contentStartPos.top)/a.contentStartPos.height,a.startDistanceBetweenFingers=s(a.startPoints[0],a.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=i(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&e.isSwiping===!0||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var i,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(c!==!0)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(a(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||s.opts.vertical===!1||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(i=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=i>45&&i<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,a;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),a=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-a.top,s.sliderStartPos.left=o.left-a.left),n.fancybox.setTranslate(e.$slide,{top:o.top-a.top,left:o.left-a.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;return s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)?void(t.startPoints=t.newPoints):(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&a(t.requestId),void(t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})))},d.prototype.limitMovement=function(){var t,e,n,o,a,i,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return a=h>r?f+l:f,i=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&a>t&&(a=t-1+Math.pow(-t+f+l,.8)||0),l<0&&a<n&&(a=n+1-Math.pow(n-f-l,.8)||0),d>0&&i>e&&(i=e-1+Math.pow(-e+p+d,.8)||0),d<0&&i<o&&(i=o+1-Math.pow(o-p-d,.8)||0),{top:i,left:a}},d.prototype.limitPosition=function(t,e,n,o){var a=this,i=a.canvasWidth,s=a.canvasHeight;return n>i?(t=t>0?0:t,t=t<i-n?i-n:t):t=Math.max(0,i/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,i=e.contentStartPos,r=i.width,c=i.height,l=i.left,d=i.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&a(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;return o.endPoints=i(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(a(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap?o.onTap(t):(o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,void(r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)))},d.prototype.endSwiping=function(t,e){var o=this,a=!1,i=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&i>1&&(o.dMs>130&&s>10||s>50),c=300;o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),a=o.instance.close(!0,250)):r&&o.distanceX>0?a=o.instance.previous(c):r&&o.distanceX<0&&(a=o.instance.next(c)),a!==!1||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,a=this;a.contentLastPos&&(a.opts.momentum===!1||a.dMs>350?(t=a.contentLastPos.left,e=a.contentLastPos.top):(t=a.contentLastPos.left+500*a.velocityX,e=a.contentLastPos.top+500*a.velocityY),o=a.limitPosition(t,e,a.contentStartPos.width,a.contentStartPos.height),o.width=a.contentStartPos.width,o.height=a.contentStartPos.height,n.fancybox.animate(a.$content,o,330))},d.prototype.endZooming=function(){var t,e,o,a,i=this,s=i.instance.current,r=i.newWidth,c=i.newHeight;i.contentLastPos&&(t=i.contentLastPos.left,e=i.contentLastPos.top,a={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,a),r<i.canvasWidth&&c<i.canvasHeight?i.instance.scaleToFit(150):r>s.width||c>s.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(o=i.limitPosition(t,e,r,c),n.fancybox.animate(i.$content,o,150)))},d.prototype.onTap=function(e){var o,a=this,s=n(e.target),r=a.instance,c=r.current,l=e&&i(e)||a.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-a.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-a.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(a.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(a.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(a.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(a.tapped){if(clearTimeout(a.tapped),a.tapped=null,Math.abs(d-a.tapX)>50||Math.abs(u-a.tapY)>50)return this;f("dblclick"+o)}else a.tapX=d,a.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?a.tapped=setTimeout(function(){a.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,a=o.current;a&&(t===!0||a.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==a.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},a.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},a.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var a=e&&e.SlideShow;o?a&&n.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,a,i,s){var r=o&&o.SlideShow;!r||!a.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(i.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var a=e[o];if(a&&a[1]in t){for(var i=0;i<a.length;i++)n[e[0][i]]=a[i];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.current.$content.css("transition","none"),n.isAnimating=!1,n.update(!0,!0,0)),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var a;return n?void(e&&e.group[e.currIndex].opts.fullScreen?(a=e.$refs.container,a.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&e.opts.fullScreen.autoStart===!0&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()):void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,n,o,a){e&&e.FullScreen&&70===a&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs",o=n+"-active";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var a=function(t){this.init(t)};e.extend(a.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=n.length;a<i&&(n[a].thumb&&o++,!(o>1));a++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,a=o.instance,i=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(a.$refs.container.find(i).addBack().filter(i)),o.$grid.on("click","a",function(){a.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(a.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+a.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,a=this,i=a.$list,s=a.$grid;a.instance.current&&(e=i.children().removeClass(o).filter('[data-index="'+a.instance.current.index+'"]').addClass(o),n=e.position(),"y"===a.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===a.opts.axis&&(n.left<s.scrollLeft()||n.left>s.scrollLeft()+(s.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new a(e),n.isActive&&n.opts.autoStart===!0&&n.show())},"beforeShow.fb":function(t,e,n,o){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(o.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&n.opts.hideOnClose!==!1&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'
|
13
|
+
}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,a=e.fancybox.getInstance(),i=a.current||null;i&&("function"===e.type(i.opts.share.url)&&(t=i.opts.share.url.apply(i,[a,i])),o=i.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):""),e.fancybox.open({src:a.translate(a,o),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,a=n.join("-");return{hash:e,index:o<1?1:o,gallery:a}}function a(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function i(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""),""!==n&&n)}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};return(t+"").replace(e,n)}),n(function(){n.fancybox.defaults.hash!==!1&&(n(e).on({"onInit.fb":function(t,e){var n,a;e.group[e.currIndex].opts.hash!==!1&&(n=o(),a=i(e),a&&n.gallery&&a==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,a,s){var r;a&&a.opts.hash!==!1&&(r=i(o),r&&(o.currentHash=r+(o.group.length>1?"-"+(a.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300))))},"beforeClose.fb":function(n,o,a){a.opts.hash!==!1&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var a=n(o).data("FancyBox");if(a&&a.currentHash)return e=a,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&a(t)}),setTimeout(function(){n.fancybox.getInstance()||a(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,a=(new Date).getTime();e.group.length<2||o.opts.wheel===!1||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,a-n<250||(n=a,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
@@ -2,297 +2,301 @@
|
|
2
2
|
<html lang="en">
|
3
3
|
|
4
4
|
<head>
|
5
|
-
|
6
|
-
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
7
7
|
|
8
|
-
|
8
|
+
<title>fancybox3 · Documentation</title>
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
<!-- jQuery -->
|
11
|
+
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
12
|
+
crossorigin="anonymous"></script>
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
<!-- Bootstrap -->
|
15
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
|
16
|
+
crossorigin="anonymous">
|
17
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
|
18
|
+
crossorigin="anonymous"></script>
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
<style>
|
21
|
+
a,
|
22
|
+
a:hover {
|
23
|
+
color: #ff5268;
|
24
|
+
}
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
h2 {
|
27
|
+
border-bottom: 1px solid rgba(0, 0, 0, .1);
|
28
|
+
margin-bottom: 2rem;
|
29
|
+
padding-bottom: 1rem;
|
30
|
+
padding-top: 2rem;
|
31
|
+
}
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
h3 {
|
34
|
+
font-size: 1.5rem;
|
35
|
+
margin-bottom: 1rem;
|
36
|
+
padding-top: 1.5rem;
|
37
|
+
}
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
h2 + h3 {
|
40
|
+
margin-top: -2rem;
|
41
|
+
}
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
h3 a,
|
44
|
+
h3 a:hover {
|
45
|
+
color: currentColor;
|
46
|
+
}
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
code {
|
49
|
+
background: #f1ecec;
|
50
|
+
color: #555;
|
51
|
+
padding: 2px 5px;
|
52
|
+
}
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
54
|
+
pre {
|
55
|
+
background: #f1ecec;
|
56
|
+
color: #555;
|
57
|
+
max-height: 70vh;
|
58
|
+
overflow: auto;
|
59
|
+
padding: 1rem 1.5rem;
|
60
|
+
-moz-tab-size: 4;
|
61
|
+
tab-size: 4;
|
62
|
+
}
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
pre code {
|
65
|
+
padding: 0;
|
66
|
+
}
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
section {
|
69
|
+
margin-bottom: 1rem;
|
70
|
+
margin-bottom: 5vh;
|
71
|
+
}
|
72
72
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
73
|
+
#introduction {
|
74
|
+
background: #fbf9f9;
|
75
|
+
margin-bottom: 2rem;
|
76
|
+
padding-bottom: 1rem;
|
77
|
+
padding-top: 1rem;
|
78
|
+
}
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
.navbar-brand {
|
81
|
+
color: #444;
|
82
|
+
font-size: 1.375rem;
|
83
|
+
}
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
85
|
+
.navbar-brand svg {
|
86
|
+
position: relative;
|
87
|
+
top: -1px;
|
88
|
+
vertical-align: middle;
|
89
|
+
}
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
91
|
+
.navbar-brand svg path {
|
92
|
+
fill: #fff;
|
93
|
+
stroke: #444;
|
94
|
+
stroke-width: 2.5;
|
95
|
+
}
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
97
|
+
.nav-link {
|
98
|
+
color: grey;
|
99
|
+
height: 2.5rem;
|
100
|
+
}
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
102
|
+
.navbar-brand:hover,
|
103
|
+
.nav-link:hover {
|
104
|
+
color: #464646;
|
105
|
+
}
|
106
106
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
107
|
+
.nav-link.active {
|
108
|
+
background: #ff5268;
|
109
|
+
border-radius: .25rem;
|
110
|
+
color: #fff;
|
111
|
+
}
|
112
112
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
113
|
+
.sticky {
|
114
|
+
padding-top: 2rem;
|
115
|
+
top: 0;
|
116
|
+
}
|
117
117
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
118
|
+
.sticky ul {
|
119
|
+
line-height: 2;
|
120
|
+
list-style: none;
|
121
|
+
}
|
122
122
|
|
123
|
-
|
124
|
-
|
125
|
-
|
123
|
+
.sticky > ul {
|
124
|
+
padding-left: 1rem;
|
125
|
+
}
|
126
126
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
127
|
+
.sticky a {
|
128
|
+
color: grey;
|
129
|
+
text-decoration: none;
|
130
|
+
}
|
131
131
|
|
132
|
-
|
133
|
-
|
134
|
-
|
132
|
+
.sticky a:hover {
|
133
|
+
color: #464646;
|
134
|
+
}
|
135
135
|
|
136
|
-
|
137
|
-
|
138
|
-
|
136
|
+
.sticky a.active {
|
137
|
+
color: #ff5268;
|
138
|
+
}
|
139
139
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
140
|
+
.demo {
|
141
|
+
font-size: 90%;
|
142
|
+
margin-bottom: 2rem;
|
143
|
+
text-align: right;
|
144
|
+
}
|
145
145
|
|
146
|
-
|
147
|
-
|
148
|
-
|
146
|
+
pre ~ .demo {
|
147
|
+
margin-top: -1rem;
|
148
|
+
}
|
149
149
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
150
|
+
.badge-warning {
|
151
|
+
font-weight: 600;
|
152
|
+
}
|
153
|
+
|
154
|
+
</style>
|
154
155
|
</head>
|
155
156
|
|
156
157
|
<body>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
</
|
189
|
-
|
158
|
+
<div id="introduction">
|
159
|
+
<div class="container">
|
160
|
+
<nav class="navbar navbar-expand">
|
161
|
+
<a class="navbar-brand py-0 mr-auto" href="https://fancyapps.com/fancybox/3/">
|
162
|
+
fancybox
|
163
|
+
</a>
|
164
|
+
|
165
|
+
<ul class="navbar-nav ml-auto">
|
166
|
+
<li class="nav-item px-2 d-none d-md-block">
|
167
|
+
<a class="nav-link" href="https://fancyapps.com/fancybox/3/">Home</a>
|
168
|
+
</li>
|
169
|
+
<li class="nav-item px-2 d-none d-md-block">
|
170
|
+
<a class="nav-link active" href="https://fancyapps.com/fancybox/3/docs/">Documentation</a>
|
171
|
+
</li>
|
172
|
+
<li class="nav-item px-2">
|
173
|
+
<a class="nav-link" href="https://fancyapps.com/store/">Store</a>
|
174
|
+
</li>
|
175
|
+
<li class="nav-item">
|
176
|
+
<a class="nav-link" href="https://github.com/fancyapps/fancybox" target="_blank">
|
177
|
+
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-label="Github" role="img" viewBox="0 0 512 512">
|
178
|
+
<rect fill="#444" width="512" height="512" rx="50%"></rect>
|
179
|
+
<path fill="#fff" d="M335 499c14 0 12 17 12 17H165s-2-17 12-17c13 0 16-6 16-12l-1-50c-71 16-86-28-86-28-12-30-28-37-28-37-24-16 1-16 1-16 26 2 40 26 40 26 22 39 59 28 74 22 2-17 9-28 16-35-57-6-116-28-116-126 0-28 10-51 26-69-3-6-11-32 3-67 0 0 21-7 70 26 42-12 86-12 128 0 49-33 70-26 70-26 14 35 6 61 3 67 16 18 26 41 26 69 0 98-60 120-117 126 10 8 18 24 18 48l-1 70c0 6 3 12 16 12z"></path>
|
180
|
+
</svg>
|
181
|
+
</a>
|
182
|
+
</li>
|
183
|
+
<li class="nav-item">
|
184
|
+
<a class="nav-link" href="https://twitter.com/thefancyapps" target="_blank" title="Follow @thefancyapps">
|
185
|
+
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-label="Twitter" role="img" viewBox="0 0 512 512">
|
186
|
+
<rect fill="#444" width="512" height="512" rx="50%"></rect>
|
187
|
+
<path fill="#fff" d="M437 152a72 72 0 0 1-40 12 72 72 0 0 0 32-40 72 72 0 0 1-45 17 72 72 0 0 0-122 65 200 200 0 0 1-145-74 72 72 0 0 0 22 94 72 72 0 0 1-32-7 72 72 0 0 0 56 69 72 72 0 0 1-32 1 72 72 0 0 0 67 50 200 200 0 0 1-105 29 200 200 0 0 0 309-179 200 200 0 0 0 35-37"></path>
|
188
|
+
</svg>
|
189
|
+
</a>
|
190
|
+
</li>
|
191
|
+
</ul>
|
192
|
+
</nav>
|
190
193
|
</div>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
<div class="container">
|
197
|
+
<div class="row">
|
198
|
+
<div class="col-md-2" id="leftCol">
|
199
|
+
<div class="sticky">
|
200
|
+
<ul>
|
201
|
+
<li>
|
202
|
+
<a href="#introduction">Introduction</a>
|
203
|
+
</li>
|
204
|
+
<li>
|
205
|
+
<a href="#setup">Setup</a>
|
206
|
+
</li>
|
207
|
+
<li>
|
208
|
+
<a href="#usage">How to Use</a>
|
209
|
+
</li>
|
210
|
+
<li>
|
211
|
+
<a href="#media_types">Media types</a>
|
212
|
+
|
213
|
+
<ul>
|
214
|
+
<li>
|
215
|
+
<a href="#images">Images</a>
|
216
|
+
</li>
|
217
|
+
<li>
|
218
|
+
<a href="#video">Video</a>
|
219
|
+
</li>
|
220
|
+
<li>
|
221
|
+
<a href="#iframe">Iframe</a>
|
222
|
+
</li>
|
223
|
+
<li>
|
224
|
+
<a href="#inline">Inline</a>
|
225
|
+
</li>
|
226
|
+
<li>
|
227
|
+
<a href="#ajax">Ajax</a>
|
228
|
+
</li>
|
229
|
+
</ul>
|
230
|
+
</li>
|
231
|
+
<li>
|
232
|
+
<a href="#options">Options</a>
|
233
|
+
</li>
|
234
|
+
<li>
|
235
|
+
<a href="#api">Api</a>
|
236
|
+
</li>
|
237
|
+
<li>
|
238
|
+
<a href="#modules">Modules</a>
|
239
|
+
</li>
|
240
|
+
<li>
|
241
|
+
<a href="#faq">FAQ</a>
|
242
|
+
</li>
|
243
|
+
</ul>
|
244
|
+
</div>
|
245
|
+
</div>
|
191
246
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
<section>
|
246
|
-
<h2>Introduction</h2>
|
247
|
-
|
248
|
-
<p>
|
249
|
-
Get started with fancybox, probably the world’s most popular lightbox script.
|
250
|
-
</p>
|
251
|
-
</section>
|
252
|
-
<section>
|
253
|
-
|
254
|
-
<h3>
|
255
|
-
Dependencies
|
256
|
-
</h3>
|
257
|
-
|
258
|
-
<p>
|
259
|
-
jQuery 3+ is preferred, but fancybox works with jQuery 1.9.1+ and jQuery 2+
|
260
|
-
</p>
|
261
|
-
|
262
|
-
<h3>Compatibility</h3>
|
263
|
-
|
264
|
-
<p>
|
265
|
-
fancybox includes support for touch gestures and even supports pinch gestures for zooming. It is perfectly suited for both
|
266
|
-
mobile and desktop browsers.
|
267
|
-
</p>
|
268
|
-
|
269
|
-
<p>
|
270
|
-
fancybox has been tested in following browsers/devices:
|
271
|
-
</p>
|
272
|
-
|
273
|
-
<ul>
|
274
|
-
<li>Chrome</li>
|
275
|
-
<li>Firefox</li>
|
276
|
-
<li>IE10/11</li>
|
277
|
-
<li>Edge</li>
|
278
|
-
<li>iOS Safari</li>
|
279
|
-
<li>Nexus 7 Chrome</li>
|
280
|
-
</ul>
|
281
|
-
|
282
|
-
</section>
|
283
|
-
|
284
|
-
<section id="setup">
|
285
|
-
|
286
|
-
<h2>Setup</h2>
|
287
|
-
|
288
|
-
<p>
|
289
|
-
You can install fancybox by linking
|
290
|
-
<code>.css</code> and
|
291
|
-
<code>.js</code> files to your html file. Make sure you also load the jQuery library. Below is a basic HTML template
|
292
|
-
to use as an example:
|
293
|
-
</p>
|
294
|
-
|
295
|
-
<pre><!DOCTYPE html>
|
247
|
+
<div class="col-md-10 px-2 px-md-5" id="mainCol">
|
248
|
+
|
249
|
+
<section>
|
250
|
+
<h2>Introduction</h2>
|
251
|
+
|
252
|
+
<p>
|
253
|
+
Get started with fancybox, probably the world’s most popular lightbox script.
|
254
|
+
</p>
|
255
|
+
</section>
|
256
|
+
<section>
|
257
|
+
|
258
|
+
<h3>
|
259
|
+
Dependencies
|
260
|
+
</h3>
|
261
|
+
|
262
|
+
<p>
|
263
|
+
jQuery 3+ is preferred, but fancybox works with jQuery 1.9.1+ and jQuery 2+
|
264
|
+
</p>
|
265
|
+
|
266
|
+
<h3>Compatibility</h3>
|
267
|
+
|
268
|
+
<p>
|
269
|
+
fancybox includes support for touch gestures and even supports pinch gestures for zooming.
|
270
|
+
It is perfectly suited for both mobile and desktop browsers.
|
271
|
+
</p>
|
272
|
+
|
273
|
+
<p>
|
274
|
+
fancybox has been tested in following browsers/devices:
|
275
|
+
</p>
|
276
|
+
|
277
|
+
<ul>
|
278
|
+
<li>Chrome</li>
|
279
|
+
<li>Firefox</li>
|
280
|
+
<li>IE10/11</li>
|
281
|
+
<li>Edge</li>
|
282
|
+
<li>iOS Safari</li>
|
283
|
+
<li>Android 7.0 Tablet</li>
|
284
|
+
</ul>
|
285
|
+
|
286
|
+
</section>
|
287
|
+
|
288
|
+
<section id="setup">
|
289
|
+
|
290
|
+
<h2>Setup</h2>
|
291
|
+
|
292
|
+
<p>
|
293
|
+
You can install fancybox by linking
|
294
|
+
<code>.css</code> and
|
295
|
+
<code>.js</code> files to your html file. Make sure you also load the jQuery library. Below is a basic HTML
|
296
|
+
template to use as an example:
|
297
|
+
</p>
|
298
|
+
|
299
|
+
<pre><!DOCTYPE html>
|
296
300
|
<html>
|
297
301
|
<head>
|
298
302
|
<meta charset="utf-8">
|
@@ -311,70 +315,75 @@
|
|
311
315
|
</body>
|
312
316
|
</html>
|
313
317
|
</pre>
|
314
|
-
|
318
|
+
<h3>Download fancybox</h3>
|
315
319
|
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
320
|
+
<p>
|
321
|
+
Download the latest version of fancybox on
|
322
|
+
<a href="https://github.com/fancyapps/fancybox" target="_blank">GitHub</a>.
|
323
|
+
<br /> Or just link directly to fancybox files on cdnjs -
|
324
|
+
<a href="https://cdnjs.com/libraries/fancybox" target="_blank">https://cdnjs.com/libraries/fancybox</a>.
|
325
|
+
</p>
|
322
326
|
|
323
|
-
|
327
|
+
<h3>Package Managers</h3>
|
324
328
|
|
325
|
-
|
326
|
-
|
327
|
-
|
329
|
+
<p>
|
330
|
+
fancybox is also available on npm and Bower.
|
331
|
+
</p>
|
328
332
|
|
329
|
-
|
333
|
+
<pre><code># NPM
|
330
334
|
npm install @fancyapps/fancybox --save
|
331
335
|
|
332
336
|
# Bower
|
333
337
|
bower install fancybox --save
|
334
338
|
</code></pre>
|
335
339
|
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
340
|
+
<h4 class="mt-5">
|
341
|
+
<span class="badge badge-warning">Important</span>
|
342
|
+
</h4>
|
343
|
+
|
344
|
+
<ul>
|
345
|
+
<li>Make sure you add the jQuery library before the fancybox JS file</li>
|
346
|
+
<li>If you already have jQuery on your page, you shouldn't include it second time</li>
|
347
|
+
<li>Do not include both fancybox.js and fancybox.min.js files</li>
|
348
|
+
<li>
|
349
|
+
Some functionality (ajax, iframes, etc) will not work when you're opening local file directly on your
|
350
|
+
browser, the code must
|
351
|
+
be running on a web server
|
352
|
+
</li>
|
353
|
+
</ul>
|
354
|
+
|
355
|
+
</section>
|
356
|
+
|
357
|
+
<section id="usage">
|
358
|
+
<h2>How to Use</h2>
|
359
|
+
|
360
|
+
<h3>Initialize with data attributes</h3>
|
361
|
+
|
362
|
+
<p>
|
363
|
+
The most basic way to use fancybox is by adding the
|
364
|
+
<code>data-fancybox</code> attribute to your element. This will automatically bind click event that will
|
365
|
+
start
|
366
|
+
fancybox. Use
|
367
|
+
<code>href</code> or
|
368
|
+
<code>data-src</code> attribute to specify source of your content. Example:
|
369
|
+
</p>
|
370
|
+
|
371
|
+
<pre><a href="image.jpg" data-fancybox data-caption="Caption for single image">
|
365
372
|
<img src="thumbnail.jpg" alt="" />
|
366
373
|
</a></pre>
|
367
374
|
|
368
|
-
|
369
|
-
|
370
|
-
|
375
|
+
<p class="demo">
|
376
|
+
<a href="https://codepen.io/fancyapps/pen/oPKVea?editors=1000" target="_blank">View demo on CodePen</a>
|
377
|
+
</p>
|
371
378
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
379
|
+
<p>
|
380
|
+
If you have a group of items, you can use the same attribute
|
381
|
+
<code>data-fancybox</code> value for each of them to create a gallery. Each group should have a unique
|
382
|
+
value.
|
383
|
+
Example:
|
384
|
+
</p>
|
376
385
|
|
377
|
-
|
386
|
+
<pre><a href="image_1.jpg" data-fancybox="gallery" data-caption="Caption #1">
|
378
387
|
<img src="thumbnail_1.jpg" alt="" />
|
379
388
|
</a>
|
380
389
|
|
@@ -382,89 +391,86 @@ bower install fancybox --save
|
|
382
391
|
<img src="thumbnail_2.jpg" alt="" />
|
383
392
|
</a>
|
384
393
|
</pre>
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
394
|
+
<p class="demo">
|
395
|
+
<a href="https://codepen.io/fancyapps/pen/wEVOPa?editors=1000" target="_blank">View demo on CodePen</a>
|
396
|
+
</p>
|
397
|
+
|
398
|
+
<p>
|
399
|
+
If you choose this method, default settings will be applied. See
|
400
|
+
<a href="#options">options</a> section for examples how to customize
|
401
|
+
by changing defaults, using
|
402
|
+
<code>data-options</code> attribute or by <a href="#initialize-with-javascript">initializing with
|
403
|
+
JavaScript</a>.
|
404
|
+
</p>
|
405
|
+
|
406
|
+
<p>
|
407
|
+
<span class="badge badge-info">Info</span>
|
408
|
+
Sometimes you have multiple links pointing to the same source and that creates duplicates in the gallery.
|
409
|
+
To avoid that, simply use
|
410
|
+
<code>data-fancybox-trigger</code> attribute with the same value used for
|
411
|
+
<code>data-fancybox</code> attribute for your other links. Optionally, use
|
412
|
+
<code>data-fancybox-index</code> attribute to specify index of starting element:
|
413
|
+
</p>
|
414
|
+
|
415
|
+
<pre><code><a data-fancybox-trigger="gallery" href="javascript:;">
|
404
416
|
<img src="thumbnail_1.jpg" alt="" />
|
405
417
|
</a>
|
406
418
|
</code></pre>
|
407
|
-
|
408
|
-
|
409
|
-
|
419
|
+
<p class="demo">
|
420
|
+
<a href="https://codepen.io/fancyapps/pen/VGoRqO?editors=1010" target="_blank">View demo on CodePen</a>
|
421
|
+
</p>
|
410
422
|
|
411
|
-
|
423
|
+
<h3 id="initialize-with-javascript">Initialize with JavaScript</h3>
|
412
424
|
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
425
|
+
<p>
|
426
|
+
Select your elements with a jQuery selector (you can use any valid selector) and call the
|
427
|
+
<code>fancybox</code> method:
|
428
|
+
</p>
|
417
429
|
|
418
|
-
|
430
|
+
<pre><code>$('[data-fancybox="gallery"]').fancybox({
|
419
431
|
// Options will go here
|
420
432
|
});
|
421
433
|
</code></pre>
|
422
434
|
|
423
|
-
|
424
|
-
|
425
|
-
|
435
|
+
<p class="demo">
|
436
|
+
<a href="https://codepen.io/fancyapps/pen/vzoPMB?editors=1010" target="_blank">View demo on CodePen</a>
|
437
|
+
</p>
|
426
438
|
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
439
|
+
<p>
|
440
|
+
<span class="badge badge-info">Info</span>
|
441
|
+
Sometimes you might need to bind fancybox to dynamically added elements. Use
|
442
|
+
<code>selector</code> option to attach click event listener for elements that exist now or in the future.
|
443
|
+
All selected items will be automatically grouped in the gallery. Example:
|
444
|
+
</p>
|
431
445
|
|
432
|
-
|
433
|
-
selector : '
|
434
|
-
loop : true
|
446
|
+
<pre><code>$().fancybox({
|
447
|
+
selector : '.imglist a:visible'
|
435
448
|
});</code></pre>
|
436
449
|
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
</p>
|
462
|
-
|
463
|
-
<p>
|
464
|
-
Display iframed page:
|
465
|
-
</p>
|
466
|
-
|
467
|
-
<pre><code>$s.fancybox.open({
|
450
|
+
<p class="demo">
|
451
|
+
<a href="https://codepen.io/fancyapps/pen/NLQJQp?editors=1010" target="_blank">View demo on CodePen</a>
|
452
|
+
</p>
|
453
|
+
|
454
|
+
<h3>Use with Javascript</h3>
|
455
|
+
|
456
|
+
<p>
|
457
|
+
You can also open and close fancybox programmatically. Here are a couple of examples, visit
|
458
|
+
<a href="#api">API</a> section for more information and demos.
|
459
|
+
</p>
|
460
|
+
<p>
|
461
|
+
Display simple message:
|
462
|
+
</p>
|
463
|
+
|
464
|
+
<pre><code>$.fancybox.open('<div class="message"><h2>Hello!</h2><p>You are awesome!</p></div>');</code></pre>
|
465
|
+
<p class="demo">
|
466
|
+
<a href="https://codepen.io/fancyapps/pen/qMewWv?editors=1010" target="_blank">View demo on CodePen</a>
|
467
|
+
</p>
|
468
|
+
|
469
|
+
<p>
|
470
|
+
Display iframed page:
|
471
|
+
</p>
|
472
|
+
|
473
|
+
<pre><code>$.fancybox.open({
|
468
474
|
src : 'link-to-your-page.html',
|
469
475
|
type : 'iframe',
|
470
476
|
opts : {
|
@@ -473,72 +479,77 @@ bower install fancybox --save
|
|
473
479
|
}
|
474
480
|
}
|
475
481
|
});</code></pre>
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
482
|
+
<p class="demo">
|
483
|
+
<a href="https://codepen.io/fancyapps/pen/GXVLgo?editors=1010" target="_blank">View demo on CodePen</a>
|
484
|
+
</p>
|
485
|
+
|
486
|
+
<h4 class="mt-4">
|
487
|
+
<span class="badge badge-warning">Important</span>
|
488
|
+
</h4>
|
489
|
+
|
490
|
+
<p>
|
491
|
+
fancybox attempts to automatically detect the type of content based on the given url. If it cannot be
|
492
|
+
detected, the type can also be set manually using
|
493
|
+
<code>data-type</code> attribute (or
|
494
|
+
<code>type</code> option). Example:
|
495
|
+
</p>
|
496
|
+
|
497
|
+
<pre><a href="images.php?id=123" data-type="image" data-caption="Caption">
|
492
498
|
Show image
|
493
499
|
</a></pre>
|
494
500
|
|
495
|
-
|
496
|
-
|
501
|
+
</section>
|
502
|
+
<section id="media_types">
|
497
503
|
|
498
|
-
|
504
|
+
<h2>Media types</h2>
|
499
505
|
|
500
|
-
|
506
|
+
<p>
|
507
|
+
fancybox is designed to display images, video, iframes and any HTML content. For your convenience, there is
|
508
|
+
a built in support for inline content and ajax.
|
509
|
+
</p>
|
501
510
|
|
502
|
-
|
503
|
-
The standard way of using fancybox is with a number of thumbnail images that link to larger images:
|
504
|
-
</p>
|
511
|
+
<h3 id="images">Images</h3>
|
505
512
|
|
506
|
-
|
513
|
+
<p>
|
514
|
+
The standard way of using fancybox is with a number of thumbnail images that link to larger images:
|
515
|
+
</p>
|
516
|
+
|
517
|
+
<pre><code><a href="image.jpg" data-fancybox="images" data-caption="My caption">
|
507
518
|
<img src="thumbnail.jpg" alt="" />
|
508
519
|
</a></code></pre>
|
509
520
|
|
510
|
-
|
511
|
-
|
512
|
-
|
521
|
+
<p class="demo">
|
522
|
+
<a href="https://codepen.io/fancyapps/pen/EeqJPG?editors=1000" target="_blank">View demo on CodePen</a>
|
523
|
+
</p>
|
513
524
|
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
525
|
+
<p>
|
526
|
+
By default, fancybox fully preloads an image before displaying it. You can choose to display the image
|
527
|
+
right away. It will render and show the full size image while the data is being received. To do so, some
|
528
|
+
attributes are necessary:
|
529
|
+
</p>
|
519
530
|
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
531
|
+
<ul>
|
532
|
+
<li>
|
533
|
+
<code>data-width</code> - the real width of the image</li>
|
534
|
+
<li>
|
535
|
+
<code>data-height</code> - the real height of the image</li>
|
536
|
+
</ul>
|
526
537
|
|
527
|
-
|
538
|
+
<pre><code><a href="image.jpg" data-fancybox="images" data-width="2048" data-height="1365">
|
528
539
|
<img src="thumbnail.jpg" />
|
529
540
|
</a></code></pre>
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
541
|
+
<p class="demo">
|
542
|
+
<a href="https://codepen.io/fancyapps/pen/bxXJRr?editors=1000" target="_blank">View demo on CodePen</a>
|
543
|
+
</p>
|
544
|
+
|
545
|
+
<p>
|
546
|
+
You can also use these
|
547
|
+
<code>width</code> and
|
548
|
+
<code>height</code> properties to control size of the image. This can be used to make images look sharper
|
549
|
+
on retina displays. Example:
|
550
|
+
</p>
|
551
|
+
|
552
|
+
<pre><code>$('[data-fancybox="images"]').fancybox({
|
542
553
|
afterLoad : function(instance, current) {
|
543
554
|
var pixelRatio = window.devicePixelRatio || 1;
|
544
555
|
|
@@ -549,52 +560,51 @@ bower install fancybox --save
|
|
549
560
|
}
|
550
561
|
});</code></pre>
|
551
562
|
|
552
|
-
|
553
|
-
|
554
|
-
|
563
|
+
<p class="demo">
|
564
|
+
<a href="https://codepen.io/fancyapps/pen/gdVyxg?editors=1010" target="_blank">View demo on CodePen</a>
|
565
|
+
</p>
|
555
566
|
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
567
|
+
<p>
|
568
|
+
fancybox supports "srcset" so it can display different images based on viewport width. You can use this to
|
569
|
+
improve download times for mobile users and over time save bandwidth. Example:
|
570
|
+
</p>
|
560
571
|
|
561
|
-
|
572
|
+
<pre><code><a href="medium.jpg" data-fancybox="images" data-srcset="large.jpg 1600w, medium.jpg 1200w, small.jpg 640w">
|
562
573
|
<img src="thumbnail.jpg" />
|
563
574
|
</a></code></pre>
|
564
|
-
|
565
|
-
|
566
|
-
|
575
|
+
<p class="demo">
|
576
|
+
<a href="https://codepen.io/fancyapps/pen/LJwvzY?editors=1000" target="_blank">View demo on CodePen</a>
|
577
|
+
</p>
|
567
578
|
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
579
|
+
<p>
|
580
|
+
It is also possible to protect images from downloading by right-click. While this does not protect from
|
581
|
+
truly determined users, it should discourage the vast majority from ripping off your files.
|
582
|
+
Optionally, put the watermark over image.
|
583
|
+
</p>
|
573
584
|
|
574
|
-
|
585
|
+
<pre><code>$('[data-fancybox]').fancybox({
|
575
586
|
protect: true
|
576
587
|
});</code></pre>
|
577
588
|
|
578
|
-
|
579
|
-
|
580
|
-
|
589
|
+
<p class="demo">
|
590
|
+
<a href="https://codepen.io/fancyapps/pen/QVePOQ" target="_blank">View demo on CodePen</a>
|
591
|
+
</p>
|
581
592
|
|
582
|
-
|
593
|
+
<h3 id="video">Video</h3>
|
583
594
|
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
</p>
|
595
|
+
<p>
|
596
|
+
YouTube and Vimeo videos can be used with fancybox by just providing the page URL. Link to MP4 video
|
597
|
+
directly or use trigger element to display hidden <code><video></code> element.
|
598
|
+
</p>
|
589
599
|
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
600
|
+
<p>
|
601
|
+
Use
|
602
|
+
<code>data-width</code> and
|
603
|
+
<code>data-height</code> attributes to customize video dimensions and
|
604
|
+
<code>data-ratio</code> for the aspect ratio.
|
605
|
+
</p>
|
596
606
|
|
597
|
-
|
607
|
+
<pre><code><a data-fancybox href="https://www.youtube.com/watch?v=_sI_Ps7JSEk">
|
598
608
|
YouTube video
|
599
609
|
</a>
|
600
610
|
|
@@ -616,30 +626,30 @@ bower install fancybox --save
|
|
616
626
|
<source src="https://www.html5rocks.com/en/tutorials/video/basics/Chrome_ImF.ogv" type="video/ogg">
|
617
627
|
Your browser doesn't support HTML5 video tag.
|
618
628
|
</video></code></pre>
|
619
|
-
|
620
|
-
|
621
|
-
|
629
|
+
<p class="demo">
|
630
|
+
<a href="https://codepen.io/fancyapps/pen/GXVLyr?editors=1010" target="_blank">View demo on CodePen</a>
|
631
|
+
</p>
|
622
632
|
|
623
|
-
|
624
|
-
|
625
|
-
|
633
|
+
<p>
|
634
|
+
Controlling YouTube & Vimeo video via URL parameters:
|
635
|
+
</p>
|
626
636
|
|
627
|
-
|
637
|
+
<pre><code><a data-fancybox href="https://www.youtube.com/watch?v=_sI_Ps7JSEk&amp;autoplay=1&amp;rel=0&amp;controls=0&amp;showinfo=0">
|
628
638
|
YouTube video - hide controls and info
|
629
639
|
</a>
|
630
640
|
|
631
641
|
<a data-fancybox href="https://vimeo.com/191947042?color=f00">
|
632
642
|
Vimeo video - custom color
|
633
643
|
</a></code></pre>
|
634
|
-
|
635
|
-
|
636
|
-
|
644
|
+
<p class="demo">
|
645
|
+
<a href="https://codepen.io/fancyapps/pen/NLQmzy?editors=1000" target="_blank">View demo on CodePen</a>
|
646
|
+
</p>
|
637
647
|
|
638
|
-
|
639
|
-
|
640
|
-
|
648
|
+
<p>
|
649
|
+
Via JavaScript:
|
650
|
+
</p>
|
641
651
|
|
642
|
-
|
652
|
+
<pre><code>$('[data-fancybox]').fancybox({
|
643
653
|
youtube : {
|
644
654
|
controls : 0,
|
645
655
|
showinfo : 0
|
@@ -648,79 +658,21 @@ bower install fancybox --save
|
|
648
658
|
color : 'f00'
|
649
659
|
}
|
650
660
|
});</code></pre>
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
661
|
+
<p class="demo">
|
662
|
+
<a href="https://codepen.io/fancyapps/pen/WgVWKz?editors=1010" target="_blank">View demo on CodePen</a>
|
663
|
+
</p>
|
655
664
|
|
656
665
|
|
657
|
-
<h3 id="inline">Inline HTML</h3>
|
658
|
-
|
659
|
-
<p>
|
660
|
-
For inline content, create a hidden element with unique id:
|
661
|
-
</p>
|
662
|
-
|
663
|
-
<pre><code><div style="display: none;" id="hidden-content">
|
664
|
-
<h2>Hello</h2>
|
665
|
-
<p>You are awesome.</p>
|
666
|
-
</div></code></pre>
|
667
|
-
|
668
|
-
<p>
|
669
|
-
And then simply create a link having
|
670
|
-
<code>data-src</code> attribute that matches ID of the element you want to open (preceded by a hash mark (#); in this
|
671
|
-
example -
|
672
|
-
<code>#hidden-content</code>):
|
673
|
-
</p>
|
674
|
-
|
675
|
-
<pre><code><a data-fancybox data-src="#hidden-content" href="javascript:;">
|
676
|
-
Trigger the fancybox
|
677
|
-
</a></code></pre>
|
678
|
-
<p class="demo">
|
679
|
-
<a href="https://codepen.io/fancyapps/pen/yKEryV?editors=1100" target="_blank">View demo on CodePen</a>
|
680
|
-
</p>
|
681
666
|
|
682
|
-
|
683
|
-
The script will append small close button (if you have not disabled by
|
684
|
-
<code>smallBtn:false</code>) and will not apply any styles except for centering. Therefore you can easily set custom dimensions
|
685
|
-
using CSS.
|
686
|
-
</p>
|
667
|
+
<h3 id="iframe">Iframe</h3>
|
687
668
|
|
688
|
-
|
669
|
+
<p>
|
670
|
+
If you need to display content from another page, add <code>data-fancybox</code> and <code>data-type="iframe"</code>
|
671
|
+
attributes to your link. This would create <code><iframe></iframe></code> element that allows to
|
672
|
+
embed an entire web document inside the modal.
|
673
|
+
</p>
|
689
674
|
|
690
|
-
|
691
|
-
To load content via AJAX, you need to add a
|
692
|
-
<code>data-type="ajax"</code> attribute to your link:
|
693
|
-
</p>
|
694
|
-
|
695
|
-
<pre><code><a data-fancybox data-type="ajax" data-src="my_page.com/path/to/ajax/" href="javascript:;">
|
696
|
-
AJAX content
|
697
|
-
</a></code></pre>
|
698
|
-
<p class="demo">
|
699
|
-
<a href="https://codepen.io/fancyapps/pen/wmXbvJ?editors=1100" target="_blank">View demo on CodePen</a>
|
700
|
-
</p>
|
701
|
-
|
702
|
-
<p>
|
703
|
-
Additionally it is possible to define a selector with the
|
704
|
-
<code>data-filter</code> attribute to show only a part of the response. The selector can be any string, that is a valid jQuery
|
705
|
-
selector:
|
706
|
-
</p>
|
707
|
-
|
708
|
-
<pre><code><a data-fancybox data-type="ajax" data-src="my_page.com/path/to/ajax/" data-filter="#two" href="javascript:;">
|
709
|
-
AJAX content
|
710
|
-
</a>
|
711
|
-
</code></pre>
|
712
|
-
<p class="demo">
|
713
|
-
<a href="https://codepen.io/fancyapps/pen/xWzNGe?editors=1100" target="_blank">View demo on CodePen</a>
|
714
|
-
</p>
|
715
|
-
|
716
|
-
<h3 id="iframe">Iframe</h3>
|
717
|
-
|
718
|
-
<p>
|
719
|
-
If the content can be shown on a page, and placement in an iframe is not blocked by script or security configuration of that
|
720
|
-
page, it can be presented in a fancybox:
|
721
|
-
</p>
|
722
|
-
|
723
|
-
<pre><code><a data-fancybox data-type="iframe" data-src="http://codepen.io/fancyapps/full/jyEGGG/" href="javascript:;">
|
675
|
+
<pre><code><a data-fancybox data-type="iframe" data-src="http://codepen.io/fancyapps/full/jyEGGG/" href="javascript:;">
|
724
676
|
Webpage
|
725
677
|
</a>
|
726
678
|
|
@@ -728,58 +680,24 @@ bower install fancybox --save
|
|
728
680
|
Sample PDF file
|
729
681
|
</a>
|
730
682
|
</code></pre>
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
</p>
|
750
|
-
|
751
|
-
<pre><code>.fancybox-slide--iframe .fancybox-content {
|
752
|
-
width : 800px;
|
753
|
-
height : 600px;
|
754
|
-
max-width : 80%;
|
755
|
-
max-height : 80%;
|
756
|
-
margin: 0;
|
757
|
-
}</code></pre>
|
758
|
-
|
759
|
-
<p>
|
760
|
-
These CSS rules can be overridden by JS, if needed:
|
761
|
-
</p>
|
762
|
-
|
763
|
-
<pre><code>$("[data-fancybox]").fancybox({
|
764
|
-
iframe : {
|
765
|
-
css : {
|
766
|
-
width : '600px'
|
767
|
-
}
|
768
|
-
}
|
769
|
-
});</code></pre>
|
770
|
-
|
771
|
-
<p>
|
772
|
-
If you have not disabled iframe preloading (using
|
773
|
-
<code>preload</code> option), then the script will atempt to calculate content dimensions and will adjust width/height
|
774
|
-
of iframe to fit with content in it. Keep in mind, that due to
|
775
|
-
<a href="https://en.wikipedia.org/wiki/Same-origin_policy" target="_blank">same origin policy</a>, there are some limitations.
|
776
|
-
</p>
|
777
|
-
|
778
|
-
<p>
|
779
|
-
This example will disable iframe preloading and will display small close button next to iframe instead of the toolbar:
|
780
|
-
</p>
|
781
|
-
|
782
|
-
<pre><code>$('[data-fancybox]').fancybox({
|
683
|
+
<p class="demo">
|
684
|
+
<a href="https://codepen.io/fancyapps/pen/RYXOeK?editors=1000" target="_blank">View demo on CodePen</a>
|
685
|
+
</p>
|
686
|
+
|
687
|
+
<p>
|
688
|
+
If you have not disabled iframe preloading (using
|
689
|
+
<code>preload</code> option), the script will atempt to calculate content dimensions and will adjust
|
690
|
+
width/height of <code><iframe></iframe></code> to fit with content in it. Keep in mind, that due to
|
691
|
+
<a href="https://en.wikipedia.org/wiki/Same-origin_policy" target="_blank">same origin policy</a>, there
|
692
|
+
are some limitations.
|
693
|
+
</p>
|
694
|
+
|
695
|
+
<p>
|
696
|
+
This example will disable iframe preloading and will display small close button next to iframe instead of
|
697
|
+
the toolbar:
|
698
|
+
</p>
|
699
|
+
|
700
|
+
<pre><code>$('[data-fancybox]').fancybox({
|
783
701
|
toolbar : false,
|
784
702
|
smallBtn : true,
|
785
703
|
iframe : {
|
@@ -787,419 +705,531 @@ parent.jQuery.fancybox.getInstance().close();</code></pre>
|
|
787
705
|
}
|
788
706
|
})
|
789
707
|
</code></pre>
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
</section>
|
795
|
-
|
796
|
-
<section id="options">
|
797
|
-
<h2>Options</h2>
|
798
|
-
|
799
|
-
<p>
|
800
|
-
Quick reference for all default options as defined in the source:
|
801
|
-
</p>
|
802
|
-
|
803
|
-
<pre>var defaults = {
|
804
|
-
// Enable infinite gallery navigation
|
805
|
-
loop: false,
|
806
|
-
|
807
|
-
// Horizontal space between slides
|
808
|
-
gutter: 50,
|
809
|
-
|
810
|
-
// Enable keyboard navigation
|
811
|
-
keyboard: true,
|
812
|
-
|
813
|
-
// Should display navigation arrows at the screen edges
|
814
|
-
arrows: true,
|
815
|
-
|
816
|
-
// Should display counter at the top left corner
|
817
|
-
infobar: true,
|
818
|
-
|
819
|
-
// Should display close button (using `btnTpl.smallBtn` template) over the content
|
820
|
-
// Can be true, false, "auto"
|
821
|
-
// If "auto" - will be automatically enabled for "html", "inline" or "ajax" items
|
822
|
-
smallBtn: "auto",
|
823
|
-
|
824
|
-
// Should display toolbar (buttons at the top)
|
825
|
-
// Can be true, false, "auto"
|
826
|
-
// If "auto" - will be automatically hidden if "smallBtn" is enabled
|
827
|
-
toolbar: "auto",
|
828
|
-
|
829
|
-
// What buttons should appear in the top right corner.
|
830
|
-
// Buttons will be created using templates from `btnTpl` option
|
831
|
-
// and they will be placed into toolbar (class="fancybox-toolbar"` element)
|
832
|
-
buttons: [
|
833
|
-
"zoom",
|
834
|
-
//"share",
|
835
|
-
//"slideShow",
|
836
|
-
//"fullScreen",
|
837
|
-
//"download",
|
838
|
-
"thumbs",
|
839
|
-
"close"
|
840
|
-
],
|
841
|
-
|
842
|
-
// Detect "idle" time in seconds
|
843
|
-
idleTime: 3,
|
844
|
-
|
845
|
-
// Disable right-click and use simple image protection for images
|
846
|
-
protect: false,
|
847
|
-
|
848
|
-
// Shortcut to make content "modal" - disable keyboard navigtion, hide buttons, etc
|
849
|
-
modal: false,
|
850
|
-
|
851
|
-
image: {
|
852
|
-
// Wait for images to load before displaying
|
853
|
-
// true - wait for image to load and then display;
|
854
|
-
// false - display thumbnail and load the full-sized image over top,
|
855
|
-
// requires predefined image dimensions (`data-width` and `data-height` attributes)
|
856
|
-
preload: false
|
857
|
-
},
|
708
|
+
<p class="demo">
|
709
|
+
<a href="https://codepen.io/fancyapps/pen/pOMBQx" target="_blank">View demo on CodePen</a>
|
710
|
+
</p>
|
858
711
|
|
859
|
-
ajax: {
|
860
|
-
// Object containing settings for ajax request
|
861
|
-
settings: {
|
862
|
-
// This helps to indicate that request comes from the modal
|
863
|
-
// Feel free to change naming
|
864
|
-
data: {
|
865
|
-
fancybox: true
|
866
|
-
}
|
867
|
-
}
|
868
|
-
},
|
869
712
|
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',
|
713
|
+
<p>
|
714
|
+
Iframe dimensions can be controlled by CSS:
|
715
|
+
</p>
|
874
716
|
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
717
|
+
<pre><code>.fancybox-slide--iframe .fancybox-content {
|
718
|
+
width : 800px;
|
719
|
+
height : 600px;
|
720
|
+
max-width : 80%;
|
721
|
+
max-height : 80%;
|
722
|
+
margin: 0;
|
723
|
+
}</code></pre>
|
879
724
|
|
880
|
-
|
881
|
-
|
882
|
-
|
725
|
+
<p>
|
726
|
+
These CSS rules can be overridden by JS, if needed:
|
727
|
+
</p>
|
883
728
|
|
884
|
-
|
885
|
-
|
886
|
-
|
729
|
+
<pre><code>$("[data-fancybox]").fancybox({
|
730
|
+
iframe : {
|
731
|
+
css : {
|
732
|
+
width : '600px'
|
887
733
|
}
|
888
|
-
}
|
734
|
+
}
|
735
|
+
});</code></pre>
|
889
736
|
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
// Open/close animation type
|
894
|
-
// Possible values:
|
895
|
-
// false - disable
|
896
|
-
// "zoom" - zoom images from/to thumbnail
|
897
|
-
// "fade"
|
898
|
-
// "zoom-in-out"
|
899
|
-
//
|
900
|
-
animationEffect: "zoom",
|
901
|
-
|
902
|
-
// Duration in ms for open/close animation
|
903
|
-
animationDuration: 366,
|
904
|
-
|
905
|
-
// Should image change opacity while zooming
|
906
|
-
// If opacity is "auto", then opacity will be changed if image and thumbnail have different aspect ratios
|
907
|
-
zoomOpacity: "auto",
|
908
|
-
|
909
|
-
// Transition effect between slides
|
910
|
-
//
|
911
|
-
// Possible values:
|
912
|
-
// false - disable
|
913
|
-
// "fade'
|
914
|
-
// "slide'
|
915
|
-
// "circular'
|
916
|
-
// "tube'
|
917
|
-
// "zoom-in-out'
|
918
|
-
// "rotate'
|
919
|
-
//
|
920
|
-
transitionEffect: "fade",
|
921
|
-
|
922
|
-
// Duration in ms for transition animation
|
923
|
-
transitionDuration: 366,
|
924
|
-
|
925
|
-
// Custom CSS class for slide element
|
926
|
-
slideClass: "",
|
927
|
-
|
928
|
-
// Custom CSS class for layout
|
929
|
-
baseClass: "",
|
930
|
-
|
931
|
-
// Base template for layout
|
932
|
-
baseTpl:
|
933
|
-
'<div class="fancybox-container" role="dialog" tabindex="-1">' +
|
934
|
-
'<div class="fancybox-bg"></div>' +
|
935
|
-
'<div class="fancybox-inner">' +
|
936
|
-
'<div class="fancybox-infobar">' +
|
937
|
-
"<span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span>" +
|
938
|
-
"</div>" +
|
939
|
-
'<div class="fancybox-toolbar">{{buttons}}</div>' +
|
940
|
-
'<div class="fancybox-navigation">{{arrows}}</div>' +
|
941
|
-
'<div class="fancybox-stage"></div>' +
|
942
|
-
'<div class="fancybox-caption"></div>' +
|
943
|
-
"</div>" +
|
944
|
-
"</div>",
|
945
|
-
|
946
|
-
// Loading indicator template
|
947
|
-
spinnerTpl: '<div class="fancybox-loading"></div>',
|
948
|
-
|
949
|
-
// Error message template
|
950
|
-
errorTpl: '<div class="fancybox-error"><p>{{ERROR}}</p></div>',
|
951
|
-
|
952
|
-
btnTpl: {
|
953
|
-
download:
|
954
|
-
'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;">' +
|
955
|
-
'<svg viewBox="0 0 40 40">' +
|
956
|
-
'<path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" />' +
|
957
|
-
"</svg>" +
|
958
|
-
"</a>",
|
959
|
-
|
960
|
-
zoom:
|
961
|
-
'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}">' +
|
962
|
-
'<svg viewBox="0 0 40 40">' +
|
963
|
-
'<path d="M18,17 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0 M24,22 L31,29" />' +
|
964
|
-
"</svg>" +
|
965
|
-
"</button>",
|
966
|
-
|
967
|
-
close:
|
968
|
-
'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">' +
|
969
|
-
'<svg viewBox="0 0 40 40">' +
|
970
|
-
'<path d="M10,10 L30,30 M30,10 L10,30" />' +
|
971
|
-
"</svg>" +
|
972
|
-
"</button>",
|
973
|
-
|
974
|
-
// This small close button will be appended to your html/inline/ajax content by default,
|
975
|
-
// if "smallBtn" option is not set to false
|
976
|
-
smallBtn:
|
977
|
-
'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><svg viewBox="0 0 32 32"><path d="M10,10 L22,22 M22,10 L10,22"></path></svg></button>',
|
978
|
-
|
979
|
-
// Arrows
|
980
|
-
arrowLeft:
|
981
|
-
'<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:;">' +
|
982
|
-
'<svg viewBox="0 0 40 40">' +
|
983
|
-
'<path d="M18,12 L10,20 L18,28 M10,20 L30,20"></path>' +
|
984
|
-
"</svg>" +
|
985
|
-
"</a>",
|
986
|
-
|
987
|
-
arrowRight:
|
988
|
-
'<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:;">' +
|
989
|
-
'<svg viewBox="0 0 40 40">' +
|
990
|
-
'<path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path>' +
|
991
|
-
"</svg>" +
|
992
|
-
"</a>"
|
993
|
-
},
|
737
|
+
<p>
|
738
|
+
How to access and control fancybox in parent window from inside an iframe:
|
739
|
+
</p>
|
994
740
|
|
995
|
-
|
996
|
-
|
741
|
+
<pre><code>// Close current fancybox instance
|
742
|
+
parent.jQuery.fancybox.getInstance().close();
|
997
743
|
|
998
|
-
|
999
|
-
|
744
|
+
// Adjust iframe height according to the contents
|
745
|
+
parent.jQuery.fancybox.getInstance().update();
|
746
|
+
</code></pre>
|
1000
747
|
|
1001
|
-
|
1002
|
-
// ==============
|
748
|
+
<h3 id="inline">Inline</h3>
|
1003
749
|
|
1004
|
-
|
1005
|
-
|
750
|
+
<p>
|
751
|
+
fancybox can be used to display any HTML element on the page.
|
752
|
+
First, create a hidden element with unique ID:
|
753
|
+
</p>
|
1006
754
|
|
1007
|
-
|
1008
|
-
|
755
|
+
<pre><code><div style="display: none;" id="hidden-content">
|
756
|
+
<h2>Hello</h2>
|
757
|
+
<p>You are awesome.</p>
|
758
|
+
</div></code></pre>
|
1009
759
|
|
1010
|
-
|
1011
|
-
|
760
|
+
<p>
|
761
|
+
Then simply create a link having
|
762
|
+
<code>data-src</code> attribute that matches ID of the element you want to open (preceded by a hash mark
|
763
|
+
(#); in this example - <code>#hidden-content</code>):
|
764
|
+
</p>
|
1012
765
|
|
1013
|
-
|
1014
|
-
|
766
|
+
<pre><code><a data-fancybox data-src="#hidden-content" href="javascript:;">
|
767
|
+
Trigger the fancybox
|
768
|
+
</a></code></pre>
|
769
|
+
<p class="demo">
|
770
|
+
<a href="https://codepen.io/fancyapps/pen/zJgXyg?editors=1100" target="_blank">View demo on CodePen</a>
|
771
|
+
</p>
|
1015
772
|
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
773
|
+
<p>
|
774
|
+
The script will append small close button (if you have not disabled by
|
775
|
+
<code>smallBtn:false</code>) and will not apply any styles except for centering. Therefore you can easily
|
776
|
+
set custom dimensions using CSS.
|
777
|
+
</p>
|
1019
778
|
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
momentum: true // Continue movement after releasing mouse/touch when panning
|
1024
|
-
},
|
779
|
+
<p>
|
780
|
+
<span class="badge badge-info">Info</span> If necessary, you can make your element (and similarly any other
|
781
|
+
html content) scrollable by adding additional wrapping element and some CSS -
|
1025
782
|
|
1026
|
-
|
1027
|
-
|
1028
|
-
hash: null,
|
1029
|
-
|
1030
|
-
// Customize or add new media types
|
1031
|
-
// Example:
|
1032
|
-
/*
|
1033
|
-
media : {
|
1034
|
-
youtube : {
|
1035
|
-
params : {
|
1036
|
-
autoplay : 0
|
1037
|
-
}
|
1038
|
-
}
|
1039
|
-
}
|
1040
|
-
*/
|
1041
|
-
media: {},
|
783
|
+
<a href="https://codepen.io/fancyapps/pen/yxmrwG?editors=1100" target="_blank">view demo on CodePen</a>.
|
784
|
+
</p>
|
1042
785
|
|
1043
|
-
slideShow: {
|
1044
|
-
autoStart: false,
|
1045
|
-
speed: 4000
|
1046
|
-
},
|
1047
786
|
|
1048
|
-
|
1049
|
-
autoStart: false, // Display thumbnails on opening
|
1050
|
-
hideOnClose: true, // Hide thumbnail grid when closing animation starts
|
1051
|
-
parentEl: ".fancybox-container", // Container is injected into this element
|
1052
|
-
axis: "y" // Vertical (y) or horizontal (x) scrolling
|
1053
|
-
},
|
787
|
+
<h3 id="ajax">Ajax</h3>
|
1054
788
|
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
789
|
+
<p>
|
790
|
+
To load your content via AJAX, you need to add a
|
791
|
+
<code>data-type="ajax"</code> attribute to your link:
|
792
|
+
</p>
|
1058
793
|
|
1059
|
-
|
1060
|
-
|
794
|
+
<pre><code><a data-fancybox data-type="ajax" data-src="my_page.com/path/to/ajax/" href="javascript:;">
|
795
|
+
AJAX content
|
796
|
+
</a></code></pre>
|
797
|
+
<p class="demo">
|
798
|
+
<a href="https://codepen.io/fancyapps/pen/yxmrWZ?editors=1100" target="_blank">View demo on CodePen</a>
|
799
|
+
</p>
|
800
|
+
|
801
|
+
<p>
|
802
|
+
Additionally it is possible to define a selector with the
|
803
|
+
<code>data-filter</code> attribute to show only a part of the response. The selector can be any string,
|
804
|
+
that is a valid jQuery selector:
|
805
|
+
</p>
|
806
|
+
|
807
|
+
<pre><code><a data-fancybox data-type="ajax" data-src="my_page.com/path/to/ajax/" data-filter="#two" href="javascript:;">
|
808
|
+
AJAX content
|
809
|
+
</a>
|
810
|
+
</code></pre>
|
811
|
+
<p class="demo">
|
812
|
+
<a href="https://codepen.io/fancyapps/pen/jvgRRe?editors=1100" target="_blank">View demo on CodePen</a>
|
813
|
+
</p>
|
814
|
+
|
815
|
+
</section>
|
816
|
+
|
817
|
+
|
818
|
+
<section id="options">
|
819
|
+
<h2>Options</h2>
|
820
|
+
|
821
|
+
<p>
|
822
|
+
Quick reference for all default options as defined in the source:
|
823
|
+
</p>
|
824
|
+
|
825
|
+
<pre>var defaults = {
|
826
|
+
// Close existing modals
|
827
|
+
// Set this to false if you do not need to stack multiple instances
|
828
|
+
closeExisting: false,
|
829
|
+
|
830
|
+
// Enable infinite gallery navigation
|
831
|
+
loop: false,
|
832
|
+
|
833
|
+
// Horizontal space between slides
|
834
|
+
gutter: 50,
|
835
|
+
|
836
|
+
// Enable keyboard navigation
|
837
|
+
keyboard: true,
|
838
|
+
|
839
|
+
// Should allow caption to overlap the content
|
840
|
+
preventCaptionOverlap: true,
|
841
|
+
|
842
|
+
// Should display navigation arrows at the screen edges
|
843
|
+
arrows: true,
|
844
|
+
|
845
|
+
// Should display counter at the top left corner
|
846
|
+
infobar: true,
|
847
|
+
|
848
|
+
// Should display close button (using `btnTpl.smallBtn` template) over the content
|
849
|
+
// Can be true, false, "auto"
|
850
|
+
// If "auto" - will be automatically enabled for "html", "inline" or "ajax" items
|
851
|
+
smallBtn: "auto",
|
852
|
+
|
853
|
+
// Should display toolbar (buttons at the top)
|
854
|
+
// Can be true, false, "auto"
|
855
|
+
// If "auto" - will be automatically hidden if "smallBtn" is enabled
|
856
|
+
toolbar: "auto",
|
857
|
+
|
858
|
+
// What buttons should appear in the top right corner.
|
859
|
+
// Buttons will be created using templates from `btnTpl` option
|
860
|
+
// and they will be placed into toolbar (class="fancybox-toolbar"` element)
|
861
|
+
buttons: [
|
862
|
+
"zoom",
|
863
|
+
//"share",
|
864
|
+
"slideShow",
|
865
|
+
//"fullScreen",
|
866
|
+
//"download",
|
867
|
+
"thumbs",
|
868
|
+
"close"
|
869
|
+
],
|
870
|
+
|
871
|
+
// Detect "idle" time in seconds
|
872
|
+
idleTime: 3,
|
873
|
+
|
874
|
+
// Disable right-click and use simple image protection for images
|
875
|
+
protect: false,
|
876
|
+
|
877
|
+
// Shortcut to make content "modal" - disable keyboard navigtion, hide buttons, etc
|
878
|
+
modal: false,
|
879
|
+
|
880
|
+
image: {
|
881
|
+
// Wait for images to load before displaying
|
882
|
+
// true - wait for image to load and then display;
|
883
|
+
// false - display thumbnail and load the full-sized image over top,
|
884
|
+
// requires predefined image dimensions (`data-width` and `data-height` attributes)
|
885
|
+
preload: false
|
886
|
+
},
|
887
|
+
|
888
|
+
ajax: {
|
889
|
+
// Object containing settings for ajax request
|
890
|
+
settings: {
|
891
|
+
// This helps to indicate that request comes from the modal
|
892
|
+
// Feel free to change naming
|
893
|
+
data: {
|
894
|
+
fancybox: true
|
895
|
+
}
|
896
|
+
}
|
897
|
+
},
|
898
|
+
|
899
|
+
iframe: {
|
900
|
+
// Iframe template
|
901
|
+
tpl:
|
902
|
+
'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen allow="autoplay; fullscreen" src=""></iframe>',
|
1061
903
|
|
1062
|
-
//
|
1063
|
-
//
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
904
|
+
// Preload iframe before displaying it
|
905
|
+
// This allows to calculate iframe content width and height
|
906
|
+
// (note: Due to "Same Origin Policy", you can't get cross domain data).
|
907
|
+
preload: true,
|
908
|
+
|
909
|
+
// Custom CSS styling for iframe wrapping element
|
910
|
+
// You can use this to set custom iframe dimensions
|
911
|
+
css: {},
|
912
|
+
|
913
|
+
// Iframe tag attributes
|
914
|
+
attr: {
|
915
|
+
scrolling: "auto"
|
916
|
+
}
|
917
|
+
},
|
918
|
+
|
919
|
+
// For HTML5 video only
|
920
|
+
video: {
|
921
|
+
tpl:
|
922
|
+
'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}">' +
|
923
|
+
'<source src="{{src}}" type="{{format}}" />' +
|
924
|
+
'Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!' +
|
925
|
+
"</video>",
|
926
|
+
format: "", // custom video format
|
927
|
+
autoStart: true
|
928
|
+
},
|
929
|
+
|
930
|
+
// Default content type if cannot be detected automatically
|
931
|
+
defaultType: "image",
|
932
|
+
|
933
|
+
// Open/close animation type
|
934
|
+
// Possible values:
|
935
|
+
// false - disable
|
936
|
+
// "zoom" - zoom images from/to thumbnail
|
937
|
+
// "fade"
|
938
|
+
// "zoom-in-out"
|
939
|
+
//
|
940
|
+
animationEffect: "zoom",
|
941
|
+
|
942
|
+
// Duration in ms for open/close animation
|
943
|
+
animationDuration: 366,
|
944
|
+
|
945
|
+
// Should image change opacity while zooming
|
946
|
+
// If opacity is "auto", then opacity will be changed if image and thumbnail have different aspect ratios
|
947
|
+
zoomOpacity: "auto",
|
948
|
+
|
949
|
+
// Transition effect between slides
|
950
|
+
//
|
951
|
+
// Possible values:
|
952
|
+
// false - disable
|
953
|
+
// "fade'
|
954
|
+
// "slide'
|
955
|
+
// "circular'
|
956
|
+
// "tube'
|
957
|
+
// "zoom-in-out'
|
958
|
+
// "rotate'
|
959
|
+
//
|
960
|
+
transitionEffect: "fade",
|
961
|
+
|
962
|
+
// Duration in ms for transition animation
|
963
|
+
transitionDuration: 366,
|
964
|
+
|
965
|
+
// Custom CSS class for slide element
|
966
|
+
slideClass: "",
|
967
|
+
|
968
|
+
// Custom CSS class for layout
|
969
|
+
baseClass: "",
|
970
|
+
|
971
|
+
// Base template for layout
|
972
|
+
baseTpl:
|
973
|
+
'<div class="fancybox-container" role="dialog" tabindex="-1">' +
|
974
|
+
'<div class="fancybox-bg"></div>' +
|
975
|
+
'<div class="fancybox-inner">' +
|
976
|
+
'<div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div>' +
|
977
|
+
'<div class="fancybox-toolbar">{{buttons}}</div>' +
|
978
|
+
'<div class="fancybox-navigation">{{arrows}}</div>' +
|
979
|
+
'<div class="fancybox-stage"></div>' +
|
980
|
+
'<div class="fancybox-caption"></div>' +
|
981
|
+
"</div>" +
|
982
|
+
"</div>",
|
983
|
+
|
984
|
+
// Loading indicator template
|
985
|
+
spinnerTpl: '<div class="fancybox-loading"></div>',
|
986
|
+
|
987
|
+
// Error message template
|
988
|
+
errorTpl: '<div class="fancybox-error"><p>{{ERROR}}</p></div>',
|
989
|
+
|
990
|
+
btnTpl: {
|
991
|
+
download:
|
992
|
+
'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;">' +
|
993
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg>' +
|
994
|
+
"</a>",
|
995
|
+
|
996
|
+
zoom:
|
997
|
+
'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}">' +
|
998
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg>' +
|
999
|
+
"</button>",
|
1000
|
+
|
1001
|
+
close:
|
1002
|
+
'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">' +
|
1003
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg>' +
|
1004
|
+
"</button>",
|
1005
|
+
|
1006
|
+
// Arrows
|
1007
|
+
arrowLeft:
|
1008
|
+
'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">' +
|
1009
|
+
'<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div>' +
|
1010
|
+
"</button>",
|
1011
|
+
|
1012
|
+
arrowRight:
|
1013
|
+
'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">' +
|
1014
|
+
'<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div>' +
|
1015
|
+
"</button>",
|
1016
|
+
|
1017
|
+
// This small close button will be appended to your html/inline/ajax content by default,
|
1018
|
+
// if "smallBtn" option is not set to false
|
1019
|
+
smallBtn:
|
1020
|
+
'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}">' +
|
1021
|
+
'<svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg>' +
|
1022
|
+
"</button>"
|
1023
|
+
},
|
1024
|
+
|
1025
|
+
// Container is injected into this element
|
1026
|
+
parentEl: "body",
|
1027
|
+
|
1028
|
+
// Hide browser vertical scrollbars; use at your own risk
|
1029
|
+
hideScrollbar: true,
|
1030
|
+
|
1031
|
+
// Focus handling
|
1032
|
+
// ==============
|
1033
|
+
|
1034
|
+
// Try to focus on the first focusable element after opening
|
1035
|
+
autoFocus: true,
|
1036
|
+
|
1037
|
+
// Put focus back to active element after closing
|
1038
|
+
backFocus: true,
|
1039
|
+
|
1040
|
+
// Do not let user to focus on element outside modal content
|
1041
|
+
trapFocus: true,
|
1042
|
+
|
1043
|
+
// Module specific options
|
1044
|
+
// =======================
|
1045
|
+
|
1046
|
+
fullScreen: {
|
1047
|
+
autoStart: false
|
1048
|
+
},
|
1049
|
+
|
1050
|
+
// Set `touch: false` to disable panning/swiping
|
1051
|
+
touch: {
|
1052
|
+
vertical: true, // Allow to drag content vertically
|
1053
|
+
momentum: true // Continue movement after releasing mouse/touch when panning
|
1054
|
+
},
|
1055
|
+
|
1056
|
+
// Hash value when initializing manually,
|
1057
|
+
// set `false` to disable hash change
|
1058
|
+
hash: null,
|
1059
|
+
|
1060
|
+
// Customize or add new media types
|
1061
|
+
// Example:
|
1062
|
+
/*
|
1063
|
+
media : {
|
1064
|
+
youtube : {
|
1065
|
+
params : {
|
1066
|
+
autoplay : 0
|
1068
1067
|
}
|
1069
|
-
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
*/
|
1071
|
+
media: {},
|
1072
|
+
|
1073
|
+
slideShow: {
|
1074
|
+
autoStart: false,
|
1075
|
+
speed: 3000
|
1076
|
+
},
|
1077
|
+
|
1078
|
+
thumbs: {
|
1079
|
+
autoStart: false, // Display thumbnails on opening
|
1080
|
+
hideOnClose: true, // Hide thumbnail grid when closing animation starts
|
1081
|
+
parentEl: ".fancybox-container", // Container is injected into this element
|
1082
|
+
axis: "y" // Vertical (y) or horizontal (x) scrolling
|
1083
|
+
},
|
1084
|
+
|
1085
|
+
// Use mousewheel to navigate gallery
|
1086
|
+
// If 'auto' - enabled for images only
|
1087
|
+
wheel: "auto",
|
1088
|
+
|
1089
|
+
// Callbacks
|
1090
|
+
//==========
|
1091
|
+
|
1092
|
+
// See Documentation/API/Events for more information
|
1093
|
+
// Example:
|
1094
|
+
/*
|
1095
|
+
afterShow: function( instance, current ) {
|
1096
|
+
console.info( 'Clicked element:' );
|
1097
|
+
console.info( current.opts.$orig );
|
1098
|
+
}
|
1099
|
+
*/
|
1070
1100
|
|
1071
|
-
|
1101
|
+
onInit: $.noop, // When instance has been initialized
|
1072
1102
|
|
1073
|
-
|
1074
|
-
|
1103
|
+
beforeLoad: $.noop, // Before the content of a slide is being loaded
|
1104
|
+
afterLoad: $.noop, // When the content of a slide is done loading
|
1075
1105
|
|
1076
|
-
|
1077
|
-
|
1106
|
+
beforeShow: $.noop, // Before open animation starts
|
1107
|
+
afterShow: $.noop, // When content is done loading and animating
|
1078
1108
|
|
1079
|
-
|
1080
|
-
|
1109
|
+
beforeClose: $.noop, // Before the instance attempts to close. Return false to cancel the close.
|
1110
|
+
afterClose: $.noop, // After instance has been closed
|
1081
1111
|
|
1082
|
-
|
1083
|
-
|
1112
|
+
onActivate: $.noop, // When instance is brought to front
|
1113
|
+
onDeactivate: $.noop, // When other instance has been activated
|
1084
1114
|
|
1085
|
-
|
1086
|
-
|
1115
|
+
// Interaction
|
1116
|
+
// ===========
|
1087
1117
|
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1118
|
+
// Use options below to customize taken action when user clicks or double clicks on the fancyBox area,
|
1119
|
+
// each option can be string or method that returns value.
|
1120
|
+
//
|
1121
|
+
// Possible values:
|
1122
|
+
// "close" - close instance
|
1123
|
+
// "next" - move to next gallery item
|
1124
|
+
// "nextOrClose" - move to next gallery item or close if gallery has only one item
|
1125
|
+
// "toggleControls" - show/hide controls
|
1126
|
+
// "zoom" - zoom image (if loaded)
|
1127
|
+
// false - do nothing
|
1098
1128
|
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1129
|
+
// Clicked on the content
|
1130
|
+
clickContent: function(current, event) {
|
1131
|
+
return current.type === "image" ? "zoom" : false;
|
1132
|
+
},
|
1103
1133
|
|
1104
|
-
|
1105
|
-
|
1134
|
+
// Clicked on the slide
|
1135
|
+
clickSlide: "close",
|
1106
1136
|
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1137
|
+
// Clicked on the background (backdrop) element;
|
1138
|
+
// if you have not changed the layout, then most likely you need to use `clickSlide` option
|
1139
|
+
clickOutside: "close",
|
1110
1140
|
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1141
|
+
// Same as previous two, but for double click
|
1142
|
+
dblclickContent: false,
|
1143
|
+
dblclickSlide: false,
|
1144
|
+
dblclickOutside: false,
|
1115
1145
|
|
1116
|
-
|
1117
|
-
|
1146
|
+
// Custom options when mobile device is detected
|
1147
|
+
// =============================================
|
1118
1148
|
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
clickSlide: function(current, event) {
|
1125
|
-
return current.type === "image" ? "toggleControls" : "close";
|
1126
|
-
},
|
1127
|
-
dblclickContent: function(current, event) {
|
1128
|
-
return current.type === "image" ? "zoom" : false;
|
1129
|
-
},
|
1130
|
-
dblclickSlide: function(current, event) {
|
1131
|
-
return current.type === "image" ? "zoom" : false;
|
1132
|
-
}
|
1149
|
+
mobile: {
|
1150
|
+
preventCaptionOverlap: false,
|
1151
|
+
idleTime: false,
|
1152
|
+
clickContent: function(current, event) {
|
1153
|
+
return current.type === "image" ? "toggleControls" : false;
|
1133
1154
|
},
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1155
|
+
clickSlide: function(current, event) {
|
1156
|
+
return current.type === "image" ? "toggleControls" : "close";
|
1157
|
+
},
|
1158
|
+
dblclickContent: function(current, event) {
|
1159
|
+
return current.type === "image" ? "zoom" : false;
|
1160
|
+
},
|
1161
|
+
dblclickSlide: function(current, event) {
|
1162
|
+
return current.type === "image" ? "zoom" : false;
|
1163
|
+
}
|
1164
|
+
},
|
1165
|
+
|
1166
|
+
// Internationalization
|
1167
|
+
// ====================
|
1168
|
+
|
1169
|
+
lang: "en",
|
1170
|
+
i18n: {
|
1171
|
+
en: {
|
1172
|
+
CLOSE: "Close",
|
1173
|
+
NEXT: "Next",
|
1174
|
+
PREV: "Previous",
|
1175
|
+
ERROR: "The requested content cannot be loaded. <br/> Please try again later.",
|
1176
|
+
PLAY_START: "Start slideshow",
|
1177
|
+
PLAY_STOP: "Pause slideshow",
|
1178
|
+
FULL_SCREEN: "Full screen",
|
1179
|
+
THUMBS: "Thumbnails",
|
1180
|
+
DOWNLOAD: "Download",
|
1181
|
+
SHARE: "Share",
|
1182
|
+
ZOOM: "Zoom"
|
1183
|
+
},
|
1184
|
+
de: {
|
1185
|
+
CLOSE: "Schliessen",
|
1186
|
+
NEXT: "Weiter",
|
1187
|
+
PREV: "Zurück",
|
1188
|
+
ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",
|
1189
|
+
PLAY_START: "Diaschau starten",
|
1190
|
+
PLAY_STOP: "Diaschau beenden",
|
1191
|
+
FULL_SCREEN: "Vollbild",
|
1192
|
+
THUMBS: "Vorschaubilder",
|
1193
|
+
DOWNLOAD: "Herunterladen",
|
1194
|
+
SHARE: "Teilen",
|
1195
|
+
ZOOM: "Maßstab"
|
1166
1196
|
}
|
1197
|
+
}
|
1167
1198
|
};
|
1168
|
-
|
1199
|
+
</pre>
|
1169
1200
|
|
1170
1201
|
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
</p>
|
1202
|
+
<p>
|
1203
|
+
Set instance options by passing a valid object to <code>fancybox()</code> method:
|
1204
|
+
</p>
|
1175
1205
|
|
1176
|
-
|
1206
|
+
<pre><code>$('[data-fancybox="gallery"]').fancybox({
|
1177
1207
|
thumbs : {
|
1178
1208
|
autoStart : true
|
1179
1209
|
}
|
1180
1210
|
});</code></pre>
|
1181
1211
|
|
1182
1212
|
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
</p>
|
1213
|
+
<p>
|
1214
|
+
Plugin options / defaults are exposed in
|
1215
|
+
<code>$.fancybox.defaults</code> namespace so you can easily adjust them globally:
|
1216
|
+
</p>
|
1188
1217
|
|
1189
|
-
|
1218
|
+
<pre><code>$.fancybox.defaults.animationEffect = "fade";</code></pre>
|
1190
1219
|
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1220
|
+
<p>
|
1221
|
+
Custom options for each element individually can be set by adding a
|
1222
|
+
<code>data-options</code> attribute to the element.
|
1223
|
+
This attribute should contain the properly formatted JSON object
|
1224
|
+
(remember, strings should be wrapped in double quotes).
|
1225
|
+
</p>
|
1226
|
+
<p>
|
1227
|
+
It is also possible to quickly set any option using
|
1228
|
+
<em>parameterized</em> name of the selected option, for example,
|
1229
|
+
<code>animationEffect</code> would be <code>data-animation-effect</code>:
|
1230
|
+
</p>
|
1201
1231
|
|
1202
|
-
|
1232
|
+
<pre><code><a data-fancybox data-options='{"caption" : "My caption", "src" : "https://codepen.io/about/", "type" : "iframe"}' href="javascript:;" class="btn btn-primary">
|
1203
1233
|
Example #1
|
1204
1234
|
</a>
|
1205
1235
|
|
@@ -1207,28 +1237,28 @@ parent.jQuery.fancybox.getInstance().close();</code></pre>
|
|
1207
1237
|
Example #2
|
1208
1238
|
</a>
|
1209
1239
|
</code></pre>
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1240
|
+
<p class="demo">
|
1241
|
+
<a href="https://codepen.io/fancyapps/pen/PdMgrO?editors=1000" target="_blank">View demo on CodePen</a>
|
1242
|
+
</p>
|
1213
1243
|
|
1214
|
-
|
1215
|
-
|
1244
|
+
</section>
|
1245
|
+
<section id="api">
|
1216
1246
|
|
1217
|
-
|
1247
|
+
<h2>API</h2>
|
1218
1248
|
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1249
|
+
<p>
|
1250
|
+
The fancybox API offers a couple of methods to control fancybox. This gives you the ability to extend the
|
1251
|
+
plugin and to integrate it with other web application components.
|
1252
|
+
</p>
|
1223
1253
|
|
1224
|
-
|
1254
|
+
<h3 id="core_methods">Core methods</h3>
|
1225
1255
|
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1256
|
+
<p>
|
1257
|
+
Core methods are methods which affect/handle instances:
|
1258
|
+
</p>
|
1229
1259
|
|
1230
1260
|
|
1231
|
-
|
1261
|
+
<pre><code>// Start new fancybox instance
|
1232
1262
|
$.fancybox.open( items, opts, index );
|
1233
1263
|
|
1234
1264
|
// Get refrence to currently active fancybox instance
|
@@ -1242,26 +1272,24 @@ $.fancybox.destroy();
|
|
1242
1272
|
</code></pre>
|
1243
1273
|
|
1244
1274
|
|
1245
|
-
|
1246
|
-
|
1275
|
+
<h3 id="api_usage">Starting fancybox</h3>
|
1247
1276
|
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1277
|
+
<p>
|
1278
|
+
When creating group objects manually, each item should follow this pattern:
|
1279
|
+
</p>
|
1251
1280
|
|
1252
|
-
|
1281
|
+
<pre><code>{
|
1253
1282
|
src : '' // Source of the content
|
1254
1283
|
type : '' // Content type: image|inline|ajax|iframe|html (optional)
|
1255
1284
|
opts : {} // Object containing item options (optional)
|
1256
1285
|
}
|
1257
1286
|
</code></pre>
|
1258
1287
|
|
1288
|
+
<p>
|
1289
|
+
Example of opening image gallery programmatically:
|
1290
|
+
</p>
|
1259
1291
|
|
1260
|
-
|
1261
|
-
Example of opening image gallery programmatically:
|
1262
|
-
</p>
|
1263
|
-
|
1264
|
-
<pre><code>$.fancybox.open([
|
1292
|
+
<pre><code>$.fancybox.open([
|
1265
1293
|
{
|
1266
1294
|
src : '1_b.jpg',
|
1267
1295
|
opts : {
|
@@ -1279,15 +1307,15 @@ $.fancybox.destroy();
|
|
1279
1307
|
], {
|
1280
1308
|
loop : false
|
1281
1309
|
});</code></pre>
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1310
|
+
<p class="demo">
|
1311
|
+
<a href="https://codepen.io/fancyapps/pen/wEVbdY?editors=1010" target="_blank">View demo on CodePen</a>
|
1312
|
+
</p>
|
1285
1313
|
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1314
|
+
<p>
|
1315
|
+
It is also possible to pass only one object. Example of opening inline content:
|
1316
|
+
</p>
|
1289
1317
|
|
1290
|
-
|
1318
|
+
<pre><code>$.fancybox.open({
|
1291
1319
|
src : '#hidden-content',
|
1292
1320
|
type : 'inline',
|
1293
1321
|
opts : {
|
@@ -1297,70 +1325,69 @@ $.fancybox.destroy();
|
|
1297
1325
|
}
|
1298
1326
|
});
|
1299
1327
|
</code></pre>
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
// Custom options
|
1324
|
-
}, $links.index( this ) );
|
1325
|
-
|
1326
|
-
return false;
|
1328
|
+
<p class="demo">
|
1329
|
+
<a href="https://codepen.io/fancyapps/pen/mGNYwX?editors=1010" target="_blank">View demo on CodePen</a>
|
1330
|
+
</p>
|
1331
|
+
|
1332
|
+
<p>
|
1333
|
+
If you wish to quickly display some html content (for example, a message), then you can use a simpler
|
1334
|
+
syntax. Do not forget to use a wrapping element around your content.
|
1335
|
+
</p>
|
1336
|
+
|
1337
|
+
<pre><code>$.fancybox.open('<div class="message"><h2>Hello!</h2><p>You are awesome!</p></div>');</code></pre>
|
1338
|
+
<p class="demo">
|
1339
|
+
<a href="https://codepen.io/fancyapps/pen/qMeGVr" target="_blank">View demo on CodePen</a>
|
1340
|
+
</p>
|
1341
|
+
|
1342
|
+
<p>
|
1343
|
+
Group items can be collection of jQuery objects, too.
|
1344
|
+
This can be used, for example, to display group of inline elements:
|
1345
|
+
</p>
|
1346
|
+
|
1347
|
+
<pre><code>$('#test').on('click', function() {
|
1348
|
+
$.fancybox.open( $('.inline-gallery'), {
|
1349
|
+
touch: false
|
1350
|
+
});
|
1327
1351
|
});</code></pre>
|
1352
|
+
<p class="demo">
|
1353
|
+
<a href="https://codepen.io/fancyapps/pen/GXVayG?editors=1010" target="_blank">View demo on CodePen</a>
|
1354
|
+
</p>
|
1355
|
+
|
1328
1356
|
|
1329
|
-
|
1357
|
+
<h3 id="instance_methods">Instance methods</h3>
|
1330
1358
|
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1359
|
+
<p>
|
1360
|
+
In order to use these methods, you need an instance of the plugin's object.
|
1361
|
+
There are 3 common ways to get the reference.
|
1362
|
+
</p>
|
1334
1363
|
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1364
|
+
<p>
|
1365
|
+
1) Using API method to get currently active instance:
|
1366
|
+
</p>
|
1338
1367
|
|
1339
|
-
|
1368
|
+
<pre><code>var instance = $.fancybox.getInstance();</code></pre>
|
1340
1369
|
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1370
|
+
<p>
|
1371
|
+
2) While starting fancybox programmatically:
|
1372
|
+
</p>
|
1373
|
+
<pre><code>var instance = $.fancybox.open(
|
1345
1374
|
// Your content and options
|
1346
1375
|
);</code></pre>
|
1347
1376
|
|
1377
|
+
<p>
|
1378
|
+
3) From within the callback - first argument is always a reference to current instance:
|
1379
|
+
</p>
|
1348
1380
|
|
1349
|
-
|
1350
|
-
3) From within the callback - first argument is always a reference to current instance:
|
1351
|
-
</p>
|
1352
|
-
|
1353
|
-
<pre><code>$("[data-fancybox]").fancybox({
|
1381
|
+
<pre><code>$('[data-fancybox="gallery"]').fancybox({
|
1354
1382
|
afterShow : function( instance, current ) {
|
1355
1383
|
console.info( instance );
|
1356
1384
|
}
|
1357
1385
|
});</code></pre>
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1386
|
+
<p>
|
1387
|
+
Once you have a reference to fancybox instance the following methods are available:
|
1388
|
+
</p>
|
1362
1389
|
|
1363
|
-
|
1390
|
+
<pre><code>// Go to next gallery item
|
1364
1391
|
instance.next( duration );
|
1365
1392
|
|
1366
1393
|
// Go to previous gallery item
|
@@ -1409,26 +1436,25 @@ instance.activate();
|
|
1409
1436
|
instance.close();
|
1410
1437
|
</code></pre>
|
1411
1438
|
|
1439
|
+
<p>
|
1440
|
+
You can also do something like this:
|
1441
|
+
</p>
|
1412
1442
|
|
1413
|
-
|
1414
|
-
You can also do something like this:
|
1415
|
-
</p>
|
1443
|
+
<pre><code>$.fancybox.getInstance().jumpTo(1);</code></pre>
|
1416
1444
|
|
1417
|
-
|
1445
|
+
<p>
|
1446
|
+
or simply:
|
1447
|
+
</p>
|
1418
1448
|
|
1419
|
-
|
1420
|
-
or simply:
|
1421
|
-
</p>
|
1449
|
+
<pre><code>$.fancybox.getInstance('jumpTo', 1);</code></pre>
|
1422
1450
|
|
1423
|
-
|
1451
|
+
<h3 id="events">Events</h3>
|
1424
1452
|
|
1425
|
-
|
1453
|
+
<p>
|
1454
|
+
fancybox fires several events:
|
1455
|
+
</p>
|
1426
1456
|
|
1427
|
-
|
1428
|
-
fancybox fires several events:
|
1429
|
-
</p>
|
1430
|
-
|
1431
|
-
<pre><code>beforeLoad : Before the content of a slide is being loaded
|
1457
|
+
<pre><code>beforeLoad : Before the content of a slide is being loaded
|
1432
1458
|
afterLoad : When the content of a slide is done loading
|
1433
1459
|
|
1434
1460
|
beforeShow : Before open animation starts
|
@@ -1441,11 +1467,12 @@ onInit : When instance has been initialized
|
|
1441
1467
|
onActivate : When instance is brought to front
|
1442
1468
|
onDeactivate : When other instance has been activated</code></pre>
|
1443
1469
|
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1470
|
+
<p>
|
1471
|
+
Event callbacks can be set as function properties of the options object passed to fancybox initialization
|
1472
|
+
function:
|
1473
|
+
</p>
|
1447
1474
|
|
1448
|
-
|
1475
|
+
<pre><code><script type="text/javascript">
|
1449
1476
|
$("[data-fancybox]").fancybox({
|
1450
1477
|
afterShow: function( instance, slide ) {
|
1451
1478
|
|
@@ -1468,60 +1495,59 @@ onDeactivate : When other instance has been activated</code></pre>
|
|
1468
1495
|
});
|
1469
1496
|
</script></code></pre>
|
1470
1497
|
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1498
|
+
<p>
|
1499
|
+
Each callback receives two parameters - current fancybox instance and current gallery object, if exists.
|
1500
|
+
</p>
|
1501
|
+
|
1502
|
+
<p>
|
1503
|
+
It is also possible to attach event handler for all instances. To prevent interfering with other scripts,
|
1504
|
+
these events have been namespaced to <code>.fb</code>.
|
1505
|
+
These handlers receive 3 parameters - event, current fancybox instance and current gallery object.
|
1506
|
+
</p>
|
1507
|
+
<p>
|
1508
|
+
Here is an example of binding to the
|
1509
|
+
<code>afterShow</code> event:
|
1510
|
+
</p>
|
1511
|
+
|
1512
|
+
<pre><code>$(document).on('afterShow.fb', function( e, instance, slide ) {
|
1486
1513
|
// Your code goes here
|
1487
1514
|
});</code></pre>
|
1488
1515
|
|
1489
1516
|
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1517
|
+
<p>
|
1518
|
+
If you wish to prevent closing of the modal (for example, after form submit), you can use
|
1519
|
+
<code>beforeClose</code> callback. Simply return
|
1520
|
+
<code>false</code>:
|
1521
|
+
</p>
|
1495
1522
|
|
1496
|
-
|
1523
|
+
<pre><code>beforeClose : function( instance, current, e ) {
|
1497
1524
|
if ( $('#my-field').val() == '' ) {
|
1498
1525
|
return false;
|
1499
1526
|
}
|
1500
1527
|
}
|
1501
1528
|
</code></pre>
|
1502
1529
|
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1530
|
+
</section>
|
1531
|
+
<section id="modules">
|
1532
|
+
<h2>Modules</h2>
|
1506
1533
|
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
</p>
|
1534
|
+
<p>
|
1535
|
+
fancybox code is split into several files (modules) that extend core functionality. You can build your own
|
1536
|
+
fancybox version by excluding unnecessary modules, if needed.
|
1537
|
+
Each one has their own <code>js</code> and/or <code>css</code> files.
|
1538
|
+
</p>
|
1513
1539
|
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1540
|
+
<p>
|
1541
|
+
Some modules can be customized and controlled programmatically. List of all possible options:
|
1542
|
+
</p>
|
1517
1543
|
|
1518
|
-
|
1519
|
-
|
1544
|
+
<pre><code>fullScreen: {
|
1545
|
+
autoStart: false
|
1520
1546
|
},
|
1521
1547
|
|
1522
1548
|
touch : {
|
1523
|
-
|
1524
|
-
|
1549
|
+
vertical : true, // Allow to drag content vertically
|
1550
|
+
momentum : true // Continuous movement when panning
|
1525
1551
|
},
|
1526
1552
|
|
1527
1553
|
// Hash value when initializing manually,
|
@@ -1532,74 +1558,76 @@ hash : null,
|
|
1532
1558
|
// Example:
|
1533
1559
|
/*
|
1534
1560
|
media : {
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1561
|
+
youtube : {
|
1562
|
+
params : {
|
1563
|
+
autoplay : 0
|
1564
|
+
}
|
1565
|
+
}
|
1540
1566
|
}
|
1541
1567
|
*/
|
1542
1568
|
media : {},
|
1543
1569
|
|
1544
1570
|
slideShow : {
|
1545
|
-
|
1546
|
-
|
1571
|
+
autoStart : false,
|
1572
|
+
speed : 4000
|
1547
1573
|
},
|
1548
1574
|
|
1549
1575
|
thumbs : {
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1576
|
+
autoStart : false, // Display thumbnails on opening
|
1577
|
+
hideOnClose : true, // Hide thumbnail grid when closing animation starts
|
1578
|
+
parentEl : '.fancybox-container', // Container is injected into this element
|
1579
|
+
axis : 'y' // Vertical (y) or horizontal (x) scrolling
|
1554
1580
|
},
|
1555
1581
|
|
1556
1582
|
share: {
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1583
|
+
url: function(instance, item) {
|
1584
|
+
return (
|
1585
|
+
(!instance.currentHash && !(item.type === "inline" || item.type === "html") ? item.origSrc || item.src : false) || window.location
|
1586
|
+
);
|
1587
|
+
},
|
1588
|
+
tpl:
|
1589
|
+
'<div class="fancybox-share">' +
|
1590
|
+
"<h1>{{SHARE}}</h1>" +
|
1591
|
+
"<p>" +
|
1592
|
+
'<a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}">' +
|
1593
|
+
'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg>' +
|
1594
|
+
"<span>Facebook</span>" +
|
1595
|
+
"</a>" +
|
1596
|
+
'<a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}">' +
|
1597
|
+
'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg>' +
|
1598
|
+
"<span>Twitter</span>" +
|
1599
|
+
"</a>" +
|
1600
|
+
'<a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}">' +
|
1601
|
+
'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg>' +
|
1602
|
+
"<span>Pinterest</span>" +
|
1603
|
+
"</a>" +
|
1604
|
+
"</p>" +
|
1605
|
+
'<p><input class="fancybox-share__input" type="text" value="{{url_raw}}" /></p>' +
|
1606
|
+
"</div>"
|
1581
1607
|
}
|
1582
1608
|
|
1583
1609
|
</code></pre>
|
1584
1610
|
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1611
|
+
<h5 class="mt-5">Couple of examples</h5>
|
1612
|
+
|
1613
|
+
<p>
|
1614
|
+
Show thumbnails on start:
|
1615
|
+
</p>
|
1588
1616
|
|
1589
|
-
|
1617
|
+
<pre><code>$('[data-fancybox="images"]').fancybox({
|
1590
1618
|
thumbs : {
|
1591
1619
|
autoStart : true
|
1592
1620
|
}
|
1593
1621
|
});</code></pre>
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1622
|
+
<p class="demo">
|
1623
|
+
<a href="https://codepen.io/fancyapps/pen/xavNjq?editors=1010" target="_blank">View demo on CodePen</a>
|
1624
|
+
</p>
|
1597
1625
|
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1626
|
+
<p>
|
1627
|
+
Customize share url if displaying hidden video element:
|
1628
|
+
</p>
|
1601
1629
|
|
1602
|
-
|
1630
|
+
<pre><code>$('[data-fancybox="test-share-url"]').fancybox({
|
1603
1631
|
buttons : ['share', 'close'],
|
1604
1632
|
hash : false,
|
1605
1633
|
share : {
|
@@ -1612,34 +1640,33 @@ share: {
|
|
1612
1640
|
}
|
1613
1641
|
}
|
1614
1642
|
});</code></pre>
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1643
|
+
<p class="demo">
|
1644
|
+
<a href="https://codepen.io/fancyapps/pen/MqNdqw?editors=1010" target="_blank">View demo on CodePen</a>
|
1645
|
+
</p>
|
1618
1646
|
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
</p>
|
1647
|
+
<p>
|
1648
|
+
If you would inspect fancybox instance object, you would find that same keys ar captialized - these are
|
1649
|
+
references for each module object.
|
1650
|
+
Also, you would notice that fancybox uses common naming convention to prefix jQuery objects with <code>$</code>.
|
1651
|
+
</p>
|
1625
1652
|
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1653
|
+
<p>
|
1654
|
+
This is how you, for example, can access thumbnail grid element:
|
1655
|
+
</p>
|
1629
1656
|
|
1630
|
-
|
1657
|
+
<pre><code>$.fancybox.getInstance().Thumbs.$grid</code></pre>
|
1631
1658
|
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1659
|
+
<p>
|
1660
|
+
This example shows how to call method that toggles thumbnails:
|
1661
|
+
</p>
|
1635
1662
|
|
1636
|
-
|
1663
|
+
<pre><code>$.fancybox.getInstance().Thumbs.toggle();</code></pre>
|
1637
1664
|
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1665
|
+
<p>
|
1666
|
+
List of available methods:
|
1667
|
+
</p>
|
1641
1668
|
|
1642
|
-
|
1669
|
+
<pre><code>Thumbs.focus()
|
1643
1670
|
Thumbs.update();
|
1644
1671
|
Thumbs.hide();
|
1645
1672
|
Thumbs.show();
|
@@ -1656,62 +1683,62 @@ SlideShow.stop();
|
|
1656
1683
|
SlideShow.toggle();
|
1657
1684
|
</code></pre>
|
1658
1685
|
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1686
|
+
<p>
|
1687
|
+
If you wish to disable hash module, use this snippet (after including JS file):
|
1688
|
+
</p>
|
1662
1689
|
|
1663
|
-
|
1690
|
+
<pre><code>$.fancybox.defaults.hash = false;</code></pre>
|
1664
1691
|
|
1665
|
-
|
1692
|
+
</section>
|
1666
1693
|
|
1667
|
-
|
1694
|
+
<section id="faq">
|
1668
1695
|
|
1669
|
-
|
1696
|
+
<h2>FAQ</h2>
|
1670
1697
|
|
1671
|
-
|
1672
|
-
|
1698
|
+
<h3 id="faq-1">
|
1699
|
+
<a href="#faq-1">#1</a> Opening/closing causes fixed element to jump</h3>
|
1673
1700
|
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1701
|
+
<p>
|
1702
|
+
Simply add <code>compensate-for-scrollbar</code> CSS class to your fixed positioned elements.
|
1703
|
+
Example of using Bootstrap navbar component:
|
1704
|
+
</p>
|
1678
1705
|
|
1679
|
-
|
1706
|
+
<pre><code><nav class="navbar navbar-inverse navbar-fixed-top compensate-for-scrollbar">
|
1680
1707
|
<div class="container">
|
1681
1708
|
..
|
1682
1709
|
</div>
|
1683
1710
|
</nav></code></pre>
|
1684
1711
|
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1712
|
+
<p class="demo">
|
1713
|
+
<a href="https://codepen.io/fancyapps/pen/MqNdPa?editors=1000" target="_blank">View demo on CodePen</a>
|
1714
|
+
</p>
|
1688
1715
|
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1716
|
+
<p>
|
1717
|
+
The script measures width of the scrollbar and creates
|
1718
|
+
<code>compensate-for-scrollbar</code> CSS class that uses this value for
|
1719
|
+
<code>margin-right</code> property. Therefore, if your element has
|
1720
|
+
<code>width:100%</code>, you should positon it using
|
1721
|
+
<code>left</code> and
|
1722
|
+
<code>right</code> properties instead. Example:
|
1723
|
+
</p>
|
1697
1724
|
|
1698
|
-
|
1725
|
+
<pre><code>.navbar {
|
1699
1726
|
position: fixed;
|
1700
1727
|
top: 0;
|
1701
1728
|
left: 0;
|
1702
1729
|
right: 0;
|
1703
1730
|
}</code></pre>
|
1704
1731
|
|
1705
|
-
|
1706
|
-
|
1732
|
+
<h3 id="faq-2">
|
1733
|
+
<a href="#faq-2">#2</a> How to customize caption</h3>
|
1707
1734
|
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1735
|
+
<p>
|
1736
|
+
You can use
|
1737
|
+
<code>caption</code> option that accepts a function and is called for each group element.
|
1738
|
+
Example of appending image download link:
|
1739
|
+
</p>
|
1713
1740
|
|
1714
|
-
|
1741
|
+
<pre><code>$( '[data-fancybox="images"]' ).fancybox({
|
1715
1742
|
caption : function( instance, item ) {
|
1716
1743
|
var caption = $(this).data('caption') || '';
|
1717
1744
|
|
@@ -1722,16 +1749,15 @@ SlideShow.toggle();
|
|
1722
1749
|
return caption;
|
1723
1750
|
}
|
1724
1751
|
});</code></pre>
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1752
|
+
<p class="demo">
|
1753
|
+
<a href="https://codepen.io/fancyapps/pen/OoKYrd?editors=1010" target="_blank">View demo on CodePen</a>
|
1754
|
+
</p>
|
1728
1755
|
|
1756
|
+
<p>
|
1757
|
+
Add current image index and image count (the total number of images in the gallery) right in the caption:
|
1758
|
+
</p>
|
1729
1759
|
|
1730
|
-
|
1731
|
-
Add current image index and image count (the total number of images in the gallery) right in the caption:
|
1732
|
-
</p>
|
1733
|
-
|
1734
|
-
<pre><code>$( '[data-fancybox="images"]' ).fancybox({
|
1760
|
+
<pre><code>$( '[data-fancybox="images"]' ).fancybox({
|
1735
1761
|
infobar : false,
|
1736
1762
|
caption : function( instance, item ) {
|
1737
1763
|
var caption = $(this).data('caption') || '';
|
@@ -1739,33 +1765,33 @@ SlideShow.toggle();
|
|
1739
1765
|
return ( caption.length ? caption + '<br />' : '' ) + 'Image <span data-fancybox-index></span> of <span data-fancybox-count></span>';
|
1740
1766
|
}
|
1741
1767
|
});</code></pre>
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1768
|
+
<p class="demo">
|
1769
|
+
<a href="https://codepen.io/fancyapps/pen/EeqzMW?editors=1010" target="_blank">View demo on CodePen</a>
|
1770
|
+
</p>
|
1745
1771
|
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1772
|
+
<p>
|
1773
|
+
Inside
|
1774
|
+
<code>caption</code> method,
|
1775
|
+
<code>this</code> refers to the clicked element. Example of using different source for caption:
|
1776
|
+
</p>
|
1751
1777
|
|
1752
|
-
|
1778
|
+
<pre><code>$( '[data-fancybox]' ).fancybox({
|
1753
1779
|
caption : function( instance, item ) {
|
1754
1780
|
return $(this).find('figcaption').html();
|
1755
1781
|
}
|
1756
1782
|
});</code></pre>
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1783
|
+
<p class="demo">
|
1784
|
+
<a href="https://codepen.io/fancyapps/pen/aaerxw" target="_blank">View demo on CodePen</a>
|
1785
|
+
</p>
|
1760
1786
|
|
1761
|
-
|
1762
|
-
|
1787
|
+
<h3 id="faq-3">
|
1788
|
+
<a href="#faq-3">#3</a> How to create custom button in the toolbar</h3>
|
1763
1789
|
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1790
|
+
<p>
|
1791
|
+
Example of creating reusable button:
|
1792
|
+
</p>
|
1767
1793
|
|
1768
|
-
|
1794
|
+
<pre><code>// Create template for the button
|
1769
1795
|
$.fancybox.defaults.btnTpl.fb = '<button data-fancybox-fb class="fancybox-button fancybox-button--fb" title="Facebook">' +
|
1770
1796
|
'<svg viewBox="0 0 24 24">' +
|
1771
1797
|
'<path d="M22.676 0H1.324C.594 0 0 .593 0 1.324v21.352C0 23.408.593 24 1.324 24h11.494v-9.294h-3.13v-3.62h3.13V8.41c0-3.1 1.894-4.785 4.66-4.785 1.324 0 2.463.097 2.795.14v3.24h-1.92c-1.5 0-1.793.722-1.793 1.772v2.31h3.584l-.465 3.63h-3.12V24h6.115c.733 0 1.325-.592 1.325-1.324V1.324C24 .594 23.408 0 22.676 0"/>' +
|
@@ -1784,140 +1810,191 @@ $( '[data-fancybox="images"]' ).fancybox({
|
|
1784
1810
|
'close'
|
1785
1811
|
]
|
1786
1812
|
});</code></pre>
|
1813
|
+
<p class="demo">
|
1814
|
+
<a href="https://codepen.io/fancyapps/pen/NLQVZQ" target="_blank">View demo on CodePen</a>
|
1815
|
+
</p>
|
1816
|
+
|
1817
|
+
<h3 id="faq-4">
|
1818
|
+
<a href="#faq-4">#4</a> How to reposition thumbnail grid
|
1819
|
+
</h3>
|
1820
|
+
|
1821
|
+
<p>
|
1822
|
+
There is currenty no JS option to change thumbnail grid position. But fancybox is designed so that you can
|
1823
|
+
use CSS to change position or dimension for each block (e.g., content area, caption or thumbnail grid).
|
1824
|
+
This gives you freedom to completely change the look and feel of the modal window, if needed.
|
1825
|
+
|
1826
|
+
<a href="https://codepen.io/fancyapps/pen/PdMvML" target="_blank">View demo on CodePen</a>
|
1827
|
+
</p>
|
1828
|
+
|
1829
|
+
<h3 id="faq-5">
|
1830
|
+
<a href="#faq-5">#5</a> How to disable touch gestures/swiping
|
1831
|
+
</h3>
|
1832
|
+
|
1833
|
+
<p>
|
1834
|
+
When you want to make your content selectable or clickable, you have two options:
|
1835
|
+
</p>
|
1836
|
+
|
1837
|
+
<ul>
|
1838
|
+
<li>
|
1839
|
+
disable touch gestures completely by setting
|
1840
|
+
<code>touch:false</code>
|
1841
|
+
</li>
|
1842
|
+
<li>
|
1843
|
+
add
|
1844
|
+
<code>data-selectable="true"</code> attribute to your html element
|
1845
|
+
</li>
|
1846
|
+
</ul>
|
1847
|
+
|
1848
|
+
<p>
|
1849
|
+
<a href="https://codepen.io/fancyapps/pen/NLQZWK?editors=1000" target="_blank">View demo on CodePen</a>
|
1850
|
+
</p>
|
1851
|
+
|
1852
|
+
<h3 id="faq-6">
|
1853
|
+
<a href="#faq-6">#6</a> Slider/carousel add's cloned duplicate items
|
1854
|
+
</h3>
|
1855
|
+
|
1856
|
+
<p>
|
1857
|
+
If you are combining fancybox with slider/carousel script and that script clones items to enable infinite
|
1858
|
+
navigation, then duplicated items will appear in the gallery.
|
1859
|
+
To avoid that -
|
1860
|
+
1) initialise fancybox on all items except cloned;
|
1861
|
+
2) add custom click event on cloned items and trigger click event on corresponding "real" item. Here is an
|
1862
|
+
example using Slick slider:
|
1863
|
+
</p>
|
1864
|
+
<pre><code>// Init fancybox
|
1865
|
+
// =============
|
1866
|
+
var selector = '.slick-slide:not(.slick-cloned)';
|
1867
|
+
|
1868
|
+
// Skip cloned elements
|
1869
|
+
$().fancybox({
|
1870
|
+
selector : selector,
|
1871
|
+
backFocus : false
|
1872
|
+
});
|
1787
1873
|
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
There is currenty no JS option to change thumbnail grid position. But fancybox is designed so that you can use CSS to change
|
1797
|
-
position or dimension for each block (e.g., content area, caption or thumbnail grid). This gives
|
1798
|
-
you freedom to completely change the look and feel of the modal window, if needed.
|
1799
|
-
|
1800
|
-
<a href="https://codepen.io/fancyapps/pen/GxBpYY" target="_blank">View demo on CodePen</a>
|
1801
|
-
</p>
|
1802
|
-
|
1803
|
-
<h3 id="faq-5">
|
1804
|
-
<a href="#faq-5">#5</a> How to disable touch gestures/swiping</h3>
|
1874
|
+
// Attach custom click event on cloned elements,
|
1875
|
+
// trigger click event on corresponding link
|
1876
|
+
$(document).on('click', '.slick-cloned', function(e) {
|
1877
|
+
$(selector)
|
1878
|
+
.eq( ( $(e.currentTarget).attr("data-slick-index") || 0) % $(selector).length )
|
1879
|
+
.trigger("click.fb-start", {
|
1880
|
+
$trigger: $(this)
|
1881
|
+
});
|
1805
1882
|
|
1806
|
-
|
1807
|
-
|
1808
|
-
</p>
|
1883
|
+
return false;
|
1884
|
+
});
|
1809
1885
|
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1886
|
+
// Init Slick
|
1887
|
+
// ==========
|
1888
|
+
$(".main-slider").slick({
|
1889
|
+
slidesToShow : 3,
|
1890
|
+
infinite : true,
|
1891
|
+
dots : false,
|
1892
|
+
arrows : false
|
1893
|
+
});</code></pre>
|
1894
|
+
<p class="demo">
|
1895
|
+
<a href="https://codepen.io/fancyapps/pen/NLQZBr?editors=1010" target="_blank">View demo on CodePen</a>
|
1896
|
+
</p>
|
1820
1897
|
|
1821
|
-
<p>
|
1822
|
-
<a href="https://codepen.io/fancyapps/pen/aYjvXw?editors=1000" target="_blank">View demo on CodePen</a>
|
1823
|
-
</p>
|
1824
1898
|
|
1825
|
-
|
1899
|
+
</section>
|
1826
1900
|
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1901
|
+
<section>
|
1902
|
+
<p class="text-right mt-5">
|
1903
|
+
<a href="#introduction">Back to Top</a>
|
1904
|
+
</p>
|
1905
|
+
</section>
|
1832
1906
|
|
1833
|
-
|
1834
|
-
</div>
|
1907
|
+
</div>
|
1835
1908
|
</div>
|
1909
|
+
</div>
|
1836
1910
|
|
1837
|
-
|
1911
|
+
<script>
|
1838
1912
|
|
1839
|
-
|
1913
|
+
$(document).ready(function () {
|
1840
1914
|
|
1841
|
-
|
1842
|
-
$sticky: $('.sticky'),
|
1843
|
-
offsets: [],
|
1844
|
-
targets: [],
|
1845
|
-
stickyTop: null,
|
1915
|
+
/* Sticky nvigation */
|
1846
1916
|
|
1847
|
-
|
1848
|
-
|
1917
|
+
var sticky = {
|
1918
|
+
$sticky: $('.sticky'),
|
1919
|
+
offsets: [],
|
1920
|
+
targets: [],
|
1921
|
+
stickyTop: null,
|
1849
1922
|
|
1850
|
-
|
1851
|
-
|
1923
|
+
set: function () {
|
1924
|
+
var self = this;
|
1852
1925
|
|
1853
|
-
|
1854
|
-
self.stickyTop = self.$sticky.css('position', 'relative').offset().top;
|
1926
|
+
var windowTop = Math.floor($(window).scrollTop());
|
1855
1927
|
|
1856
|
-
|
1857
|
-
|
1858
|
-
var $el = $(this),
|
1859
|
-
href = $el.data('target') || $el.attr('href'),
|
1860
|
-
$href = /^#./.test(href) && $(href);
|
1928
|
+
self.offsets = [];
|
1929
|
+
self.targets = [];
|
1861
1930
|
|
1862
|
-
|
1863
|
-
|
1864
|
-
.sort(function (a, b) { return a[0] - b[0] })
|
1865
|
-
.each(function () {
|
1866
|
-
self.offsets.push(this[0]);
|
1867
|
-
self.targets.push(this[1]);
|
1868
|
-
});
|
1931
|
+
// Get current top position of sticky element
|
1932
|
+
self.stickyTop = self.$sticky.css('position', 'relative').offset().top;
|
1869
1933
|
|
1870
|
-
|
1934
|
+
// Cache all targets and their top positions
|
1935
|
+
self.$sticky.find('a').map(function () {
|
1936
|
+
var $el = $(this),
|
1937
|
+
href = $el.data('target') || $el.attr('href'),
|
1938
|
+
$href = /^#./.test(href) && $(href);
|
1871
1939
|
|
1872
|
-
|
1873
|
-
|
1940
|
+
return $href && $href.length && $href.is(':visible') ? [[$href[0].getBoundingClientRect().top + windowTop, href]] : null;
|
1941
|
+
})
|
1942
|
+
.sort(function (a, b) { return a[0] - b[0] })
|
1943
|
+
.each(function () {
|
1944
|
+
self.offsets.push(this[0]);
|
1945
|
+
self.targets.push(this[1]);
|
1946
|
+
});
|
1947
|
+
},
|
1948
|
+
|
1949
|
+
update: function () {
|
1950
|
+
var self = this;
|
1874
1951
|
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1952
|
+
var windowTop = Math.floor($(window).scrollTop());
|
1953
|
+
var $stickyLinks = self.$sticky.find('a').removeClass('active');
|
1954
|
+
var stickyPosition = 'fixed';
|
1955
|
+
var currentIndex = 0;
|
1879
1956
|
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1957
|
+
// Toggle fixed position depending on visibility
|
1958
|
+
if ($(window).width() < 800 || $(window).height() < 500 || self.stickyTop > windowTop) {
|
1959
|
+
stickyPosition = 'relative';
|
1883
1960
|
|
1884
|
-
|
1961
|
+
} else {
|
1885
1962
|
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1963
|
+
for (var i = self.offsets.length; i--;) {
|
1964
|
+
if (windowTop >= self.offsets[i] - 2 && (self.offsets[i + 1] === undefined || windowTop <= self.offsets[i + 1] + 2)) {
|
1965
|
+
currentIndex = i;
|
1889
1966
|
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1967
|
+
break;
|
1968
|
+
}
|
1969
|
+
}
|
1893
1970
|
|
1894
|
-
|
1971
|
+
}
|
1895
1972
|
|
1896
|
-
|
1973
|
+
self.$sticky.css('position', stickyPosition).width($('#leftCol').width());
|
1897
1974
|
|
1898
|
-
|
1899
|
-
|
1975
|
+
$stickyLinks.eq(currentIndex).addClass('active');
|
1976
|
+
},
|
1900
1977
|
|
1901
|
-
|
1902
|
-
|
1978
|
+
init: function () {
|
1979
|
+
var self = this;
|
1903
1980
|
|
1904
|
-
|
1905
|
-
|
1981
|
+
$(window).on('resize', function () {
|
1982
|
+
self.set();
|
1906
1983
|
|
1907
|
-
|
1908
|
-
|
1984
|
+
self.update();
|
1985
|
+
});
|
1909
1986
|
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1987
|
+
$(window).on('scroll', function () {
|
1988
|
+
self.update();
|
1989
|
+
});
|
1913
1990
|
|
1914
|
-
|
1915
|
-
}
|
1991
|
+
$(window).trigger('resize');
|
1916
1992
|
}
|
1993
|
+
}
|
1917
1994
|
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1995
|
+
sticky.init();
|
1996
|
+
});
|
1997
|
+
</script>
|
1921
1998
|
</body>
|
1922
1999
|
|
1923
2000
|
</html>
|