update
No files matched your search
@@ -6,8 +6,10 @@ def aboutPageFront(request):
|
||||
seo = aboutPageSEO.objects.first()
|
||||
aboutpage = aboutPage.objects.first()
|
||||
about = aboutSection.objects.first()
|
||||
sliders = sliderSection.objects.all()
|
||||
|
||||
context = {
|
||||
context ={
|
||||
'sliders' : sliders,
|
||||
'seo' : seo,
|
||||
'aboutpage' : aboutpage,
|
||||
'about' : about,
|
||||
|
||||
|
Before Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 774 B |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 748 B |
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1,2 +1,2 @@
|
||||
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
||||
/*! jQuery v3.6.4 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.4",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=y.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:v}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,y,s,c,v,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
||||
@@ -1,433 +1,417 @@
|
||||
/* Magnific Popup CSS */
|
||||
.mfp-bg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1042;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
background: #0b0b0b;
|
||||
opacity: .8
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1042;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
background: #0b0b0b;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.mfp-wrap {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1043;
|
||||
position: fixed;
|
||||
outline: none !important;
|
||||
-webkit-backface-visibility: hidden
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1043;
|
||||
position: fixed;
|
||||
outline: none !important;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.mfp-container {
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.mfp-container:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mfp-align-top .mfp-container:before {
|
||||
display: none
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mfp-content {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
z-index: 1045
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
z-index: 1045;
|
||||
}
|
||||
|
||||
.mfp-inline-holder .mfp-content,
|
||||
.mfp-ajax-holder .mfp-content {
|
||||
width: 100%;
|
||||
cursor: auto
|
||||
width: 100%;
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.mfp-ajax-cur {
|
||||
cursor: progress
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.mfp-zoom-out-cur,
|
||||
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
||||
cursor: -moz-zoom-out;
|
||||
cursor: -webkit-zoom-out;
|
||||
cursor: zoom-out
|
||||
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
||||
cursor: -moz-zoom-out;
|
||||
cursor: -webkit-zoom-out;
|
||||
cursor: zoom-out;
|
||||
}
|
||||
|
||||
.mfp-zoom {
|
||||
cursor: pointer;
|
||||
cursor: -webkit-zoom-in;
|
||||
cursor: -moz-zoom-in;
|
||||
cursor: zoom-in
|
||||
cursor: pointer;
|
||||
cursor: -webkit-zoom-in;
|
||||
cursor: -moz-zoom-in;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.mfp-auto-cursor .mfp-content {
|
||||
cursor: auto
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.mfp-close,
|
||||
.mfp-arrow,
|
||||
.mfp-preloader,
|
||||
.mfp-counter {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.mfp-loading.mfp-figure {
|
||||
display: none
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mfp-hide {
|
||||
display: none !important
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mfp-preloader {
|
||||
color: #ccc;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: auto;
|
||||
text-align: center;
|
||||
margin-top: -.8em;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
z-index: 1044
|
||||
color: #CCC;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: auto;
|
||||
text-align: center;
|
||||
margin-top: -0.8em;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
z-index: 1044;
|
||||
}
|
||||
|
||||
.mfp-preloader a {
|
||||
color: #ccc
|
||||
color: #CCC;
|
||||
}
|
||||
|
||||
.mfp-preloader a:hover {
|
||||
color: #fff
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.mfp-s-ready .mfp-preloader {
|
||||
display: none
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mfp-s-error .mfp-content {
|
||||
display: none
|
||||
display: none;
|
||||
}
|
||||
|
||||
button.mfp-close,
|
||||
button.mfp-arrow {
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
background: 0 0;
|
||||
border: 0;
|
||||
-webkit-appearance: none;
|
||||
display: block;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
z-index: 1046;
|
||||
box-shadow: none;
|
||||
touch-action: manipulation
|
||||
button.mfp-close, button.mfp-arrow {
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
-webkit-appearance: none;
|
||||
display: block;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
z-index: 1046;
|
||||
box-shadow: none;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.mfp-close {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
opacity: .65;
|
||||
padding: 0 0 18px 10px;
|
||||
color: #fff;
|
||||
font-style: normal;
|
||||
font-size: 28px;
|
||||
font-family: Arial, Baskerville, monospace
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
opacity: 0.65;
|
||||
padding: 0 0 18px 10px;
|
||||
color: #FFF;
|
||||
font-style: normal;
|
||||
font-size: 28px;
|
||||
font-family: Arial, Baskerville, monospace;
|
||||
}
|
||||
|
||||
.mfp-close:hover,
|
||||
.mfp-close:focus {
|
||||
opacity: 1
|
||||
.mfp-close:hover, .mfp-close:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.mfp-close:active {
|
||||
top: 1px
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.mfp-close-btn-in .mfp-close {
|
||||
color: #333
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.mfp-image-holder .mfp-close,
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
color: #fff;
|
||||
right: -6px;
|
||||
text-align: right;
|
||||
padding-right: 6px;
|
||||
width: 100%
|
||||
color: #FFF;
|
||||
right: -6px;
|
||||
text-align: right;
|
||||
padding-right: 6px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mfp-counter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
color: #ccc;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: nowrap
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
color: #CCC;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mfp-arrow {
|
||||
position: absolute;
|
||||
opacity: .65;
|
||||
margin: 0;
|
||||
top: 50%;
|
||||
margin-top: -55px;
|
||||
padding: 0;
|
||||
width: 90px;
|
||||
height: 110px;
|
||||
-webkit-tap-highlight-color: transparent
|
||||
position: absolute;
|
||||
opacity: 0.65;
|
||||
margin: 0;
|
||||
top: 50%;
|
||||
margin-top: -55px;
|
||||
padding: 0;
|
||||
width: 90px;
|
||||
height: 110px;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.mfp-arrow:active {
|
||||
margin-top: -54px
|
||||
margin-top: -54px;
|
||||
}
|
||||
|
||||
.mfp-arrow:hover,
|
||||
.mfp-arrow:focus {
|
||||
opacity: 1
|
||||
.mfp-arrow:hover, .mfp-arrow:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.mfp-arrow:before, .mfp-arrow:after {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: 35px;
|
||||
margin-left: 35px;
|
||||
border: medium inset transparent;
|
||||
}
|
||||
|
||||
.mfp-arrow:before,
|
||||
.mfp-arrow:after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: 35px;
|
||||
margin-left: 35px;
|
||||
border: medium inset transparent
|
||||
border-top-width: 13px;
|
||||
border-bottom-width: 13px;
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
.mfp-arrow:after {
|
||||
border-top-width: 13px;
|
||||
border-bottom-width: 13px;
|
||||
top: 8px
|
||||
}
|
||||
|
||||
.mfp-arrow:before {
|
||||
border-top-width: 21px;
|
||||
border-bottom-width: 21px;
|
||||
opacity: .7
|
||||
border-top-width: 21px;
|
||||
border-bottom-width: 21px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.mfp-arrow-left {
|
||||
left: 0
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.mfp-arrow-left:after {
|
||||
border-right: 17px solid #fff;
|
||||
margin-left: 31px
|
||||
border-right: 17px solid #FFF;
|
||||
margin-left: 31px;
|
||||
}
|
||||
|
||||
.mfp-arrow-left:before {
|
||||
margin-left: 25px;
|
||||
border-right: 27px solid #3f3f3f
|
||||
margin-left: 25px;
|
||||
border-right: 27px solid #3F3F3F;
|
||||
}
|
||||
|
||||
.mfp-arrow-right {
|
||||
right: 0
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.mfp-arrow-right:after {
|
||||
border-left: 17px solid #fff;
|
||||
margin-left: 39px
|
||||
border-left: 17px solid #FFF;
|
||||
margin-left: 39px;
|
||||
}
|
||||
|
||||
.mfp-arrow-right:before {
|
||||
border-left: 27px solid #3f3f3f
|
||||
border-left: 27px solid #3F3F3F;
|
||||
}
|
||||
|
||||
.mfp-iframe-holder {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.mfp-iframe-holder .mfp-content {
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
max-width: 900px
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
top: -40px
|
||||
top: -40px;
|
||||
}
|
||||
|
||||
.mfp-iframe-scaler {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
padding-top: 56.25%
|
||||
width: 100%;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
padding-top: 56.25%;
|
||||
}
|
||||
|
||||
.mfp-iframe-scaler iframe {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, .6);
|
||||
background: #000
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #000;
|
||||
}
|
||||
|
||||
/* Main image in popup */
|
||||
img.mfp-img {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
line-height: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 40px 0;
|
||||
margin: 0 auto
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
line-height: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 40px 0 40px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* The shadow behind the image */
|
||||
.mfp-figure {
|
||||
line-height: 0
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.mfp-figure:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 40px;
|
||||
bottom: 40px;
|
||||
display: block;
|
||||
right: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, .6);
|
||||
background: #444
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 40px;
|
||||
bottom: 40px;
|
||||
display: block;
|
||||
right: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #444;
|
||||
}
|
||||
|
||||
.mfp-figure small {
|
||||
color: #bdbdbd;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 14px
|
||||
color: #BDBDBD;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
.mfp-figure figure {
|
||||
margin: 0
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mfp-bottom-bar {
|
||||
margin-top: -36px;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
cursor: auto
|
||||
margin-top: -36px;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.mfp-title {
|
||||
text-align: left;
|
||||
line-height: 18px;
|
||||
color: #f3f3f3;
|
||||
word-wrap: break-word;
|
||||
padding-right: 36px
|
||||
text-align: left;
|
||||
line-height: 18px;
|
||||
color: #F3F3F3;
|
||||
word-wrap: break-word;
|
||||
padding-right: 36px;
|
||||
}
|
||||
|
||||
.mfp-image-holder .mfp-content {
|
||||
max-width: 100%
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.mfp-gallery .mfp-image-holder .mfp-figure {
|
||||
cursor: pointer
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media screen and (max-width:800px) and (orientation:landscape),
|
||||
screen and (max-height:300px) {
|
||||
.mfp-img-mobile .mfp-image-holder {
|
||||
padding-left: 0;
|
||||
padding-right: 0
|
||||
}
|
||||
.mfp-img-mobile img.mfp-img {
|
||||
padding: 0
|
||||
}
|
||||
.mfp-img-mobile .mfp-figure:after {
|
||||
top: 0;
|
||||
bottom: 0
|
||||
}
|
||||
.mfp-img-mobile .mfp-figure small {
|
||||
display: inline;
|
||||
margin-left: 5px
|
||||
}
|
||||
.mfp-img-mobile .mfp-bottom-bar {
|
||||
background: rgba(0, 0, 0, .6);
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
top: auto;
|
||||
padding: 3px 5px;
|
||||
position: fixed;
|
||||
box-sizing: border-box
|
||||
}
|
||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
||||
padding: 0
|
||||
}
|
||||
.mfp-img-mobile .mfp-counter {
|
||||
right: 5px;
|
||||
top: 3px
|
||||
}
|
||||
.mfp-img-mobile .mfp-close {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
background: rgba(0, 0, 0, .6);
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
padding: 0
|
||||
}
|
||||
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
||||
/**
|
||||
* Remove all paddings around the image on small screen
|
||||
*/
|
||||
.mfp-img-mobile .mfp-image-holder {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.mfp-img-mobile img.mfp-img {
|
||||
padding: 0;
|
||||
}
|
||||
.mfp-img-mobile .mfp-figure:after {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.mfp-img-mobile .mfp-figure small {
|
||||
display: inline;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.mfp-img-mobile .mfp-bottom-bar {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
top: auto;
|
||||
padding: 3px 5px;
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
||||
padding: 0;
|
||||
}
|
||||
.mfp-img-mobile .mfp-counter {
|
||||
right: 5px;
|
||||
top: 3px;
|
||||
}
|
||||
.mfp-img-mobile .mfp-close {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
@media all and (max-width: 900px) {
|
||||
.mfp-arrow {
|
||||
-webkit-transform: scale(0.75);
|
||||
transform: scale(0.75);
|
||||
}
|
||||
|
||||
.mfp-arrow-left {
|
||||
-webkit-transform-origin: 0;
|
||||
transform-origin: 0;
|
||||
}
|
||||
|
||||
.mfp-arrow-right {
|
||||
-webkit-transform-origin: 100%;
|
||||
transform-origin: 100%;
|
||||
}
|
||||
|
||||
.mfp-container {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width:900px) {
|
||||
.mfp-arrow {
|
||||
-webkit-transform: scale(.75);
|
||||
transform: scale(.75)
|
||||
}
|
||||
.mfp-arrow-left {
|
||||
-webkit-transform-origin: 0;
|
||||
transform-origin: 0
|
||||
}
|
||||
.mfp-arrow-right {
|
||||
-webkit-transform-origin: 100%;
|
||||
transform-origin: 100%
|
||||
}
|
||||
.mfp-container {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px
|
||||
}
|
||||
}
|
||||
/*# sourceMappingURL=magnific-popup.css.map */
|
||||
@@ -113,7 +113,7 @@ video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 99999;
|
||||
background: #000;
|
||||
background: #39A5C8;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: -webkit-box;
|
||||
@@ -316,7 +316,7 @@ video {
|
||||
-webkit-animation: scroll1 15s ease-out infinite;
|
||||
animation: scroll1 15s ease-out infinite;
|
||||
background-image: -webkit-gradient(linear, left bottom, left top, from(#000000), to(transparent));
|
||||
background-image: linear-gradient(0deg, #000000, transparent)
|
||||
background-image: linear-gradient(0deg, #39A5C8, transparent)
|
||||
}
|
||||
|
||||
.line_item {
|
||||
@@ -346,14 +346,14 @@ video {
|
||||
-webkit-animation: scroll2 15s ease-out infinite;
|
||||
animation: scroll2 15s ease-out infinite;
|
||||
background-image: -webkit-gradient(linear, left bottom, left top, from(transparent), to(#000000));
|
||||
background-image: linear-gradient(0deg, transparent, #000000)
|
||||
background-image: linear-gradient(0deg, transparent, #39A5C8)
|
||||
}
|
||||
|
||||
.line_item:nth-child(even):before {
|
||||
-webkit-animation: scroll1 15s ease-out infinite;
|
||||
animation: scroll1 15s ease-out infinite;
|
||||
background-image: -webkit-gradient(linear, left bottom, left top, from(#000000), to(transparent));
|
||||
background-image: linear-gradient(0deg, #000000, transparent)
|
||||
background-image: linear-gradient(0deg, #39A5C8, transparent)
|
||||
}
|
||||
|
||||
@-webkit-keyframes scroll1 {
|
||||
@@ -415,7 +415,6 @@ video {
|
||||
.breadcrumbs {
|
||||
position: relative;
|
||||
height: 480px;
|
||||
background-image: url(../img/breadcrumb-bg.jpg);
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
z-index: 1
|
||||
@@ -2350,123 +2349,6 @@ only screen and (min-width:768px) and (max-width:991px) {
|
||||
color: #191a1c
|
||||
}
|
||||
|
||||
.price-box {
|
||||
background-color: #fff;
|
||||
-webkit-box-shadow: 0 0 40px rgba(33, 33, 33, .1);
|
||||
box-shadow: 0 0 40px rgba(33, 33, 33, .1);
|
||||
border-radius: 10px;
|
||||
padding: 40px;
|
||||
text-align: center;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
@media only screen and (min-width:992px) and (max-width:1199px) {
|
||||
.price-box {
|
||||
padding: 40px 20px
|
||||
}
|
||||
}
|
||||
|
||||
.price-box.layout2 h3:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 50%;
|
||||
bottom: -10px;
|
||||
width: 150px;
|
||||
height: 2px;
|
||||
-webkit-transform: translateX(-50%);
|
||||
transform: translateX(-50%);
|
||||
background: -webkit-gradient(linear, left top, right top, from(#181818), color-stop(#75DAB4), to(#181818));
|
||||
background: linear-gradient(90deg, #181818, #75DAB4, #181818)
|
||||
}
|
||||
|
||||
.price-box h3 {
|
||||
position: relative;
|
||||
font-weight: 700;
|
||||
font-size: 32px;
|
||||
color: #17161a;
|
||||
margin-bottom: 30px;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.price-box h3:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 50%;
|
||||
bottom: -10px;
|
||||
width: 150px;
|
||||
height: 2px;
|
||||
-webkit-transform: translateX(-50%);
|
||||
transform: translateX(-50%);
|
||||
background: -webkit-gradient(linear, left top, right top, from(#fff), color-stop(#75DAB4), to(#fff));
|
||||
background: linear-gradient(90deg, #fff, #75DAB4, #fff)
|
||||
}
|
||||
|
||||
.price-box span {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
color: #17161a;
|
||||
display: block;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.price-box strong {
|
||||
font-weight: 700;
|
||||
font-size: 38px;
|
||||
color: #17161a;
|
||||
display: block;
|
||||
margin: 20px 0;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.price-box strong sub {
|
||||
color: #75dab4;
|
||||
font-size: 16px;
|
||||
font-weight: 400
|
||||
}
|
||||
|
||||
.price-box:hover {
|
||||
background-color: #191a1c;
|
||||
border-radius: 10px
|
||||
}
|
||||
|
||||
.price-box:hover h3 {
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.price-box:hover h3:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 50%;
|
||||
bottom: -10px;
|
||||
width: 150px;
|
||||
height: 2px;
|
||||
-webkit-transform: translateX(-50%);
|
||||
transform: translateX(-50%);
|
||||
background: -webkit-gradient(linear, left top, right top, from(#181818), color-stop(#75DAB4), to(#181818));
|
||||
background: linear-gradient(90deg, #181818, #75DAB4, #181818)
|
||||
}
|
||||
|
||||
.price-box:hover h3,
|
||||
.price-box:hover span,
|
||||
.price-box:hover strong {
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.price-box:hover .item-list li {
|
||||
color: #e4e4e4;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.price-box:hover .price-btn a {
|
||||
color: #000;
|
||||
background-color: #75dab4
|
||||
}
|
||||
|
||||
.item-list li {
|
||||
font-size: 16px;
|
||||
color: #17161a;
|
||||
@@ -2482,168 +2364,6 @@ only screen and (min-width:768px) and (max-width:991px) {
|
||||
font-size: 18px
|
||||
}
|
||||
|
||||
.price-btn {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-top: 40px
|
||||
}
|
||||
|
||||
.price-btn a {
|
||||
background-color: #17161a;
|
||||
border-radius: 5px;
|
||||
font-weight: 700;
|
||||
font-size: 17px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
min-width: 200px;
|
||||
padding: 10px 30px;
|
||||
-webkit-transition: transition(0.5s), transition(0.5s);
|
||||
transition: transition(0.5s), transition(0.5s);
|
||||
transition: transition(0.5s)
|
||||
}
|
||||
|
||||
.price-btn .line-1 {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 8px;
|
||||
z-index: 2
|
||||
}
|
||||
|
||||
.price-btn .line-1:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
border: 1px solid #fff;
|
||||
width: 25px;
|
||||
opacity: .1;
|
||||
right: 0
|
||||
}
|
||||
|
||||
.price-btn .line-1:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
border: 1px solid #fff;
|
||||
height: 25px;
|
||||
opacity: .1
|
||||
}
|
||||
|
||||
.price-btn .line-2 {
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
bottom: 10px;
|
||||
z-index: 2
|
||||
}
|
||||
|
||||
.price-btn .line-2:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
border: 1px solid #fff;
|
||||
height: 25px;
|
||||
opacity: .1;
|
||||
right: 0;
|
||||
bottom: -2px
|
||||
}
|
||||
|
||||
.price-btn .line-2:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
border: 1px solid #fff;
|
||||
width: 25px;
|
||||
opacity: .1;
|
||||
left: 0
|
||||
}
|
||||
|
||||
.testimonial-area {
|
||||
background-color: #191a1c;
|
||||
padding: 100px 0;
|
||||
position: relative
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.testimonial-area {
|
||||
padding: 80px 0
|
||||
}
|
||||
}
|
||||
|
||||
.testimonial-area .swiper-button-next,
|
||||
.testimonial-area .swiper-button-prev {
|
||||
top: 62%
|
||||
}
|
||||
|
||||
@media(max-width:576px) {
|
||||
.testimonial-area .swiper-button-next,
|
||||
.testimonial-area .swiper-button-prev {
|
||||
display: none;
|
||||
visibility: hidden
|
||||
}
|
||||
}
|
||||
|
||||
.testimonial-area .swiper-button-next:after,
|
||||
.testimonial-area .swiper-button-prev:after {
|
||||
font-size: 20px;
|
||||
height: 40px;
|
||||
min-width: 40px;
|
||||
color: #e4e4e4;
|
||||
background-color: #2a2a2a;
|
||||
border: 1px solid #2a2a2a;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
border-radius: 50%;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.testimonial-area .swiper-button-next:hover:after,
|
||||
.testimonial-area .swiper-button-prev:hover:after {
|
||||
color: #000;
|
||||
border: none;
|
||||
background-color: #75dab4
|
||||
}
|
||||
|
||||
.testimonial-area .swiper-button-next {
|
||||
right: 7%
|
||||
}
|
||||
|
||||
.testimonial-area .swiper-button-prev {
|
||||
left: 7%
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider .swiper-slide {
|
||||
opacity: .4
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider .swiper-slide.swiper-slide-active {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.single-testimonial {
|
||||
position: relative;
|
||||
background-color: #0d0d0f;
|
||||
-webkit-box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
border-radius: 10px;
|
||||
padding: 45px 20px
|
||||
}
|
||||
|
||||
.single-testimonial h5 {
|
||||
font-weight: 600;
|
||||
font-size: 25px;
|
||||
color: #e4e4e4;
|
||||
margin-bottom: 5px
|
||||
}
|
||||
|
||||
.single-testimonial span {
|
||||
font-weight: 400;
|
||||
font-size: 17px;
|
||||
color: #5f6062
|
||||
}
|
||||
|
||||
.single-testimonial p {
|
||||
color: #e4e4e4;
|
||||
font-size: 15px;
|
||||
margin: 30px 0
|
||||
}
|
||||
|
||||
.stars {
|
||||
position: absolute;
|
||||
top: 45px;
|
||||
@@ -2680,12 +2400,6 @@ only screen and (min-width:768px) and (max-width:991px) {
|
||||
border-radius: 50%
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.our-team {
|
||||
margin: 80px 0
|
||||
}
|
||||
}
|
||||
|
||||
.swiper.services-slider {
|
||||
padding: 5px 5px 50px
|
||||
}
|
||||
@@ -2726,128 +2440,6 @@ only screen and (min-width:768px) and (max-width:991px) {
|
||||
}
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider {
|
||||
padding: 5px 5px 50px
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider .swiper-pagination {
|
||||
bottom: -5px !important
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider .swiper-pagination .swiper-pagination-bullet {
|
||||
background-color: transparent;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border: .8px solid #75dab4;
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider .swiper-pagination .swiper-pagination-bullet-active {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.swiper.testimonial-slider .swiper-pagination .swiper-pagination-bullet-active:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 5px;
|
||||
width: 5px;
|
||||
background-color: #75dab4;
|
||||
border-radius: 50%;
|
||||
-webkit-transform: translate(-62%, -62%);
|
||||
transform: translate(-62%, -62%)
|
||||
}
|
||||
|
||||
@media(max-width:991px) {
|
||||
.swiper.testimonial-slider .swiper-pagination .swiper-pagination-bullet-active:before {
|
||||
-webkit-transform: translate(-62%, -42%);
|
||||
transform: translate(-62%, -42%)
|
||||
}
|
||||
}
|
||||
|
||||
.swiper.team-slider {
|
||||
padding: 5px 5px 50px
|
||||
}
|
||||
|
||||
.swiper.team-slider .swiper-pagination {
|
||||
bottom: -5px !important
|
||||
}
|
||||
|
||||
.swiper.team-slider .swiper-pagination .swiper-pagination-bullet {
|
||||
background-color: transparent;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border: .8px solid #75dab4;
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.swiper.team-slider .swiper-pagination .swiper-pagination-bullet-active {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.swiper.team-slider .swiper-pagination .swiper-pagination-bullet-active:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 5px;
|
||||
width: 5px;
|
||||
background-color: #75dab4;
|
||||
border-radius: 50%;
|
||||
-webkit-transform: translate(-62%, -62%);
|
||||
transform: translate(-62%, -62%)
|
||||
}
|
||||
|
||||
@media(max-width:991px) {
|
||||
.swiper.team-slider .swiper-pagination .swiper-pagination-bullet-active:before {
|
||||
-webkit-transform: translate(-62%, -42%);
|
||||
transform: translate(-62%, -42%)
|
||||
}
|
||||
}
|
||||
|
||||
.single-team {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.single-team:hover .member-img:before {
|
||||
visibility: visible;
|
||||
opacity: .8;
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0)
|
||||
}
|
||||
|
||||
.single-team:hover .member-img img {
|
||||
-webkit-transform: scale(1.1);
|
||||
transform: scale(1.1)
|
||||
}
|
||||
|
||||
.single-team:hover .member-img svg {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0)
|
||||
}
|
||||
|
||||
.single-team:hover .member-img .team-social {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(-50%);
|
||||
transform: translateY(-50%)
|
||||
}
|
||||
|
||||
.single-team:hover .team-inner {
|
||||
background-color: #191a1c
|
||||
}
|
||||
|
||||
.single-team:hover .team-inner h4 {
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.single-team:hover .team-inner span {
|
||||
color: #75dab4
|
||||
}
|
||||
|
||||
.member-img {
|
||||
position: relative;
|
||||
border-radius: 10px 10px 0 0;
|
||||
@@ -2931,253 +2523,6 @@ only screen and (min-width:768px) and (max-width:991px) {
|
||||
color: #0f1012
|
||||
}
|
||||
|
||||
.team-inner {
|
||||
background-color: #fff;
|
||||
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .05);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, .05);
|
||||
border-radius: 0 0 10px 10px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.team-inner h4 {
|
||||
font-weight: 600;
|
||||
font-size: 25px;
|
||||
color: #17161a;
|
||||
margin-bottom: 5px;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.team-inner h4 {
|
||||
font-size: 24px
|
||||
}
|
||||
}
|
||||
|
||||
.team-inner span {
|
||||
font-size: 17px;
|
||||
color: #5f6062;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.single-blog .blog-thumb {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 10px 10px 0 0
|
||||
}
|
||||
|
||||
.single-blog .blog-thumb a img {
|
||||
border-radius: 10px 10px 0 0;
|
||||
width: 100%;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.single-blog .blog-thumb .tag {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px
|
||||
}
|
||||
|
||||
.single-blog .blog-thumb .tag a {
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #0f1012;
|
||||
background-color: #75dab4;
|
||||
padding: 5px 15px;
|
||||
border-radius: 30px;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.single-blog .blog-thumb .tag a:hover {
|
||||
background-color: #fff;
|
||||
color: #75dab4
|
||||
}
|
||||
|
||||
.single-blog .blog-inner {
|
||||
padding: 20px;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .05);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, .05);
|
||||
border-radius: 0 0 10px 10px
|
||||
}
|
||||
|
||||
.single-blog .blog-inner h4 {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 5px
|
||||
}
|
||||
|
||||
.single-blog .blog-inner h4 a {
|
||||
font-weight: 600;
|
||||
font-size: 22px;
|
||||
display: inline-block;
|
||||
text-transform: capitalize;
|
||||
color: #17161a;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.single-blog .blog-inner h4 a:hover {
|
||||
color: #75dab4
|
||||
}
|
||||
|
||||
.single-blog .blog-inner .author-date {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between
|
||||
}
|
||||
|
||||
.single-blog .blog-inner .author-date a {
|
||||
font-weight: 500;
|
||||
font-size: 17px;
|
||||
text-transform: capitalize;
|
||||
color: #5f6062;
|
||||
display: inline-block
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.single-blog .blog-inner .author-date a.cmnt {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
.single-blog:hover .blog-thumb a img {
|
||||
-webkit-transform: scale(1.1) skewY(5deg);
|
||||
transform: scale(1.1) skewY(5deg)
|
||||
}
|
||||
|
||||
.subscribe-newsletter {
|
||||
position: relative;
|
||||
z-index: 1
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.subscribe-newsletter {
|
||||
margin-top: 80px
|
||||
}
|
||||
}
|
||||
|
||||
.news-letter-content {
|
||||
position: relative;
|
||||
padding: 60px 80px;
|
||||
border-radius: 10px;
|
||||
background-color: #1a191d;
|
||||
background-image: url(../img/subscribe-bg.png);
|
||||
background-size: cover;
|
||||
background-position: center center
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.news-letter-content {
|
||||
padding: 30px 20px
|
||||
}
|
||||
}
|
||||
|
||||
.subscribe-cnt span {
|
||||
font-weight: 600;
|
||||
font-size: 20px;
|
||||
display: block;
|
||||
text-transform: capitalize;
|
||||
color: #75dab4
|
||||
}
|
||||
|
||||
.subscribe-cnt h3 {
|
||||
font-weight: 700;
|
||||
font-size: 45px;
|
||||
text-transform: uppercase;
|
||||
color: #e4e4e4;
|
||||
margin-bottom: 5px
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.subscribe-cnt h3 {
|
||||
font-size: 30px
|
||||
}
|
||||
}
|
||||
|
||||
.subscribe-cnt strong {
|
||||
-webkit-text-stroke: 1px #5f5f5f;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-size: 45px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.subscribe-cnt strong {
|
||||
font-size: 30px
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width:768px) and (max-width:991px),
|
||||
(max-width:767px) {
|
||||
.subscribe-form {
|
||||
margin-top: 15px
|
||||
}
|
||||
}
|
||||
|
||||
.subscribe-form form {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.subscribe-form form input {
|
||||
height: 60px;
|
||||
width: 100%;
|
||||
background-color: #0f0f11;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
padding: 0 20px;
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.subscribe-form form input[type=email] {
|
||||
padding-right: 160px
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.subscribe-form form input[type=email] {
|
||||
padding: 0 10px
|
||||
}
|
||||
}
|
||||
|
||||
.subscribe-form form input[type=submit] {
|
||||
max-width: 140px;
|
||||
background-color: #75dab4;
|
||||
border-radius: 10px;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
height: 50px;
|
||||
top: 5px;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.subscribe-form form input[type=submit] {
|
||||
position: static;
|
||||
margin-top: 15px
|
||||
}
|
||||
}
|
||||
|
||||
.subscribe-form form input[type=submit]:hover {
|
||||
color: #75dab4;
|
||||
background-color: #fff
|
||||
}
|
||||
|
||||
footer {
|
||||
position: relative;
|
||||
padding-top: 100px;
|
||||
@@ -3560,20 +2905,20 @@ footer.error {
|
||||
}
|
||||
|
||||
.creasoft-wrap.layout2 {
|
||||
background-image: url(../img/black-concrete-textured.png);
|
||||
background-image: url(../img/bg-network-particle.jpg);
|
||||
background-repeat: repeat;
|
||||
background-color: #000
|
||||
background-color: #39A5C8
|
||||
}
|
||||
|
||||
.services-area.layout2 .swiper-button-next::after,
|
||||
.services-area.layout2 .swiper-button-prev::after {
|
||||
background-color: #2a2a2a;
|
||||
background-color: #39A5C8;
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.single-service.layout2 {
|
||||
position: relative;
|
||||
background-color: #0d0d0e;
|
||||
background-color: #39A5C8;
|
||||
-webkit-box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
border-radius: 10px
|
||||
@@ -3612,7 +2957,7 @@ footer.error {
|
||||
}
|
||||
|
||||
.company-since.layout2 {
|
||||
background: #0d0d0f;
|
||||
background: #39A5C8;
|
||||
-webkit-box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
border-radius: 20px
|
||||
@@ -3627,8 +2972,8 @@ footer.error {
|
||||
}
|
||||
|
||||
.about-right.layout2 .banner-2 {
|
||||
border-left: 10px solid #000;
|
||||
border-top: 10px solid #000
|
||||
border-left: 10px solid #39A5C8;
|
||||
border-top: 10px solid #39A5C8
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
@@ -3640,7 +2985,7 @@ footer.error {
|
||||
.isotope-menu.layout2 li.active {
|
||||
position: relative;
|
||||
color: #fff;
|
||||
background-color: #0d0d0f
|
||||
background-color: #39A5C8
|
||||
}
|
||||
|
||||
.isotope-menu.layout2 li.active:before {
|
||||
@@ -3657,84 +3002,12 @@ footer.error {
|
||||
border-radius: 12px
|
||||
}
|
||||
|
||||
.price-table-tab.layout2 .nav.nav-pills .nav-item .nav-link.active {
|
||||
position: relative;
|
||||
background-color: #191a1c;
|
||||
color: #fff
|
||||
}
|
||||
|
||||
.price-table-tab.layout2 .nav.nav-pills .nav-item .nav-link.active:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: -1px;
|
||||
top: -.5px;
|
||||
right: -1px;
|
||||
bottom: -.5px;
|
||||
background-color: #75dab4;
|
||||
z-index: -1;
|
||||
-webkit-transform: skew(1deg, 1deg);
|
||||
transform: skew(1deg, 1deg);
|
||||
border-radius: 12px
|
||||
}
|
||||
|
||||
.nav.nav-pills .nav-item .nav-link.active {
|
||||
position: relative;
|
||||
background-color: #75dab4;
|
||||
color: #fff
|
||||
}
|
||||
|
||||
.price-box.layout2 {
|
||||
background-color: #0d0d0f;
|
||||
-webkit-box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
box-shadow: inset 0 0 10px rgba(6, 6, 6, .15);
|
||||
border-radius: 10px
|
||||
}
|
||||
|
||||
.price-box.layout2 h3,
|
||||
.price-box.layout2 span,
|
||||
.price-box.layout2 strong {
|
||||
color: #fff
|
||||
}
|
||||
|
||||
.price-box.layout2 .item-list li {
|
||||
color: #fff
|
||||
}
|
||||
|
||||
.price-box.layout2:hover {
|
||||
background-color: #191a1c
|
||||
}
|
||||
|
||||
.single-team.layout2 .team-inner {
|
||||
background-color: #191a1c
|
||||
}
|
||||
|
||||
.single-team.layout2 .team-inner h4 {
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.single-team.layout2 .team-inner span {
|
||||
color: #5f6062
|
||||
}
|
||||
|
||||
.single-blog.layout2 .blog-inner {
|
||||
background: 0 0;
|
||||
-webkit-transition: all .5s ease-out 0s;
|
||||
transition: all .5s ease-out 0s
|
||||
}
|
||||
|
||||
.single-blog.layout2 .blog-inner .author-date a {
|
||||
color: #5f6062
|
||||
}
|
||||
|
||||
.single-blog.layout2 .blog-inner h4 a {
|
||||
color: #e4e4e4
|
||||
}
|
||||
|
||||
.single-blog.layout2:hover .blog-inner {
|
||||
background: linear-gradient(357.81deg, rgba(39, 39, 46, 0.6445) 1.75%, rgba(74, 75, 86, 0.0072) 98.16%);
|
||||
border-radius: 0 0 10px 10px
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.contact-area {
|
||||
margin: 80px 0
|
||||
|
||||
|
Before Width: | Height: | Size: 130 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 376 KiB |
|
Before Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 132 KiB |
@@ -1,660 +1 @@
|
||||
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
||||
* http://dimsemenov.com/plugins/magnific-popup/
|
||||
* Copyright (c) 2016 Dmitry Semenov; */
|
||||
! function(a) {
|
||||
"function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto)
|
||||
}(function(a) {
|
||||
var b, c, d, e, f, g, h = "Close",
|
||||
i = "BeforeClose",
|
||||
j = "AfterClose",
|
||||
k = "BeforeAppend",
|
||||
l = "MarkupParse",
|
||||
m = "Open",
|
||||
n = "Change",
|
||||
o = "mfp",
|
||||
p = "." + o,
|
||||
q = "mfp-ready",
|
||||
r = "mfp-removing",
|
||||
s = "mfp-prevent-close",
|
||||
t = function() {},
|
||||
u = !!window.jQuery,
|
||||
v = a(window),
|
||||
w = function(a, c) {
|
||||
b.ev.on(o + a + p, c)
|
||||
},
|
||||
x = function(b, c, d, e) {
|
||||
var f = document.createElement("div");
|
||||
return f.className = "mfp-" + b, d && (f.innerHTML = d), e ? c && c.appendChild(f) : (f = a(f), c && f.appendTo(c)), f
|
||||
},
|
||||
y = function(c, d) {
|
||||
b.ev.triggerHandler(o + c, d), b.st.callbacks && (c = c.charAt(0).toLowerCase() + c.slice(1), b.st.callbacks[c] && b.st.callbacks[c].apply(b, a.isArray(d) ? d : [d]))
|
||||
},
|
||||
z = function(c) {
|
||||
return c === g && b.currTemplate.closeBtn || (b.currTemplate.closeBtn = a(b.st.closeMarkup.replace("%title%", b.st.tClose)), g = c), b.currTemplate.closeBtn
|
||||
},
|
||||
A = function() {
|
||||
a.magnificPopup.instance || (b = new t, b.init(), a.magnificPopup.instance = b)
|
||||
},
|
||||
B = function() {
|
||||
var a = document.createElement("p").style,
|
||||
b = ["ms", "O", "Moz", "Webkit"];
|
||||
if (void 0 !== a.transition) return !0;
|
||||
for (; b.length;)
|
||||
if (b.pop() + "Transition" in a) return !0;
|
||||
return !1
|
||||
};
|
||||
t.prototype = {
|
||||
constructor: t,
|
||||
init: function() {
|
||||
var c = navigator.appVersion;
|
||||
b.isLowIE = b.isIE8 = document.all && !document.addEventListener, b.isAndroid = /android/gi.test(c), b.isIOS = /iphone|ipad|ipod/gi.test(c), b.supportsTransition = B(), b.probablyMobile = b.isAndroid || b.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), d = a(document), b.popupsCache = {}
|
||||
},
|
||||
open: function(c) {
|
||||
var e;
|
||||
if (c.isObj === !1) {
|
||||
b.items = c.items.toArray(), b.index = 0;
|
||||
var g, h = c.items;
|
||||
for (e = 0; e < h.length; e++)
|
||||
if (g = h[e], g.parsed && (g = g.el[0]), g === c.el[0]) {
|
||||
b.index = e;
|
||||
break
|
||||
}
|
||||
} else b.items = a.isArray(c.items) ? c.items : [c.items], b.index = c.index || 0;
|
||||
if (b.isOpen) return void b.updateItemHTML();
|
||||
b.types = [], f = "", c.mainEl && c.mainEl.length ? b.ev = c.mainEl.eq(0) : b.ev = d, c.key ? (b.popupsCache[c.key] || (b.popupsCache[c.key] = {}), b.currTemplate = b.popupsCache[c.key]) : b.currTemplate = {}, b.st = a.extend(!0, {}, a.magnificPopup.defaults, c), b.fixedContentPos = "auto" === b.st.fixedContentPos ? !b.probablyMobile : b.st.fixedContentPos, b.st.modal && (b.st.closeOnContentClick = !1, b.st.closeOnBgClick = !1, b.st.showCloseBtn = !1, b.st.enableEscapeKey = !1), b.bgOverlay || (b.bgOverlay = x("bg").on("click" + p, function() {
|
||||
b.close()
|
||||
}), b.wrap = x("wrap").attr("tabindex", -1).on("click" + p, function(a) {
|
||||
b._checkIfClose(a.target) && b.close()
|
||||
}), b.container = x("container", b.wrap)), b.contentContainer = x("content"), b.st.preloader && (b.preloader = x("preloader", b.container, b.st.tLoading));
|
||||
var i = a.magnificPopup.modules;
|
||||
for (e = 0; e < i.length; e++) {
|
||||
var j = i[e];
|
||||
j = j.charAt(0).toUpperCase() + j.slice(1), b["init" + j].call(b)
|
||||
}
|
||||
y("BeforeOpen"), b.st.showCloseBtn && (b.st.closeBtnInside ? (w(l, function(a, b, c, d) {
|
||||
c.close_replaceWith = z(d.type)
|
||||
}), f += " mfp-close-btn-in") : b.wrap.append(z())), b.st.alignTop && (f += " mfp-align-top"), b.fixedContentPos ? b.wrap.css({
|
||||
overflow: b.st.overflowY,
|
||||
overflowX: "hidden",
|
||||
overflowY: b.st.overflowY
|
||||
}) : b.wrap.css({
|
||||
top: v.scrollTop(),
|
||||
position: "absolute"
|
||||
}), (b.st.fixedBgPos === !1 || "auto" === b.st.fixedBgPos && !b.fixedContentPos) && b.bgOverlay.css({
|
||||
height: d.height(),
|
||||
position: "absolute"
|
||||
}), b.st.enableEscapeKey && d.on("keyup" + p, function(a) {
|
||||
27 === a.keyCode && b.close()
|
||||
}), v.on("resize" + p, function() {
|
||||
b.updateSize()
|
||||
}), b.st.closeOnContentClick || (f += " mfp-auto-cursor"), f && b.wrap.addClass(f);
|
||||
var k = b.wH = v.height(),
|
||||
n = {};
|
||||
if (b.fixedContentPos && b._hasScrollBar(k)) {
|
||||
var o = b._getScrollbarSize();
|
||||
o && (n.marginRight = o)
|
||||
}
|
||||
b.fixedContentPos && (b.isIE7 ? a("body, html").css("overflow", "hidden") : n.overflow = "hidden");
|
||||
var r = b.st.mainClass;
|
||||
return b.isIE7 && (r += " mfp-ie7"), r && b._addClassToMFP(r), b.updateItemHTML(), y("BuildControls"), a("html").css(n), b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo || a(document.body)), b._lastFocusedEl = document.activeElement, setTimeout(function() {
|
||||
b.content ? (b._addClassToMFP(q), b._setFocus()) : b.bgOverlay.addClass(q), d.on("focusin" + p, b._onFocusIn)
|
||||
}, 16), b.isOpen = !0, b.updateSize(k), y(m), c
|
||||
},
|
||||
close: function() {
|
||||
b.isOpen && (y(i), b.isOpen = !1, b.st.removalDelay && !b.isLowIE && b.supportsTransition ? (b._addClassToMFP(r), setTimeout(function() {
|
||||
b._close()
|
||||
}, b.st.removalDelay)) : b._close())
|
||||
},
|
||||
_close: function() {
|
||||
y(h);
|
||||
var c = r + " " + q + " ";
|
||||
if (b.bgOverlay.detach(), b.wrap.detach(), b.container.empty(), b.st.mainClass && (c += b.st.mainClass + " "), b._removeClassFromMFP(c), b.fixedContentPos) {
|
||||
var e = {
|
||||
marginRight: ""
|
||||
};
|
||||
b.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", a("html").css(e)
|
||||
}
|
||||
d.off("keyup" + p + " focusin" + p), b.ev.off(p), b.wrap.attr("class", "mfp-wrap").removeAttr("style"), b.bgOverlay.attr("class", "mfp-bg"), b.container.attr("class", "mfp-container"), !b.st.showCloseBtn || b.st.closeBtnInside && b.currTemplate[b.currItem.type] !== !0 || b.currTemplate.closeBtn && b.currTemplate.closeBtn.detach(), b.st.autoFocusLast && b._lastFocusedEl && a(b._lastFocusedEl).focus(), b.currItem = null, b.content = null, b.currTemplate = null, b.prevHeight = 0, y(j)
|
||||
},
|
||||
updateSize: function(a) {
|
||||
if (b.isIOS) {
|
||||
var c = document.documentElement.clientWidth / window.innerWidth,
|
||||
d = window.innerHeight * c;
|
||||
b.wrap.css("height", d), b.wH = d
|
||||
} else b.wH = a || v.height();
|
||||
b.fixedContentPos || b.wrap.css("height", b.wH), y("Resize")
|
||||
},
|
||||
updateItemHTML: function() {
|
||||
var c = b.items[b.index];
|
||||
b.contentContainer.detach(), b.content && b.content.detach(), c.parsed || (c = b.parseEl(b.index));
|
||||
var d = c.type;
|
||||
if (y("BeforeChange", [b.currItem ? b.currItem.type : "", d]), b.currItem = c, !b.currTemplate[d]) {
|
||||
var f = b.st[d] ? b.st[d].markup : !1;
|
||||
y("FirstMarkupParse", f), f ? b.currTemplate[d] = a(f) : b.currTemplate[d] = !0
|
||||
}
|
||||
e && e !== c.type && b.container.removeClass("mfp-" + e + "-holder");
|
||||
var g = b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]);
|
||||
b.appendContent(g, d), c.preloaded = !0, y(n, c), e = c.type, b.container.prepend(b.contentContainer), y("AfterChange")
|
||||
},
|
||||
appendContent: function(a, c) {
|
||||
b.content = a, a ? b.st.showCloseBtn && b.st.closeBtnInside && b.currTemplate[c] === !0 ? b.content.find(".mfp-close").length || b.content.append(z()) : b.content = a : b.content = "", y(k), b.container.addClass("mfp-" + c + "-holder"), b.contentContainer.append(b.content)
|
||||
},
|
||||
parseEl: function(c) {
|
||||
var d, e = b.items[c];
|
||||
if (e.tagName ? e = {
|
||||
el: a(e)
|
||||
} : (d = e.type, e = {
|
||||
data: e,
|
||||
src: e.src
|
||||
}), e.el) {
|
||||
for (var f = b.types, g = 0; g < f.length; g++)
|
||||
if (e.el.hasClass("mfp-" + f[g])) {
|
||||
d = f[g];
|
||||
break
|
||||
}
|
||||
e.src = e.el.attr("data-mfp-src"), e.src || (e.src = e.el.attr("href"))
|
||||
}
|
||||
return e.type = d || b.st.type || "inline", e.index = c, e.parsed = !0, b.items[c] = e, y("ElementParse", e), b.items[c]
|
||||
},
|
||||
addGroup: function(a, c) {
|
||||
var d = function(d) {
|
||||
d.mfpEl = this, b._openClick(d, a, c)
|
||||
};
|
||||
c || (c = {});
|
||||
var e = "click.magnificPopup";
|
||||
c.mainEl = a, c.items ? (c.isObj = !0, a.off(e).on(e, d)) : (c.isObj = !1, c.delegate ? a.off(e).on(e, c.delegate, d) : (c.items = a, a.off(e).on(e, d)))
|
||||
},
|
||||
_openClick: function(c, d, e) {
|
||||
var f = void 0 !== e.midClick ? e.midClick : a.magnificPopup.defaults.midClick;
|
||||
if (f || !(2 === c.which || c.ctrlKey || c.metaKey || c.altKey || c.shiftKey)) {
|
||||
var g = void 0 !== e.disableOn ? e.disableOn : a.magnificPopup.defaults.disableOn;
|
||||
if (g)
|
||||
if (a.isFunction(g)) {
|
||||
if (!g.call(b)) return !0
|
||||
} else if (v.width() < g) return !0;
|
||||
c.type && (c.preventDefault(), b.isOpen && c.stopPropagation()), e.el = a(c.mfpEl), e.delegate && (e.items = d.find(e.delegate)), b.open(e)
|
||||
}
|
||||
},
|
||||
updateStatus: function(a, d) {
|
||||
if (b.preloader) {
|
||||
c !== a && b.container.removeClass("mfp-s-" + c), d || "loading" !== a || (d = b.st.tLoading);
|
||||
var e = {
|
||||
status: a,
|
||||
text: d
|
||||
};
|
||||
y("UpdateStatus", e), a = e.status, d = e.text, b.preloader.html(d), b.preloader.find("a").on("click", function(a) {
|
||||
a.stopImmediatePropagation()
|
||||
}), b.container.addClass("mfp-s-" + a), c = a
|
||||
}
|
||||
},
|
||||
_checkIfClose: function(c) {
|
||||
if (!a(c).hasClass(s)) {
|
||||
var d = b.st.closeOnContentClick,
|
||||
e = b.st.closeOnBgClick;
|
||||
if (d && e) return !0;
|
||||
if (!b.content || a(c).hasClass("mfp-close") || b.preloader && c === b.preloader[0]) return !0;
|
||||
if (c === b.content[0] || a.contains(b.content[0], c)) {
|
||||
if (d) return !0
|
||||
} else if (e && a.contains(document, c)) return !0;
|
||||
return !1
|
||||
}
|
||||
},
|
||||
_addClassToMFP: function(a) {
|
||||
b.bgOverlay.addClass(a), b.wrap.addClass(a)
|
||||
},
|
||||
_removeClassFromMFP: function(a) {
|
||||
this.bgOverlay.removeClass(a), b.wrap.removeClass(a)
|
||||
},
|
||||
_hasScrollBar: function(a) {
|
||||
return (b.isIE7 ? d.height() : document.body.scrollHeight) > (a || v.height())
|
||||
},
|
||||
_setFocus: function() {
|
||||
(b.st.focus ? b.content.find(b.st.focus).eq(0) : b.wrap).focus()
|
||||
},
|
||||
_onFocusIn: function(c) {
|
||||
return c.target === b.wrap[0] || a.contains(b.wrap[0], c.target) ? void 0 : (b._setFocus(), !1)
|
||||
},
|
||||
_parseMarkup: function(b, c, d) {
|
||||
var e;
|
||||
d.data && (c = a.extend(d.data, c)), y(l, [b, c, d]), a.each(c, function(c, d) {
|
||||
if (void 0 === d || d === !1) return !0;
|
||||
if (e = c.split("_"), e.length > 1) {
|
||||
var f = b.find(p + "-" + e[0]);
|
||||
if (f.length > 0) {
|
||||
var g = e[1];
|
||||
"replaceWith" === g ? f[0] !== d[0] && f.replaceWith(d) : "img" === g ? f.is("img") ? f.attr("src", d) : f.replaceWith(a("<img>").attr("src", d).attr("class", f.attr("class"))) : f.attr(e[1], d)
|
||||
}
|
||||
} else b.find(p + "-" + c).html(d)
|
||||
})
|
||||
},
|
||||
_getScrollbarSize: function() {
|
||||
if (void 0 === b.scrollbarSize) {
|
||||
var a = document.createElement("div");
|
||||
a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), b.scrollbarSize = a.offsetWidth - a.clientWidth, document.body.removeChild(a)
|
||||
}
|
||||
return b.scrollbarSize
|
||||
}
|
||||
}, a.magnificPopup = {
|
||||
instance: null,
|
||||
proto: t.prototype,
|
||||
modules: [],
|
||||
open: function(b, c) {
|
||||
return A(), b = b ? a.extend(!0, {}, b) : {}, b.isObj = !0, b.index = c || 0, this.instance.open(b)
|
||||
},
|
||||
close: function() {
|
||||
return a.magnificPopup.instance && a.magnificPopup.instance.close()
|
||||
},
|
||||
registerModule: function(b, c) {
|
||||
c.options && (a.magnificPopup.defaults[b] = c.options), a.extend(this.proto, c.proto), this.modules.push(b)
|
||||
},
|
||||
defaults: {
|
||||
disableOn: 0,
|
||||
key: null,
|
||||
midClick: !1,
|
||||
mainClass: "",
|
||||
preloader: !0,
|
||||
focus: "",
|
||||
closeOnContentClick: !1,
|
||||
closeOnBgClick: !0,
|
||||
closeBtnInside: !0,
|
||||
showCloseBtn: !0,
|
||||
enableEscapeKey: !0,
|
||||
modal: !1,
|
||||
alignTop: !1,
|
||||
removalDelay: 0,
|
||||
prependTo: null,
|
||||
fixedContentPos: "auto",
|
||||
fixedBgPos: "auto",
|
||||
overflowY: "auto",
|
||||
closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>',
|
||||
tClose: "Close (Esc)",
|
||||
tLoading: "Loading...",
|
||||
autoFocusLast: !0
|
||||
}
|
||||
}, a.fn.magnificPopup = function(c) {
|
||||
A();
|
||||
var d = a(this);
|
||||
if ("string" == typeof c)
|
||||
if ("open" === c) {
|
||||
var e, f = u ? d.data("magnificPopup") : d[0].magnificPopup,
|
||||
g = parseInt(arguments[1], 10) || 0;
|
||||
f.items ? e = f.items[g] : (e = d, f.delegate && (e = e.find(f.delegate)), e = e.eq(g)), b._openClick({
|
||||
mfpEl: e
|
||||
}, d, f)
|
||||
} else b.isOpen && b[c].apply(b, Array.prototype.slice.call(arguments, 1));
|
||||
else c = a.extend(!0, {}, c), u ? d.data("magnificPopup", c) : d[0].magnificPopup = c, b.addGroup(d, c);
|
||||
return d
|
||||
};
|
||||
var C, D, E, F = "inline",
|
||||
G = function() {
|
||||
E && (D.after(E.addClass(C)).detach(), E = null)
|
||||
};
|
||||
a.magnificPopup.registerModule(F, {
|
||||
options: {
|
||||
hiddenClass: "hide",
|
||||
markup: "",
|
||||
tNotFound: "Content not found"
|
||||
},
|
||||
proto: {
|
||||
initInline: function() {
|
||||
b.types.push(F), w(h + "." + F, function() {
|
||||
G()
|
||||
})
|
||||
},
|
||||
getInline: function(c, d) {
|
||||
if (G(), c.src) {
|
||||
var e = b.st.inline,
|
||||
f = a(c.src);
|
||||
if (f.length) {
|
||||
var g = f[0].parentNode;
|
||||
g && g.tagName && (D || (C = e.hiddenClass, D = x(C), C = "mfp-" + C), E = f.after(D).detach().removeClass(C)), b.updateStatus("ready")
|
||||
} else b.updateStatus("error", e.tNotFound), f = a("<div>");
|
||||
return c.inlineElement = f, f
|
||||
}
|
||||
return b.updateStatus("ready"), b._parseMarkup(d, {}, c), d
|
||||
}
|
||||
}
|
||||
});
|
||||
var H, I = "ajax",
|
||||
J = function() {
|
||||
H && a(document.body).removeClass(H)
|
||||
},
|
||||
K = function() {
|
||||
J(), b.req && b.req.abort()
|
||||
};
|
||||
a.magnificPopup.registerModule(I, {
|
||||
options: {
|
||||
settings: null,
|
||||
cursor: "mfp-ajax-cur",
|
||||
tError: '<a href="%url%">The content</a> could not be loaded.'
|
||||
},
|
||||
proto: {
|
||||
initAjax: function() {
|
||||
b.types.push(I), H = b.st.ajax.cursor, w(h + "." + I, K), w("BeforeChange." + I, K)
|
||||
},
|
||||
getAjax: function(c) {
|
||||
H && a(document.body).addClass(H), b.updateStatus("loading");
|
||||
var d = a.extend({
|
||||
url: c.src,
|
||||
success: function(d, e, f) {
|
||||
var g = {
|
||||
data: d,
|
||||
xhr: f
|
||||
};
|
||||
y("ParseAjax", g), b.appendContent(a(g.data), I), c.finished = !0, J(), b._setFocus(), setTimeout(function() {
|
||||
b.wrap.addClass(q)
|
||||
}, 16), b.updateStatus("ready"), y("AjaxContentAdded")
|
||||
},
|
||||
error: function() {
|
||||
J(), c.finished = c.loadError = !0, b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src))
|
||||
}
|
||||
}, b.st.ajax.settings);
|
||||
return b.req = a.ajax(d), ""
|
||||
}
|
||||
}
|
||||
});
|
||||
var L, M = function(c) {
|
||||
if (c.data && void 0 !== c.data.title) return c.data.title;
|
||||
var d = b.st.image.titleSrc;
|
||||
if (d) {
|
||||
if (a.isFunction(d)) return d.call(b, c);
|
||||
if (c.el) return c.el.attr(d) || ""
|
||||
}
|
||||
return ""
|
||||
};
|
||||
a.magnificPopup.registerModule("image", {
|
||||
options: {
|
||||
markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',
|
||||
cursor: "mfp-zoom-out-cur",
|
||||
titleSrc: "title",
|
||||
verticalFit: !0,
|
||||
tError: '<a href="%url%">The image</a> could not be loaded.'
|
||||
},
|
||||
proto: {
|
||||
initImage: function() {
|
||||
var c = b.st.image,
|
||||
d = ".image";
|
||||
b.types.push("image"), w(m + d, function() {
|
||||
"image" === b.currItem.type && c.cursor && a(document.body).addClass(c.cursor)
|
||||
}), w(h + d, function() {
|
||||
c.cursor && a(document.body).removeClass(c.cursor), v.off("resize" + p)
|
||||
}), w("Resize" + d, b.resizeImage), b.isLowIE && w("AfterChange", b.resizeImage)
|
||||
},
|
||||
resizeImage: function() {
|
||||
var a = b.currItem;
|
||||
if (a && a.img && b.st.image.verticalFit) {
|
||||
var c = 0;
|
||||
b.isLowIE && (c = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", b.wH - c)
|
||||
}
|
||||
},
|
||||
_onImageHasSize: function(a) {
|
||||
a.img && (a.hasSize = !0, L && clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden && (b.content && b.content.removeClass("mfp-loading"), a.imgHidden = !1))
|
||||
},
|
||||
findImageSize: function(a) {
|
||||
var c = 0,
|
||||
d = a.img[0],
|
||||
e = function(f) {
|
||||
L && clearInterval(L), L = setInterval(function() {
|
||||
return d.naturalWidth > 0 ? void b._onImageHasSize(a) : (c > 200 && clearInterval(L), c++, void(3 === c ? e(10) : 40 === c ? e(50) : 100 === c && e(500)))
|
||||
}, f)
|
||||
};
|
||||
e(1)
|
||||
},
|
||||
getImage: function(c, d) {
|
||||
var e = 0,
|
||||
f = function() {
|
||||
c && (c.img[0].complete ? (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("ready")), c.hasSize = !0, c.loaded = !0, y("ImageLoadComplete")) : (e++, 200 > e ? setTimeout(f, 100) : g()))
|
||||
},
|
||||
g = function() {
|
||||
c && (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("error", h.tError.replace("%url%", c.src))), c.hasSize = !0, c.loaded = !0, c.loadError = !0)
|
||||
},
|
||||
h = b.st.image,
|
||||
i = d.find(".mfp-img");
|
||||
if (i.length) {
|
||||
var j = document.createElement("img");
|
||||
j.className = "mfp-img", c.el && c.el.find("img").length && (j.alt = c.el.find("img").attr("alt")), c.img = a(j).on("load.mfploader", f).on("error.mfploader", g), j.src = c.src, i.is("img") && (c.img = c.img.clone()), j = c.img[0], j.naturalWidth > 0 ? c.hasSize = !0 : j.width || (c.hasSize = !1)
|
||||
}
|
||||
return b._parseMarkup(d, {
|
||||
title: M(c),
|
||||
img_replaceWith: c.img
|
||||
}, c), b.resizeImage(), c.hasSize ? (L && clearInterval(L), c.loadError ? (d.addClass("mfp-loading"), b.updateStatus("error", h.tError.replace("%url%", c.src))) : (d.removeClass("mfp-loading"), b.updateStatus("ready")), d) : (b.updateStatus("loading"), c.loading = !0, c.hasSize || (c.imgHidden = !0, d.addClass("mfp-loading"), b.findImageSize(c)), d)
|
||||
}
|
||||
}
|
||||
});
|
||||
var N, O = function() {
|
||||
return void 0 === N && (N = void 0 !== document.createElement("p").style.MozTransform), N
|
||||
};
|
||||
a.magnificPopup.registerModule("zoom", {
|
||||
options: {
|
||||
enabled: !1,
|
||||
easing: "ease-in-out",
|
||||
duration: 300,
|
||||
opener: function(a) {
|
||||
return a.is("img") ? a : a.find("img")
|
||||
}
|
||||
},
|
||||
proto: {
|
||||
initZoom: function() {
|
||||
var a, c = b.st.zoom,
|
||||
d = ".zoom";
|
||||
if (c.enabled && b.supportsTransition) {
|
||||
var e, f, g = c.duration,
|
||||
j = function(a) {
|
||||
var b = a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),
|
||||
d = "all " + c.duration / 1e3 + "s " + c.easing,
|
||||
e = {
|
||||
position: "fixed",
|
||||
zIndex: 9999,
|
||||
left: 0,
|
||||
top: 0,
|
||||
"-webkit-backface-visibility": "hidden"
|
||||
},
|
||||
f = "transition";
|
||||
return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, b.css(e), b
|
||||
},
|
||||
k = function() {
|
||||
b.content.css("visibility", "visible")
|
||||
};
|
||||
w("BuildControls" + d, function() {
|
||||
if (b._allowZoom()) {
|
||||
if (clearTimeout(e), b.content.css("visibility", "hidden"), a = b._getItemToZoom(), !a) return void k();
|
||||
f = j(a), f.css(b._getOffset()), b.wrap.append(f), e = setTimeout(function() {
|
||||
f.css(b._getOffset(!0)), e = setTimeout(function() {
|
||||
k(), setTimeout(function() {
|
||||
f.remove(), a = f = null, y("ZoomAnimationEnded")
|
||||
}, 16)
|
||||
}, g)
|
||||
}, 16)
|
||||
}
|
||||
}), w(i + d, function() {
|
||||
if (b._allowZoom()) {
|
||||
if (clearTimeout(e), b.st.removalDelay = g, !a) {
|
||||
if (a = b._getItemToZoom(), !a) return;
|
||||
f = j(a)
|
||||
}
|
||||
f.css(b._getOffset(!0)), b.wrap.append(f), b.content.css("visibility", "hidden"), setTimeout(function() {
|
||||
f.css(b._getOffset())
|
||||
}, 16)
|
||||
}
|
||||
}), w(h + d, function() {
|
||||
b._allowZoom() && (k(), f && f.remove(), a = null)
|
||||
})
|
||||
}
|
||||
},
|
||||
_allowZoom: function() {
|
||||
return "image" === b.currItem.type
|
||||
},
|
||||
_getItemToZoom: function() {
|
||||
return b.currItem.hasSize ? b.currItem.img : !1
|
||||
},
|
||||
_getOffset: function(c) {
|
||||
var d;
|
||||
d = c ? b.currItem.img : b.st.zoom.opener(b.currItem.el || b.currItem);
|
||||
var e = d.offset(),
|
||||
f = parseInt(d.css("padding-top"), 10),
|
||||
g = parseInt(d.css("padding-bottom"), 10);
|
||||
e.top -= a(window).scrollTop() - f;
|
||||
var h = {
|
||||
width: d.width(),
|
||||
height: (u ? d.innerHeight() : d[0].offsetHeight) - g - f
|
||||
};
|
||||
return O() ? h["-moz-transform"] = h.transform = "translate(" + e.left + "px," + e.top + "px)" : (h.left = e.left, h.top = e.top), h
|
||||
}
|
||||
}
|
||||
});
|
||||
var P = "iframe",
|
||||
Q = "//about:blank",
|
||||
R = function(a) {
|
||||
if (b.currTemplate[P]) {
|
||||
var c = b.currTemplate[P].find("iframe");
|
||||
c.length && (a || (c[0].src = Q), b.isIE8 && c.css("display", a ? "block" : "none"))
|
||||
}
|
||||
};
|
||||
a.magnificPopup.registerModule(P, {
|
||||
options: {
|
||||
markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',
|
||||
srcAction: "iframe_src",
|
||||
patterns: {
|
||||
youtube: {
|
||||
index: "youtube.com",
|
||||
id: "v=",
|
||||
src: "//www.youtube.com/embed/%id%?autoplay=1"
|
||||
},
|
||||
vimeo: {
|
||||
index: "vimeo.com/",
|
||||
id: "/",
|
||||
src: "//player.vimeo.com/video/%id%?autoplay=1"
|
||||
},
|
||||
gmaps: {
|
||||
index: "//maps.google.",
|
||||
src: "%id%&output=embed"
|
||||
}
|
||||
}
|
||||
},
|
||||
proto: {
|
||||
initIframe: function() {
|
||||
b.types.push(P), w("BeforeChange", function(a, b, c) {
|
||||
b !== c && (b === P ? R() : c === P && R(!0))
|
||||
}), w(h + "." + P, function() {
|
||||
R()
|
||||
})
|
||||
},
|
||||
getIframe: function(c, d) {
|
||||
var e = c.src,
|
||||
f = b.st.iframe;
|
||||
a.each(f.patterns, function() {
|
||||
return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr(e.lastIndexOf(this.id) + this.id.length, e.length) : this.id.call(this, e)), e = this.src.replace("%id%", e), !1) : void 0
|
||||
});
|
||||
var g = {};
|
||||
return f.srcAction && (g[f.srcAction] = e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d
|
||||
}
|
||||
}
|
||||
});
|
||||
var S = function(a) {
|
||||
var c = b.items.length;
|
||||
return a > c - 1 ? a - c : 0 > a ? c + a : a
|
||||
},
|
||||
T = function(a, b, c) {
|
||||
return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c)
|
||||
};
|
||||
a.magnificPopup.registerModule("gallery", {
|
||||
options: {
|
||||
enabled: !1,
|
||||
arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',
|
||||
preload: [0, 2],
|
||||
navigateByImgClick: !0,
|
||||
arrows: !0,
|
||||
tPrev: "Previous (Left arrow key)",
|
||||
tNext: "Next (Right arrow key)",
|
||||
tCounter: "%curr% of %total%"
|
||||
},
|
||||
proto: {
|
||||
initGallery: function() {
|
||||
var c = b.st.gallery,
|
||||
e = ".mfp-gallery";
|
||||
return b.direction = !0, c && c.enabled ? (f += " mfp-gallery", w(m + e, function() {
|
||||
c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function() {
|
||||
return b.items.length > 1 ? (b.next(), !1) : void 0
|
||||
}), d.on("keydown" + e, function(a) {
|
||||
37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next()
|
||||
})
|
||||
}), w("UpdateStatus" + e, function(a, c) {
|
||||
c.text && (c.text = T(c.text, b.currItem.index, b.items.length))
|
||||
}), w(l + e, function(a, d, e, f) {
|
||||
var g = b.items.length;
|
||||
e.counter = g > 1 ? T(c.tCounter, f.index, g) : ""
|
||||
}), w("BuildControls" + e, function() {
|
||||
if (b.items.length > 1 && c.arrows && !b.arrowLeft) {
|
||||
var d = c.arrowMarkup,
|
||||
e = b.arrowLeft = a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(s),
|
||||
f = b.arrowRight = a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(s);
|
||||
e.click(function() {
|
||||
b.prev()
|
||||
}), f.click(function() {
|
||||
b.next()
|
||||
}), b.container.append(e.add(f))
|
||||
}
|
||||
}), w(n + e, function() {
|
||||
b._preloadTimeout && clearTimeout(b._preloadTimeout), b._preloadTimeout = setTimeout(function() {
|
||||
b.preloadNearbyImages(), b._preloadTimeout = null
|
||||
}, 16)
|
||||
}), void w(h + e, function() {
|
||||
d.off(e), b.wrap.off("click" + e), b.arrowRight = b.arrowLeft = null
|
||||
})) : !1
|
||||
},
|
||||
next: function() {
|
||||
b.direction = !0, b.index = S(b.index + 1), b.updateItemHTML()
|
||||
},
|
||||
prev: function() {
|
||||
b.direction = !1, b.index = S(b.index - 1), b.updateItemHTML()
|
||||
},
|
||||
goTo: function(a) {
|
||||
b.direction = a >= b.index, b.index = a, b.updateItemHTML()
|
||||
},
|
||||
preloadNearbyImages: function() {
|
||||
var a, c = b.st.gallery.preload,
|
||||
d = Math.min(c[0], b.items.length),
|
||||
e = Math.min(c[1], b.items.length);
|
||||
for (a = 1; a <= (b.direction ? e : d); a++) b._preloadItem(b.index + a);
|
||||
for (a = 1; a <= (b.direction ? d : e); a++) b._preloadItem(b.index - a)
|
||||
},
|
||||
_preloadItem: function(c) {
|
||||
if (c = S(c), !b.items[c].preloaded) {
|
||||
var d = b.items[c];
|
||||
d.parsed || (d = b.parseEl(c)), y("LazyLoad", d), "image" === d.type && (d.img = a('<img class="mfp-img" />').on("load.mfploader", function() {
|
||||
d.hasSize = !0
|
||||
}).on("error.mfploader", function() {
|
||||
d.hasSize = !0, d.loadError = !0, y("LazyLoadError", d)
|
||||
}).attr("src", d.src)), d.preloaded = !0
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
var U = "retina";
|
||||
a.magnificPopup.registerModule(U, {
|
||||
options: {
|
||||
replaceSrc: function(a) {
|
||||
return a.src.replace(/\.\w+$/, function(a) {
|
||||
return "@2x" + a
|
||||
})
|
||||
},
|
||||
ratio: 1
|
||||
},
|
||||
proto: {
|
||||
initRetina: function() {
|
||||
if (window.devicePixelRatio > 1) {
|
||||
var a = b.st.retina,
|
||||
c = a.ratio;
|
||||
c = isNaN(c) ? c() : c, c > 1 && (w("ImageHasSize." + U, function(a, b) {
|
||||
b.img.css({
|
||||
"max-width": b.img[0].naturalWidth / c,
|
||||
width: "100%"
|
||||
})
|
||||
}), w("ElementParse." + U, function(b, d) {
|
||||
d.src = a.replaceSrc(d, c)
|
||||
}))
|
||||
}
|
||||
}
|
||||
}
|
||||
}), A()
|
||||
});
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(c){function e(){}function d(e,t){m.ev.on(x+e+I,t)}function p(e,t,n,o){var i=document.createElement("div");return i.className="mfp-"+e,n&&(i.innerHTML=n),o?t&&t.appendChild(i):(i=c(i),t&&i.appendTo(t)),i}function u(e,t){m.ev.triggerHandler(x+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e])&&m.st.callbacks[e].apply(m,Array.isArray(t)?t:[t])}function f(e){return e===A&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose)),A=e),m.currTemplate.closeBtn}function r(){c.magnificPopup.instance||((m=new e).init(),c.magnificPopup.instance=m)}function a(){y&&(v.after(y.addClass(l)).detach(),y=null)}function i(){n&&c(document.body).removeClass(n)}function t(){i(),m.req&&m.req.abort()}var m,o,g,s,h,A,l,v,y,n,w="Close",F="BeforeClose",C="MarkupParse",b="Open",j="Change",x="mfp",I="."+x,T="mfp-ready",N="mfp-removing",k="mfp-prevent-close",P=!!window.jQuery,_=c(window),S=(c.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=c(document),m.popupsCache={}},open:function(e){if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;for(var t,n=e.items,o=0;o<n.length;o++)if((t=(t=n[o]).parsed?t.el[0]:t)===e.el[0]){m.index=o;break}}else m.items=Array.isArray(e.items)?e.items:[e.items],m.index=e.index||0;if(!m.isOpen){m.types=[],h="",e.mainEl&&e.mainEl.length?m.ev=e.mainEl.eq(0):m.ev=g,e.key?(m.popupsCache[e.key]||(m.popupsCache[e.key]={}),m.currTemplate=m.popupsCache[e.key]):m.currTemplate={},m.st=c.extend(!0,{},c.magnificPopup.defaults,e),m.fixedContentPos="auto"===m.st.fixedContentPos?!m.probablyMobile:m.st.fixedContentPos,m.st.modal&&(m.st.closeOnContentClick=!1,m.st.closeOnBgClick=!1,m.st.showCloseBtn=!1,m.st.enableEscapeKey=!1),m.bgOverlay||(m.bgOverlay=p("bg").on("click"+I,function(){m.close()}),m.wrap=p("wrap").attr("tabindex",-1).on("click"+I,function(e){m._checkIfClose(e.target)&&m.close()}),m.container=p("container",m.wrap)),m.contentContainer=p("content"),m.st.preloader&&(m.preloader=p("preloader",m.container,m.st.tLoading));var i=c.magnificPopup.modules;for(o=0;o<i.length;o++){var r=(r=i[o]).charAt(0).toUpperCase()+r.slice(1);m["init"+r].call(m)}u("BeforeOpen"),m.st.showCloseBtn&&(m.st.closeBtnInside?(d(C,function(e,t,n,o){n.close_replaceWith=f(o.type)}),h+=" mfp-close-btn-in"):m.wrap.append(f())),m.st.alignTop&&(h+=" mfp-align-top"),m.fixedContentPos?m.wrap.css({overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY}):m.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==m.st.fixedBgPos&&("auto"!==m.st.fixedBgPos||m.fixedContentPos)||m.bgOverlay.css({height:g.height(),position:"absolute"}),m.st.enableEscapeKey&&g.on("keyup"+I,function(e){27===e.keyCode&&m.close()}),_.on("resize"+I,function(){m.updateSize()}),m.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&m.wrap.addClass(h);var a=m.wH=_.height(),s={},l=(m.fixedContentPos&&m._hasScrollBar(a)&&(l=m._getScrollbarSize())&&(s.marginRight=l),m.fixedContentPos&&(m.isIE7?c("body, html").css("overflow","hidden"):s.overflow="hidden"),m.st.mainClass);return m.isIE7&&(l+=" mfp-ie7"),l&&m._addClassToMFP(l),m.updateItemHTML(),u("BuildControls"),c("html").css(s),m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||c(document.body)),m._lastFocusedEl=document.activeElement,setTimeout(function(){m.content?(m._addClassToMFP(T),m._setFocus()):m.bgOverlay.addClass(T),g.on("focusin"+I,m._onFocusIn)},16),m.isOpen=!0,m.updateSize(a),u(b),e}m.updateItemHTML()},close:function(){m.isOpen&&(u(F),m.isOpen=!1,m.st.removalDelay&&!m.isLowIE&&m.supportsTransition?(m._addClassToMFP(N),setTimeout(function(){m._close()},m.st.removalDelay)):m._close())},_close:function(){u(w);var e=N+" "+T+" ";m.bgOverlay.detach(),m.wrap.detach(),m.container.empty(),m.st.mainClass&&(e+=m.st.mainClass+" "),m._removeClassFromMFP(e),m.fixedContentPos&&(e={marginRight:""},m.isIE7?c("body, html").css("overflow",""):e.overflow="",c("html").css(e)),g.off("keyup.mfp focusin"+I),m.ev.off(I),m.wrap.attr("class","mfp-wrap").removeAttr("style"),m.bgOverlay.attr("class","mfp-bg"),m.container.attr("class","mfp-container"),!m.st.showCloseBtn||m.st.closeBtnInside&&!0!==m.currTemplate[m.currItem.type]||m.currTemplate.closeBtn&&m.currTemplate.closeBtn.detach(),m.st.autoFocusLast&&m._lastFocusedEl&&c(m._lastFocusedEl).trigger("focus"),m.currItem=null,m.content=null,m.currTemplatLine truncated
|
||||
@@ -1,627 +1,9 @@
|
||||
/* -----------------------------------------------
|
||||
/* Author : Vincent Garreau - vincentgarreau.com
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* Demo / Generator : vincentgarreau.com/particles.js
|
||||
/* GitHub : github.com/VincentGarreau/particles.js
|
||||
/* How to use? : Check the GitHub README
|
||||
/* v2.0.0
|
||||
/* ----------------------------------------------- */
|
||||
function hexToRgb(e) {
|
||||
var a = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
||||
e = e.replace(a, function(e, a, t, i) {
|
||||
return a + a + t + t + i + i
|
||||
});
|
||||
var t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
|
||||
return t ? {
|
||||
r: parseInt(t[1], 16),
|
||||
g: parseInt(t[2], 16),
|
||||
b: parseInt(t[3], 16)
|
||||
} : null
|
||||
}
|
||||
|
||||
function clamp(e, a, t) {
|
||||
return Math.min(Math.max(e, a), t)
|
||||
}
|
||||
|
||||
function isInArray(e, a) {
|
||||
return a.indexOf(e) > -1
|
||||
}
|
||||
var pJS = function(e, a) {
|
||||
var t = document.querySelector("#" + e + " > .particles-js-canvas-el");
|
||||
this.pJS = {
|
||||
canvas: {
|
||||
el: t,
|
||||
w: t.offsetWidth,
|
||||
h: t.offsetHeight
|
||||
},
|
||||
particles: {
|
||||
number: {
|
||||
value: 400,
|
||||
density: {
|
||||
enable: !0,
|
||||
value_area: 800
|
||||
}
|
||||
},
|
||||
color: {
|
||||
value: "#fff"
|
||||
},
|
||||
shape: {
|
||||
type: "circle",
|
||||
stroke: {
|
||||
width: 0,
|
||||
color: "#ff0000"
|
||||
},
|
||||
polygon: {
|
||||
nb_sides: 5
|
||||
},
|
||||
image: {
|
||||
src: "",
|
||||
width: 100,
|
||||
height: 100
|
||||
}
|
||||
},
|
||||
opacity: {
|
||||
value: 1,
|
||||
random: !1,
|
||||
anim: {
|
||||
enable: !1,
|
||||
speed: 2,
|
||||
opacity_min: 0,
|
||||
sync: !1
|
||||
}
|
||||
},
|
||||
size: {
|
||||
value: 20,
|
||||
random: !1,
|
||||
anim: {
|
||||
enable: !1,
|
||||
speed: 20,
|
||||
size_min: 0,
|
||||
sync: !1
|
||||
}
|
||||
},
|
||||
line_linked: {
|
||||
enable: !0,
|
||||
distance: 100,
|
||||
color: "#fff",
|
||||
opacity: 1,
|
||||
width: 1
|
||||
},
|
||||
move: {
|
||||
enable: !0,
|
||||
speed: 2,
|
||||
direction: "none",
|
||||
random: !1,
|
||||
straight: !1,
|
||||
out_mode: "out",
|
||||
bounce: !1,
|
||||
attract: {
|
||||
enable: !1,
|
||||
rotateX: 3e3,
|
||||
rotateY: 3e3
|
||||
}
|
||||
},
|
||||
array: []
|
||||
},
|
||||
interactivity: {
|
||||
detect_on: "canvas",
|
||||
events: {
|
||||
onhover: {
|
||||
enable: !0,
|
||||
mode: "grab"
|
||||
},
|
||||
onclick: {
|
||||
enable: !0,
|
||||
mode: "push"
|
||||
},
|
||||
resize: !0
|
||||
},
|
||||
modes: {
|
||||
grab: {
|
||||
distance: 100,
|
||||
line_linked: {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
bubble: {
|
||||
distance: 200,
|
||||
size: 80,
|
||||
duration: .4
|
||||
},
|
||||
repulse: {
|
||||
distance: 200,
|
||||
duration: .4
|
||||
},
|
||||
push: {
|
||||
particles_nb: 4
|
||||
},
|
||||
remove: {
|
||||
particles_nb: 2
|
||||
}
|
||||
},
|
||||
mouse: {}
|
||||
},
|
||||
retina_detect: !1,
|
||||
fn: {
|
||||
interact: {},
|
||||
modes: {},
|
||||
vendors: {}
|
||||
},
|
||||
tmp: {}
|
||||
};
|
||||
var i = this.pJS;
|
||||
a && Object.deepExtend(i, a), i.tmp.obj = {
|
||||
size_value: i.particles.size.value,
|
||||
size_anim_speed: i.particles.size.anim.speed,
|
||||
move_speed: i.particles.move.speed,
|
||||
line_linked_distance: i.particles.line_linked.distance,
|
||||
line_linked_width: i.particles.line_linked.width,
|
||||
mode_grab_distance: i.interactivity.modes.grab.distance,
|
||||
mode_bubble_distance: i.interactivity.modes.bubble.distance,
|
||||
mode_bubble_size: i.interactivity.modes.bubble.size,
|
||||
mode_repulse_distance: i.interactivity.modes.repulse.distance
|
||||
}, i.fn.retinaInit = function() {
|
||||
i.retina_detect && window.devicePixelRatio > 1 ? (i.canvas.pxratio = window.devicePixelRatio, i.tmp.retina = !0) : (i.canvas.pxratio = 1, i.tmp.retina = !1), i.canvas.w = i.canvas.el.offsetWidth * i.canvas.pxratio, i.canvas.h = i.canvas.el.offsetHeight * i.canvas.pxratio, i.particles.size.value = i.tmp.obj.size_value * i.canvas.pxratio, i.particles.size.anim.speed = i.tmp.obj.size_anim_speed * i.canvas.pxratio, i.particles.move.speed = i.tmp.obj.move_speed * i.canvas.pxratio, i.particles.line_linked.distance = i.tmp.obj.line_linked_distance * i.canvas.pxratio, i.interactivity.modes.grab.distance = i.tmp.obj.mode_grab_distance * i.canvas.pxratio, i.interactivity.modes.bubble.distance = i.tmp.obj.mode_bubble_distance * i.canvas.pxratio, i.particles.line_linked.width = i.tmp.obj.line_linked_width * i.canvas.pxratio, i.interactivity.modes.bubble.size = i.tmp.obj.mode_bubble_size * i.canvas.pxratio, i.interactivity.modes.repulse.distance = i.tmp.obj.mode_repulse_distance * i.canvas.pxratio
|
||||
}, i.fn.canvasInit = function() {
|
||||
i.canvas.ctx = i.canvas.el.getContext("2d")
|
||||
}, i.fn.canvasSize = function() {
|
||||
i.canvas.el.width = i.canvas.w, i.canvas.el.height = i.canvas.h, i && i.interactivity.events.resize && window.addEventListener("resize", function() {
|
||||
i.canvas.w = i.canvas.el.offsetWidth, i.canvas.h = i.canvas.el.offsetHeight, i.tmp.retina && (i.canvas.w *= i.canvas.pxratio, i.canvas.h *= i.canvas.pxratio), i.canvas.el.width = i.canvas.w, i.canvas.el.height = i.canvas.h, i.particles.move.enable || (i.fn.particlesEmpty(), i.fn.particlesCreate(), i.fn.particlesDraw(), i.fn.vendors.densityAutoParticles()), i.fn.vendors.densityAutoParticles()
|
||||
})
|
||||
}, i.fn.canvasPaint = function() {
|
||||
i.canvas.ctx.fillRect(0, 0, i.canvas.w, i.canvas.h)
|
||||
}, i.fn.canvasClear = function() {
|
||||
i.canvas.ctx.clearRect(0, 0, i.canvas.w, i.canvas.h)
|
||||
}, i.fn.particle = function(e, a, t) {
|
||||
if (this.radius = (i.particles.size.random ? Math.random() : 1) * i.particles.size.value, i.particles.size.anim.enable && (this.size_status = !1, this.vs = i.particles.size.anim.speed / 100, i.particles.size.anim.sync || (this.vs = this.vs * Math.random())), this.x = t ? t.x : Math.random() * i.canvas.w, this.y = t ? t.y : Math.random() * i.canvas.h, this.x > i.canvas.w - 2 * this.radius ? this.x = this.x - this.radius : this.x < 2 * this.radius && (this.x = this.x + this.radius), this.y > i.canvas.h - 2 * this.radius ? this.y = this.y - this.radius : this.y < 2 * this.radius && (this.y = this.y + this.radius), i.particles.move.bounce && i.fn.vendors.checkOverlap(this, t), this.color = {}, "object" == typeof e.value)
|
||||
if (e.value instanceof Array) {
|
||||
var s = e.value[Math.floor(Math.random() * i.particles.color.value.length)];
|
||||
this.color.rgb = hexToRgb(s)
|
||||
} else void 0 != e.value.r && void 0 != e.value.g && void 0 != e.value.b && (this.color.rgb = {
|
||||
r: e.value.r,
|
||||
g: e.value.g,
|
||||
b: e.value.b
|
||||
}), void 0 != e.value.h && void 0 != e.value.s && void 0 != e.value.l && (this.color.hsl = {
|
||||
h: e.value.h,
|
||||
s: e.value.s,
|
||||
l: e.value.l
|
||||
});
|
||||
else "random" == e.value ? this.color.rgb = {
|
||||
r: Math.floor(256 * Math.random()) + 0,
|
||||
g: Math.floor(256 * Math.random()) + 0,
|
||||
b: Math.floor(256 * Math.random()) + 0
|
||||
} : "string" == typeof e.value && (this.color = e, this.color.rgb = hexToRgb(this.color.value));
|
||||
this.opacity = (i.particles.opacity.random ? Math.random() : 1) * i.particles.opacity.value, i.particles.opacity.anim.enable && (this.opacity_status = !1, this.vo = i.particles.opacity.anim.speed / 100, i.particles.opacity.anim.sync || (this.vo = this.vo * Math.random()));
|
||||
var n = {};
|
||||
switch (i.particles.move.direction) {
|
||||
case "top":
|
||||
n = {
|
||||
x: 0,
|
||||
y: -1
|
||||
};
|
||||
break;
|
||||
case "top-right":
|
||||
n = {
|
||||
x: .5,
|
||||
y: -.5
|
||||
};
|
||||
break;
|
||||
case "right":
|
||||
n = {
|
||||
x: 1,
|
||||
y: -0
|
||||
};
|
||||
break;
|
||||
case "bottom-right":
|
||||
n = {
|
||||
x: .5,
|
||||
y: .5
|
||||
};
|
||||
break;
|
||||
case "bottom":
|
||||
n = {
|
||||
x: 0,
|
||||
y: 1
|
||||
};
|
||||
break;
|
||||
case "bottom-left":
|
||||
n = {
|
||||
x: -.5,
|
||||
y: 1
|
||||
};
|
||||
break;
|
||||
case "left":
|
||||
n = {
|
||||
x: -1,
|
||||
y: 0
|
||||
};
|
||||
break;
|
||||
case "top-left":
|
||||
n = {
|
||||
x: -.5,
|
||||
y: -.5
|
||||
};
|
||||
break;
|
||||
default:
|
||||
n = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}
|
||||
}
|
||||
i.particles.move.straight ? (this.vx = n.x, this.vy = n.y, i.particles.move.random && (this.vx = this.vx * Math.random(), this.vy = this.vy * Math.random())) : (this.vx = n.x + Math.random() - .5, this.vy = n.y + Math.random() - .5), this.vx_i = this.vx, this.vy_i = this.vy;
|
||||
var r = i.particles.shape.type;
|
||||
if ("object" == typeof r) {
|
||||
if (r instanceof Array) {
|
||||
var c = r[Math.floor(Math.random() * r.length)];
|
||||
this.shape = c
|
||||
}
|
||||
} else this.shape = r;
|
||||
if ("image" == this.shape) {
|
||||
var o = i.particles.shape;
|
||||
this.img = {
|
||||
src: o.image.src,
|
||||
ratio: o.image.width / o.image.height
|
||||
}, this.img.ratio || (this.img.ratio = 1), "svg" == i.tmp.img_type && void 0 != i.tmp.source_svg && (i.fn.vendors.createSvgImg(this), i.tmp.pushing && (this.img.loaded = !1))
|
||||
}
|
||||
}, i.fn.particle.prototype.draw = function() {
|
||||
function e() {
|
||||
i.canvas.ctx.drawImage(r, a.x - t, a.y - t, 2 * t, 2 * t / a.img.ratio)
|
||||
}
|
||||
var a = this;
|
||||
if (void 0 != a.radius_bubble) var t = a.radius_bubble;
|
||||
else var t = a.radius;
|
||||
if (void 0 != a.opacity_bubble) var s = a.opacity_bubble;
|
||||
else var s = a.opacity;
|
||||
if (a.color.rgb) var n = "rgba(" + a.color.rgb.r + "," + a.color.rgb.g + "," + a.color.rgb.b + "," + s + ")";
|
||||
else var n = "hsla(" + a.color.hsl.h + "," + a.color.hsl.s + "%," + a.color.hsl.l + "%," + s + ")";
|
||||
switch (i.canvas.ctx.fillStyle = n, i.canvas.ctx.beginPath(), a.shape) {
|
||||
case "circle":
|
||||
i.canvas.ctx.arc(a.x, a.y, t, 0, 2 * Math.PI, !1);
|
||||
break;
|
||||
case "edge":
|
||||
i.canvas.ctx.rect(a.x - t, a.y - t, 2 * t, 2 * t);
|
||||
break;
|
||||
case "triangle":
|
||||
i.fn.vendors.drawShape(i.canvas.ctx, a.x - t, a.y + t / 1.66, 2 * t, 3, 2);
|
||||
break;
|
||||
case "polygon":
|
||||
i.fn.vendors.drawShape(i.canvas.ctx, a.x - t / (i.particles.shape.polygon.nb_sides / 3.5), a.y - t / .76, 2.66 * t / (i.particles.shape.polygon.nb_sides / 3), i.particles.shape.polygon.nb_sides, 1);
|
||||
break;
|
||||
case "star":
|
||||
i.fn.vendors.drawShape(i.canvas.ctx, a.x - 2 * t / (i.particles.shape.polygon.nb_sides / 4), a.y - t / 1.52, 2 * t * 2.66 / (i.particles.shape.polygon.nb_sides / 3), i.particles.shape.polygon.nb_sides, 2);
|
||||
break;
|
||||
case "image":
|
||||
if ("svg" == i.tmp.img_type) var r = a.img.obj;
|
||||
else var r = i.tmp.img_obj;
|
||||
r && e()
|
||||
}
|
||||
i.canvas.ctx.closePath(), i.particles.shape.stroke.width > 0 && (i.canvas.ctx.strokeStyle = i.particles.shape.stroke.color, i.canvas.ctx.lineWidth = i.particles.shape.stroke.width, i.canvas.ctx.stroke()), i.canvas.ctx.fill()
|
||||
}, i.fn.particlesCreate = function() {
|
||||
for (var e = 0; e < i.particles.number.value; e++) i.particles.array.push(new i.fn.particle(i.particles.color, i.particles.opacity.value))
|
||||
}, i.fn.particlesUpdate = function() {
|
||||
for (var e = 0; e < i.particles.array.length; e++) {
|
||||
var a = i.particles.array[e];
|
||||
if (i.particles.move.enable) {
|
||||
var t = i.particles.move.speed / 2;
|
||||
a.x += a.vx * t, a.y += a.vy * t
|
||||
}
|
||||
if (i.particles.opacity.anim.enable && (1 == a.opacity_status ? (a.opacity >= i.particles.opacity.value && (a.opacity_status = !1), a.opacity += a.vo) : (a.opacity <= i.particles.opacity.anim.opacity_min && (a.opacity_status = !0), a.opacity -= a.vo), a.opacity < 0 && (a.opacity = 0)), i.particles.size.anim.enable && (1 == a.size_status ? (a.radius >= i.particles.size.value && (a.size_status = !1), a.radius += a.vs) : (a.radius <= i.particles.size.anim.size_min && (a.size_status = !0), a.radius -= a.vs), a.radius < 0 && (a.radius = 0)), "bounce" == i.particles.move.out_mode) var s = {
|
||||
x_left: a.radius,
|
||||
x_right: i.canvas.w,
|
||||
y_top: a.radius,
|
||||
y_bottom: i.canvas.h
|
||||
};
|
||||
else var s = {
|
||||
x_left: -a.radius,
|
||||
x_right: i.canvas.w + a.radius,
|
||||
y_top: -a.radius,
|
||||
y_bottom: i.canvas.h + a.radius
|
||||
};
|
||||
switch (a.x - a.radius > i.canvas.w ? (a.x = s.x_left, a.y = Math.random() * i.canvas.h) : a.x + a.radius < 0 && (a.x = s.x_right, a.y = Math.random() * i.canvas.h), a.y - a.radius > i.canvas.h ? (a.y = s.y_top, a.x = Math.random() * i.canvas.w) : a.y + a.radius < 0 && (a.y = s.y_bottom, a.x = Math.random() * i.canvas.w), i.particles.move.out_mode) {
|
||||
case "bounce":
|
||||
a.x + a.radius > i.canvas.w ? a.vx = -a.vx : a.x - a.radius < 0 && (a.vx = -a.vx), a.y + a.radius > i.canvas.h ? a.vy = -a.vy : a.y - a.radius < 0 && (a.vy = -a.vy)
|
||||
}
|
||||
if (isInArray("grab", i.interactivity.events.onhover.mode) && i.fn.modes.grabParticle(a), (isInArray("bubble", i.interactivity.events.onhover.mode) || isInArray("bubble", i.interactivity.events.onclick.mode)) && i.fn.modes.bubbleParticle(a), (isInArray("repulse", i.interactivity.events.onhover.mode) || isInArray("repulse", i.interactivity.events.onclick.mode)) && i.fn.modes.repulseParticle(a), i.particles.line_linked.enable || i.particles.move.attract.enable)
|
||||
for (var n = e + 1; n < i.particles.array.length; n++) {
|
||||
var r = i.particles.array[n];
|
||||
i.particles.line_linked.enable && i.fn.interact.linkParticles(a, r), i.particles.move.attract.enable && i.fn.interact.attractParticles(a, r), i.particles.move.bounce && i.fn.interact.bounceParticles(a, r)
|
||||
}
|
||||
}
|
||||
}, i.fn.particlesDraw = function() {
|
||||
i.canvas.ctx.clearRect(0, 0, i.canvas.w, i.canvas.h), i.fn.particlesUpdate();
|
||||
for (var e = 0; e < i.particles.array.length; e++) {
|
||||
var a = i.particles.array[e];
|
||||
a.draw()
|
||||
}
|
||||
}, i.fn.particlesEmpty = function() {
|
||||
i.particles.array = []
|
||||
}, i.fn.particlesRefresh = function() {
|
||||
cancelRequestAnimFrame(i.fn.checkAnimFrame), cancelRequestAnimFrame(i.fn.drawAnimFrame), i.tmp.source_svg = void 0, i.tmp.img_obj = void 0, i.tmp.count_svg = 0, i.fn.particlesEmpty(), i.fn.canvasClear(), i.fn.vendors.start()
|
||||
}, i.fn.interact.linkParticles = function(e, a) {
|
||||
var t = e.x - a.x,
|
||||
s = e.y - a.y,
|
||||
n = Math.sqrt(t * t + s * s);
|
||||
if (n <= i.particles.line_linked.distance) {
|
||||
var r = i.particles.line_linked.opacity - n / (1 / i.particles.line_linked.opacity) / i.particles.line_linked.distance;
|
||||
if (r > 0) {
|
||||
var c = i.particles.line_linked.color_rgb_line;
|
||||
i.canvas.ctx.strokeStyle = "rgba(" + c.r + "," + c.g + "," + c.b + "," + r + ")", i.canvas.ctx.lineWidth = i.particles.line_linked.width, i.canvas.ctx.beginPath(), i.canvas.ctx.moveTo(e.x, e.y), i.canvas.ctx.lineTo(a.x, a.y), i.canvas.ctx.stroke(), i.canvas.ctx.closePath()
|
||||
}
|
||||
}
|
||||
}, i.fn.interact.attractParticles = function(e, a) {
|
||||
var t = e.x - a.x,
|
||||
s = e.y - a.y,
|
||||
n = Math.sqrt(t * t + s * s);
|
||||
if (n <= i.particles.line_linked.distance) {
|
||||
var r = t / (1e3 * i.particles.move.attract.rotateX),
|
||||
c = s / (1e3 * i.particles.move.attract.rotateY);
|
||||
e.vx -= r, e.vy -= c, a.vx += r, a.vy += c
|
||||
}
|
||||
}, i.fn.interact.bounceParticles = function(e, a) {
|
||||
var t = e.x - a.x,
|
||||
i = e.y - a.y,
|
||||
s = Math.sqrt(t * t + i * i),
|
||||
n = e.radius + a.radius;
|
||||
n >= s && (e.vx = -e.vx, e.vy = -e.vy, a.vx = -a.vx, a.vy = -a.vy)
|
||||
}, i.fn.modes.pushParticles = function(e, a) {
|
||||
i.tmp.pushing = !0;
|
||||
for (var t = 0; e > t; t++) i.particles.array.push(new i.fn.particle(i.particles.color, i.particles.opacity.value, {
|
||||
x: a ? a.pos_x : Math.random() * i.canvas.w,
|
||||
y: a ? a.pos_y : Math.random() * i.canvas.h
|
||||
})), t == e - 1 && (i.particles.move.enable || i.fn.particlesDraw(), i.tmp.pushing = !1)
|
||||
}, i.fn.modes.removeParticles = function(e) {
|
||||
i.particles.array.splice(0, e), i.particles.move.enable || i.fn.particlesDraw()
|
||||
}, i.fn.modes.bubbleParticle = function(e) {
|
||||
function a() {
|
||||
e.opacity_bubble = e.opacity, e.radius_bubble = e.radius
|
||||
}
|
||||
|
||||
function t(a, t, s, n, c) {
|
||||
if (a != t)
|
||||
if (i.tmp.bubble_duration_end) {
|
||||
if (void 0 != s) {
|
||||
var o = n - p * (n - a) / i.interactivity.modes.bubble.duration,
|
||||
l = a - o;
|
||||
d = a + l, "size" == c && (e.radius_bubble = d), "opacity" == c && (e.opacity_bubble = d)
|
||||
}
|
||||
} else if (r <= i.interactivity.modes.bubble.distance) {
|
||||
if (void 0 != s) var v = s;
|
||||
else var v = n;
|
||||
if (v != a) {
|
||||
var d = n - p * (n - a) / i.interactivity.modes.bubble.duration;
|
||||
"size" == c && (e.radius_bubble = d), "opacity" == c && (e.opacity_bubble = d)
|
||||
}
|
||||
} else "size" == c && (e.radius_bubble = void 0), "opacity" == c && (e.opacity_bubble = void 0)
|
||||
}
|
||||
if (i.interactivity.events.onhover.enable && isInArray("bubble", i.interactivity.events.onhover.mode)) {
|
||||
var s = e.x - i.interactivity.mouse.pos_x,
|
||||
n = e.y - i.interactivity.mouse.pos_y,
|
||||
r = Math.sqrt(s * s + n * n),
|
||||
c = 1 - r / i.interactivity.modes.bubble.distance;
|
||||
if (r <= i.interactivity.modes.bubble.distance) {
|
||||
if (c >= 0 && "mousemove" == i.interactivity.status) {
|
||||
if (i.interactivity.modes.bubble.size != i.particles.size.value)
|
||||
if (i.interactivity.modes.bubble.size > i.particles.size.value) {
|
||||
var o = e.radius + i.interactivity.modes.bubble.size * c;
|
||||
o >= 0 && (e.radius_bubble = o)
|
||||
} else {
|
||||
var l = e.radius - i.interactivity.modes.bubble.size,
|
||||
o = e.radius - l * c;
|
||||
o > 0 ? e.radius_bubble = o : e.radius_bubble = 0
|
||||
}
|
||||
if (i.interactivity.modes.bubble.opacity != i.particles.opacity.value)
|
||||
if (i.interactivity.modes.bubble.opacity > i.particles.opacity.value) {
|
||||
var v = i.interactivity.modes.bubble.opacity * c;
|
||||
v > e.opacity && v <= i.interactivity.modes.bubble.opacity && (e.opacity_bubble = v)
|
||||
} else {
|
||||
var v = e.opacity - (i.particles.opacity.value - i.interactivity.modes.bubble.opacity) * c;
|
||||
v < e.opacity && v >= i.interactivity.modes.bubble.opacity && (e.opacity_bubble = v)
|
||||
}
|
||||
}
|
||||
} else a();
|
||||
"mouseleave" == i.interactivity.status && a()
|
||||
} else if (i.interactivity.events.onclick.enable && isInArray("bubble", i.interactivity.events.onclick.mode)) {
|
||||
if (i.tmp.bubble_clicking) {
|
||||
var s = e.x - i.interactivity.mouse.click_pos_x,
|
||||
n = e.y - i.interactivity.mouse.click_pos_y,
|
||||
r = Math.sqrt(s * s + n * n),
|
||||
p = ((new Date).getTime() - i.interactivity.mouse.click_time) / 1e3;
|
||||
p > i.interactivity.modes.bubble.duration && (i.tmp.bubble_duration_end = !0), p > 2 * i.interactivity.modes.bubble.duration && (i.tmp.bubble_clicking = !1, i.tmp.bubble_duration_end = !1)
|
||||
}
|
||||
i.tmp.bubble_clicking && (t(i.interactivity.modes.bubble.size, i.particles.size.value, e.radius_bubble, e.radius, "size"), t(i.interactivity.modes.bubble.opacity, i.particles.opacity.value, e.opacity_bubble, e.opacity, "opacity"))
|
||||
}
|
||||
}, i.fn.modes.repulseParticle = function(e) {
|
||||
function a() {
|
||||
var a = Math.atan2(d, p);
|
||||
if (e.vx = u * Math.cos(a), e.vy = u * Math.sin(a), "bounce" == i.particles.move.out_mode) {
|
||||
var t = {
|
||||
x: e.x + e.vx,
|
||||
y: e.y + e.vy
|
||||
};
|
||||
t.x + e.radius > i.canvas.w ? e.vx = -e.vx : t.x - e.radius < 0 && (e.vx = -e.vx), t.y + e.radius > i.canvas.h ? e.vy = -e.vy : t.y - e.radius < 0 && (e.vy = -e.vy)
|
||||
}
|
||||
}
|
||||
if (i.interactivity.events.onhover.enable && isInArray("repulse", i.interactivity.events.onhover.mode) && "mousemove" == i.interactivity.status) {
|
||||
var t = e.x - i.interactivity.mouse.pos_x,
|
||||
s = e.y - i.interactivity.mouse.pos_y,
|
||||
n = Math.sqrt(t * t + s * s),
|
||||
r = {
|
||||
x: t / n,
|
||||
y: s / n
|
||||
},
|
||||
c = i.interactivity.modes.repulse.distance,
|
||||
o = 100,
|
||||
l = clamp(1 / c * (-1 * Math.pow(n / c, 2) + 1) * c * o, 0, 50),
|
||||
v = {
|
||||
x: e.x + r.x * l,
|
||||
y: e.y + r.y * l
|
||||
};
|
||||
"bounce" == i.particles.move.out_mode ? (v.x - e.radius > 0 && v.x + e.radius < i.canvas.w && (e.x = v.x), v.y - e.radius > 0 && v.y + e.radius < i.canvas.h && (e.y = v.y)) : (e.x = v.x, e.y = v.y)
|
||||
} else if (i.interactivity.events.onclick.enable && isInArray("repulse", i.interactivity.events.onclick.mode))
|
||||
if (i.tmp.repulse_finish || (i.tmp.repulse_count++, i.tmp.repulse_count == i.particles.array.length && (i.tmp.repulse_finish = !0)), i.tmp.repulse_clicking) {
|
||||
var c = Math.pow(i.interactivity.modes.repulse.distance / 6, 3),
|
||||
p = i.interactivity.mouse.click_pos_x - e.x,
|
||||
d = i.interactivity.mouse.click_pos_y - e.y,
|
||||
m = p * p + d * d,
|
||||
u = -c / m * 1;
|
||||
c >= m && a()
|
||||
} else 0 == i.tmp.repulse_clicking && (e.vx = e.vx_i, e.vy = e.vy_i)
|
||||
}, i.fn.modes.grabParticle = function(e) {
|
||||
if (i.interactivity.events.onhover.enable && "mousemove" == i.interactivity.status) {
|
||||
var a = e.x - i.interactivity.mouse.pos_x,
|
||||
t = e.y - i.interactivity.mouse.pos_y,
|
||||
s = Math.sqrt(a * a + t * t);
|
||||
if (s <= i.interactivity.modes.grab.distance) {
|
||||
var n = i.interactivity.modes.grab.line_linked.opacity - s / (1 / i.interactivity.modes.grab.line_linked.opacity) / i.interactivity.modes.grab.distance;
|
||||
if (n > 0) {
|
||||
var r = i.particles.line_linked.color_rgb_line;
|
||||
i.canvas.ctx.strokeStyle = "rgba(" + r.r + "," + r.g + "," + r.b + "," + n + ")", i.canvas.ctx.lineWidth = i.particles.line_linked.width, i.canvas.ctx.beginPath(), i.canvas.ctx.moveTo(e.x, e.y), i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x, i.interactivity.mouse.pos_y), i.canvas.ctx.stroke(), i.canvas.ctx.closePath()
|
||||
}
|
||||
}
|
||||
}
|
||||
}, i.fn.vendors.eventsListeners = function() {
|
||||
"window" == i.interactivity.detect_on ? i.interactivity.el = window : i.interactivity.el = i.canvas.el, (i.interactivity.events.onhover.enable || i.interactivity.events.onclick.enable) && (i.interactivity.el.addEventListener("mousemove", function(e) {
|
||||
if (i.interactivity.el == window) var a = e.clientX,
|
||||
t = e.clientY;
|
||||
else var a = e.offsetX || e.clientX,
|
||||
t = e.offsetY || e.clientY;
|
||||
i.interactivity.mouse.pos_x = a, i.interactivity.mouse.pos_y = t, i.tmp.retina && (i.interactivity.mouse.pos_x *= i.canvas.pxratio, i.interactivity.mouse.pos_y *= i.canvas.pxratio), i.interactivity.status = "mousemove"
|
||||
}), i.interactivity.el.addEventListener("mouseleave", function(e) {
|
||||
i.interactivity.mouse.pos_x = null, i.interactivity.mouse.pos_y = null, i.interactivity.status = "mouseleave"
|
||||
})), i.interactivity.events.onclick.enable && i.interactivity.el.addEventListener("click", function() {
|
||||
if (i.interactivity.mouse.click_pos_x = i.interactivity.mouse.pos_x, i.interactivity.mouse.click_pos_y = i.interactivity.mouse.pos_y, i.interactivity.mouse.click_time = (new Date).getTime(), i.interactivity.events.onclick.enable) switch (i.interactivity.events.onclick.mode) {
|
||||
case "push":
|
||||
i.particles.move.enable ? i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb, i.interactivity.mouse) : 1 == i.interactivity.modes.push.particles_nb ? i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb, i.interactivity.mouse) : i.interactivity.modes.push.particles_nb > 1 && i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);
|
||||
break;
|
||||
case "remove":
|
||||
i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);
|
||||
break;
|
||||
case "bubble":
|
||||
i.tmp.bubble_clicking = !0;
|
||||
break;
|
||||
case "repulse":
|
||||
i.tmp.repulse_clicking = !0, i.tmp.repulse_count = 0, i.tmp.repulse_finish = !1, setTimeout(function() {
|
||||
i.tmp.repulse_clicking = !1
|
||||
}, 1e3 * i.interactivity.modes.repulse.duration)
|
||||
}
|
||||
})
|
||||
}, i.fn.vendors.densityAutoParticles = function() {
|
||||
if (i.particles.number.density.enable) {
|
||||
var e = i.canvas.el.width * i.canvas.el.height / 1e3;
|
||||
i.tmp.retina && (e /= 2 * i.canvas.pxratio);
|
||||
var a = e * i.particles.number.value / i.particles.number.density.value_area,
|
||||
t = i.particles.array.length - a;
|
||||
0 > t ? i.fn.modes.pushParticles(Math.abs(t)) : i.fn.modes.removeParticles(t)
|
||||
}
|
||||
}, i.fn.vendors.checkOverlap = function(e, a) {
|
||||
for (var t = 0; t < i.particles.array.length; t++) {
|
||||
var s = i.particles.array[t],
|
||||
n = e.x - s.x,
|
||||
r = e.y - s.y,
|
||||
c = Math.sqrt(n * n + r * r);
|
||||
c <= e.radius + s.radius && (e.x = a ? a.x : Math.random() * i.canvas.w, e.y = a ? a.y : Math.random() * i.canvas.h, i.fn.vendors.checkOverlap(e))
|
||||
}
|
||||
}, i.fn.vendors.createSvgImg = function(e) {
|
||||
var a = i.tmp.source_svg,
|
||||
t = /#([0-9A-F]{3,6})/gi,
|
||||
s = a.replace(t, function(a, t, i, s) {
|
||||
if (e.color.rgb) var n = "rgba(" + e.color.rgb.r + "," + e.color.rgb.g + "," + e.color.rgb.b + "," + e.opacity + ")";
|
||||
else var n = "hsla(" + e.color.hsl.h + "," + e.color.hsl.s + "%," + e.color.hsl.l + "%," + e.opacity + ")";
|
||||
return n
|
||||
}),
|
||||
n = new Blob([s], {
|
||||
type: "image/svg+xml;charset=utf-8"
|
||||
}),
|
||||
r = window.URL || window.webkitURL || window,
|
||||
c = r.createObjectURL(n),
|
||||
o = new Image;
|
||||
o.addEventListener("load", function() {
|
||||
e.img.obj = o, e.img.loaded = !0, r.revokeObjectURL(c), i.tmp.count_svg++
|
||||
}), o.src = c
|
||||
}, i.fn.vendors.destroypJS = function() {
|
||||
cancelAnimationFrame(i.fn.drawAnimFrame), t.remove(), pJSDom = null
|
||||
}, i.fn.vendors.drawShape = function(e, a, t, i, s, n) {
|
||||
var r = s * n,
|
||||
c = s / n,
|
||||
o = 180 * (c - 2) / c,
|
||||
l = Math.PI - Math.PI * o / 180;
|
||||
e.save(), e.beginPath(), e.translate(a, t), e.moveTo(0, 0);
|
||||
for (var v = 0; r > v; v++) e.lineTo(i, 0), e.translate(i, 0), e.rotate(l);
|
||||
e.fill(), e.restore()
|
||||
}, i.fn.vendors.exportImg = function() {
|
||||
window.open(i.canvas.el.toDataURL("image/png"), "_blank")
|
||||
}, i.fn.vendors.loadImg = function(e) {
|
||||
if (i.tmp.img_error = void 0, "" != i.particles.shape.image.src)
|
||||
if ("svg" == e) {
|
||||
var a = new XMLHttpRequest;
|
||||
a.open("GET", i.particles.shape.image.src), a.onreadystatechange = function(e) {
|
||||
4 == a.readyState && (200 == a.status ? (i.tmp.source_svg = e.currentTarget.response, i.fn.vendors.checkBeforeDraw()) : (console.log("Error pJS - Image not found"), i.tmp.img_error = !0))
|
||||
}, a.send()
|
||||
} else {
|
||||
var t = new Image;
|
||||
t.addEventListener("load", function() {
|
||||
i.tmp.img_obj = t, i.fn.vendors.checkBeforeDraw()
|
||||
}), t.src = i.particles.shape.image.src
|
||||
}
|
||||
else console.log("Error pJS - No image.src"), i.tmp.img_error = !0
|
||||
}, i.fn.vendors.draw = function() {
|
||||
"image" == i.particles.shape.type ? "svg" == i.tmp.img_type ? i.tmp.count_svg >= i.particles.number.value ? (i.fn.particlesDraw(), i.particles.move.enable ? i.fn.drawAnimFrame = requestAnimFrame(i.fn.vendors.draw) : cancelRequestAnimFrame(i.fn.drawAnimFrame)) : i.tmp.img_error || (i.fn.drawAnimFrame = requestAnimFrame(i.fn.vendors.draw)) : void 0 != i.tmp.img_obj ? (i.fn.particlesDraw(), i.particles.move.enable ? i.fn.drawAnimFrame = requestAnimFrame(i.fn.vendors.draw) : cancelRequestAnimFrame(i.fn.drawAnimFrame)) : i.tmp.img_error || (i.fn.drawAnimFrame = requestAnimFrame(i.fn.vendors.draw)) : (i.fn.particlesDraw(), i.particles.move.enable ? i.fn.drawAnimFrame = requestAnimFrame(i.fn.vendors.draw) : cancelRequestAnimFrame(i.fn.drawAnimFrame))
|
||||
}, i.fn.vendors.checkBeforeDraw = function() {
|
||||
"image" == i.particles.shape.type ? "svg" == i.tmp.img_type && void 0 == i.tmp.source_svg ? i.tmp.checkAnimFrame = requestAnimFrame(check) : (cancelRequestAnimFrame(i.tmp.checkAnimFrame), i.tmp.img_error || (i.fn.vendors.init(), i.fn.vendors.draw())) : (i.fn.vendors.init(), i.fn.vendors.draw())
|
||||
}, i.fn.vendors.init = function() {
|
||||
i.fn.retinaInit(), i.fn.canvasInit(), i.fn.canvasSize(), i.fn.canvasPaint(), i.fn.particlesCreate(), i.fn.vendors.densityAutoParticles(), i.particles.line_linked.color_rgb_line = hexToRgb(i.particles.line_linked.color)
|
||||
}, i.fn.vendors.start = function() {
|
||||
isInArray("image", i.particles.shape.type) ? (i.tmp.img_type = i.particles.shape.image.src.substr(i.particles.shape.image.src.length - 3), i.fn.vendors.loadImg(i.tmp.img_type)) : i.fn.vendors.checkBeforeDraw()
|
||||
}, i.fn.vendors.eventsListeners(), i.fn.vendors.start()
|
||||
};
|
||||
|
||||
Object.deepExtend = function(e, a) {
|
||||
for (var t in a) a[t] && a[t].constructor && a[t].constructor === Object ? (e[t] = e[t] || {}, arguments.callee(e[t], a[t])) : e[t] = a[t];
|
||||
return e
|
||||
}, window.requestAnimFrame = function() {
|
||||
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) {
|
||||
window.setTimeout(e, 1e3 / 60)
|
||||
}
|
||||
}(), window.cancelRequestAnimFrame = function() {
|
||||
return window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || clearTimeout
|
||||
}(), window.pJSDom = [], window.particlesJS = function(e, a) {
|
||||
"string" != typeof e && (a = e, e = "particles-js"), e || (e = "particles-js");
|
||||
var t = document.getElementById(e),
|
||||
i = "particles-js-canvas-el",
|
||||
s = t.getElementsByClassName(i);
|
||||
if (s.length)
|
||||
for (; s.length > 0;) t.removeChild(s[0]);
|
||||
var n = document.createElement("canvas");
|
||||
n.className = i, n.style.width = "100%", n.style.height = "100%";
|
||||
var r = document.getElementById(e).appendChild(n);
|
||||
null != r && pJSDom.push(new pJS(e, a))
|
||||
}, window.particlesJS.load = function(e, a, t) {
|
||||
var i = new XMLHttpRequest;
|
||||
i.open("GET", a), i.onreadystatechange = function(a) {
|
||||
if (4 == i.readyState)
|
||||
if (200 == i.status) {
|
||||
var s = JSON.parse(a.currentTarget.response);
|
||||
window.particlesJS(e, s), t && t()
|
||||
} else console.log("Error pJS - XMLHttpRequest status: " + i.status), console.log("Error pJS - File config not found")
|
||||
}, i.send()
|
||||
}(), window.pJSDom = [], window.particlesJS = function(e, a) {
|
||||
"string" != typeof e && (a = e, e = "particles-bg"), e || (e = "particles-bg");
|
||||
var t = document.getElementById(e),
|
||||
i = "particles-js-canvas-el",
|
||||
s = t.getElementsByClassName(i);
|
||||
if (s.length)
|
||||
for (; s.length > 0;) t.removeChild(s[0]);
|
||||
var n = document.createElement("canvas");
|
||||
n.className = i, n.style.width = "100%", n.style.height = "100%";
|
||||
var r = document.getElementById(e).appendChild(n);
|
||||
null != r && pJSDom.push(new pJS(e, a))
|
||||
}, window.particlesJS.load = function(e, a, t) {
|
||||
var i = new XMLHttpRequest;
|
||||
i.open("GET", a), i.onreadystatechange = function(a) {
|
||||
if (4 == i.readyState)
|
||||
if (200 == i.status) {
|
||||
var s = JSON.parse(a.currentTarget.response);
|
||||
window.particlesJS(e, s), t && t()
|
||||
} else console.log("Error pJS - XMLHttpRequest status: " + i.status), console.log("Error pJS - File config not found")
|
||||
}, i.send()
|
||||
};
|
||||
/* -----------------------------------------------
|
||||
/* Author : Vincent Garreau - vincentgarreau.com
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* Demo / Generator : vincentgarreau.com/particles.js
|
||||
/* GitHub : github.com/VincentGarreau/particles.js
|
||||
/* How to use? : Check the GitHub README
|
||||
/* v2.0.0
|
||||
/* ----------------------------------------------- */
|
||||
function hexToRgb(e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(a,function(e,a,t,i){return a+a+t+t+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,a,t){return Math.min(Math.max(e,a),t)}function isInArray(e,a){return a.indexOf(e)>-1}var pJS=function(e,a){var t=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,Line truncated
|
||||
@@ -1,913 +1,6 @@
|
||||
/**
|
||||
* @popperjs/core v2.10.2 - MIT License
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
! function(e, t) {
|
||||
"object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).Popper = {})
|
||||
}(this, (function(e) {
|
||||
function t(e, t) {
|
||||
return {
|
||||
width: (e = e.getBoundingClientRect()).width / 1,
|
||||
height: e.height / 1,
|
||||
top: e.top / 1,
|
||||
right: e.right / 1,
|
||||
bottom: e.bottom / 1,
|
||||
left: e.left / 1,
|
||||
x: e.left / 1,
|
||||
y: e.top / 1
|
||||
}
|
||||
}
|
||||
|
||||
function n(e) {
|
||||
return null == e ? window : "[object Window]" !== e.toString() ? (e = e.ownerDocument) && e.defaultView || window : e
|
||||
}
|
||||
|
||||
function o(e) {
|
||||
return {
|
||||
scrollLeft: (e = n(e)).pageXOffset,
|
||||
scrollTop: e.pageYOffset
|
||||
}
|
||||
}
|
||||
|
||||
function r(e) {
|
||||
return e instanceof n(e).Element || e instanceof Element
|
||||
}
|
||||
|
||||
function i(e) {
|
||||
return e instanceof n(e).HTMLElement || e instanceof HTMLElement
|
||||
}
|
||||
|
||||
function a(e) {
|
||||
return "undefined" != typeof ShadowRoot && (e instanceof n(e).ShadowRoot || e instanceof ShadowRoot)
|
||||
}
|
||||
|
||||
function s(e) {
|
||||
return e ? (e.nodeName || "").toLowerCase() : null
|
||||
}
|
||||
|
||||
function f(e) {
|
||||
return ((r(e) ? e.ownerDocument : e.document) || window.document).documentElement
|
||||
}
|
||||
|
||||
function p(e) {
|
||||
return t(f(e)).left + o(e).scrollLeft
|
||||
}
|
||||
|
||||
function c(e) {
|
||||
return n(e).getComputedStyle(e)
|
||||
}
|
||||
|
||||
function l(e) {
|
||||
return e = c(e), /auto|scroll|overlay|hidden/.test(e.overflow + e.overflowY + e.overflowX)
|
||||
}
|
||||
|
||||
function u(e, r, a) {
|
||||
void 0 === a && (a = !1);
|
||||
var c = i(r);
|
||||
i(r) && r.getBoundingClientRect();
|
||||
var u = f(r);
|
||||
e = t(e);
|
||||
var d = {
|
||||
scrollLeft: 0,
|
||||
scrollTop: 0
|
||||
},
|
||||
m = {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
return (c || !c && !a) && (("body" !== s(r) || l(u)) && (d = r !== n(r) && i(r) ? {
|
||||
scrollLeft: r.scrollLeft,
|
||||
scrollTop: r.scrollTop
|
||||
} : o(r)), i(r) ? ((m = t(r)).x += r.clientLeft, m.y += r.clientTop) : u && (m.x = p(u))), {
|
||||
x: e.left + d.scrollLeft - m.x,
|
||||
y: e.top + d.scrollTop - m.y,
|
||||
width: e.width,
|
||||
height: e.height
|
||||
}
|
||||
}
|
||||
|
||||
function d(e) {
|
||||
var n = t(e),
|
||||
o = e.offsetWidth,
|
||||
r = e.offsetHeight;
|
||||
return 1 >= Math.abs(n.width - o) && (o = n.width), 1 >= Math.abs(n.height - r) && (r = n.height), {
|
||||
x: e.offsetLeft,
|
||||
y: e.offsetTop,
|
||||
width: o,
|
||||
height: r
|
||||
}
|
||||
}
|
||||
|
||||
function m(e) {
|
||||
return "html" === s(e) ? e : e.assignedSlot || e.parentNode || (a(e) ? e.host : null) || f(e)
|
||||
}
|
||||
|
||||
function h(e) {
|
||||
return 0 <= ["html", "body", "#document"].indexOf(s(e)) ? e.ownerDocument.body : i(e) && l(e) ? e : h(m(e))
|
||||
}
|
||||
|
||||
function v(e, t) {
|
||||
var o;
|
||||
void 0 === t && (t = []);
|
||||
var r = h(e);
|
||||
return e = r === (null == (o = e.ownerDocument) ? void 0 : o.body), o = n(r), r = e ? [o].concat(o.visualViewport || [], l(r) ? r : []) : r, t = t.concat(r), e ? t : t.concat(v(m(r)))
|
||||
}
|
||||
|
||||
function g(e) {
|
||||
return i(e) && "fixed" !== c(e).position ? e.offsetParent : null
|
||||
}
|
||||
|
||||
function b(e) {
|
||||
for (var t = n(e), o = g(e); o && 0 <= ["table", "td", "th"].indexOf(s(o)) && "static" === c(o).position;) o = g(o);
|
||||
if (o && ("html" === s(o) || "body" === s(o) && "static" === c(o).position)) return t;
|
||||
if (!o) e: {
|
||||
if (o = -1 !== navigator.userAgent.toLowerCase().indexOf("firefox"), -1 === navigator.userAgent.indexOf("Trident") || !i(e) || "fixed" !== c(e).position)
|
||||
for (e = m(e); i(e) && 0 > ["html", "body"].indexOf(s(e));) {
|
||||
var r = c(e);
|
||||
if ("none" !== r.transform || "none" !== r.perspective || "paint" === r.contain || -1 !== ["transform", "perspective"].indexOf(r.willChange) || o && "filter" === r.willChange || o && r.filter && "none" !== r.filter) {
|
||||
o = e;
|
||||
break e
|
||||
}
|
||||
e = e.parentNode
|
||||
}
|
||||
o = null
|
||||
}
|
||||
return o || t
|
||||
}
|
||||
|
||||
function y(e) {
|
||||
function t(e) {
|
||||
o.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach((function(e) {
|
||||
o.has(e) || (e = n.get(e)) && t(e)
|
||||
})), r.push(e)
|
||||
}
|
||||
var n = new Map,
|
||||
o = new Set,
|
||||
r = [];
|
||||
return e.forEach((function(e) {
|
||||
n.set(e.name, e)
|
||||
})), e.forEach((function(e) {
|
||||
o.has(e.name) || t(e)
|
||||
})), r
|
||||
}
|
||||
|
||||
function w(e) {
|
||||
var t;
|
||||
return function() {
|
||||
return t || (t = new Promise((function(n) {
|
||||
Promise.resolve().then((function() {
|
||||
t = void 0, n(e())
|
||||
}))
|
||||
}))), t
|
||||
}
|
||||
}
|
||||
|
||||
function x(e) {
|
||||
return e.split("-")[0]
|
||||
}
|
||||
|
||||
function O(e, t) {
|
||||
var n = t.getRootNode && t.getRootNode();
|
||||
if (e.contains(t)) return !0;
|
||||
if (n && a(n))
|
||||
do {
|
||||
if (t && e.isSameNode(t)) return !0;
|
||||
t = t.parentNode || t.host
|
||||
} while (t);
|
||||
return !1
|
||||
}
|
||||
|
||||
function j(e) {
|
||||
return Object.assign({}, e, {
|
||||
left: e.x,
|
||||
top: e.y,
|
||||
right: e.x + e.width,
|
||||
bottom: e.y + e.height
|
||||
})
|
||||
}
|
||||
|
||||
function E(e, r) {
|
||||
if ("viewport" === r) {
|
||||
r = n(e);
|
||||
var a = f(e);
|
||||
r = r.visualViewport;
|
||||
var s = a.clientWidth;
|
||||
a = a.clientHeight;
|
||||
var l = 0,
|
||||
u = 0;
|
||||
r && (s = r.width, a = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (l = r.offsetLeft, u = r.offsetTop)), e = j(e = {
|
||||
width: s,
|
||||
height: a,
|
||||
x: l + p(e),
|
||||
y: u
|
||||
})
|
||||
} else i(r) ? ((e = t(r)).top += r.clientTop, e.left += r.clientLeft, e.bottom = e.top + r.clientHeight, e.right = e.left + r.clientWidth, e.width = r.clientWidth, e.height = r.clientHeight, e.x = e.left, e.y = e.top) : (u = f(e), e = f(u), s = o(u), r = null == (a = u.ownerDocument) ? void 0 : a.body, a = U(e.scrollWidth, e.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), l = U(e.scrollHeight, e.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), u = -s.scrollLeft + p(u), s = -s.scrollTop, "rtl" === c(r || e).direction && (u += U(e.clientWidth, r ? r.clientWidth : 0) - a), e = j({
|
||||
width: a,
|
||||
height: l,
|
||||
x: u,
|
||||
y: s
|
||||
}));
|
||||
return e
|
||||
}
|
||||
|
||||
function D(e, t, n) {
|
||||
return t = "clippingParents" === t ? function(e) {
|
||||
var t = v(m(e)),
|
||||
n = 0 <= ["absolute", "fixed"].indexOf(c(e).position) && i(e) ? b(e) : e;
|
||||
return r(n) ? t.filter((function(e) {
|
||||
return r(e) && O(e, n) && "body" !== s(e)
|
||||
})) : []
|
||||
}(e) : [].concat(t), (n = (n = [].concat(t, [n])).reduce((function(t, n) {
|
||||
return n = E(e, n), t.top = U(n.top, t.top), t.right = z(n.right, t.right), t.bottom = z(n.bottom, t.bottom), t.left = U(n.left, t.left), t
|
||||
}), E(e, n[0]))).width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n
|
||||
}
|
||||
|
||||
function L(e) {
|
||||
return e.split("-")[1]
|
||||
}
|
||||
|
||||
function P(e) {
|
||||
return 0 <= ["top", "bottom"].indexOf(e) ? "x" : "y"
|
||||
}
|
||||
|
||||
function M(e) {
|
||||
var t = e.reference,
|
||||
n = e.element,
|
||||
o = (e = e.placement) ? x(e) : null;
|
||||
e = e ? L(e) : null;
|
||||
var r = t.x + t.width / 2 - n.width / 2,
|
||||
i = t.y + t.height / 2 - n.height / 2;
|
||||
switch (o) {
|
||||
case "top":
|
||||
r = {
|
||||
x: r,
|
||||
y: t.y - n.height
|
||||
};
|
||||
break;
|
||||
case "bottom":
|
||||
r = {
|
||||
x: r,
|
||||
y: t.y + t.height
|
||||
};
|
||||
break;
|
||||
case "right":
|
||||
r = {
|
||||
x: t.x + t.width,
|
||||
y: i
|
||||
};
|
||||
break;
|
||||
case "left":
|
||||
r = {
|
||||
x: t.x - n.width,
|
||||
y: i
|
||||
};
|
||||
break;
|
||||
default:
|
||||
r = {
|
||||
x: t.x,
|
||||
y: t.y
|
||||
}
|
||||
}
|
||||
if (null != (o = o ? P(o) : null)) switch (i = "y" === o ? "height" : "width", e) {
|
||||
case "start":
|
||||
r[o] -= t[i] / 2 - n[i] / 2;
|
||||
break;
|
||||
case "end":
|
||||
r[o] += t[i] / 2 - n[i] / 2
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
function k(e) {
|
||||
return Object.assign({}, {
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0
|
||||
}, e)
|
||||
}
|
||||
|
||||
function A(e, t) {
|
||||
return t.reduce((function(t, n) {
|
||||
return t[n] = e, t
|
||||
}), {})
|
||||
}
|
||||
|
||||
function B(e, n) {
|
||||
void 0 === n && (n = {});
|
||||
var o = n;
|
||||
n = void 0 === (n = o.placement) ? e.placement : n;
|
||||
var i = o.boundary,
|
||||
a = void 0 === i ? "clippingParents" : i,
|
||||
s = void 0 === (i = o.rootBoundary) ? "viewport" : i;
|
||||
i = void 0 === (i = o.elementContext) ? "popper" : i;
|
||||
var p = o.altBoundary,
|
||||
c = void 0 !== p && p;
|
||||
o = k("number" != typeof(o = void 0 === (o = o.padding) ? 0 : o) ? o : A(o, N)), p = e.rects.popper, a = D(r(c = e.elements[c ? "popper" === i ? "reference" : "popper" : i]) ? c : c.contextElement || f(e.elements.popper), a, s), c = M({
|
||||
reference: s = t(e.elements.reference),
|
||||
element: p,
|
||||
strategy: "absolute",
|
||||
placement: n
|
||||
}), p = j(Object.assign({}, p, c)), s = "popper" === i ? p : s;
|
||||
var l = {
|
||||
top: a.top - s.top + o.top,
|
||||
bottom: s.bottom - a.bottom + o.bottom,
|
||||
left: a.left - s.left + o.left,
|
||||
right: s.right - a.right + o.right
|
||||
};
|
||||
if (e = e.modifiersData.offset, "popper" === i && e) {
|
||||
var u = e[n];
|
||||
Object.keys(l).forEach((function(e) {
|
||||
var t = 0 <= ["right", "bottom"].indexOf(e) ? 1 : -1,
|
||||
n = 0 <= ["top", "bottom"].indexOf(e) ? "y" : "x";
|
||||
l[e] += u[n] * t
|
||||
}))
|
||||
}
|
||||
return l
|
||||
}
|
||||
|
||||
function W() {
|
||||
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n];
|
||||
return !t.some((function(e) {
|
||||
return !(e && "function" == typeof e.getBoundingClientRect)
|
||||
}))
|
||||
}
|
||||
|
||||
function T(e) {
|
||||
void 0 === e && (e = {});
|
||||
var t = e.defaultModifiers,
|
||||
n = void 0 === t ? [] : t,
|
||||
o = void 0 === (e = e.defaultOptions) ? X : e;
|
||||
return function(e, t, i) {
|
||||
function a() {
|
||||
f.forEach((function(e) {
|
||||
return e()
|
||||
})), f = []
|
||||
}
|
||||
void 0 === i && (i = o);
|
||||
var s = {
|
||||
placement: "bottom",
|
||||
orderedModifiers: [],
|
||||
options: Object.assign({}, X, o),
|
||||
modifiersData: {},
|
||||
elements: {
|
||||
reference: e,
|
||||
popper: t
|
||||
},
|
||||
attributes: {},
|
||||
styles: {}
|
||||
},
|
||||
f = [],
|
||||
p = !1,
|
||||
c = {
|
||||
state: s,
|
||||
setOptions: function(i) {
|
||||
return i = "function" == typeof i ? i(s.options) : i, a(), s.options = Object.assign({}, o, s.options, i), s.scrollParents = {
|
||||
reference: r(e) ? v(e) : e.contextElement ? v(e.contextElement) : [],
|
||||
popper: v(t)
|
||||
}, i = function(e) {
|
||||
var t = y(e);
|
||||
return _.reduce((function(e, n) {
|
||||
return e.concat(t.filter((function(e) {
|
||||
return e.phase === n
|
||||
})))
|
||||
}), [])
|
||||
}(function(e) {
|
||||
var t = e.reduce((function(e, t) {
|
||||
var n = e[t.name];
|
||||
return e[t.name] = n ? Object.assign({}, n, t, {
|
||||
options: Object.assign({}, n.options, t.options),
|
||||
data: Object.assign({}, n.data, t.data)
|
||||
}) : t, e
|
||||
}), {});
|
||||
return Object.keys(t).map((function(e) {
|
||||
return t[e]
|
||||
}))
|
||||
}([].concat(n, s.options.modifiers))), s.orderedModifiers = i.filter((function(e) {
|
||||
return e.enabled
|
||||
})), s.orderedModifiers.forEach((function(e) {
|
||||
var t = e.name,
|
||||
n = e.options;
|
||||
n = void 0 === n ? {} : n, "function" == typeof(e = e.effect) && (t = e({
|
||||
state: s,
|
||||
name: t,
|
||||
instance: c,
|
||||
options: n
|
||||
}), f.push(t || function() {}))
|
||||
})), c.update()
|
||||
},
|
||||
forceUpdate: function() {
|
||||
if (!p) {
|
||||
var e = s.elements,
|
||||
t = e.reference;
|
||||
if (W(t, e = e.popper))
|
||||
for (s.rects = {
|
||||
reference: u(t, b(e), "fixed" === s.options.strategy),
|
||||
popper: d(e)
|
||||
}, s.reset = !1, s.placement = s.options.placement, s.orderedModifiers.forEach((function(e) {
|
||||
return s.modifiersData[e.name] = Object.assign({}, e.data)
|
||||
})), t = 0; t < s.orderedModifiers.length; t++)
|
||||
if (!0 === s.reset) s.reset = !1, t = -1;
|
||||
else {
|
||||
var n = s.orderedModifiers[t];
|
||||
e = n.fn;
|
||||
var o = n.options;
|
||||
o = void 0 === o ? {} : o, n = n.name, "function" == typeof e && (s = e({
|
||||
state: s,
|
||||
options: o,
|
||||
name: n,
|
||||
instance: c
|
||||
}) || s)
|
||||
}
|
||||
}
|
||||
},
|
||||
update: w((function() {
|
||||
return new Promise((function(e) {
|
||||
c.forceUpdate(), e(s)
|
||||
}))
|
||||
})),
|
||||
destroy: function() {
|
||||
a(), p = !0
|
||||
}
|
||||
};
|
||||
return W(e, t) ? (c.setOptions(i).then((function(e) {
|
||||
!p && i.onFirstUpdate && i.onFirstUpdate(e)
|
||||
})), c) : c
|
||||
}
|
||||
}
|
||||
|
||||
function R(e) {
|
||||
var t, o = e.popper,
|
||||
r = e.popperRect,
|
||||
i = e.placement,
|
||||
a = e.variation,
|
||||
s = e.offsets,
|
||||
p = e.position,
|
||||
l = e.gpuAcceleration,
|
||||
u = e.adaptive;
|
||||
if (!0 === (e = e.roundOffsets)) {
|
||||
e = s.y;
|
||||
var d = window.devicePixelRatio || 1;
|
||||
e = {
|
||||
x: F(F(s.x * d) / d) || 0,
|
||||
y: F(F(e * d) / d) || 0
|
||||
}
|
||||
} else e = "function" == typeof e ? e(s) : s;
|
||||
e = void 0 === (e = (d = e).x) ? 0 : e, d = void 0 === (d = d.y) ? 0 : d;
|
||||
var m = s.hasOwnProperty("x");
|
||||
s = s.hasOwnProperty("y");
|
||||
var h, v = "left",
|
||||
g = "top",
|
||||
y = window;
|
||||
if (u) {
|
||||
var w = b(o),
|
||||
x = "clientHeight",
|
||||
O = "clientWidth";
|
||||
w === n(o) && ("static" !== c(w = f(o)).position && "absolute" === p && (x = "scrollHeight", O = "scrollWidth")), "top" !== i && ("left" !== i && "right" !== i || "end" !== a) || (g = "bottom", d -= w[x] - r.height, d *= l ? 1 : -1), "left" !== i && ("top" !== i && "bottom" !== i || "end" !== a) || (v = "right", e -= w[O] - r.width, e *= l ? 1 : -1)
|
||||
}
|
||||
return o = Object.assign({
|
||||
position: p
|
||||
}, u && K), l ? Object.assign({}, o, ((h = {})[g] = s ? "0" : "", h[v] = m ? "0" : "", h.transform = 1 >= (y.devicePixelRatio || 1) ? "translate(" + e + "px, " + d + "px)" : "translate3d(" + e + "px, " + d + "px, 0)", h)) : Object.assign({}, o, ((t = {})[g] = s ? d + "px" : "", t[v] = m ? e + "px" : "", t.transform = "", t))
|
||||
}
|
||||
|
||||
function H(e) {
|
||||
return e.replace(/left|right|bottom|top/g, (function(e) {
|
||||
return ee[e]
|
||||
}))
|
||||
}
|
||||
|
||||
function S(e) {
|
||||
return e.replace(/start|end/g, (function(e) {
|
||||
return te[e]
|
||||
}))
|
||||
}
|
||||
|
||||
function C(e, t, n) {
|
||||
return void 0 === n && (n = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}), {
|
||||
top: e.top - t.height - n.y,
|
||||
right: e.right - t.width + n.x,
|
||||
bottom: e.bottom - t.height + n.y,
|
||||
left: e.left - t.width - n.x
|
||||
}
|
||||
}
|
||||
|
||||
function q(e) {
|
||||
return ["top", "right", "bottom", "left"].some((function(t) {
|
||||
return 0 <= e[t]
|
||||
}))
|
||||
}
|
||||
var N = ["top", "bottom", "right", "left"],
|
||||
V = N.reduce((function(e, t) {
|
||||
return e.concat([t + "-start", t + "-end"])
|
||||
}), []),
|
||||
I = [].concat(N, ["auto"]).reduce((function(e, t) {
|
||||
return e.concat([t, t + "-start", t + "-end"])
|
||||
}), []),
|
||||
_ = "beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),
|
||||
U = Math.max,
|
||||
z = Math.min,
|
||||
F = Math.round,
|
||||
X = {
|
||||
placement: "bottom",
|
||||
modifiers: [],
|
||||
strategy: "absolute"
|
||||
},
|
||||
Y = {
|
||||
passive: !0
|
||||
},
|
||||
G = {
|
||||
name: "eventListeners",
|
||||
enabled: !0,
|
||||
phase: "write",
|
||||
fn: function() {},
|
||||
effect: function(e) {
|
||||
var t = e.state,
|
||||
o = e.instance,
|
||||
r = (e = e.options).scroll,
|
||||
i = void 0 === r || r,
|
||||
a = void 0 === (e = e.resize) || e,
|
||||
s = n(t.elements.popper),
|
||||
f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
||||
return i && f.forEach((function(e) {
|
||||
e.addEventListener("scroll", o.update, Y)
|
||||
})), a && s.addEventListener("resize", o.update, Y),
|
||||
function() {
|
||||
i && f.forEach((function(e) {
|
||||
e.removeEventListener("scroll", o.update, Y)
|
||||
})), a && s.removeEventListener("resize", o.update, Y)
|
||||
}
|
||||
},
|
||||
data: {}
|
||||
},
|
||||
J = {
|
||||
name: "popperOffsets",
|
||||
enabled: !0,
|
||||
phase: "read",
|
||||
fn: function(e) {
|
||||
var t = e.state;
|
||||
t.modifiersData[e.name] = M({
|
||||
reference: t.rects.reference,
|
||||
element: t.rects.popper,
|
||||
strategy: "absolute",
|
||||
placement: t.placement
|
||||
})
|
||||
},
|
||||
data: {}
|
||||
},
|
||||
K = {
|
||||
top: "auto",
|
||||
right: "auto",
|
||||
bottom: "auto",
|
||||
left: "auto"
|
||||
},
|
||||
Q = {
|
||||
name: "computeStyles",
|
||||
enabled: !0,
|
||||
phase: "beforeWrite",
|
||||
fn: function(e) {
|
||||
var t = e.state,
|
||||
n = e.options;
|
||||
e = void 0 === (e = n.gpuAcceleration) || e;
|
||||
var o = n.adaptive;
|
||||
o = void 0 === o || o, n = void 0 === (n = n.roundOffsets) || n, e = {
|
||||
placement: x(t.placement),
|
||||
variation: L(t.placement),
|
||||
popper: t.elements.popper,
|
||||
popperRect: t.rects.popper,
|
||||
gpuAcceleration: e
|
||||
}, null != t.modifiersData.popperOffsets && (t.styles.popper = Object.assign({}, t.styles.popper, R(Object.assign({}, e, {
|
||||
offsets: t.modifiersData.popperOffsets,
|
||||
position: t.options.strategy,
|
||||
adaptive: o,
|
||||
roundOffsets: n
|
||||
})))), null != t.modifiersData.arrow && (t.styles.arrow = Object.assign({}, t.styles.arrow, R(Object.assign({}, e, {
|
||||
offsets: t.modifiersData.arrow,
|
||||
position: "absolute",
|
||||
adaptive: !1,
|
||||
roundOffsets: n
|
||||
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
||||
"data-popper-placement": t.placement
|
||||
})
|
||||
},
|
||||
data: {}
|
||||
},
|
||||
Z = {
|
||||
name: "applyStyles",
|
||||
enabled: !0,
|
||||
phase: "write",
|
||||
fn: function(e) {
|
||||
var t = e.state;
|
||||
Object.keys(t.elements).forEach((function(e) {
|
||||
var n = t.styles[e] || {},
|
||||
o = t.attributes[e] || {},
|
||||
r = t.elements[e];
|
||||
i(r) && s(r) && (Object.assign(r.style, n), Object.keys(o).forEach((function(e) {
|
||||
var t = o[e];
|
||||
!1 === t ? r.removeAttribute(e) : r.setAttribute(e, !0 === t ? "" : t)
|
||||
})))
|
||||
}))
|
||||
},
|
||||
effect: function(e) {
|
||||
var t = e.state,
|
||||
n = {
|
||||
popper: {
|
||||
position: t.options.strategy,
|
||||
left: "0",
|
||||
top: "0",
|
||||
margin: "0"
|
||||
},
|
||||
arrow: {
|
||||
position: "absolute"
|
||||
},
|
||||
reference: {}
|
||||
};
|
||||
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow),
|
||||
function() {
|
||||
Object.keys(t.elements).forEach((function(e) {
|
||||
var o = t.elements[e],
|
||||
r = t.attributes[e] || {};
|
||||
e = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce((function(e, t) {
|
||||
return e[t] = "", e
|
||||
}), {}), i(o) && s(o) && (Object.assign(o.style, e), Object.keys(r).forEach((function(e) {
|
||||
o.removeAttribute(e)
|
||||
})))
|
||||
}))
|
||||
}
|
||||
},
|
||||
requires: ["computeStyles"]
|
||||
},
|
||||
$ = {
|
||||
name: "offset",
|
||||
enabled: !0,
|
||||
phase: "main",
|
||||
requires: ["popperOffsets"],
|
||||
fn: function(e) {
|
||||
var t = e.state,
|
||||
n = e.name,
|
||||
o = void 0 === (e = e.options.offset) ? [0, 0] : e,
|
||||
r = (e = I.reduce((function(e, n) {
|
||||
var r = t.rects,
|
||||
i = x(n),
|
||||
a = 0 <= ["left", "top"].indexOf(i) ? -1 : 1,
|
||||
s = "function" == typeof o ? o(Object.assign({}, r, {
|
||||
placement: n
|
||||
})) : o;
|
||||
return r = (r = s[0]) || 0, s = ((s = s[1]) || 0) * a, i = 0 <= ["left", "right"].indexOf(i) ? {
|
||||
x: s,
|
||||
y: r
|
||||
} : {
|
||||
x: r,
|
||||
y: s
|
||||
}, e[n] = i, e
|
||||
}), {}))[t.placement],
|
||||
i = r.x;
|
||||
r = r.y, null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += r), t.modifiersData[n] = e
|
||||
}
|
||||
},
|
||||
ee = {
|
||||
left: "right",
|
||||
right: "left",
|
||||
bottom: "top",
|
||||
top: "bottom"
|
||||
},
|
||||
te = {
|
||||
start: "end",
|
||||
end: "start"
|
||||
},
|
||||
ne = {
|
||||
name: "flip",
|
||||
enabled: !0,
|
||||
phase: "main",
|
||||
fn: function(e) {
|
||||
var t = e.state,
|
||||
n = e.options;
|
||||
if (e = e.name, !t.modifiersData[e]._skip) {
|
||||
var o = n.mainAxis;
|
||||
o = void 0 === o || o;
|
||||
var r = n.altAxis;
|
||||
r = void 0 === r || r;
|
||||
var i = n.fallbackPlacements,
|
||||
a = n.padding,
|
||||
s = n.boundary,
|
||||
f = n.rootBoundary,
|
||||
p = n.altBoundary,
|
||||
c = n.flipVariations,
|
||||
l = void 0 === c || c,
|
||||
u = n.allowedAutoPlacements;
|
||||
c = x(n = t.options.placement), i = i || (c !== n && l ? function(e) {
|
||||
if ("auto" === x(e)) return [];
|
||||
var t = H(e);
|
||||
return [S(e), t, S(t)]
|
||||
}(n) : [H(n)]);
|
||||
var d = [n].concat(i).reduce((function(e, n) {
|
||||
return e.concat("auto" === x(n) ? function(e, t) {
|
||||
void 0 === t && (t = {});
|
||||
var n = t.boundary,
|
||||
o = t.rootBoundary,
|
||||
r = t.padding,
|
||||
i = t.flipVariations,
|
||||
a = t.allowedAutoPlacements,
|
||||
s = void 0 === a ? I : a,
|
||||
f = L(t.placement);
|
||||
0 === (i = (t = f ? i ? V : V.filter((function(e) {
|
||||
return L(e) === f
|
||||
})) : N).filter((function(e) {
|
||||
return 0 <= s.indexOf(e)
|
||||
}))).length && (i = t);
|
||||
var p = i.reduce((function(t, i) {
|
||||
return t[i] = B(e, {
|
||||
placement: i,
|
||||
boundary: n,
|
||||
rootBoundary: o,
|
||||
padding: r
|
||||
})[x(i)], t
|
||||
}), {});
|
||||
return Object.keys(p).sort((function(e, t) {
|
||||
return p[e] - p[t]
|
||||
}))
|
||||
}(t, {
|
||||
placement: n,
|
||||
boundary: s,
|
||||
rootBoundary: f,
|
||||
padding: a,
|
||||
flipVariations: l,
|
||||
allowedAutoPlacements: u
|
||||
}) : n)
|
||||
}), []);
|
||||
n = t.rects.reference, i = t.rects.popper;
|
||||
var m = new Map;
|
||||
c = !0;
|
||||
for (var h = d[0], v = 0; v < d.length; v++) {
|
||||
var g = d[v],
|
||||
b = x(g),
|
||||
y = "start" === L(g),
|
||||
w = 0 <= ["top", "bottom"].indexOf(b),
|
||||
O = w ? "width" : "height",
|
||||
j = B(t, {
|
||||
placement: g,
|
||||
boundary: s,
|
||||
rootBoundary: f,
|
||||
altBoundary: p,
|
||||
padding: a
|
||||
});
|
||||
if (y = w ? y ? "right" : "left" : y ? "bottom" : "top", n[O] > i[O] && (y = H(y)), O = H(y), w = [], o && w.push(0 >= j[b]), r && w.push(0 >= j[y], 0 >= j[O]), w.every((function(e) {
|
||||
return e
|
||||
}))) {
|
||||
h = g, c = !1;
|
||||
break
|
||||
}
|
||||
m.set(g, w)
|
||||
}
|
||||
if (c)
|
||||
for (o = function(e) {
|
||||
var t = d.find((function(t) {
|
||||
if (t = m.get(t)) return t.slice(0, e).every((function(e) {
|
||||
return e
|
||||
}))
|
||||
}));
|
||||
if (t) return h = t, "break"
|
||||
}, r = l ? 3 : 1; 0 < r && "break" !== o(r); r--);
|
||||
t.placement !== h && (t.modifiersData[e]._skip = !0, t.placement = h, t.reset = !0)
|
||||
}
|
||||
},
|
||||
requiresIfExists: ["offset"],
|
||||
data: {
|
||||
_skip: !1
|
||||
}
|
||||
},
|
||||
oe = {
|
||||
name: "preventOverflow",
|
||||
enabled: !0,
|
||||
phase: "main",
|
||||
fn: function(e) {
|
||||
var t = e.state,
|
||||
n = e.options;
|
||||
e = e.name;
|
||||
var o = n.mainAxis,
|
||||
r = void 0 === o || o,
|
||||
i = void 0 !== (o = n.altAxis) && o;
|
||||
o = void 0 === (o = n.tether) || o;
|
||||
var a = n.tetherOffset,
|
||||
s = void 0 === a ? 0 : a,
|
||||
f = B(t, {
|
||||
boundary: n.boundary,
|
||||
rootBoundary: n.rootBoundary,
|
||||
padding: n.padding,
|
||||
altBoundary: n.altBoundary
|
||||
});
|
||||
n = x(t.placement);
|
||||
var p = L(t.placement),
|
||||
c = !p,
|
||||
l = P(n);
|
||||
n = "x" === l ? "y" : "x", a = t.modifiersData.popperOffsets;
|
||||
var u = t.rects.reference,
|
||||
m = t.rects.popper,
|
||||
h = "function" == typeof s ? s(Object.assign({}, t.rects, {
|
||||
placement: t.placement
|
||||
})) : s;
|
||||
if (s = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}, a) {
|
||||
if (r || i) {
|
||||
var v = "y" === l ? "top" : "left",
|
||||
g = "y" === l ? "bottom" : "right",
|
||||
y = "y" === l ? "height" : "width",
|
||||
w = a[l],
|
||||
O = a[l] + f[v],
|
||||
j = a[l] - f[g],
|
||||
E = o ? -m[y] / 2 : 0,
|
||||
D = "start" === p ? u[y] : m[y];
|
||||
p = "start" === p ? -m[y] : -u[y], m = t.elements.arrow, m = o && m ? d(m) : {
|
||||
width: 0,
|
||||
height: 0
|
||||
};
|
||||
var M = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : {
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0
|
||||
};
|
||||
v = M[v], g = M[g], m = U(0, z(u[y], m[y])), D = c ? u[y] / 2 - E - m - v - h : D - m - v - h, u = c ? -u[y] / 2 + E + m + g + h : p + m + g + h, c = t.elements.arrow && b(t.elements.arrow), h = t.modifiersData.offset ? t.modifiersData.offset[t.placement][l] : 0, c = a[l] + D - h - (c ? "y" === l ? c.clientTop || 0 : c.clientLeft || 0 : 0), u = a[l] + u - h, r && (r = o ? z(O, c) : O, j = o ? U(j, u) : j, r = U(r, z(w, j)), a[l] = r, s[l] = r - w), i && (r = (i = a[n]) + f["x" === l ? "top" : "left"], f = i - f["x" === l ? "bottom" : "right"], r = o ? z(r, c) : r, o = o ? U(f, u) : f, o = U(r, z(i, o)), a[n] = o, s[n] = o - i)
|
||||
}
|
||||
t.modifiersData[e] = s
|
||||
}
|
||||
},
|
||||
requiresIfExists: ["offset"]
|
||||
},
|
||||
re = {
|
||||
name: "arrow",
|
||||
enabled: !0,
|
||||
phase: "main",
|
||||
fn: function(e) {
|
||||
var t, n = e.state,
|
||||
o = e.name,
|
||||
r = e.options,
|
||||
i = n.elements.arrow,
|
||||
a = n.modifiersData.popperOffsets,
|
||||
s = x(n.placement);
|
||||
if (e = P(s), s = 0 <= ["left", "right"].indexOf(s) ? "height" : "width", i && a) {
|
||||
r = k("number" != typeof(r = "function" == typeof(r = r.padding) ? r(Object.assign({}, n.rects, {
|
||||
placement: n.placement
|
||||
})) : r) ? r : A(r, N));
|
||||
var f = d(i),
|
||||
p = "y" === e ? "top" : "left",
|
||||
c = "y" === e ? "bottom" : "right",
|
||||
l = n.rects.reference[s] + n.rects.reference[e] - a[e] - n.rects.popper[s];
|
||||
a = a[e] - n.rects.reference[e], a = (i = (i = b(i)) ? "y" === e ? i.clientHeight || 0 : i.clientWidth || 0 : 0) / 2 - f[s] / 2 + (l / 2 - a / 2), s = U(r[p], z(a, i - f[s] - r[c])), n.modifiersData[o] = ((t = {})[e] = s, t.centerOffset = s - a, t)
|
||||
}
|
||||
},
|
||||
effect: function(e) {
|
||||
var t = e.state;
|
||||
if (null != (e = void 0 === (e = e.options.element) ? "[data-popper-arrow]" : e)) {
|
||||
if ("string" == typeof e && !(e = t.elements.popper.querySelector(e))) return;
|
||||
O(t.elements.popper, e) && (t.elements.arrow = e)
|
||||
}
|
||||
},
|
||||
requires: ["popperOffsets"],
|
||||
requiresIfExists: ["preventOverflow"]
|
||||
},
|
||||
ie = {
|
||||
name: "hide",
|
||||
enabled: !0,
|
||||
phase: "main",
|
||||
requiresIfExists: ["preventOverflow"],
|
||||
fn: function(e) {
|
||||
var t = e.state;
|
||||
e = e.name;
|
||||
var n = t.rects.reference,
|
||||
o = t.rects.popper,
|
||||
r = t.modifiersData.preventOverflow,
|
||||
i = B(t, {
|
||||
elementContext: "reference"
|
||||
}),
|
||||
a = B(t, {
|
||||
altBoundary: !0
|
||||
});
|
||||
n = C(i, n), o = C(a, o, r), r = q(n), a = q(o), t.modifiersData[e] = {
|
||||
referenceClippingOffsets: n,
|
||||
popperEscapeOffsets: o,
|
||||
isReferenceHidden: r,
|
||||
hasPopperEscaped: a
|
||||
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
||||
"data-popper-reference-hidden": r,
|
||||
"data-popper-escaped": a
|
||||
})
|
||||
}
|
||||
},
|
||||
ae = T({
|
||||
defaultModifiers: [G, J, Q, Z]
|
||||
}),
|
||||
se = [G, J, Q, Z, $, ne, oe, re, ie],
|
||||
fe = T({
|
||||
defaultModifiers: se
|
||||
});
|
||||
e.applyStyles = Z, e.arrow = re, e.computeStyles = Q, e.createPopper = fe, e.createPopperLite = ae, e.defaultModifiers = se, e.detectOverflow = B, e.eventListeners = G, e.flip = ne, e.hide = ie, e.offset = $, e.popperGenerator = T, e.popperOffsets = J, e.preventOverflow = oe, Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
})
|
||||
}));
|
||||
//# sourceMappingURL=popper.min.js.map
|
||||
/**
|
||||
* @popperjs/core v2.11.8 - MIT License
|
||||
*/
|
||||
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var i=Math.max,a=Math.min,s=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(f())}function p(e,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),f=1,p=1;o&&r(e)&&(f=e.offsetWidth>0&&s(a.width)/e.offsetWidth||1,p=e.offsetHeight>0&&s(a.height)/e.offsetHeight||1);var u=(n(e)?t(e):window).visualViewport,l=!c()&&i,d=(a.left+(l&&u?u.offsetLeft:0))/f,h=(a.top+(l&&u?u.offsetTop:0))/p,m=a.width/f,v=a.height/p;return{width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h}}function u(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function l(e){return e?(e.nodeName||"").toLowerCase():null}function d(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(d(e)).left+u(e).scrollLeft}function m(e){return t(e).getComputedStyle(e)}function v(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function y(e,n,o){void 0===o&&(o=!1);var i,a,f=r(n),c=r(n)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(n),m=d(n),y=p(e,c,o),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(f||!f&&!o)&&(("body"!==l(n)||v(m))&&(g=(i=n)!==t(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:u(i)),r(n)?((b=p(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):m&&(b.x=h(m))),{x:y.left+g.scrollLeft-b.x,y:y.top+g.scrollTop-b.y,width:y.width,height:y.height}}function g(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||d(e)}function x(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:r(e)&&v(e)?e:x(b(e))}function w(e,n){var r;void 0===n&&(n=[]);var o=x(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],v(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(w(b(s)))}function O(e){return["table","td","th"].indexOf(l(e))>=0}function j(e){return r(e)&&"fixed"!==m(e).position?e.offsetParent:null}function E(e){for(var n=t(e),i=j(e);i&&O(i)&&"static"===m(i).position;)i=j(i);return i&&("html"===l(i)||"body"===l(i)&&"static"===m(i).position)?n:i||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&r(e)&&"fixed"===m(e).position)return null;var n=b(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(l(n))<0;){var i=m(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||n}var D="top",A="bottom",L="right",P="left",M="auto",k=[D,A,L,P],W="start",B="end",H="viewport",T="popper",R=k.reduce((function(e,t){return e.concat([t+"-"+W,t+"-"+B])}),[]),S=[].concat(k,[M]).reduce((function(e,t){return e.concat([t,t+"-"+W,t+"-"+B])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I(e,r,o){return r===H?N(function(e,n){var r=t(e),o=d(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,p=0;if(i){a=i.width,s=i.height;var u=c();(u||!u&&"fixed"===n)&&(f=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:f+h(e),y:p}}(e,o)):n(r)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(r,o):N(function(e){vLine truncated
|
||||
//# sourceMappingURL=popper.min.js.map
|
||||
@@ -1,311 +1,7 @@
|
||||
/*!
|
||||
Waypoints - 4.0.1
|
||||
Copyright © 2011-2016 Caleb Troughton
|
||||
Licensed under the MIT license.
|
||||
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
|
||||
*/
|
||||
! function() {
|
||||
"use strict";
|
||||
|
||||
function t(o) {
|
||||
if (!o) throw new Error("No options passed to Waypoint constructor");
|
||||
if (!o.element) throw new Error("No element option passed to Waypoint constructor");
|
||||
if (!o.handler) throw new Error("No handler option passed to Waypoint constructor");
|
||||
this.key = "waypoint-" + e, this.options = t.Adapter.extend({}, t.defaults, o), this.element = this.options.element, this.adapter = new t.Adapter(this.element), this.callback = o.handler, this.axis = this.options.horizontal ? "horizontal" : "vertical", this.enabled = this.options.enabled, this.triggerPoint = null, this.group = t.Group.findOrCreate({
|
||||
name: this.options.group,
|
||||
axis: this.axis
|
||||
}), this.context = t.Context.findOrCreateByElement(this.options.context), t.offsetAliases[this.options.offset] && (this.options.offset = t.offsetAliases[this.options.offset]), this.group.add(this), this.context.add(this), i[this.key] = this, e += 1
|
||||
}
|
||||
var e = 0,
|
||||
i = {};
|
||||
t.prototype.queueTrigger = function(t) {
|
||||
this.group.queueTrigger(this, t)
|
||||
}, t.prototype.trigger = function(t) {
|
||||
this.enabled && this.callback && this.callback.apply(this, t)
|
||||
}, t.prototype.destroy = function() {
|
||||
this.context.remove(this), this.group.remove(this), delete i[this.key]
|
||||
}, t.prototype.disable = function() {
|
||||
return this.enabled = !1, this
|
||||
}, t.prototype.enable = function() {
|
||||
return this.context.refresh(), this.enabled = !0, this
|
||||
}, t.prototype.next = function() {
|
||||
return this.group.next(this)
|
||||
}, t.prototype.previous = function() {
|
||||
return this.group.previous(this)
|
||||
}, t.invokeAll = function(t) {
|
||||
var e = [];
|
||||
for (var o in i) e.push(i[o]);
|
||||
for (var n = 0, r = e.length; r > n; n++) e[n][t]()
|
||||
}, t.destroyAll = function() {
|
||||
t.invokeAll("destroy")
|
||||
}, t.disableAll = function() {
|
||||
t.invokeAll("disable")
|
||||
}, t.enableAll = function() {
|
||||
t.Context.refreshAll();
|
||||
for (var e in i) i[e].enabled = !0;
|
||||
return this
|
||||
}, t.refreshAll = function() {
|
||||
t.Context.refreshAll()
|
||||
}, t.viewportHeight = function() {
|
||||
return window.innerHeight || document.documentElement.clientHeight
|
||||
}, t.viewportWidth = function() {
|
||||
return document.documentElement.clientWidth
|
||||
}, t.adapters = [], t.defaults = {
|
||||
context: window,
|
||||
continuous: !0,
|
||||
enabled: !0,
|
||||
group: "default",
|
||||
horizontal: !1,
|
||||
offset: 0
|
||||
}, t.offsetAliases = {
|
||||
"bottom-in-view": function() {
|
||||
return this.context.innerHeight() - this.adapter.outerHeight()
|
||||
},
|
||||
"right-in-view": function() {
|
||||
return this.context.innerWidth() - this.adapter.outerWidth()
|
||||
}
|
||||
}, window.Waypoint = t
|
||||
}(),
|
||||
function() {
|
||||
"use strict";
|
||||
|
||||
function t(t) {
|
||||
window.setTimeout(t, 1e3 / 60)
|
||||
}
|
||||
|
||||
function e(t) {
|
||||
this.element = t, this.Adapter = n.Adapter, this.adapter = new this.Adapter(t), this.key = "waypoint-context-" + i, this.didScroll = !1, this.didResize = !1, this.oldScroll = {
|
||||
x: this.adapter.scrollLeft(),
|
||||
y: this.adapter.scrollTop()
|
||||
}, this.waypoints = {
|
||||
vertical: {},
|
||||
horizontal: {}
|
||||
}, t.waypointContextKey = this.key, o[t.waypointContextKey] = this, i += 1, n.windowContext || (n.windowContext = !0, n.windowContext = new e(window)), this.createThrottledScrollHandler(), this.createThrottledResizeHandler()
|
||||
}
|
||||
var i = 0,
|
||||
o = {},
|
||||
n = window.Waypoint,
|
||||
r = window.onload;
|
||||
e.prototype.add = function(t) {
|
||||
var e = t.options.horizontal ? "horizontal" : "vertical";
|
||||
this.waypoints[e][t.key] = t, this.refresh()
|
||||
}, e.prototype.checkEmpty = function() {
|
||||
var t = this.Adapter.isEmptyObject(this.waypoints.horizontal),
|
||||
e = this.Adapter.isEmptyObject(this.waypoints.vertical),
|
||||
i = this.element == this.element.window;
|
||||
t && e && !i && (this.adapter.off(".waypoints"), delete o[this.key])
|
||||
}, e.prototype.createThrottledResizeHandler = function() {
|
||||
function t() {
|
||||
e.handleResize(), e.didResize = !1
|
||||
}
|
||||
var e = this;
|
||||
this.adapter.on("resize.waypoints", function() {
|
||||
e.didResize || (e.didResize = !0, n.requestAnimationFrame(t))
|
||||
})
|
||||
}, e.prototype.createThrottledScrollHandler = function() {
|
||||
function t() {
|
||||
e.handleScroll(), e.didScroll = !1
|
||||
}
|
||||
var e = this;
|
||||
this.adapter.on("scroll.waypoints", function() {
|
||||
(!e.didScroll || n.isTouch) && (e.didScroll = !0, n.requestAnimationFrame(t))
|
||||
})
|
||||
}, e.prototype.handleResize = function() {
|
||||
n.Context.refreshAll()
|
||||
}, e.prototype.handleScroll = function() {
|
||||
var t = {},
|
||||
e = {
|
||||
horizontal: {
|
||||
newScroll: this.adapter.scrollLeft(),
|
||||
oldScroll: this.oldScroll.x,
|
||||
forward: "right",
|
||||
backward: "left"
|
||||
},
|
||||
vertical: {
|
||||
newScroll: this.adapter.scrollTop(),
|
||||
oldScroll: this.oldScroll.y,
|
||||
forward: "down",
|
||||
backward: "up"
|
||||
}
|
||||
};
|
||||
for (var i in e) {
|
||||
var o = e[i],
|
||||
n = o.newScroll > o.oldScroll,
|
||||
r = n ? o.forward : o.backward;
|
||||
for (var s in this.waypoints[i]) {
|
||||
var a = this.waypoints[i][s];
|
||||
if (null !== a.triggerPoint) {
|
||||
var l = o.oldScroll < a.triggerPoint,
|
||||
h = o.newScroll >= a.triggerPoint,
|
||||
p = l && h,
|
||||
u = !l && !h;
|
||||
(p || u) && (a.queueTrigger(r), t[a.group.id] = a.group)
|
||||
}
|
||||
}
|
||||
}
|
||||
for (var c in t) t[c].flushTriggers();
|
||||
this.oldScroll = {
|
||||
x: e.horizontal.newScroll,
|
||||
y: e.vertical.newScroll
|
||||
}
|
||||
}, e.prototype.innerHeight = function() {
|
||||
return this.element == this.element.window ? n.viewportHeight() : this.adapter.innerHeight()
|
||||
}, e.prototype.remove = function(t) {
|
||||
delete this.waypoints[t.axis][t.key], this.checkEmpty()
|
||||
}, e.prototype.innerWidth = function() {
|
||||
return this.element == this.element.window ? n.viewportWidth() : this.adapter.innerWidth()
|
||||
}, e.prototype.destroy = function() {
|
||||
var t = [];
|
||||
for (var e in this.waypoints)
|
||||
for (var i in this.waypoints[e]) t.push(this.waypoints[e][i]);
|
||||
for (var o = 0, n = t.length; n > o; o++) t[o].destroy()
|
||||
}, e.prototype.refresh = function() {
|
||||
var t, e = this.element == this.element.window,
|
||||
i = e ? void 0 : this.adapter.offset(),
|
||||
o = {};
|
||||
this.handleScroll(), t = {
|
||||
horizontal: {
|
||||
contextOffset: e ? 0 : i.left,
|
||||
contextScroll: e ? 0 : this.oldScroll.x,
|
||||
contextDimension: this.innerWidth(),
|
||||
oldScroll: this.oldScroll.x,
|
||||
forward: "right",
|
||||
backward: "left",
|
||||
offsetProp: "left"
|
||||
},
|
||||
vertical: {
|
||||
contextOffset: e ? 0 : i.top,
|
||||
contextScroll: e ? 0 : this.oldScroll.y,
|
||||
contextDimension: this.innerHeight(),
|
||||
oldScroll: this.oldScroll.y,
|
||||
forward: "down",
|
||||
backward: "up",
|
||||
offsetProp: "top"
|
||||
}
|
||||
};
|
||||
for (var r in t) {
|
||||
var s = t[r];
|
||||
for (var a in this.waypoints[r]) {
|
||||
var l, h, p, u, c, d = this.waypoints[r][a],
|
||||
f = d.options.offset,
|
||||
w = d.triggerPoint,
|
||||
y = 0,
|
||||
g = null == w;
|
||||
d.element !== d.element.window && (y = d.adapter.offset()[s.offsetProp]), "function" == typeof f ? f = f.apply(d) : "string" == typeof f && (f = parseFloat(f), d.options.offset.indexOf("%") > -1 && (f = Math.ceil(s.contextDimension * f / 100))), l = s.contextScroll - s.contextOffset, d.triggerPoint = Math.floor(y + l - f), h = w < s.oldScroll, p = d.triggerPoint >= s.oldScroll, u = h && p, c = !h && !p, !g && u ? (d.queueTrigger(s.backward), o[d.group.id] = d.group) : !g && c ? (d.queueTrigger(s.forward), o[d.group.id] = d.group) : g && s.oldScroll >= d.triggerPoint && (d.queueTrigger(s.forward), o[d.group.id] = d.group)
|
||||
}
|
||||
}
|
||||
return n.requestAnimationFrame(function() {
|
||||
for (var t in o) o[t].flushTriggers()
|
||||
}), this
|
||||
}, e.findOrCreateByElement = function(t) {
|
||||
return e.findByElement(t) || new e(t)
|
||||
}, e.refreshAll = function() {
|
||||
for (var t in o) o[t].refresh()
|
||||
}, e.findByElement = function(t) {
|
||||
return o[t.waypointContextKey]
|
||||
}, window.onload = function() {
|
||||
r && r(), e.refreshAll()
|
||||
}, n.requestAnimationFrame = function(e) {
|
||||
var i = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || t;
|
||||
i.call(window, e)
|
||||
}, n.Context = e
|
||||
}(),
|
||||
function() {
|
||||
"use strict";
|
||||
|
||||
function t(t, e) {
|
||||
return t.triggerPoint - e.triggerPoint
|
||||
}
|
||||
|
||||
function e(t, e) {
|
||||
return e.triggerPoint - t.triggerPoint
|
||||
}
|
||||
|
||||
function i(t) {
|
||||
this.name = t.name, this.axis = t.axis, this.id = this.name + "-" + this.axis, this.waypoints = [], this.clearTriggerQueues(), o[this.axis][this.name] = this
|
||||
}
|
||||
var o = {
|
||||
vertical: {},
|
||||
horizontal: {}
|
||||
},
|
||||
n = window.Waypoint;
|
||||
i.prototype.add = function(t) {
|
||||
this.waypoints.push(t)
|
||||
}, i.prototype.clearTriggerQueues = function() {
|
||||
this.triggerQueues = {
|
||||
up: [],
|
||||
down: [],
|
||||
left: [],
|
||||
right: []
|
||||
}
|
||||
}, i.prototype.flushTriggers = function() {
|
||||
for (var i in this.triggerQueues) {
|
||||
var o = this.triggerQueues[i],
|
||||
n = "up" === i || "left" === i;
|
||||
o.sort(n ? e : t);
|
||||
for (var r = 0, s = o.length; s > r; r += 1) {
|
||||
var a = o[r];
|
||||
(a.options.continuous || r === o.length - 1) && a.trigger([i])
|
||||
}
|
||||
}
|
||||
this.clearTriggerQueues()
|
||||
}, i.prototype.next = function(e) {
|
||||
this.waypoints.sort(t);
|
||||
var i = n.Adapter.inArray(e, this.waypoints),
|
||||
o = i === this.waypoints.length - 1;
|
||||
return o ? null : this.waypoints[i + 1]
|
||||
}, i.prototype.previous = function(e) {
|
||||
this.waypoints.sort(t);
|
||||
var i = n.Adapter.inArray(e, this.waypoints);
|
||||
return i ? this.waypoints[i - 1] : null
|
||||
}, i.prototype.queueTrigger = function(t, e) {
|
||||
this.triggerQueues[e].push(t)
|
||||
}, i.prototype.remove = function(t) {
|
||||
var e = n.Adapter.inArray(t, this.waypoints);
|
||||
e > -1 && this.waypoints.splice(e, 1)
|
||||
}, i.prototype.first = function() {
|
||||
return this.waypoints[0]
|
||||
}, i.prototype.last = function() {
|
||||
return this.waypoints[this.waypoints.length - 1]
|
||||
}, i.findOrCreate = function(t) {
|
||||
return o[t.axis][t.name] || new i(t)
|
||||
}, n.Group = i
|
||||
}(),
|
||||
function() {
|
||||
"use strict";
|
||||
|
||||
function t(t) {
|
||||
this.$element = e(t)
|
||||
}
|
||||
var e = window.jQuery,
|
||||
i = window.Waypoint;
|
||||
e.each(["innerHeight", "innerWidth", "off", "offset", "on", "outerHeight", "outerWidth", "scrollLeft", "scrollTop"], function(e, i) {
|
||||
t.prototype[i] = function() {
|
||||
var t = Array.prototype.slice.call(arguments);
|
||||
return this.$element[i].apply(this.$element, t)
|
||||
}
|
||||
}), e.each(["extend", "inArray", "isEmptyObject"], function(i, o) {
|
||||
t[o] = e[o]
|
||||
}), i.adapters.push({
|
||||
name: "jquery",
|
||||
Adapter: t
|
||||
}), i.Adapter = t
|
||||
}(),
|
||||
function() {
|
||||
"use strict";
|
||||
|
||||
function t(t) {
|
||||
return function() {
|
||||
var i = [],
|
||||
o = arguments[0];
|
||||
return t.isFunction(arguments[0]) && (o = t.extend({}, arguments[1]), o.handler = arguments[0]), this.each(function() {
|
||||
var n = t.extend({}, o, {
|
||||
element: this
|
||||
});
|
||||
"string" == typeof n.context && (n.context = t(this).closest(n.context)[0]), i.push(new e(n))
|
||||
}), i
|
||||
}
|
||||
}
|
||||
var e = window.Waypoint;
|
||||
window.jQuery && (window.jQuery.fn.waypoint = t(window.jQuery)), window.Zepto && (window.Zepto.fn.waypoint = t(window.Zepto))
|
||||
}();
|
||||
/*!
|
||||
Waypoints - 4.0.1
|
||||
Copyright © 2011-2016 Caleb Troughton
|
||||
Licensed under the MIT license.
|
||||
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
|
||||
*/
|
||||
!function(){"use strict";function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var o=0,r=e.length;r>o;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},o=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||o.isTouch)&&(e.didScroll=!0,o.requestAnimationFrame(t))})},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll,r=o?n.forward:n.backward;for(var s in this.waypoints[i]){var l=this.waypoints[i][s];if(null!==l.triggerPoint){var a=n.oldScroll<l.triggerPoint,h=n.newScroll>=l.triggerPoint,p=a&&h,u=!a&&!h;(p||u)&&(l.queueTrigger(r),t[l.group.id]=l.group)}}}for(var d in t)t[d].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;o>n;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};this.handleScroll(),t={horizontal:{contextOffset:eLine truncated
|
||||
@@ -1,325 +1,2 @@
|
||||
/*! WOW wow.js - v1.3.0 - 2016-10-04
|
||||
* https://wowjs.uk
|
||||
* Copyright (c) 2016 Thomas Grainger; Licensed MIT */
|
||||
! function(a, b) {
|
||||
if ("function" == typeof define && define.amd) define(["module", "exports"], b);
|
||||
else if ("undefined" != typeof exports) b(module, exports);
|
||||
else {
|
||||
var c = {
|
||||
exports: {}
|
||||
};
|
||||
b(c, c.exports), a.WOW = c.exports
|
||||
}
|
||||
}(this, function(a, b) {
|
||||
"use strict";
|
||||
|
||||
function c(a, b) {
|
||||
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
|
||||
}
|
||||
|
||||
function d(a, b) {
|
||||
return b.indexOf(a) >= 0
|
||||
}
|
||||
|
||||
function e(a, b) {
|
||||
for (var c in b)
|
||||
if (null == a[c]) {
|
||||
var d = b[c];
|
||||
a[c] = d
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
function f(a) {
|
||||
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)
|
||||
}
|
||||
|
||||
function g(a) {
|
||||
var b = arguments.length <= 1 || void 0 === arguments[1] ? !1 : arguments[1],
|
||||
c = arguments.length <= 2 || void 0 === arguments[2] ? !1 : arguments[2],
|
||||
d = arguments.length <= 3 || void 0 === arguments[3] ? null : arguments[3],
|
||||
e = void 0;
|
||||
return null != document.createEvent ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(a, b, c, d)) : null != document.createEventObject ? (e = document.createEventObject(), e.eventType = a) : e.eventName = a, e
|
||||
}
|
||||
|
||||
function h(a, b) {
|
||||
null != a.dispatchEvent ? a.dispatchEvent(b) : b in (null != a) ? a[b]() : "on" + b in (null != a) && a["on" + b]()
|
||||
}
|
||||
|
||||
function i(a, b, c) {
|
||||
null != a.addEventListener ? a.addEventListener(b, c, !1) : null != a.attachEvent ? a.attachEvent("on" + b, c) : a[b] = c
|
||||
}
|
||||
|
||||
function j(a, b, c) {
|
||||
null != a.removeEventListener ? a.removeEventListener(b, c, !1) : null != a.detachEvent ? a.detachEvent("on" + b, c) : delete a[b]
|
||||
}
|
||||
|
||||
function k() {
|
||||
return "innerHeight" in window ? window.innerHeight : document.documentElement.clientHeight
|
||||
}
|
||||
Object.defineProperty(b, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var l, m, n = function() {
|
||||
function a(a, b) {
|
||||
for (var c = 0; c < b.length; c++) {
|
||||
var d = b[c];
|
||||
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d)
|
||||
}
|
||||
}
|
||||
return function(b, c, d) {
|
||||
return c && a(b.prototype, c), d && a(b, d), b
|
||||
}
|
||||
}(),
|
||||
o = window.WeakMap || window.MozWeakMap || function() {
|
||||
function a() {
|
||||
c(this, a), this.keys = [], this.values = []
|
||||
}
|
||||
return n(a, [{
|
||||
key: "get",
|
||||
value: function(a) {
|
||||
for (var b = 0; b < this.keys.length; b++) {
|
||||
var c = this.keys[b];
|
||||
if (c === a) return this.values[b]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "set",
|
||||
value: function(a, b) {
|
||||
for (var c = 0; c < this.keys.length; c++) {
|
||||
var d = this.keys[c];
|
||||
if (d === a) return this.values[c] = b, this
|
||||
}
|
||||
return this.keys.push(a), this.values.push(b), this
|
||||
}
|
||||
}]), a
|
||||
}(),
|
||||
p = window.MutationObserver || window.WebkitMutationObserver || window.MozMutationObserver || (m = l = function() {
|
||||
function a() {
|
||||
c(this, a), "undefined" != typeof console && null !== console && (console.warn("MutationObserver is not supported by your browser."), console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))
|
||||
}
|
||||
return n(a, [{
|
||||
key: "observe",
|
||||
value: function() {}
|
||||
}]), a
|
||||
}(), l.notSupported = !0, m),
|
||||
q = window.getComputedStyle || function(a) {
|
||||
var b = /(\-([a-z]){1})/g;
|
||||
return {
|
||||
getPropertyValue: function(c) {
|
||||
"float" === c && (c = "styleFloat"), b.test(c) && c.replace(b, function(a, b) {
|
||||
return b.toUpperCase()
|
||||
});
|
||||
var d = a.currentStyle;
|
||||
return (null != d ? d[c] : void 0) || null
|
||||
}
|
||||
}
|
||||
},
|
||||
r = function() {
|
||||
function a() {
|
||||
var b = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0];
|
||||
c(this, a), this.defaults = {
|
||||
boxClass: "wow",
|
||||
animateClass: "animated",
|
||||
offset: 0,
|
||||
mobile: !0,
|
||||
live: !0,
|
||||
callback: null,
|
||||
scrollContainer: null,
|
||||
resetAnimation: !0
|
||||
}, this.animate = function() {
|
||||
return "requestAnimationFrame" in window ? function(a) {
|
||||
return window.requestAnimationFrame(a)
|
||||
} : function(a) {
|
||||
return a()
|
||||
}
|
||||
}(), this.vendors = ["moz", "webkit"], this.start = this.start.bind(this), this.resetAnimation = this.resetAnimation.bind(this), this.scrollHandler = this.scrollHandler.bind(this), this.scrollCallback = this.scrollCallback.bind(this), this.scrolled = !0, this.config = e(b, this.defaults), null != b.scrollContainer && (this.config.scrollContainer = document.querySelector(b.scrollContainer)), this.animationNameCache = new o, this.wowEvent = g(this.config.boxClass)
|
||||
}
|
||||
return n(a, [{
|
||||
key: "init",
|
||||
value: function() {
|
||||
this.element = window.document.documentElement, d(document.readyState, ["interactive", "complete"]) ? this.start() : i(document, "DOMContentLoaded", this.start), this.finished = []
|
||||
}
|
||||
}, {
|
||||
key: "start",
|
||||
value: function() {
|
||||
var a = this;
|
||||
if (this.stopped = !1, this.boxes = [].slice.call(this.element.querySelectorAll("." + this.config.boxClass)), this.all = this.boxes.slice(0), this.boxes.length)
|
||||
if (this.disabled()) this.resetStyle();
|
||||
else
|
||||
for (var b = 0; b < this.boxes.length; b++) {
|
||||
var c = this.boxes[b];
|
||||
this.applyStyle(c, !0)
|
||||
}
|
||||
if (this.disabled() || (i(this.config.scrollContainer || window, "scroll", this.scrollHandler), i(window, "resize", this.scrollHandler), this.interval = setInterval(this.scrollCallback, 50)), this.config.live) {
|
||||
var d = new p(function(b) {
|
||||
for (var c = 0; c < b.length; c++)
|
||||
for (var d = b[c], e = 0; e < d.addedNodes.length; e++) {
|
||||
var f = d.addedNodes[e];
|
||||
a.doSync(f)
|
||||
}
|
||||
});
|
||||
d.observe(document.body, {
|
||||
childList: !0,
|
||||
subtree: !0
|
||||
})
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "stop",
|
||||
value: function() {
|
||||
this.stopped = !0, j(this.config.scrollContainer || window, "scroll", this.scrollHandler), j(window, "resize", this.scrollHandler), null != this.interval && clearInterval(this.interval)
|
||||
}
|
||||
}, {
|
||||
key: "sync",
|
||||
value: function() {
|
||||
p.notSupported && this.doSync(this.element)
|
||||
}
|
||||
}, {
|
||||
key: "doSync",
|
||||
value: function(a) {
|
||||
if ("undefined" != typeof a && null !== a || (a = this.element), 1 === a.nodeType) {
|
||||
a = a.parentNode || a;
|
||||
for (var b = a.querySelectorAll("." + this.config.boxClass), c = 0; c < b.length; c++) {
|
||||
var e = b[c];
|
||||
d(e, this.all) || (this.boxes.push(e), this.all.push(e), this.stopped || this.disabled() ? this.resetStyle() : this.applyStyle(e, !0), this.scrolled = !0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "show",
|
||||
value: function(a) {
|
||||
return this.applyStyle(a), a.className = a.className + " " + this.config.animateClass, null != this.config.callback && this.config.callback(a), h(a, this.wowEvent), this.config.resetAnimation && (i(a, "animationend", this.resetAnimation), i(a, "oanimationend", this.resetAnimation), i(a, "webkitAnimationEnd", this.resetAnimation), i(a, "MSAnimationEnd", this.resetAnimation)), a
|
||||
}
|
||||
}, {
|
||||
key: "applyStyle",
|
||||
value: function(a, b) {
|
||||
var c = this,
|
||||
d = a.getAttribute("data-wow-duration"),
|
||||
e = a.getAttribute("data-wow-delay"),
|
||||
f = a.getAttribute("data-wow-iteration");
|
||||
return this.animate(function() {
|
||||
return c.customStyle(a, b, d, e, f)
|
||||
})
|
||||
}
|
||||
}, {
|
||||
key: "resetStyle",
|
||||
value: function() {
|
||||
for (var a = 0; a < this.boxes.length; a++) {
|
||||
var b = this.boxes[a];
|
||||
b.style.visibility = "visible"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "resetAnimation",
|
||||
value: function(a) {
|
||||
if (a.type.toLowerCase().indexOf("animationend") >= 0) {
|
||||
var b = a.target || a.srcElement;
|
||||
b.className = b.className.replace(this.config.animateClass, "").trim()
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "customStyle",
|
||||
value: function(a, b, c, d, e) {
|
||||
return b && this.cacheAnimationName(a), a.style.visibility = b ? "hidden" : "visible", c && this.vendorSet(a.style, {
|
||||
animationDuration: c
|
||||
}), d && this.vendorSet(a.style, {
|
||||
animationDelay: d
|
||||
}), e && this.vendorSet(a.style, {
|
||||
animationIterationCount: e
|
||||
}), this.vendorSet(a.style, {
|
||||
animationName: b ? "none" : this.cachedAnimationName(a)
|
||||
}), a
|
||||
}
|
||||
}, {
|
||||
key: "vendorSet",
|
||||
value: function(a, b) {
|
||||
for (var c in b)
|
||||
if (b.hasOwnProperty(c)) {
|
||||
var d = b[c];
|
||||
a["" + c] = d;
|
||||
for (var e = 0; e < this.vendors.length; e++) {
|
||||
var f = this.vendors[e];
|
||||
a["" + f + c.charAt(0).toUpperCase() + c.substr(1)] = d
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "vendorCSS",
|
||||
value: function(a, b) {
|
||||
for (var c = q(a), d = c.getPropertyCSSValue(b), e = 0; e < this.vendors.length; e++) {
|
||||
var f = this.vendors[e];
|
||||
d = d || c.getPropertyCSSValue("-" + f + "-" + b)
|
||||
}
|
||||
return d
|
||||
}
|
||||
}, {
|
||||
key: "animationName",
|
||||
value: function(a) {
|
||||
var b = void 0;
|
||||
try {
|
||||
b = this.vendorCSS(a, "animation-name").cssText
|
||||
} catch (c) {
|
||||
b = q(a).getPropertyValue("animation-name")
|
||||
}
|
||||
return "none" === b ? "" : b
|
||||
}
|
||||
}, {
|
||||
key: "cacheAnimationName",
|
||||
value: function(a) {
|
||||
return this.animationNameCache.set(a, this.animationName(a))
|
||||
}
|
||||
}, {
|
||||
key: "cachedAnimationName",
|
||||
value: function(a) {
|
||||
return this.animationNameCache.get(a)
|
||||
}
|
||||
}, {
|
||||
key: "scrollHandler",
|
||||
value: function() {
|
||||
this.scrolled = !0
|
||||
}
|
||||
}, {
|
||||
key: "scrollCallback",
|
||||
value: function() {
|
||||
if (this.scrolled) {
|
||||
this.scrolled = !1;
|
||||
for (var a = [], b = 0; b < this.boxes.length; b++) {
|
||||
var c = this.boxes[b];
|
||||
if (c) {
|
||||
if (this.isVisible(c)) {
|
||||
this.show(c);
|
||||
continue
|
||||
}
|
||||
a.push(c)
|
||||
}
|
||||
}
|
||||
this.boxes = a, this.boxes.length || this.config.live || this.stop()
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "offsetTop",
|
||||
value: function(a) {
|
||||
for (; void 0 === a.offsetTop;) a = a.parentNode;
|
||||
for (var b = a.offsetTop; a.offsetParent;) a = a.offsetParent, b += a.offsetTop;
|
||||
return b
|
||||
}
|
||||
}, {
|
||||
key: "isVisible",
|
||||
value: function(a) {
|
||||
var b = a.getAttribute("data-wow-offset") || this.config.offset,
|
||||
c = this.config.scrollContainer && this.config.scrollContainer.scrollTop || window.pageYOffset,
|
||||
d = c + Math.min(this.element.clientHeight, k()) - b,
|
||||
e = this.offsetTop(a),
|
||||
f = e + a.clientHeight;
|
||||
return d >= e && f >= c
|
||||
}
|
||||
}, {
|
||||
key: "disabled",
|
||||
value: function() {
|
||||
return !this.config.mobile && f(navigator.userAgent)
|
||||
}
|
||||
}]), a
|
||||
}();
|
||||
b["default"] = r, a.exports = b["default"]
|
||||
});
|
||||
/*! WOW - v1.1.2 - 2016-04-08
|
||||
* Copyright (c) 2016 Matthieu Aussaguel;*/(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototyLine truncated
|
||||
@@ -4,14 +4,17 @@ from contact.forms import *
|
||||
from django.utils import timezone
|
||||
from datetime import datetime
|
||||
from django.http import JsonResponse
|
||||
from home.models import *
|
||||
|
||||
# # # # # # # # # # # # # # # # # #
|
||||
# Contact Page Front #
|
||||
# # # # # # # # # # # # # # # # # #
|
||||
def contactPageFront(request):
|
||||
seo = contactPageSEO.objects.first()
|
||||
sliders = sliderSection.objects.all()
|
||||
|
||||
context = {
|
||||
context ={
|
||||
'sliders' : sliders,
|
||||
'seo' : seo,
|
||||
}
|
||||
return render(request, 'front/main/contact.html', context)
|
||||
|
||||
@@ -18,9 +18,7 @@ load_env()
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = 'django-insecure-x=qe5@^3%@t1fk)pk@uyv&r!z^#9==^*-&aiqfau3@9x@+j%nm'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
#True if os.getenv('DEBUG') == 'True' else False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',')
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[{"model": "auth.permission", "pk": 1, "fields": {"name": "Can add log entry", "content_type": 1, "codename": "add_logentry"}}, {"model": "auth.permission", "pk": 2, "fields": {"name": "Can change log entry", "content_type": 1, "codename": "change_logentry"}}, {"model": "auth.permission", "pk": 3, "fields": {"name": "Can delete log entry", "content_type": 1, "codename": "delete_logentry"}}, {"model": "auth.permission", "pk": 4, "fields": {"name": "Can view log entry", "content_type": 1, "codename": "view_logentry"}}, {"model": "auth.permission", "pk": 5, "fields": {"name": "Can add permission", "content_type": 2, "codename": "add_permission"}}, {"model": "auth.permission", "pk": 6, "fields": {"name": "Can change permission", "content_type": 2, "codename": "change_permission"}}, {"model": "auth.permission", "pk": 7, "fields": {"name": "Can delete permission", "content_type": 2, "codename": "delete_permission"}}, {"model": "auth.permission", "pk": 8, "fields": {"name": "Can view permission", "content_type": 2, "codename": "view_permission"}}, {"model": "auth.permission", "pk": 9, "fields": {"name": "Can add group", "content_type": 3, "codename": "add_group"}}, {"model": "auth.permission", "pk": 10, "fields": {"name": "Can change group", "content_type": 3, "codename": "change_group"}}, {"model": "auth.permission", "pk": 11, "fields": {"name": "Can delete group", "content_type": 3, "codename": "delete_group"}}, {"model": "auth.permission", "pk": 12, "fields": {"name": "Can view group", "content_type": 3, "codename": "view_group"}}, {"model": "auth.permission", "pk": 13, "fields": {"name": "Can add content type", "content_type": 4, "codename": "add_contenttype"}}, {"model": "auth.permission", "pk": 14, "fields": {"name": "Can change content type", "content_type": 4, "codename": "change_contenttype"}}, {"model": "auth.permission", "pk": 15, "fields": {"name": "Can delete content type", "content_type": 4, "codename": "delete_contenttype"}}, {"model": "auth.permission", "pk": 16, "fields": {"name": "Can view content type", "content_type": 4, "codename": "view_contenttype"}}, {"model": "auth.permission", "pk": 17, "fields": {"name": "Can add session", "content_type": 5, "codename": "add_session"}}, {"model": "auth.permission", "pk": 18, "fields": {"name": "Can change session", "content_type": 5, "codename": "change_session"}}, {"model": "auth.permission", "pk": 19, "fields": {"name": "Can delete session", "content_type": 5, "codename": "delete_session"}}, {"model": "auth.permission", "pk": 20, "fields": {"name": "Can view session", "content_type": 5, "codename": "view_session"}}, {"model": "auth.permission", "pk": 21, "fields": {"name": "Can add user", "content_type": 6, "codename": "add_user"}}, {"model": "auth.permission", "pk": 22, "fields": {"name": "Can change user", "content_type": 6, "codename": "change_user"}}, {"model": "auth.permission", "pk": 23, "fields": {"name": "Can delete user", "content_type": 6, "codename": "delete_user"}}, {"model": "auth.permission", "pk": 24, "fields": {"name": "Can view user", "content_type": 6, "codename": "view_user"}}, {"model": "auth.permission", "pk": 25, "fields": {"name": "Can add user profile", "content_type": 7, "codename": "add_userprofile"}}, {"model": "auth.permission", "pk": 26, "fields": {"name": "Can change user profile", "content_type": 7, "codename": "change_userprofile"}}, {"model": "auth.permission", "pk": 27, "fields": {"name": "Can delete user profile", "content_type": 7, "codename": "delete_userprofile"}}, {"model": "auth.permission", "pk": 28, "fields": {"name": "Can view user profile", "content_type": 7, "codename": "view_userprofile"}}, {"model": "auth.permission", "pk": 29, "fields": {"name": "Can add home page seo", "content_type": 8, "codename": "add_homepageseo"}}, {"model": "auth.permission", "pk": 30, "fields": {"name": "Can change home page seo", "content_type": 8, "codename": "change_homepageseo"}}, {"model": "auth.permission", "pk": 31, "fields": {"name": "Can delete home page seo", "content_type": 8, "codename": "delete_homepageseo"}}, {"model": "auth.permission", "pk": 32, "fields": {"name": "Can view home page seo", "content_type": 8, "codename": "view_homepageseo"}}, {"model": "auth.permission", "pk": 33, "fields": {"name": "Can add slider section", "content_type": 9, "codename": "add_slidersection"}}, {"model": "auth.permission", "pk": 34, "fields": {"name": "Can change slider section", "content_type": 9, "codename": "change_slidersection"}}, {"model": "auth.permission", "pk": 35, "fields": {"name": "Can delete slider section", "content_type": 9, "codename": "delete_slidersection"}}, {"model": "auth.permission", "pk": 36, "fields": {"name": "Can view slider section", "content_type": 9, "codename": "view_slidersection"}}, {"model": "auth.permission", "pk": 37, "fields": {"name": "Can add service section", "content_type": 10, "codename": "add_servicesection"}}, {"model": "auth.permission", "pk": 38, "fields": {"name": "Can change service seLine truncated
|
||||
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |