| Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/2508158/root/tmp/ |
| Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/2508158/root/tmp/phpc7emyM |
.su-image-compare {
position:relative;
overflow:hidden;
margin:0 auto;
width:100%
}
.su-image-compare.slide-on-click,
.su-image-compare.slide-on-hover {
cursor:move
}
.su-image-compare,
.su-image-compare * {
-webkit-touch-callout:none;
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none
}
.su-image-compare .image-after,
.su-image-compare .image-after-container,
.su-image-compare .image-before {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background-size:cover;
background-position:center;
z-index:1;
overflow:hidden
}
.su-image-compare .image-after,
.su-image-compare .image-after-container,
.su-image-compare .image-after-content {
z-index:2;
-webkit-font-smoothing:subpixel-antialiased;
-moz-font-smoothing:subpixel-antialiased;
font-smoothing:subpixel-antialiased;
-webkit-perspective:0;
-ms-perspective:0;
-o-perspective:0;
perspective:0;
-webkit-backface-visibility:hidden;
-ms-backface-visibility:hidden;
-o-backface-visibility:hidden;
backface-visibility:hidden;
-webkit-transform-style:preserve-3d;
-ms-transform-style:preserve-3d;
-o-transform-style:preserve-3d;
transform-style:preserve-3d;
-webkit-transform-origin:center center;
-ms-transform-origin:center center;
transform-origin:center center;
outline:transparent solid 1px
}
.su-image-compare .image-after-content,
.su-image-compare .image-before-content {
position:absolute;
-webkit-transform:translate3d(0,0,0)!important;
-ms-transform:translate3d(0,0,0)!important;
transform:translate3d(0,0,0)!important
}
.su-image-compare .baa-content-wrapper {
position:relative;
width:100%;
height:100%
}
.su-image-compare .su-image-compare-slider,
.su-image-compare .su-image-compare-slider-button {
position:absolute;
left:0;
right:0;
bottom:0;
height:10px;
background:rgba(255,255,255,.3);
z-index:3;
cursor:pointer
}
.su-image-compare .su-image-compare-slider-button {
width:30px;
background:#fff;
z-index:4;
cursor:move
}
.su-image-compare[data-slider-location=top] .su-image-compare-slider,
.su-image-compare[data-slider-location=top] .su-image-compare-slider-button {
bottom:auto;
top:0
}
.su-image-compare[data-slider-location=left] .su-image-compare-slider,
.su-image-compare[data-slider-location=left] .su-image-compare-slider-button,
.su-image-compare[data-slider-location=right] .su-image-compare-slider,
.su-image-compare[data-slider-location=right] .su-image-compare-slider-button {
height:auto;
left:auto;
bottom:0;
top:0;
right:0;
width:10px
}
.su-image-compare[data-slider-location=left] .su-image-compare-slider-button,
.su-image-compare[data-slider-location=right] .su-image-compare-slider-button {
height:30px
}
.su-image-compare[data-slider-location=left] .su-image-compare-slider,
.su-image-compare[data-slider-location=left] .su-image-compare-slider-button {
right:auto;
left:0
}
.su-image-compare .su-image-compare-arrow-down,
.su-image-compare .su-image-compare-arrow-left,
.su-image-compare .su-image-compare-arrow-right,
.su-image-compare .su-image-compare-arrow-up {
width:0;
height:0;
position:absolute;
left:50%;
top:50%;
z-index:4
}
.su-image-compare .su-image-compare-arrow-left,
.su-image-compare .su-image-compare-arrow-right {
margin-left:0;
left:0;
-webkit-transform:translateY(-50%);
-ms-transform:translateY(-50%);
transform:translateY(-50%);
border-top-color:transparent!important;
border-bottom-color:transparent!important
}
.su-image-compare .su-image-compare-arrow-left {
border-top:7px solid transparent;
border-bottom:7px solid transparent;
border-right:7px solid #fff
}
.su-image-compare .su-image-compare-arrow-right {
border-top:7px solid transparent;
border-bottom:7px solid transparent;
border-left:7px solid #fff
}
.su-image-compare .su-image-compare-arrow-down,
.su-image-compare .su-image-compare-arrow-up {
margin-top:0;
top:0;
-webkit-transform:translateX(-50%);
-ms-transform:translateX(-50%);
transform:translateX(-50%);
border-left-color:transparent!important;
border-right-color:transparent!important;
border-left:7px solid transparent;
border-right:7px solid transparent
}
.su-image-compare .su-image-compare-arrow-up {
border-bottom:7px solid #fff
}
.su-image-compare .su-image-compare-arrow-down {
border-top:7px solid #fff
}
.image-before:before,
.image-after:after {
content: attr(data-alt);
top: 50%;
position: absolute;
color: white;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
opacity: 0;
transition: opacity .3s ease;
background: rgba(255, 255, 255, 0.2);
line-height: 38px;
padding: 0 20px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
font-size: 13px;
letter-spacing: 0.1em;
box-sizing: border-box;
}
.image-before:before {
right: 5%;
}
.image-after:after {
left: 5%;
}
.su-image-compare[data-direction="vertical"] .image-before:before,
.su-image-compare[data-direction="vertical"] .image-after:after {
left: 50%; right: auto;
-webkit-transform: translateX(-50%) translateY(0%);
transform: translateX(-50%) translateY(0%);
}
.su-image-compare[data-direction="vertical"] .image-before:before {
top:auto;
bottom: 5%;
}
.su-image-compare[data-direction="vertical"] .image-after:after {
top: 5%;
bottom:auto;
}
.su-image-compare:hover .image-before:before,
.su-image-compare:hover .image-after:after {
opacity: 1;
}
@media (max-width: 767px) {
.image-before:before {
right: 0;
/* text-align: right; */
}
.image-after:after {
left: 0;
}
.image-before:before,
.image-after:after {
-webkit-transform: translateY(0%);
transform: translateY(0%);
width: 150px;
top: auto;
bottom: 0;
opacity: 1;
text-align: center;
}
.su-image-compare[data-direction="vertical"] .image-before:before {
bottom: 0;
}
.su-image-compare[data-direction="vertical"] .image-after:after {
top: 0;
}
}<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve">
<polygon fill="#FFFFFF" points="13,21 8,16 13,11 "/>
<polygon fill="#FFFFFF" points="19,11 24,16 19,21 "/>
</svg>
jQuery(document).ready(function(t) {
"undefined" == typeof t.easing.easeInOutQuad && t.extend(t.easing, {
easeInOutBack: function(t, s, i, e, r, n) {
return void 0 === n && (n = 1.70158), (s /= r / 2) < 1 ? e / 2 * (s * s * (((n *= 1.525) + 1) * s - n)) + i : e / 2 * ((s -= 2) * s * (((n *= 1.525) + 1) * s + n) + 2) + i
}
})
}),
function(t, s, i, e) {
function r(s, i) {
this.element = s, "undefined" == typeof i && (i = t(this.element).data()), this.settings = t.extend({}, a, i), this.settings.splitBorder = this.settings.splitBorder === !0 || "true" === this.settings.splitBorder || "1" === this.settings.splitBorder, this.settings.returnValue = this.settings.returnValue === !0 || "true" === this.settings.returnValue || "1" === this.settings.returnValue, this._defaults = a, this._name = n, this.init()
}
var n = "imageCompare",
a = {
width: 400,
height: 300,
direction: "horizontal",
slideOn: "click",
rotation: 0,
start: .5,
returnValue: !0,
returnDelay: 5e3,
returnDuration: 1e3,
arrows: !0,
arrowColor: "#fff",
arrowSize: 5,
arrowGap: 10,
arrowOffset: 0,
splitBorder: !0,
splitBorderColor: "#fff",
splitBorderWidth: 3,
slider: !1,
sliderLocation: "bottom",
sliderBarColor: "rgba(255,255,255,.3)",
sliderBarThickness: 8,
sliderButtonColor: "rgba(255,255,255,.8)",
sliderThickness: 30,
complete: function() {}
};
t.extend(r.prototype, {
init: function() {
this.setup(), this.settings.complete()
},
setup: function() {
var i = t(this.element);
this.settings.arrowSize = 7, i.css({
maxWidth: this.settings.width,
height: this.settings.height
}), "undefined" == typeof i.attr("id") && i.attr("id", "su-image-compare-" + parseInt(1e5 * Math.random(), 10)), t(this.element).find("> *:eq(0)").addClass("image-after").wrap('<div class="image-after-container"></div>').find("> *:eq(0)").addClass("image-after-content"), this.settings.splitBorder === !0 && i.find(".image-after-container").css({
boxShadow: "0 0 0 " + this.settings.splitBorderWidth + "px " + this.settings.splitBorderColor + ", inset 0 0 0 .1px " + this.settings.splitBorderColor
}), this.settings.slider !== !0 || navigator.userAgent.match(/Mobi/) || this.createSlider(), this.settings.arrows && ("horizontal" === this.settings.direction ? (i.append('<div class="su-image-compare-arrow-left"></div>'), i.append('<div class="su-image-compare-arrow-right"></div>')) : (i.append('<div class="su-image-compare-arrow-up"></div>'), i.append('<div class="su-image-compare-arrow-down"></div>')), i.find("[class^=su-image-compare-arrow]").css("borderWidth", this.settings.arrowSize), i.find("[class^=su-image-compare-arrow]").css("borderColor", this.settings.arrowColor)), t(s).resize(t.proxy(this.adjustStartingPosition, this)), t(s).resize(t.proxy(this.resizeContainerAspectRatio, this)), this.resizeContainerAspectRatio(), this.adjustStartingPosition(), i.addClass("slide-on-" + this.settings.slideOn), "hover" === this.settings.slideOn || navigator.userAgent.match(/Mobi/) ? t("body").on("mousemove touchmove touchstart", "#" + i.attr("id"), t.proxy(this.moveHandler, this)) : "click" === this.settings.slideOn && t("body").on("mousedown", "#" + i.attr("id"), t.proxy(this.slideDragStartHandler, this)), this.returnTimeout = null, this.returnAnimating = !1
},
resizeContainerAspectRatio: function() {
var s = t(this.element);
s.height(this.settings.height / this.settings.width * s.width())
},
adjustStartingPosition: function() {
this.move(this.settings.start)
},
createSlider: function() {
var i = t(this.element),
e = "bottom" === this.settings.sliderLocation || "top" === this.settings.sliderLocation ? "height" : "width",
r = "bottom" === this.settings.sliderLocation || "top" === this.settings.sliderLocation ? "width" : "height",
n = t("<div></div>").addClass("su-image-compare-slider");
n.css({
backgroundColor: this.settings.sliderBarColor
}).css(e, this.settings.sliderBarThickness).appendTo(i);
var a = t("<div></div>").addClass("su-image-compare-slider-button");
a.css({
backgroundColor: this.settings.sliderButtonColor
}).css(e, this.settings.sliderBarThickness).css(r, this.settings.sliderButtonThickness).appendTo(n), t("body").on("mousedown", "#" + i.attr("id") + " .su-image-compare-slider", t.proxy(this.sliderAreaDragStartHandler, this)), t("body").on("mousedown", "#" + i.attr("id") + " .su-image-compare-slider-button", t.proxy(this.sliderDragStartHandler, this)), this.sliderAdjustLocation(this.settings.start), t(s).resize(t.proxy(this.sliderAdjustLocation, this))
},
sliderAdjustLocation: function(s) {
"undefined" == typeof s && (s = this.settings.start);
var i = t(this.element).find(".su-image-compare-slider"),
e = t(this.element).find(".su-image-compare-slider-button");
if ("top" === this.settings.sliderLocation || "bottom" === this.settings.sliderLocation) {
var r = 0,
n = i.width() - e.width(),
a = n * s + r;
e.css("left", a)
} else {
var o = 0,
d = i.height() - e.height(),
h = d * s + o;
e.css("top", h)
}
},
sliderAreaDragStartHandler: function(t) {
t.preventDefault(), this.sliderDragStartHandler(t), this.sliderDragMoveHandler(t)
},
sliderDragStartHandler: function(s) {
return s.preventDefault(), this.returnAnimating ? !1 : t(this.element).find(".su-image-compare-slider-button").hasClass("bdt-dragging") ? !1 : void t(this.element).find(".su-image-compare-slider-button").addClass("bdt-dragging").parents().on("mousemove", t.proxy(this.sliderDragMoveHandler, this)).on("mouseup", t.proxy(this.sliderDragEndHandler, this))
},
sliderDragMoveHandler: function(s) {
if (s.preventDefault(), this.returnAnimating) return !1;
var i = t(this.element).find(".su-image-compare-slider"),
e = t(this.element).find(".su-image-compare-slider-button"),
r = 0;
if ("top" === this.settings.sliderLocation || "bottom" === this.settings.sliderLocation) {
var n = 0,
a = i.width() - e.width(),
o = s.pageX - i.offset().left - e.width() / 2;
n > o ? o = n : o > a && (o = a), r = o / (a - n), e.css("left", o)
} else {
var d = 0,
h = i.height() - e.height(),
g = s.pageY - i.offset().top - e.height() / 2;
d > g ? g = d : g > h && (g = h), r = g / (h - d), e.css("top", g)
}
this.move(r)
},
sliderDragEndHandler: function(s) {
s.preventDefault(), t(this.element).find(".su-image-compare-slider-button").removeClass("bdt-dragging").parents().off("mousemove", t.proxy(this.sliderDragMoveHandler, this)).off("mouseup", t.proxy(this.sliderDragEndHandler, this))
},
slideDragStartHandler: function(s) {
return s.preventDefault(), this.returnAnimating ? !1 : t(this.element).hasClass("bdt-dragging") ? !1 : void t(this.element).addClass("bdt-dragging").parents().on("mousemove", t.proxy(this.slideDragHandler, this)).on("mouseup", t.proxy(this.slideDragEndHandler, this))
},
slideDragHandler: function(s) {
if (s.preventDefault(), this.returnAnimating) return !1;
var i, e = t(this.element);
i = "horizontal" === this.settings.direction ? (s.pageX - e.offset().left) / e.width() : (s.pageY - e.offset().top) / e.height(), this.move(i)
},
slideDragEndHandler: function(s) {
s.preventDefault(), t(this.element).removeClass("bdt-dragging").parents().off("mousemove", t.proxy(this.slideDragHandler, this)).off("mouseup", t.proxy(this.slideDragEndHandler, this))
},
moveHandler: function(s) {
if (s.preventDefault(), !this.returnAnimating) {
var i, e = t(this.element);
i = "horizontal" === this.settings.direction ? "undefined" != typeof s.pageX ? (s.pageX - e.offset().left) / e.width() : (s.originalEvent.touches[0].pageX - e.offset().left) / e.width() : "undefined" != typeof s.pageY ? (s.pageY - e.offset().top) / e.height() : (s.originalEvent.touches[0].pageY - e.offset().top) / e.height(), this.move(i)
}
},
move: function(s) {
var i = t(this.element),
e = i.width(),
r = i.height(),
n = this.settings.rotation * Math.PI / 180,
a = Math.tan(n),
o = Math.cos(n),
d = e * a,
h = r * a,
g = e / o - (e / 2 + r / 2 * a),
l = g + e + h,
f = r / o - (r / 2 + e / 2 * a),
m = f + r + d;
if (this.settings.splitBorder) {
var u = 2 * (this.settings.splitBorderWidth + 2) * a + 1;
l += u, m += u
}
this.settings.rotation < 0 && (g += h, l -= h, f += d, m -= d);
var p, c, b, _, v, w, x, T, y, D, B;
"horizontal" === this.settings.direction ? (p = -s * (l - g) + l, c = "translateX(" + -p + "px) rotate(" + this.settings.rotation + "deg) translateZ(0)", b = "rotate(" + -this.settings.rotation + "deg) translateX(" + p + "px) translateZ(0)", _ = "translateX(" + -p + "px) rotate(" + this.settings.rotation + "deg)", v = "rotate(" + -this.settings.rotation + "deg) translateX(" + p + "px)", i.find(".image-after-container").css({
top: "-" + r / 2 * 5 + "px",
bottom: "-" + r / 2 * 5 + "px",
left: "-" + e / 2 + "px",
right: "-" + e / 2 + "px",
webkitTransform: c,
mozTransform: c,
msTransform: _,
otransform: c,
transform: c
}), i.find(".image-after").css({
top: r / 2 * 5 + "px",
bottom: r / 2 * 5 + "px",
left: e / 2 + "px",
right: e / 2 + "px",
webkitTransform: b,
mozTransform: b,
msTransform: v,
oTransform: b,
transform: b
}), this.settings.arrows && (w = a * this.settings.splitBorderWidth, T = this.settings.splitBorderWidth / Math.sin((90 - this.settings.rotation) * Math.PI / 180), y = this.settings.arrowSize / Math.sin((90 - this.settings.rotation) * Math.PI / 180), x = s * (e + a * (r / 2) * 2 + T + y / 2) - a * (r / 2) - T / 2 - y / 2, D = "translateY(-50%) translateX(" + (x - y - w - this.settings.arrowGap + 1) + "px) rotate(" + this.settings.rotation + "deg) translateY(" + -this.settings.arrowOffset + "px)", B = "translateY(-50%) translateX(" + (x - w + T + this.settings.arrowGap) + "px) rotate(" + this.settings.rotation + "deg) translateY(" + this.settings.arrowOffset + "px)", i.find(".su-image-compare-arrow-left").css({
webkitTransform: D,
mozTransform: D,
msTransform: D,
oTransform: D,
transform: D
}), i.find(".su-image-compare-arrow-right").css({
webkitTransform: B,
mozTransform: B,
msTransform: B,
oTransform: B,
transform: B
}))) : (p = -s * (m - f) + m, c = "translateY(" + -p + "px) rotate(" + this.settings.rotation + "deg) translateZ(0)", b = "rotate(" + -this.settings.rotation + "deg) translateY(" + p + "px) translateZ(0)", _ = "translateY(" + -p + "px) rotate(" + this.settings.rotation + "deg)", v = "rotate(" + -this.settings.rotation + "deg) translateY(" + p + "px)", i.find(".image-after-container").css({
top: "-" + r / 2 + "px",
bottom: "-" + r / 2 + "px",
left: "-" + e / 2 * 5 + "px",
right: "-" + e / 2 * 5 + "px",
webkitTransform: c,
mozTransform: c,
msTransform: _,
oTransform: c,
transform: c
}), i.find(".image-after").css({
top: r / 2 + "px",
bottom: r / 2 + "px",
left: e / 2 * 5 + "px",
right: e / 2 * 5 + "px",
webkitTransform: b,
mozTransform: b,
msTransform: v,
oTransform: b,
transform: b
}), this.settings.arrows && (w = a * this.settings.splitBorderWidth, T = this.settings.splitBorderWidth / Math.sin((90 - this.settings.rotation) * Math.PI / 180), y = this.settings.arrowSize / Math.sin((90 - this.settings.rotation) * Math.PI / 180), x = s * (r + a * (e / 2) * 2 + T + y / 2) - a * (e / 2) - T / 2 - y / 2, D = "translateX(-50%) translateY(" + (x - y - w - this.settings.arrowGap + 1) + "px) rotate(" + this.settings.rotation + "deg) translateX(" + -this.settings.arrowOffset + "px)", B = "translateX(-50%) translateY(" + (x - w + T + this.settings.arrowGap) + "px) rotate(" + this.settings.rotation + "deg) translateX(" + this.settings.arrowOffset + "px)", i.find(".su-image-compare-arrow-up").css({
webkitTransform: D,
mozTransform: D,
msTransform: D,
oTransform: D,
transform: D
}), i.find(".su-image-compare-arrow-down").css({
webkitTransform: B,
mozTransform: B,
msTransform: B,
oTransform: B,
transform: B
}))), this.sliderAdjustLocation(s), this.settings.returnValue && (this.position = s, null !== this.returnTimeout && (clearTimeout(this.returnTimeout), this.returnTimeout = null), this.returnTimeout = setTimeout(t.proxy(this.returnPosition, this), this.settings.returnDelay))
},
returnPosition: function() {
t({
z: this.position
}).animate({
z: this.settings.start
}, {
duration: this.settings.returnDuration,
easing: "easeInOutBack",
step: t.proxy(this._returnPositionStep, this),
start: t.proxy(this._returnPositionStart, this),
complete: t.proxy(this._returnPositionComplete, this)
})
},
_returnPositionStart: function() {
this.returnAnimating = !0
},
_returnPosit