mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
chore: update gitignore
This commit is contained in:
parent
cb24a97124
commit
f4f353a44c
22 changed files with 96 additions and 27326 deletions
6
rental/static/rental/js/ga.js
Normal file
6
rental/static/rental/js/ga.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "UA-162353497-1");
|
||||
87
rental/static/rental/js/mixpanel.js
Normal file
87
rental/static/rental/js/mixpanel.js
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
(function (c, a) {
|
||||
if (!a.__SV) {
|
||||
var b = window;
|
||||
try {
|
||||
var d,
|
||||
m,
|
||||
j,
|
||||
k = b.location,
|
||||
f = k.hash;
|
||||
d = function (a, b) {
|
||||
return (m = a.match(RegExp(b + "=([^&]*)"))) ? m[1] : null;
|
||||
};
|
||||
f &&
|
||||
d(f, "state") &&
|
||||
((j = JSON.parse(decodeURIComponent(d(f, "state")))),
|
||||
"mpeditor" === j.action &&
|
||||
(b.sessionStorage.setItem("_mpcehash", f),
|
||||
history.replaceState(
|
||||
j.desiredHash || "",
|
||||
c.title,
|
||||
k.pathname + k.search
|
||||
)));
|
||||
} catch (n) {}
|
||||
var l, h;
|
||||
window.mixpanel = a;
|
||||
a._i = [];
|
||||
a.init = function (b, d, g) {
|
||||
function c(b, i) {
|
||||
var a = i.split(".");
|
||||
2 == a.length && ((b = b[a[0]]), (i = a[1]));
|
||||
b[i] = function () {
|
||||
b.push([i].concat(Array.prototype.slice.call(arguments, 0)));
|
||||
};
|
||||
}
|
||||
var e = a;
|
||||
"undefined" !== typeof g ? (e = a[g] = []) : (g = "mixpanel");
|
||||
e.people = e.people || [];
|
||||
e.toString = function (b) {
|
||||
var a = "mixpanel";
|
||||
"mixpanel" !== g && (a += "." + g);
|
||||
b || (a += " (stub)");
|
||||
return a;
|
||||
};
|
||||
e.people.toString = function () {
|
||||
return e.toString(1) + ".people (stub)";
|
||||
};
|
||||
l = "disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(
|
||||
" "
|
||||
);
|
||||
for (h = 0; h < l.length; h++) c(e, l[h]);
|
||||
var f = "set set_once union unset remove delete".split(" ");
|
||||
e.get_group = function () {
|
||||
function a(c) {
|
||||
b[c] = function () {
|
||||
call2_args = arguments;
|
||||
call2 = [c].concat(Array.prototype.slice.call(call2_args, 0));
|
||||
e.push([d, call2]);
|
||||
};
|
||||
}
|
||||
for (
|
||||
var b = {},
|
||||
d = ["get_group"].concat(Array.prototype.slice.call(arguments, 0)),
|
||||
c = 0;
|
||||
c < f.length;
|
||||
c++
|
||||
)
|
||||
a(f[c]);
|
||||
return b;
|
||||
};
|
||||
a._i.push([b, d, g]);
|
||||
};
|
||||
a.__SV = 1.2;
|
||||
b = c.createElement("script");
|
||||
b.type = "text/javascript";
|
||||
b.async = !0;
|
||||
b.src =
|
||||
"undefined" !== typeof MIXPANEL_CUSTOM_LIB_URL
|
||||
? MIXPANEL_CUSTOM_LIB_URL
|
||||
: "file:" === c.location.protocol &&
|
||||
"//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)
|
||||
? "https://cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js"
|
||||
: "//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js";
|
||||
d = c.getElementsByTagName("script")[0];
|
||||
d.parentNode.insertBefore(b, d);
|
||||
}
|
||||
})(document, window.mixpanel || []);
|
||||
mixpanel.init("fd38f05cab7987b17dfa3aac4ff1a032");
|
||||
3623
rental/static/rental/lib/animate/animate.css
vendored
3623
rental/static/rental/lib/animate/animate.css
vendored
File diff suppressed because it is too large
Load diff
9030
rental/static/rental/lib/bootstrap/css/bootstrap.css
vendored
9030
rental/static/rental/lib/bootstrap/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
3939
rental/static/rental/lib/bootstrap/js/bootstrap.js
vendored
3939
rental/static/rental/lib/bootstrap/js/bootstrap.js
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,168 +0,0 @@
|
|||
/*
|
||||
* jQuery Easing v1.4.1 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
* Open source under the BSD License.
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
* https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
|
||||
*/
|
||||
|
||||
(function (factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(['jquery'], function ($) {
|
||||
return factory($);
|
||||
});
|
||||
} else if (typeof module === "object" && typeof module.exports === "object") {
|
||||
exports = factory(require('jquery'));
|
||||
} else {
|
||||
factory(jQuery);
|
||||
}
|
||||
})(function($){
|
||||
|
||||
// Preserve the original jQuery "swing" easing as "jswing"
|
||||
if (typeof $.easing !== 'undefined') {
|
||||
$.easing['jswing'] = $.easing['swing'];
|
||||
}
|
||||
|
||||
var pow = Math.pow,
|
||||
sqrt = Math.sqrt,
|
||||
sin = Math.sin,
|
||||
cos = Math.cos,
|
||||
PI = Math.PI,
|
||||
c1 = 1.70158,
|
||||
c2 = c1 * 1.525,
|
||||
c3 = c1 + 1,
|
||||
c4 = ( 2 * PI ) / 3,
|
||||
c5 = ( 2 * PI ) / 4.5;
|
||||
|
||||
// x is the fraction of animation progress, in the range 0..1
|
||||
function bounceOut(x) {
|
||||
var n1 = 7.5625,
|
||||
d1 = 2.75;
|
||||
if ( x < 1/d1 ) {
|
||||
return n1*x*x;
|
||||
} else if ( x < 2/d1 ) {
|
||||
return n1*(x-=(1.5/d1))*x + .75;
|
||||
} else if ( x < 2.5/d1 ) {
|
||||
return n1*(x-=(2.25/d1))*x + .9375;
|
||||
} else {
|
||||
return n1*(x-=(2.625/d1))*x + .984375;
|
||||
}
|
||||
}
|
||||
|
||||
$.extend( $.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x) {
|
||||
return $.easing[$.easing.def](x);
|
||||
},
|
||||
easeInQuad: function (x) {
|
||||
return x * x;
|
||||
},
|
||||
easeOutQuad: function (x) {
|
||||
return 1 - ( 1 - x ) * ( 1 - x );
|
||||
},
|
||||
easeInOutQuad: function (x) {
|
||||
return x < 0.5 ?
|
||||
2 * x * x :
|
||||
1 - pow( -2 * x + 2, 2 ) / 2;
|
||||
},
|
||||
easeInCubic: function (x) {
|
||||
return x * x * x;
|
||||
},
|
||||
easeOutCubic: function (x) {
|
||||
return 1 - pow( 1 - x, 3 );
|
||||
},
|
||||
easeInOutCubic: function (x) {
|
||||
return x < 0.5 ?
|
||||
4 * x * x * x :
|
||||
1 - pow( -2 * x + 2, 3 ) / 2;
|
||||
},
|
||||
easeInQuart: function (x) {
|
||||
return x * x * x * x;
|
||||
},
|
||||
easeOutQuart: function (x) {
|
||||
return 1 - pow( 1 - x, 4 );
|
||||
},
|
||||
easeInOutQuart: function (x) {
|
||||
return x < 0.5 ?
|
||||
8 * x * x * x * x :
|
||||
1 - pow( -2 * x + 2, 4 ) / 2;
|
||||
},
|
||||
easeInQuint: function (x) {
|
||||
return x * x * x * x * x;
|
||||
},
|
||||
easeOutQuint: function (x) {
|
||||
return 1 - pow( 1 - x, 5 );
|
||||
},
|
||||
easeInOutQuint: function (x) {
|
||||
return x < 0.5 ?
|
||||
16 * x * x * x * x * x :
|
||||
1 - pow( -2 * x + 2, 5 ) / 2;
|
||||
},
|
||||
easeInSine: function (x) {
|
||||
return 1 - cos( x * PI/2 );
|
||||
},
|
||||
easeOutSine: function (x) {
|
||||
return sin( x * PI/2 );
|
||||
},
|
||||
easeInOutSine: function (x) {
|
||||
return -( cos( PI * x ) - 1 ) / 2;
|
||||
},
|
||||
easeInExpo: function (x) {
|
||||
return x === 0 ? 0 : pow( 2, 10 * x - 10 );
|
||||
},
|
||||
easeOutExpo: function (x) {
|
||||
return x === 1 ? 1 : 1 - pow( 2, -10 * x );
|
||||
},
|
||||
easeInOutExpo: function (x) {
|
||||
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
|
||||
pow( 2, 20 * x - 10 ) / 2 :
|
||||
( 2 - pow( 2, -20 * x + 10 ) ) / 2;
|
||||
},
|
||||
easeInCirc: function (x) {
|
||||
return 1 - sqrt( 1 - pow( x, 2 ) );
|
||||
},
|
||||
easeOutCirc: function (x) {
|
||||
return sqrt( 1 - pow( x - 1, 2 ) );
|
||||
},
|
||||
easeInOutCirc: function (x) {
|
||||
return x < 0.5 ?
|
||||
( 1 - sqrt( 1 - pow( 2 * x, 2 ) ) ) / 2 :
|
||||
( sqrt( 1 - pow( -2 * x + 2, 2 ) ) + 1 ) / 2;
|
||||
},
|
||||
easeInElastic: function (x) {
|
||||
return x === 0 ? 0 : x === 1 ? 1 :
|
||||
-pow( 2, 10 * x - 10 ) * sin( ( x * 10 - 10.75 ) * c4 );
|
||||
},
|
||||
easeOutElastic: function (x) {
|
||||
return x === 0 ? 0 : x === 1 ? 1 :
|
||||
pow( 2, -10 * x ) * sin( ( x * 10 - 0.75 ) * c4 ) + 1;
|
||||
},
|
||||
easeInOutElastic: function (x) {
|
||||
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
|
||||
-( pow( 2, 20 * x - 10 ) * sin( ( 20 * x - 11.125 ) * c5 )) / 2 :
|
||||
pow( 2, -20 * x + 10 ) * sin( ( 20 * x - 11.125 ) * c5 ) / 2 + 1;
|
||||
},
|
||||
easeInBack: function (x) {
|
||||
return c3 * x * x * x - c1 * x * x;
|
||||
},
|
||||
easeOutBack: function (x) {
|
||||
return 1 + c3 * pow( x - 1, 3 ) + c1 * pow( x - 1, 2 );
|
||||
},
|
||||
easeInOutBack: function (x) {
|
||||
return x < 0.5 ?
|
||||
( pow( 2 * x, 2 ) * ( ( c2 + 1 ) * 2 * x - c2 ) ) / 2 :
|
||||
( pow( 2 * x - 2, 2 ) *( ( c2 + 1 ) * ( x * 2 - 2 ) + c2 ) + 2 ) / 2;
|
||||
},
|
||||
easeInBounce: function (x) {
|
||||
return 1 - bounceOut( 1 - x );
|
||||
},
|
||||
easeOutBounce: bounceOut,
|
||||
easeInOutBounce: function (x) {
|
||||
return x < 0.5 ?
|
||||
( 1 - bounceOut( 1 - 2 * x ) ) / 2 :
|
||||
( 1 + bounceOut( 2 * x - 1 ) ) / 2;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB |
|
|
@ -1,186 +0,0 @@
|
|||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
/*
|
||||
* Owl Carousel - Core
|
||||
*/
|
||||
.owl-carousel {
|
||||
display: none;
|
||||
width: 100%;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* position relative and z-index fix webkit rendering fonts issue */
|
||||
position: relative;
|
||||
z-index: 1; }
|
||||
.owl-carousel .owl-stage {
|
||||
position: relative;
|
||||
-ms-touch-action: pan-Y;
|
||||
touch-action: manipulation;
|
||||
-moz-backface-visibility: hidden;
|
||||
/* fix firefox animation glitch */ }
|
||||
.owl-carousel .owl-stage:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0; }
|
||||
.owl-carousel .owl-stage-outer {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* fix for flashing background */
|
||||
-webkit-transform: translate3d(0px, 0px, 0px); }
|
||||
.owl-carousel .owl-wrapper,
|
||||
.owl-carousel .owl-item {
|
||||
-webkit-backface-visibility: hidden;
|
||||
-moz-backface-visibility: hidden;
|
||||
-ms-backface-visibility: hidden;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
-ms-transform: translate3d(0, 0, 0); }
|
||||
.owl-carousel .owl-item {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
float: left;
|
||||
-webkit-backface-visibility: hidden;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-touch-callout: none; }
|
||||
.owl-carousel .owl-item img {
|
||||
display: block;
|
||||
width: 100%; }
|
||||
.owl-carousel .owl-nav.disabled,
|
||||
.owl-carousel .owl-dots.disabled {
|
||||
display: none; }
|
||||
.owl-carousel .owl-nav .owl-prev,
|
||||
.owl-carousel .owl-nav .owl-next,
|
||||
.owl-carousel .owl-dot {
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.owl-carousel .owl-nav button.owl-prev,
|
||||
.owl-carousel .owl-nav button.owl-next,
|
||||
.owl-carousel button.owl-dot {
|
||||
background: none;
|
||||
color: inherit;
|
||||
border: none;
|
||||
padding: 0 !important;
|
||||
font: inherit; }
|
||||
.owl-carousel.owl-loaded {
|
||||
display: block; }
|
||||
.owl-carousel.owl-loading {
|
||||
opacity: 0;
|
||||
display: block; }
|
||||
.owl-carousel.owl-hidden {
|
||||
opacity: 0; }
|
||||
.owl-carousel.owl-refresh .owl-item {
|
||||
visibility: hidden; }
|
||||
.owl-carousel.owl-drag .owl-item {
|
||||
-ms-touch-action: pan-y;
|
||||
touch-action: pan-y;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.owl-carousel.owl-grab {
|
||||
cursor: move;
|
||||
cursor: grab; }
|
||||
.owl-carousel.owl-rtl {
|
||||
direction: rtl; }
|
||||
.owl-carousel.owl-rtl .owl-item {
|
||||
float: right; }
|
||||
|
||||
/* No Js */
|
||||
.no-js .owl-carousel {
|
||||
display: block; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Animate Plugin
|
||||
*/
|
||||
.owl-carousel .animated {
|
||||
animation-duration: 1000ms;
|
||||
animation-fill-mode: both; }
|
||||
|
||||
.owl-carousel .owl-animated-in {
|
||||
z-index: 0; }
|
||||
|
||||
.owl-carousel .owl-animated-out {
|
||||
z-index: 1; }
|
||||
|
||||
.owl-carousel .fadeOut {
|
||||
animation-name: fadeOut; }
|
||||
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
opacity: 0; } }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Auto Height Plugin
|
||||
*/
|
||||
.owl-height {
|
||||
transition: height 500ms ease-in-out; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Lazy Load Plugin
|
||||
*/
|
||||
.owl-carousel .owl-item {
|
||||
/**
|
||||
This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
|
||||
calculation of the height of the owl-item that breaks page layouts
|
||||
*/ }
|
||||
.owl-carousel .owl-item .owl-lazy {
|
||||
opacity: 0;
|
||||
transition: opacity 400ms ease; }
|
||||
.owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
|
||||
max-height: 0; }
|
||||
.owl-carousel .owl-item img.owl-lazy {
|
||||
transform-style: preserve-3d; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Video Plugin
|
||||
*/
|
||||
.owl-carousel .owl-video-wrapper {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
background: #000; }
|
||||
|
||||
.owl-carousel .owl-video-play-icon {
|
||||
position: absolute;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -40px;
|
||||
margin-top: -40px;
|
||||
background: url("owl.video.play.png") no-repeat;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
-webkit-backface-visibility: hidden;
|
||||
transition: transform 100ms ease; }
|
||||
|
||||
.owl-carousel .owl-video-play-icon:hover {
|
||||
-ms-transform: scale(1.3, 1.3);
|
||||
transform: scale(1.3, 1.3); }
|
||||
|
||||
.owl-carousel .owl-video-playing .owl-video-tn,
|
||||
.owl-carousel .owl-video-playing .owl-video-play-icon {
|
||||
display: none; }
|
||||
|
||||
.owl-carousel .owl-video-tn {
|
||||
opacity: 0;
|
||||
height: 100%;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
transition: opacity 400ms ease; }
|
||||
|
||||
.owl-carousel .owl-video-frame {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 100%;
|
||||
width: 100%; }
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
/*
|
||||
* Default theme - Owl Carousel CSS File
|
||||
*/
|
||||
.owl-theme .owl-nav {
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.owl-theme .owl-nav [class*='owl-'] {
|
||||
color: #FFF;
|
||||
font-size: 14px;
|
||||
margin: 5px;
|
||||
padding: 4px 7px;
|
||||
background: #D6D6D6;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
border-radius: 3px; }
|
||||
.owl-theme .owl-nav [class*='owl-']:hover {
|
||||
background: #869791;
|
||||
color: #FFF;
|
||||
text-decoration: none; }
|
||||
.owl-theme .owl-nav .disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default; }
|
||||
|
||||
.owl-theme .owl-nav.disabled + .owl-dots {
|
||||
margin-top: 10px; }
|
||||
|
||||
.owl-theme .owl-dots {
|
||||
text-align: center;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.owl-theme .owl-dots .owl-dot {
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline; }
|
||||
.owl-theme .owl-dots .owl-dot span {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 5px 7px;
|
||||
background: #D6D6D6;
|
||||
display: block;
|
||||
-webkit-backface-visibility: visible;
|
||||
transition: opacity 200ms ease;
|
||||
border-radius: 30px; }
|
||||
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
||||
background: #869791; }
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
/*
|
||||
* Green theme - Owl Carousel CSS File
|
||||
*/
|
||||
.owl-theme .owl-nav {
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.owl-theme .owl-nav [class*='owl-'] {
|
||||
color: #FFF;
|
||||
font-size: 14px;
|
||||
margin: 5px;
|
||||
padding: 4px 7px;
|
||||
background: #D6D6D6;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
border-radius: 3px; }
|
||||
.owl-theme .owl-nav [class*='owl-']:hover {
|
||||
background: #4DC7A0;
|
||||
color: #FFF;
|
||||
text-decoration: none; }
|
||||
.owl-theme .owl-nav .disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default; }
|
||||
|
||||
.owl-theme .owl-nav.disabled + .owl-dots {
|
||||
margin-top: 10px; }
|
||||
|
||||
.owl-theme .owl-dots {
|
||||
text-align: center;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.owl-theme .owl-dots .owl-dot {
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline; }
|
||||
.owl-theme .owl-dots .owl-dot span {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 5px 7px;
|
||||
background: #D6D6D6;
|
||||
display: block;
|
||||
-webkit-backface-visibility: visible;
|
||||
transition: opacity 200ms ease;
|
||||
border-radius: 30px; }
|
||||
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
|
||||
background: #4DC7A0; }
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#4DC7A0;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#4DC7A0}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.9 KiB |
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,860 +0,0 @@
|
|||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// /////
|
||||
///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// /////
|
||||
///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
///// ///// ///// /////
|
||||
|
||||
/**
|
||||
* ScrollReveal
|
||||
* ------------
|
||||
* Version : 3.3.6
|
||||
* Website : scrollrevealjs.org
|
||||
* Repo : github.com/jlmakes/scrollreveal.js
|
||||
* Author : Julian Lloyd (@jlmakes)
|
||||
*/
|
||||
|
||||
;(function () {
|
||||
'use strict'
|
||||
|
||||
var sr
|
||||
var _requestAnimationFrame
|
||||
|
||||
function ScrollReveal (config) {
|
||||
// Support instantiation without the `new` keyword.
|
||||
if (typeof this === 'undefined' || Object.getPrototypeOf(this) !== ScrollReveal.prototype) {
|
||||
return new ScrollReveal(config)
|
||||
}
|
||||
|
||||
sr = this // Save reference to instance.
|
||||
sr.version = '3.3.6'
|
||||
sr.tools = new Tools() // *required utilities
|
||||
|
||||
if (sr.isSupported()) {
|
||||
sr.tools.extend(sr.defaults, config || {})
|
||||
|
||||
sr.defaults.container = _resolveContainer(sr.defaults)
|
||||
|
||||
sr.store = {
|
||||
elements: {},
|
||||
containers: []
|
||||
}
|
||||
|
||||
sr.sequences = {}
|
||||
sr.history = []
|
||||
sr.uid = 0
|
||||
sr.initialized = false
|
||||
} else if (typeof console !== 'undefined' && console !== null) {
|
||||
// Note: IE9 only supports console if devtools are open.
|
||||
console.log('ScrollReveal is not supported in this browser.')
|
||||
}
|
||||
|
||||
return sr
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuration
|
||||
* -------------
|
||||
* This object signature can be passed directly to the ScrollReveal constructor,
|
||||
* or as the second argument of the `reveal()` method.
|
||||
*/
|
||||
|
||||
ScrollReveal.prototype.defaults = {
|
||||
// 'bottom', 'left', 'top', 'right'
|
||||
origin: 'bottom',
|
||||
|
||||
// Can be any valid CSS distance, e.g. '5rem', '10%', '20vw', etc.
|
||||
distance: '20px',
|
||||
|
||||
// Time in milliseconds.
|
||||
duration: 500,
|
||||
delay: 0,
|
||||
|
||||
// Starting angles in degrees, will transition from these values to 0 in all axes.
|
||||
rotate: { x: 0, y: 0, z: 0 },
|
||||
|
||||
// Starting opacity value, before transitioning to the computed opacity.
|
||||
opacity: 0,
|
||||
|
||||
// Starting scale value, will transition from this value to 1
|
||||
scale: 0.9,
|
||||
|
||||
// Accepts any valid CSS easing, e.g. 'ease', 'ease-in-out', 'linear', etc.
|
||||
easing: 'cubic-bezier(0.6, 0.2, 0.1, 1)',
|
||||
|
||||
// `<html>` is the default reveal container. You can pass either:
|
||||
// DOM Node, e.g. document.querySelector('.fooContainer')
|
||||
// Selector, e.g. '.fooContainer'
|
||||
container: window.document.documentElement,
|
||||
|
||||
// true/false to control reveal animations on mobile.
|
||||
mobile: true,
|
||||
|
||||
// true: reveals occur every time elements become visible
|
||||
// false: reveals occur once as elements become visible
|
||||
reset: false,
|
||||
|
||||
// 'always' — delay for all reveal animations
|
||||
// 'once' — delay only the first time reveals occur
|
||||
// 'onload' - delay only for animations triggered by first load
|
||||
useDelay: 'always',
|
||||
|
||||
// Change when an element is considered in the viewport. The default value
|
||||
// of 0.20 means 20% of an element must be visible for its reveal to occur.
|
||||
viewFactor: 0.2,
|
||||
|
||||
// Pixel values that alter the container boundaries.
|
||||
// e.g. Set `{ top: 48 }`, if you have a 48px tall fixed toolbar.
|
||||
// --
|
||||
// Visual Aid: https://scrollrevealjs.org/assets/viewoffset.png
|
||||
viewOffset: { top: 0, right: 0, bottom: 0, left: 0 },
|
||||
|
||||
// Callbacks that fire for each triggered element reveal, and reset.
|
||||
beforeReveal: function (domEl) {},
|
||||
beforeReset: function (domEl) {},
|
||||
|
||||
// Callbacks that fire for each completed element reveal, and reset.
|
||||
afterReveal: function (domEl) {},
|
||||
afterReset: function (domEl) {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if client supports CSS Transform and CSS Transition.
|
||||
* @return {boolean}
|
||||
*/
|
||||
ScrollReveal.prototype.isSupported = function () {
|
||||
var style = document.documentElement.style
|
||||
return 'WebkitTransition' in style && 'WebkitTransform' in style ||
|
||||
'transition' in style && 'transform' in style
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a reveal set, a group of elements that will animate when they
|
||||
* become visible. If [interval] is provided, a new sequence is created
|
||||
* that will ensure elements reveal in the order they appear in the DOM.
|
||||
*
|
||||
* @param {Node|NodeList|string} [target] The node, node list or selector to use for animation.
|
||||
* @param {Object} [config] Override the defaults for this reveal set.
|
||||
* @param {number} [interval] Time between sequenced element animations (milliseconds).
|
||||
* @param {boolean} [sync] Used internally when updating reveals for async content.
|
||||
*
|
||||
* @return {Object} The current ScrollReveal instance.
|
||||
*/
|
||||
ScrollReveal.prototype.reveal = function (target, config, interval, sync) {
|
||||
var container
|
||||
var elements
|
||||
var elem
|
||||
var elemId
|
||||
var sequence
|
||||
var sequenceId
|
||||
|
||||
// No custom configuration was passed, but a sequence interval instead.
|
||||
// let’s shuffle things around to make sure everything works.
|
||||
if (config !== undefined && typeof config === 'number') {
|
||||
interval = config
|
||||
config = {}
|
||||
} else if (config === undefined || config === null) {
|
||||
config = {}
|
||||
}
|
||||
|
||||
container = _resolveContainer(config)
|
||||
elements = _getRevealElements(target, container)
|
||||
|
||||
if (!elements.length) {
|
||||
console.log('ScrollReveal: reveal on "' + target + '" failed, no elements found.')
|
||||
return sr
|
||||
}
|
||||
|
||||
// Prepare a new sequence if an interval is passed.
|
||||
if (interval && typeof interval === 'number') {
|
||||
sequenceId = _nextUid()
|
||||
|
||||
sequence = sr.sequences[sequenceId] = {
|
||||
id: sequenceId,
|
||||
interval: interval,
|
||||
elemIds: [],
|
||||
active: false
|
||||
}
|
||||
}
|
||||
|
||||
// Begin main loop to configure ScrollReveal elements.
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
// Check if the element has already been configured and grab it from the store.
|
||||
elemId = elements[i].getAttribute('data-sr-id')
|
||||
if (elemId) {
|
||||
elem = sr.store.elements[elemId]
|
||||
} else {
|
||||
// Otherwise, let’s do some basic setup.
|
||||
elem = {
|
||||
id: _nextUid(),
|
||||
domEl: elements[i],
|
||||
seen: false,
|
||||
revealing: false
|
||||
}
|
||||
elem.domEl.setAttribute('data-sr-id', elem.id)
|
||||
}
|
||||
|
||||
// Sequence only setup
|
||||
if (sequence) {
|
||||
elem.sequence = {
|
||||
id: sequence.id,
|
||||
index: sequence.elemIds.length
|
||||
}
|
||||
|
||||
sequence.elemIds.push(elem.id)
|
||||
}
|
||||
|
||||
// New or existing element, it’s time to update its configuration, styles,
|
||||
// and send the updates to our store.
|
||||
_configure(elem, config, container)
|
||||
_style(elem)
|
||||
_updateStore(elem)
|
||||
|
||||
// We need to make sure elements are set to visibility: visible, even when
|
||||
// on mobile and `config.mobile === false`, or if unsupported.
|
||||
if (sr.tools.isMobile() && !elem.config.mobile || !sr.isSupported()) {
|
||||
elem.domEl.setAttribute('style', elem.styles.inline)
|
||||
elem.disabled = true
|
||||
} else if (!elem.revealing) {
|
||||
// Otherwise, proceed normally.
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline +
|
||||
elem.styles.transform.initial
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// Each `reveal()` is recorded so that when calling `sync()` while working
|
||||
// with asynchronously loaded content, it can re-trace your steps but with
|
||||
// all your new elements now in the DOM.
|
||||
|
||||
// Since `reveal()` is called internally by `sync()`, we don’t want to
|
||||
// record or intiialize each reveal during syncing.
|
||||
if (!sync && sr.isSupported()) {
|
||||
_record(target, config, interval)
|
||||
|
||||
// We push initialization to the event queue using setTimeout, so that we can
|
||||
// give ScrollReveal room to process all reveal calls before putting things into motion.
|
||||
// --
|
||||
// Philip Roberts - What the heck is the event loop anyway? (JSConf EU 2014)
|
||||
// https://www.youtube.com/watch?v=8aGhZQkoFbQ
|
||||
if (sr.initTimeout) {
|
||||
window.clearTimeout(sr.initTimeout)
|
||||
}
|
||||
sr.initTimeout = window.setTimeout(_init, 0)
|
||||
}
|
||||
|
||||
return sr
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-runs `reveal()` for each record stored in history, effectively capturing
|
||||
* any content loaded asynchronously that matches existing reveal set targets.
|
||||
* @return {Object} The current ScrollReveal instance.
|
||||
*/
|
||||
ScrollReveal.prototype.sync = function () {
|
||||
if (sr.history.length && sr.isSupported()) {
|
||||
for (var i = 0; i < sr.history.length; i++) {
|
||||
var record = sr.history[i]
|
||||
sr.reveal(record.target, record.config, record.interval, true)
|
||||
}
|
||||
_init()
|
||||
} else {
|
||||
console.log('ScrollReveal: sync failed, no reveals found.')
|
||||
}
|
||||
return sr
|
||||
}
|
||||
|
||||
/**
|
||||
* Private Methods
|
||||
* ---------------
|
||||
*/
|
||||
|
||||
function _resolveContainer (config) {
|
||||
if (config && config.container) {
|
||||
if (typeof config.container === 'string') {
|
||||
return window.document.documentElement.querySelector(config.container)
|
||||
} else if (sr.tools.isNode(config.container)) {
|
||||
return config.container
|
||||
} else {
|
||||
console.log('ScrollReveal: invalid container "' + config.container + '" provided.')
|
||||
console.log('ScrollReveal: falling back to default container.')
|
||||
}
|
||||
}
|
||||
return sr.defaults.container
|
||||
}
|
||||
|
||||
/**
|
||||
* check to see if a node or node list was passed in as the target,
|
||||
* otherwise query the container using target as a selector.
|
||||
*
|
||||
* @param {Node|NodeList|string} [target] client input for reveal target.
|
||||
* @param {Node} [container] parent element for selector queries.
|
||||
*
|
||||
* @return {array} elements to be revealed.
|
||||
*/
|
||||
function _getRevealElements (target, container) {
|
||||
if (typeof target === 'string') {
|
||||
return Array.prototype.slice.call(container.querySelectorAll(target))
|
||||
} else if (sr.tools.isNode(target)) {
|
||||
return [target]
|
||||
} else if (sr.tools.isNodeList(target)) {
|
||||
return Array.prototype.slice.call(target)
|
||||
}
|
||||
return []
|
||||
}
|
||||
|
||||
/**
|
||||
* A consistent way of creating unique IDs.
|
||||
* @returns {number}
|
||||
*/
|
||||
function _nextUid () {
|
||||
return ++sr.uid
|
||||
}
|
||||
|
||||
function _configure (elem, config, container) {
|
||||
// If a container was passed as a part of the config object,
|
||||
// let’s overwrite it with the resolved container passed in.
|
||||
if (config.container) config.container = container
|
||||
// If the element hasn’t already been configured, let’s use a clone of the
|
||||
// defaults extended by the configuration passed as the second argument.
|
||||
if (!elem.config) {
|
||||
elem.config = sr.tools.extendClone(sr.defaults, config)
|
||||
} else {
|
||||
// Otherwise, let’s use a clone of the existing element configuration extended
|
||||
// by the configuration passed as the second argument.
|
||||
elem.config = sr.tools.extendClone(elem.config, config)
|
||||
}
|
||||
|
||||
// Infer CSS Transform axis from origin string.
|
||||
if (elem.config.origin === 'top' || elem.config.origin === 'bottom') {
|
||||
elem.config.axis = 'Y'
|
||||
} else {
|
||||
elem.config.axis = 'X'
|
||||
}
|
||||
}
|
||||
|
||||
function _style (elem) {
|
||||
var computed = window.getComputedStyle(elem.domEl)
|
||||
|
||||
if (!elem.styles) {
|
||||
elem.styles = {
|
||||
transition: {},
|
||||
transform: {},
|
||||
computed: {}
|
||||
}
|
||||
|
||||
// Capture any existing inline styles, and add our visibility override.
|
||||
// --
|
||||
// See section 4.2. in the Documentation:
|
||||
// https://github.com/jlmakes/scrollreveal.js#42-improve-user-experience
|
||||
elem.styles.inline = elem.domEl.getAttribute('style') || ''
|
||||
elem.styles.inline += '; visibility: visible; '
|
||||
|
||||
// grab the elements existing opacity.
|
||||
elem.styles.computed.opacity = computed.opacity
|
||||
|
||||
// grab the elements existing transitions.
|
||||
if (!computed.transition || computed.transition === 'all 0s ease 0s') {
|
||||
elem.styles.computed.transition = ''
|
||||
} else {
|
||||
elem.styles.computed.transition = computed.transition + ', '
|
||||
}
|
||||
}
|
||||
|
||||
// Create transition styles
|
||||
elem.styles.transition.instant = _generateTransition(elem, 0)
|
||||
elem.styles.transition.delayed = _generateTransition(elem, elem.config.delay)
|
||||
|
||||
// Generate transform styles, first with the webkit prefix.
|
||||
elem.styles.transform.initial = ' -webkit-transform:'
|
||||
elem.styles.transform.target = ' -webkit-transform:'
|
||||
_generateTransform(elem)
|
||||
|
||||
// And again without any prefix.
|
||||
elem.styles.transform.initial += 'transform:'
|
||||
elem.styles.transform.target += 'transform:'
|
||||
_generateTransform(elem)
|
||||
}
|
||||
|
||||
function _generateTransition (elem, delay) {
|
||||
var config = elem.config
|
||||
|
||||
return '-webkit-transition: ' + elem.styles.computed.transition +
|
||||
'-webkit-transform ' + config.duration / 1000 + 's ' +
|
||||
config.easing + ' ' +
|
||||
delay / 1000 + 's, opacity ' +
|
||||
config.duration / 1000 + 's ' +
|
||||
config.easing + ' ' +
|
||||
delay / 1000 + 's; ' +
|
||||
|
||||
'transition: ' + elem.styles.computed.transition +
|
||||
'transform ' + config.duration / 1000 + 's ' +
|
||||
config.easing + ' ' +
|
||||
delay / 1000 + 's, opacity ' +
|
||||
config.duration / 1000 + 's ' +
|
||||
config.easing + ' ' +
|
||||
delay / 1000 + 's; '
|
||||
}
|
||||
|
||||
function _generateTransform (elem) {
|
||||
var config = elem.config
|
||||
var cssDistance
|
||||
var transform = elem.styles.transform
|
||||
|
||||
// Let’s make sure our our pixel distances are negative for top and left.
|
||||
// e.g. origin = 'top' and distance = '25px' starts at `top: -25px` in CSS.
|
||||
if (config.origin === 'top' || config.origin === 'left') {
|
||||
cssDistance = /^-/.test(config.distance)
|
||||
? config.distance.substr(1)
|
||||
: '-' + config.distance
|
||||
} else {
|
||||
cssDistance = config.distance
|
||||
}
|
||||
|
||||
if (parseInt(config.distance)) {
|
||||
transform.initial += ' translate' + config.axis + '(' + cssDistance + ')'
|
||||
transform.target += ' translate' + config.axis + '(0)'
|
||||
}
|
||||
if (config.scale) {
|
||||
transform.initial += ' scale(' + config.scale + ')'
|
||||
transform.target += ' scale(1)'
|
||||
}
|
||||
if (config.rotate.x) {
|
||||
transform.initial += ' rotateX(' + config.rotate.x + 'deg)'
|
||||
transform.target += ' rotateX(0)'
|
||||
}
|
||||
if (config.rotate.y) {
|
||||
transform.initial += ' rotateY(' + config.rotate.y + 'deg)'
|
||||
transform.target += ' rotateY(0)'
|
||||
}
|
||||
if (config.rotate.z) {
|
||||
transform.initial += ' rotateZ(' + config.rotate.z + 'deg)'
|
||||
transform.target += ' rotateZ(0)'
|
||||
}
|
||||
transform.initial += '; opacity: ' + config.opacity + ';'
|
||||
transform.target += '; opacity: ' + elem.styles.computed.opacity + ';'
|
||||
}
|
||||
|
||||
function _updateStore (elem) {
|
||||
var container = elem.config.container
|
||||
|
||||
// If this element’s container isn’t already in the store, let’s add it.
|
||||
if (container && sr.store.containers.indexOf(container) === -1) {
|
||||
sr.store.containers.push(elem.config.container)
|
||||
}
|
||||
|
||||
// Update the element stored with our new element.
|
||||
sr.store.elements[elem.id] = elem
|
||||
}
|
||||
|
||||
function _record (target, config, interval) {
|
||||
// Save the `reveal()` arguments that triggered this `_record()` call, so we
|
||||
// can re-trace our steps when calling the `sync()` method.
|
||||
var record = {
|
||||
target: target,
|
||||
config: config,
|
||||
interval: interval
|
||||
}
|
||||
sr.history.push(record)
|
||||
}
|
||||
|
||||
function _init () {
|
||||
if (sr.isSupported()) {
|
||||
// Initial animate call triggers valid reveal animations on first load.
|
||||
// Subsequent animate calls are made inside the event handler.
|
||||
_animate()
|
||||
|
||||
// Then we loop through all container nodes in the store and bind event
|
||||
// listeners to each.
|
||||
for (var i = 0; i < sr.store.containers.length; i++) {
|
||||
sr.store.containers[i].addEventListener('scroll', _handler)
|
||||
sr.store.containers[i].addEventListener('resize', _handler)
|
||||
}
|
||||
|
||||
// Let’s also do a one-time binding of window event listeners.
|
||||
if (!sr.initialized) {
|
||||
window.addEventListener('scroll', _handler)
|
||||
window.addEventListener('resize', _handler)
|
||||
sr.initialized = true
|
||||
}
|
||||
}
|
||||
return sr
|
||||
}
|
||||
|
||||
function _handler () {
|
||||
_requestAnimationFrame(_animate)
|
||||
}
|
||||
|
||||
function _setActiveSequences () {
|
||||
var active
|
||||
var elem
|
||||
var elemId
|
||||
var sequence
|
||||
|
||||
// Loop through all sequences
|
||||
sr.tools.forOwn(sr.sequences, function (sequenceId) {
|
||||
sequence = sr.sequences[sequenceId]
|
||||
active = false
|
||||
|
||||
// For each sequenced elemenet, let’s check visibility and if
|
||||
// any are visible, set it’s sequence to active.
|
||||
for (var i = 0; i < sequence.elemIds.length; i++) {
|
||||
elemId = sequence.elemIds[i]
|
||||
elem = sr.store.elements[elemId]
|
||||
if (_isElemVisible(elem) && !active) {
|
||||
active = true
|
||||
}
|
||||
}
|
||||
|
||||
sequence.active = active
|
||||
})
|
||||
}
|
||||
|
||||
function _animate () {
|
||||
var delayed
|
||||
var elem
|
||||
|
||||
_setActiveSequences()
|
||||
|
||||
// Loop through all elements in the store
|
||||
sr.tools.forOwn(sr.store.elements, function (elemId) {
|
||||
elem = sr.store.elements[elemId]
|
||||
delayed = _shouldUseDelay(elem)
|
||||
|
||||
// Let’s see if we should revealand if so,
|
||||
// trigger the `beforeReveal` callback and
|
||||
// determine whether or not to use delay.
|
||||
if (_shouldReveal(elem)) {
|
||||
elem.config.beforeReveal(elem.domEl)
|
||||
if (delayed) {
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline +
|
||||
elem.styles.transform.target +
|
||||
elem.styles.transition.delayed
|
||||
)
|
||||
} else {
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline +
|
||||
elem.styles.transform.target +
|
||||
elem.styles.transition.instant
|
||||
)
|
||||
}
|
||||
|
||||
// Let’s queue the `afterReveal` callback
|
||||
// and mark the element as seen and revealing.
|
||||
_queueCallback('reveal', elem, delayed)
|
||||
elem.revealing = true
|
||||
elem.seen = true
|
||||
|
||||
if (elem.sequence) {
|
||||
_queueNextInSequence(elem, delayed)
|
||||
}
|
||||
} else if (_shouldReset(elem)) {
|
||||
//Otherwise reset our element and
|
||||
// trigger the `beforeReset` callback.
|
||||
elem.config.beforeReset(elem.domEl)
|
||||
elem.domEl.setAttribute('style',
|
||||
elem.styles.inline +
|
||||
elem.styles.transform.initial +
|
||||
elem.styles.transition.instant
|
||||
)
|
||||
// And queue the `afterReset` callback.
|
||||
_queueCallback('reset', elem)
|
||||
elem.revealing = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function _queueNextInSequence (elem, delayed) {
|
||||
var elapsed = 0
|
||||
var delay = 0
|
||||
var sequence = sr.sequences[elem.sequence.id]
|
||||
|
||||
// We’re processing a sequenced element, so let's block other elements in this sequence.
|
||||
sequence.blocked = true
|
||||
|
||||
// Since we’re triggering animations a part of a sequence after animations on first load,
|
||||
// we need to check for that condition and explicitly add the delay to our timer.
|
||||
if (delayed && elem.config.useDelay === 'onload') {
|
||||
delay = elem.config.delay
|
||||
}
|
||||
|
||||
// If a sequence timer is already running, capture the elapsed time and clear it.
|
||||
if (elem.sequence.timer) {
|
||||
elapsed = Math.abs(elem.sequence.timer.started - new Date())
|
||||
window.clearTimeout(elem.sequence.timer)
|
||||
}
|
||||
|
||||
// Start a new timer.
|
||||
elem.sequence.timer = { started: new Date() }
|
||||
elem.sequence.timer.clock = window.setTimeout(function () {
|
||||
// Sequence interval has passed, so unblock the sequence and re-run the handler.
|
||||
sequence.blocked = false
|
||||
elem.sequence.timer = null
|
||||
_handler()
|
||||
}, Math.abs(sequence.interval) + delay - elapsed)
|
||||
}
|
||||
|
||||
function _queueCallback (type, elem, delayed) {
|
||||
var elapsed = 0
|
||||
var duration = 0
|
||||
var callback = 'after'
|
||||
|
||||
// Check which callback we’re working with.
|
||||
switch (type) {
|
||||
case 'reveal':
|
||||
duration = elem.config.duration
|
||||
if (delayed) {
|
||||
duration += elem.config.delay
|
||||
}
|
||||
callback += 'Reveal'
|
||||
break
|
||||
|
||||
case 'reset':
|
||||
duration = elem.config.duration
|
||||
callback += 'Reset'
|
||||
break
|
||||
}
|
||||
|
||||
// If a timer is already running, capture the elapsed time and clear it.
|
||||
if (elem.timer) {
|
||||
elapsed = Math.abs(elem.timer.started - new Date())
|
||||
window.clearTimeout(elem.timer.clock)
|
||||
}
|
||||
|
||||
// Start a new timer.
|
||||
elem.timer = { started: new Date() }
|
||||
elem.timer.clock = window.setTimeout(function () {
|
||||
// The timer completed, so let’s fire the callback and null the timer.
|
||||
elem.config[callback](elem.domEl)
|
||||
elem.timer = null
|
||||
}, duration - elapsed)
|
||||
}
|
||||
|
||||
function _shouldReveal (elem) {
|
||||
if (elem.sequence) {
|
||||
var sequence = sr.sequences[elem.sequence.id]
|
||||
return sequence.active &&
|
||||
!sequence.blocked &&
|
||||
!elem.revealing &&
|
||||
!elem.disabled
|
||||
}
|
||||
return _isElemVisible(elem) &&
|
||||
!elem.revealing &&
|
||||
!elem.disabled
|
||||
}
|
||||
|
||||
function _shouldUseDelay (elem) {
|
||||
var config = elem.config.useDelay
|
||||
return config === 'always' ||
|
||||
(config === 'onload' && !sr.initialized) ||
|
||||
(config === 'once' && !elem.seen)
|
||||
}
|
||||
|
||||
function _shouldReset (elem) {
|
||||
if (elem.sequence) {
|
||||
var sequence = sr.sequences[elem.sequence.id]
|
||||
return !sequence.active &&
|
||||
elem.config.reset &&
|
||||
elem.revealing &&
|
||||
!elem.disabled
|
||||
}
|
||||
return !_isElemVisible(elem) &&
|
||||
elem.config.reset &&
|
||||
elem.revealing &&
|
||||
!elem.disabled
|
||||
}
|
||||
|
||||
function _getContainer (container) {
|
||||
return {
|
||||
width: container.clientWidth,
|
||||
height: container.clientHeight
|
||||
}
|
||||
}
|
||||
|
||||
function _getScrolled (container) {
|
||||
// Return the container scroll values, plus the its offset.
|
||||
if (container && container !== window.document.documentElement) {
|
||||
var offset = _getOffset(container)
|
||||
return {
|
||||
x: container.scrollLeft + offset.left,
|
||||
y: container.scrollTop + offset.top
|
||||
}
|
||||
} else {
|
||||
// Otherwise, default to the window object’s scroll values.
|
||||
return {
|
||||
x: window.pageXOffset,
|
||||
y: window.pageYOffset
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _getOffset (domEl) {
|
||||
var offsetTop = 0
|
||||
var offsetLeft = 0
|
||||
|
||||
// Grab the element’s dimensions.
|
||||
var offsetHeight = domEl.offsetHeight
|
||||
var offsetWidth = domEl.offsetWidth
|
||||
|
||||
// Now calculate the distance between the element and its parent, then
|
||||
// again for the parent to its parent, and again etc... until we have the
|
||||
// total distance of the element to the document’s top and left origin.
|
||||
do {
|
||||
if (!isNaN(domEl.offsetTop)) {
|
||||
offsetTop += domEl.offsetTop
|
||||
}
|
||||
if (!isNaN(domEl.offsetLeft)) {
|
||||
offsetLeft += domEl.offsetLeft
|
||||
}
|
||||
domEl = domEl.offsetParent
|
||||
} while (domEl)
|
||||
|
||||
return {
|
||||
top: offsetTop,
|
||||
left: offsetLeft,
|
||||
height: offsetHeight,
|
||||
width: offsetWidth
|
||||
}
|
||||
}
|
||||
|
||||
function _isElemVisible (elem) {
|
||||
var offset = _getOffset(elem.domEl)
|
||||
var container = _getContainer(elem.config.container)
|
||||
var scrolled = _getScrolled(elem.config.container)
|
||||
var vF = elem.config.viewFactor
|
||||
|
||||
// Define the element geometry.
|
||||
var elemHeight = offset.height
|
||||
var elemWidth = offset.width
|
||||
var elemTop = offset.top
|
||||
var elemLeft = offset.left
|
||||
var elemBottom = elemTop + elemHeight
|
||||
var elemRight = elemLeft + elemWidth
|
||||
|
||||
return confirmBounds() || isPositionFixed()
|
||||
|
||||
function confirmBounds () {
|
||||
// Define the element’s functional boundaries using its view factor.
|
||||
var top = elemTop + elemHeight * vF
|
||||
var left = elemLeft + elemWidth * vF
|
||||
var bottom = elemBottom - elemHeight * vF
|
||||
var right = elemRight - elemWidth * vF
|
||||
|
||||
// Define the container functional boundaries using its view offset.
|
||||
var viewTop = scrolled.y + elem.config.viewOffset.top
|
||||
var viewLeft = scrolled.x + elem.config.viewOffset.left
|
||||
var viewBottom = scrolled.y - elem.config.viewOffset.bottom + container.height
|
||||
var viewRight = scrolled.x - elem.config.viewOffset.right + container.width
|
||||
|
||||
return top < viewBottom &&
|
||||
bottom > viewTop &&
|
||||
left < viewRight &&
|
||||
right > viewLeft
|
||||
}
|
||||
|
||||
function isPositionFixed () {
|
||||
return (window.getComputedStyle(elem.domEl).position === 'fixed')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Utilities
|
||||
* ---------
|
||||
*/
|
||||
|
||||
function Tools () {}
|
||||
|
||||
Tools.prototype.isObject = function (object) {
|
||||
return object !== null && typeof object === 'object' && object.constructor === Object
|
||||
}
|
||||
|
||||
Tools.prototype.isNode = function (object) {
|
||||
return typeof window.Node === 'object'
|
||||
? object instanceof window.Node
|
||||
: object && typeof object === 'object' &&
|
||||
typeof object.nodeType === 'number' &&
|
||||
typeof object.nodeName === 'string'
|
||||
}
|
||||
|
||||
Tools.prototype.isNodeList = function (object) {
|
||||
var prototypeToString = Object.prototype.toString.call(object)
|
||||
var regex = /^\[object (HTMLCollection|NodeList|Object)\]$/
|
||||
|
||||
return typeof window.NodeList === 'object'
|
||||
? object instanceof window.NodeList
|
||||
: object && typeof object === 'object' &&
|
||||
regex.test(prototypeToString) &&
|
||||
typeof object.length === 'number' &&
|
||||
(object.length === 0 || this.isNode(object[0]))
|
||||
}
|
||||
|
||||
Tools.prototype.forOwn = function (object, callback) {
|
||||
if (!this.isObject(object)) {
|
||||
throw new TypeError('Expected "object", but received "' + typeof object + '".')
|
||||
} else {
|
||||
for (var property in object) {
|
||||
if (object.hasOwnProperty(property)) {
|
||||
callback(property)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Tools.prototype.extend = function (target, source) {
|
||||
this.forOwn(source, function (property) {
|
||||
if (this.isObject(source[property])) {
|
||||
if (!target[property] || !this.isObject(target[property])) {
|
||||
target[property] = {}
|
||||
}
|
||||
this.extend(target[property], source[property])
|
||||
} else {
|
||||
target[property] = source[property]
|
||||
}
|
||||
}.bind(this))
|
||||
return target
|
||||
}
|
||||
|
||||
Tools.prototype.extendClone = function (target, source) {
|
||||
return this.extend(this.extend({}, target), source)
|
||||
}
|
||||
|
||||
Tools.prototype.isMobile = function () {
|
||||
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
|
||||
}
|
||||
|
||||
/**
|
||||
* Polyfills
|
||||
* --------
|
||||
*/
|
||||
|
||||
_requestAnimationFrame = window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
function (callback) {
|
||||
window.setTimeout(callback, 1000 / 60)
|
||||
}
|
||||
|
||||
/**
|
||||
* Module Wrapper
|
||||
* --------------
|
||||
*/
|
||||
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
|
||||
define(function () {
|
||||
return ScrollReveal
|
||||
})
|
||||
} else if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = ScrollReveal
|
||||
} else {
|
||||
window.ScrollReveal = ScrollReveal
|
||||
}
|
||||
})();
|
||||
|
|
@ -13,108 +13,10 @@
|
|||
async
|
||||
src="https://www.googletagmanager.com/gtag/js?id=UA-162353497-1"
|
||||
></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "UA-162353497-1");
|
||||
</script>
|
||||
<script src="{% static 'rental/js/ga.js' %}"></script>
|
||||
<script src="{% static 'rental/js/mixpanel.js' %}"></script>
|
||||
|
||||
<script>
|
||||
(function (c, a) {
|
||||
if (!a.__SV) {
|
||||
var b = window;
|
||||
try {
|
||||
var d,
|
||||
m,
|
||||
j,
|
||||
k = b.location,
|
||||
f = k.hash;
|
||||
d = function (a, b) {
|
||||
return (m = a.match(RegExp(b + "=([^&]*)"))) ? m[1] : null;
|
||||
};
|
||||
f &&
|
||||
d(f, "state") &&
|
||||
((j = JSON.parse(decodeURIComponent(d(f, "state")))),
|
||||
"mpeditor" === j.action &&
|
||||
(b.sessionStorage.setItem("_mpcehash", f),
|
||||
history.replaceState(
|
||||
j.desiredHash || "",
|
||||
c.title,
|
||||
k.pathname + k.search
|
||||
)));
|
||||
} catch (n) {}
|
||||
var l, h;
|
||||
window.mixpanel = a;
|
||||
a._i = [];
|
||||
a.init = function (b, d, g) {
|
||||
function c(b, i) {
|
||||
var a = i.split(".");
|
||||
2 == a.length && ((b = b[a[0]]), (i = a[1]));
|
||||
b[i] = function () {
|
||||
b.push([i].concat(Array.prototype.slice.call(arguments, 0)));
|
||||
};
|
||||
}
|
||||
var e = a;
|
||||
"undefined" !== typeof g ? (e = a[g] = []) : (g = "mixpanel");
|
||||
e.people = e.people || [];
|
||||
e.toString = function (b) {
|
||||
var a = "mixpanel";
|
||||
"mixpanel" !== g && (a += "." + g);
|
||||
b || (a += " (stub)");
|
||||
return a;
|
||||
};
|
||||
e.people.toString = function () {
|
||||
return e.toString(1) + ".people (stub)";
|
||||
};
|
||||
l = "disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(
|
||||
" "
|
||||
);
|
||||
for (h = 0; h < l.length; h++) c(e, l[h]);
|
||||
var f = "set set_once union unset remove delete".split(" ");
|
||||
e.get_group = function () {
|
||||
function a(c) {
|
||||
b[c] = function () {
|
||||
call2_args = arguments;
|
||||
call2 = [c].concat(Array.prototype.slice.call(call2_args, 0));
|
||||
e.push([d, call2]);
|
||||
};
|
||||
}
|
||||
for (
|
||||
var b = {},
|
||||
d = ["get_group"].concat(
|
||||
Array.prototype.slice.call(arguments, 0)
|
||||
),
|
||||
c = 0;
|
||||
c < f.length;
|
||||
c++
|
||||
)
|
||||
a(f[c]);
|
||||
return b;
|
||||
};
|
||||
a._i.push([b, d, g]);
|
||||
};
|
||||
a.__SV = 1.2;
|
||||
b = c.createElement("script");
|
||||
b.type = "text/javascript";
|
||||
b.async = !0;
|
||||
b.src =
|
||||
"undefined" !== typeof MIXPANEL_CUSTOM_LIB_URL
|
||||
? MIXPANEL_CUSTOM_LIB_URL
|
||||
: "file:" === c.location.protocol &&
|
||||
"//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)
|
||||
? "https://cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js"
|
||||
: "//cdn4.mxpnl.com/libs/mixpanel-2-latest.min.js";
|
||||
d = c.getElementsByTagName("script")[0];
|
||||
d.parentNode.insertBefore(b, d);
|
||||
}
|
||||
})(document, window.mixpanel || []);
|
||||
mixpanel.init("fd38f05cab7987b17dfa3aac4ff1a032");
|
||||
</script>
|
||||
|
||||
<title>VillaFleurie – Locations de vacances</title>
|
||||
<title>VillaFleurie | Locations de vacances</title>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
|
||||
<meta content="" name="keywords" />
|
||||
<meta content="" name="description" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue