Common files added

This commit is contained in:
Olu Amey
2021-08-05 19:02:08 -04:00
parent a94fae6050
commit 4f46fe11fc
488 changed files with 56843 additions and 16 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+299
View File
@@ -0,0 +1,299 @@
/**
* Author and copyright: Stefan Haack (https://shaack.com)
* Repository: https://github.com/shaack/bootstrap-input-spinner
* License: MIT, see file 'LICENSE'
*/
;(function ($) {
"use strict"
var triggerKeyPressed = false
var originalVal = $.fn.val
$.fn.val = function (value) {
if (arguments.length >= 1) {
if (this[0] && this[0]["bootstrap-input-spinner"] && this[0].setValue) {
var element = this[0];
setTimeout(function () {
element.setValue(value)
})
}
}
return originalVal.apply(this, arguments)
}
$.fn.InputSpinner = $.fn.inputSpinner = function (options) {
var config = {
decrementButton: "<strong>-</strong>", // button text
incrementButton: "<strong>+</strong>", // ..
groupClass: "", // css class of the resulting input-group
buttonsClass: "btn-outline-secondary",
buttonsWidth: "2.5rem",
textAlign: "center",
autoDelay: 500, // ms holding before auto value change
autoInterval: 100, // speed of auto value change
boostThreshold: 10, // boost after these steps
boostMultiplier: "auto", // you can also set a constant number as multiplier
locale: null // the locale for number rendering; if null, the browsers language is used
}
for (var option in options) {
config[option] = options[option]
}
var html = '<div class="input-group ' + config.groupClass + '">' +
'<div class="input-group-prepend">' +
'<button style="min-width: ' + config.buttonsWidth + '" class="btn btn-decrement ' + config.buttonsClass + '" type="button">' + config.decrementButton + '</button>' +
'</div>' +
'<input type="text" style="text-align: ' + config.textAlign + '" class="form-control"/>' +
'<div class="input-group-append">' +
'<button style="min-width: ' + config.buttonsWidth + '" class="btn btn-increment ' + config.buttonsClass + '" type="button">' + config.incrementButton + '</button>' +
'</div>' +
'</div>'
var locale = config.locale || navigator.language || "en-US"
this.each(function () {
var $original = $(this)
$original[0]["bootstrap-input-spinner"] = true
$original.hide()
var autoDelayHandler = null
var autoIntervalHandler = null
var autoMultiplier = config.boostMultiplier === "auto"
var boostMultiplier = autoMultiplier ? 1 : config.boostMultiplier
var $inputGroup = $(html)
var $buttonDecrement = $inputGroup.find(".btn-decrement")
var $buttonIncrement = $inputGroup.find(".btn-increment")
var $input = $inputGroup.find("input")
var min = null
var max = null
var step = null
var stepMax = null
var decimals = null
var digitGrouping = null
var numberFormat = null
updateAttributes()
var value = parseFloat($original[0].value)
var boostStepsCount = 0
var prefix = $original.attr("data-prefix") || ""
var suffix = $original.attr("data-suffix") || ""
if (prefix) {
var prefixElement = $('<span class="input-group-text">' + prefix + '</span>')
$inputGroup.find(".input-group-prepend").append(prefixElement)
}
if (suffix) {
var suffixElement = $('<span class="input-group-text">' + suffix + '</span>')
$inputGroup.find(".input-group-append").prepend(suffixElement)
}
$original[0].setValue = function (newValue) {
setValue(newValue)
}
var observer = new MutationObserver(function () {
updateAttributes()
setValue(value, true)
})
observer.observe($original[0], {attributes: true})
$original.after($inputGroup)
setValue(value)
$input.on("paste input change focusout", function (event) {
var newValue = $input[0].value
var focusOut = event.type === "focusout"
newValue = parseLocaleNumber(newValue)
setValue(newValue, focusOut)
dispatchEvent($original, event.type)
})
onPointerDown($buttonDecrement[0], function () {
stepHandling(-step)
})
onPointerDown($buttonIncrement[0], function () {
stepHandling(step)
})
onPointerUp(document.body, function () {
resetTimer()
})
function setValue(newValue, updateInput) {
if (updateInput === undefined) {
updateInput = true
}
if (isNaN(newValue) || newValue === "") {
$original[0].value = ""
if (updateInput) {
$input[0].value = ""
}
value = NaN
} else {
newValue = parseFloat(newValue)
newValue = Math.min(Math.max(newValue, min), max)
newValue = Math.round(newValue * Math.pow(10, decimals)) / Math.pow(10, decimals)
$original[0].value = newValue
if (updateInput) {
$input[0].value = numberFormat.format(newValue)
}
value = newValue
}
}
function dispatchEvent($element, type) {
if (type) {
setTimeout(function () {
var event
if (typeof (Event) === 'function') {
event = new Event(type, {bubbles: true})
} else { // IE
event = document.createEvent('Event')
event.initEvent(type, true, true)
}
$element[0].dispatchEvent(event)
})
}
}
function stepHandling(step) {
if (!$input[0].disabled && !$input[0].readOnly) {
calcStep(step)
resetTimer()
autoDelayHandler = setTimeout(function () {
autoIntervalHandler = setInterval(function () {
if (boostStepsCount > config.boostThreshold) {
if (autoMultiplier) {
calcStep(step * parseInt(boostMultiplier, 10))
if (boostMultiplier < 100000000) {
boostMultiplier = boostMultiplier * 1.1
}
if (stepMax) {
boostMultiplier = Math.min(stepMax, boostMultiplier)
}
} else {
calcStep(step * boostMultiplier)
}
} else {
calcStep(step)
}
boostStepsCount++
}, config.autoInterval)
}, config.autoDelay)
}
}
function calcStep(step) {
if (isNaN(value)) {
value = 0
}
setValue(Math.round(value / step) * step + step)
dispatchEvent($original, "input")
dispatchEvent($original, "change")
}
function resetTimer() {
boostStepsCount = 0
boostMultiplier = boostMultiplier = autoMultiplier ? 1 : config.boostMultiplier
clearTimeout(autoDelayHandler)
clearTimeout(autoIntervalHandler)
}
function updateAttributes() {
// copy properties from original to the new input
$input.prop("required", $original.prop("required"))
$input.prop("placeholder", $original.prop("placeholder"))
var disabled = $original.prop("disabled")
var readonly = $original.prop("readonly")
$input.prop("disabled", disabled)
$input.prop("readonly", readonly)
$buttonIncrement.prop("disabled", disabled || readonly)
$buttonDecrement.prop("disabled", disabled || readonly)
if (disabled || readonly) {
resetTimer()
}
var originalClass = $original.prop("class")
var groupClass = ""
// sizing
if (/form-control-sm/g.test(originalClass)) {
groupClass = "input-group-sm"
} else if (/form-control-lg/g.test(originalClass)) {
groupClass = "input-group-lg"
}
var inputClass = originalClass.replace(/form-control(-(sm|lg))?/g, "")
$inputGroup.prop("class", "input-group " + groupClass + " " + config.groupClass)
$input.prop("class", "form-control " + inputClass)
// update the main attributes
min = parseFloat($original.prop("min")) || 0
max = isNaN($original.prop("max")) || $original.prop("max") === "" ? Infinity : parseFloat($original.prop("max"))
step = parseFloat($original.prop("step")) || 1
stepMax = parseInt($original.attr("data-step-max")) || 0
var newDecimals = parseInt($original.attr("data-decimals")) || 0
var newDigitGrouping = !($original.attr("data-digit-grouping") === "false")
if (decimals !== newDecimals || digitGrouping !== newDigitGrouping) {
decimals = newDecimals
digitGrouping = newDigitGrouping
numberFormat = new Intl.NumberFormat(locale, {
minimumFractionDigits: decimals,
maximumFractionDigits: decimals,
useGrouping: digitGrouping
})
}
}
function parseLocaleNumber(stringNumber) {
var numberFormat = new Intl.NumberFormat(locale)
var thousandSeparator = numberFormat.format(1111).replace(/1/g, '')
var decimalSeparator = numberFormat.format(1.1).replace(/1/g, '')
return parseFloat(stringNumber
.replace(new RegExp('\\' + thousandSeparator, 'g'), '')
.replace(new RegExp('\\' + decimalSeparator), '.')
)
}
})
return this
}
function onPointerUp(element, callback) {
element.addEventListener("mouseup", function (e) {
callback(e)
})
element.addEventListener("touchend", function (e) {
callback(e)
})
element.addEventListener("keyup", function (e) {
if ((e.keyCode === 32 || e.keyCode === 13)) {
triggerKeyPressed = false
callback(e)
}
})
}
function onPointerDown(element, callback) {
element.addEventListener("mousedown", function (e) {
e.preventDefault()
callback(e)
})
element.addEventListener("touchstart", function (e) {
if (e.cancelable) {
e.preventDefault()
}
callback(e)
})
element.addEventListener("keydown", function (e) {
if ((e.keyCode === 32 || e.keyCode === 13) && !triggerKeyPressed) {
triggerKeyPressed = true
callback(e)
}
})
}
}(jQuery))
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+10
View File
@@ -0,0 +1,10 @@
/**
* jquery-circle-progress - jQuery Plugin to draw animated circular progress bars:
* {@link http://kottenator.github.io/jquery-circle-progress/}
*
* @author Rostyslav Bryzgunov <kottenator@gmail.com>
* @version 1.2.2
* @licence MIT
* @preserve
*/
!function(i){if("function"==typeof define&&define.amd)define(["jquery"],i);else if("object"==typeof module&&module.exports){var t=require("jquery");i(t),module.exports=t}else i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("<canvas>")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if("string"==typeof a&&(a={color:a}),a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var l=a.gradientAngle||0,o=a.gradientDirection||[r/2*(1-Math.cos(l)),r/2*(1+Math.sin(l)),r/2*(1+Math.cos(l)),r/2*(1-Math.sin(l))],h=n.createLinearGradient.apply(n,o),c=0;c<s.length;c++){var d=s[c],u=c/(s.length-1);i.isArray(d)&&(u=d[1],d=d[0]),h.addColorStop(u,d)}this.arcFill=h}}if(a.image){var g;a.image instanceof Image?g=a.image:(g=new Image,g.src=a.image),g.complete?t():g.onload=t}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){if(0!==i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore()}},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;i<1&&(t.save(),t.beginPath(),i<=0?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i){return i<.5?(i=2*i,.5*i*i*i):(i=2-2*i,1-.5*i*i*i)},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if("undefined"==typeof a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var l=i.extend({},a.data());"string"==typeof l.fill&&(l.fill=JSON.parse(l.fill)),"string"==typeof l.animation&&(l.animation=JSON.parse(l.animation)),s=i.extend(l,s),s.el=a,r=new t(s),a.data(n,r)}})}});
+205
View File
@@ -0,0 +1,205 @@
//contact us form
$(".contact_btn").on('click', function () {
//disable submit button on click
// $(".contact_btn").attr("disabled", "disabled");
// $(".contact_btn b").text('Sending');
$(".contact_btn i").removeClass('d-none');
//simple validation at client's end
var post_data, output;
var proceed = "true";
// var allBlank;
var str = $('#contact-form-data').serializeArray();
$('#contact-form-data input').each(function() {
if(!$(this).val()){
// alert('Some fields are empty');
proceed = "false";
}
});
//everything looks good! proceed...
if (proceed === "true") {
var pathArray = window.location.pathname.split('/');
var secondLevelLocation = pathArray[3];
var accessURL;
if(secondLevelLocation){
accessURL="../vendor/contact-mailer.php";
}else{
accessURL="vendor/contact-mailer.php";
}
//data to be sent to server
$.ajax({
type: 'POST',
// url: 'vendor/contact-mailer.php',
url: accessURL,
data: str,
dataType: 'json',
success: function (response) {
if (response.type == 'error') {
output = '<div class="alert-danger" style="padding:10px 15px; margin-bottom:30px;">' + response.text + '</div>';
} else {
output = '<div class="alert-success" style="padding:10px 15px; margin-bottom:30px;">' + response.text + '</div>';
//reset values in all input fields
$('.contact-form input').val('');
$('.contact-form textarea').val('');
}
if ($("#result").length) {
// alert("yes");
$("#result").hide().html(output).slideDown();
$(".contact_btn i").addClass('d-none');
}else{
if (response.type == 'error') {
Swal.fire({
type: 'error',
icon: 'error',
title: 'Oops...',
html: '<div class="text-danger">'+ response.text +'</div>',
})
$(".contact_btn i").addClass('d-none');
}else{
Swal.fire({
type: 'success',
icon: 'success',
title: 'Success!',
html: '<div class="text-success">'+ response.text +'</div>',
})
$(".contact_btn i").addClass('d-none');
}
}
},
error: function () {
alert("Failer");
}
});
}
else
{
if ($("#result").length) {
// alert("yes");
output = '<div class="alert-danger" style="padding:10px 15px; margin-bottom:30px;">Please provide the missing fields.</div>';
$("#result").hide().html(output).slideDown();
$(".contact_btn i").addClass('d-none');
}else{
Swal.fire({
icon: 'error',
type: 'error',
title: 'Oops...',
html: '<div class="text-danger">Please provide the missing fields.</div>'
})
$(".contact_btn i").addClass('d-none');
}
}
});
//modal window form
$(".modal_contact_btn").on('click', function () {
//disable submit button on click
// $(".modal_contact_btn").attr("disabled", "disabled");
// $(".modal_contact_btn b").text('Sending');
$(".modal_contact_btn i").removeClass('d-none');
//simple validation at client's end
var post_data, output;
var proceed = "true";
var str=$('#modal-contact-form-data').serializeArray();
$('#modal-contact-form-data input').each(function() {
if(!$(this).val()){
proceed = "false";
}
});
//everything looks good! proceed...
if (proceed === "true") {
var pathArray = window.location.pathname.split('/');
var secondLevelLocation = pathArray[3];
var accessURL;
if(secondLevelLocation){
accessURL="../vendor/contact-mailer.php";
}else{
accessURL="vendor/contact-mailer.php";
}
//data to be sent to server
$.ajax({
type : 'POST',
// url : 'vendor/contact-mailer.php',
url : accessURL,
data : str,
dataType: 'json',
success: function(response) {
if (response.type == 'error') {
output = '<div class="alert-danger" style="padding:10px 15px; margin-bottom:30px;">' + response.text + '</div>';
} else {
output = '<div class="alert-success" style="padding:10px 15px; margin-bottom:30px;">' + response.text + '</div>';
//reset values in all input fields
$('.contact-form input').val('');
$('.contact-form textarea').val('');
}
if ($("#quote_result").length) {
$("#quote_result").hide().html(output).slideDown();
$(".modal_contact_btn i").addClass('d-none');
}else{
if (response.type == 'error') {
Swal.fire({
type: 'error',
icon: 'error',
title: 'Oops...',
html: '<div class="text-danger">'+ response.text +'</div>',
})
$(".modal_contact_btn i").addClass('d-none');
}else{
Swal.fire({
type: 'success',
icon: 'success',
title: 'Success!',
html: '<div class="text-success">'+ response.text +'</div>',
})
$(".modal_contact_btn i").addClass('d-none');
}
}
// $("#quote_result").hide().html(output).slideDown();
// $(".modal_contact_btn i").addClass('d-none');
},
error: function () {
alert("Failer");
}
});
}
else {
// output = '<div class="alert-danger" style="padding:10px 15px; margin-bottom:30px;">Please provide the missing fields.</div>';
// $("#quote_result").hide().html(output).slideDown();
// $(".modal_contact_btn i").addClass('d-none');
if ($("#quote_result").length) {
// alert("yes");
output = '<div class="alert-danger" style="padding:10px 15px; margin-bottom:30px;">Please provide the missing fields.</div>';
$("#quote_result").hide().html(output).slideDown();
$(".modal_contact_btn i").addClass('d-none');
}else{
Swal.fire({
icon: 'error',
type: 'error',
title: 'Oops...',
html: '<div class="text-danger">Please provide the missing fields.</div>'
})
$(".modal_contact_btn i").addClass('d-none');
}
}
});
+1
View File
@@ -0,0 +1 @@
document.getElementById("my-date").min = new Date().getFullYear() + "-" + parseInt(new Date().getMonth() + 1 ) + "-" + new Date().getDate()
@@ -0,0 +1,16 @@
/**
* @author ThemePunch <info@themepunch.com>
* @link http://www.themepunch.com/
* @copyright 2016 ThemePunch
* @version 1.0.0
*/
;var RsSnowAddOn=function(e,c){if(c){if(!c.children(".tp-static-layers").length){var f=document.createElement("div");f.className="tp-static-layers";f.style="pointer-events: none";c[0].appendChild(f)}var d=c[0].opt.snow,k=d.startSlide,g=d.endSlide,a,m,d={selector:".tp-static-layers",dimension:"self",particleMaxPer:parseInt(d.maxNum,10),particlaSize:[parseFloat(d.minSize),parseFloat(d.maxSize)],particleOpacity:[parseFloat(d.minOpacity),parseFloat(d.maxOpacity)],particleSpeed:[parseInt(d.minSpeed,10),
parseInt(d.maxSpeed,10)],particleSinus:[parseInt(d.minSinus,10),parseInt(d.maxSinus,10)]};c.on("revolution.slide.onchange",function(e,b){var h=b.slideIndex;"first"===k&&(k=1);"last"===g&&(g=c.revmaxslide());h>=k&&h<=g?(m?a||c.letItSnow("winter"):(c.letItSnow(d),m=!0),a=!0):m&&(c.letItSnow("summer"),a=!1)})}};
(function(e,c){function f(a){a.pause=!0;a.sc.find(".snowflakes_wrapper").remove();a.c.removeData("snowflakes")}function d(a){a.snowflakes=[];for(var c=a.w*a.h/15E5;a.snowflakes.length<a.particleMaxPer*c;)a.snowflakes.push(g(a))}function k(a){window.requestAnimationFrame(function(){if(a!=c&&a.ctx!=c&&1!=a.destroyed&&1!=a.pause){a.ctx.clearRect(0,0,2700,2500);var d=a.h/3,e=a.h/3*2,b;for(b in a.snowflakes)if(!(0>a.snowflakes[b].y+.1*a.snowflakes[b].r&&1==a.summer||a.snowflakes[b].y>a.h+a.snowflakes[b].r&&
1==a.summer)){a.snowflakes[b].delta+=a.snowflakes[b].delta==Math.PI/2?-a.snowflakes[b].delta:Math.random()/500-.01;a.summer?a.snowflakes[b].y+=a.snowflakes[b].speed/50+.1*a.snowflakes[b].r:a.snowflakes[b].y+=a.snowflakes[b].speed/100+.1*a.snowflakes[b].r;a.snowflakes[b].x+=.1*Math.sin(a.snowflakes[b].delta)*a.snowflakes[b].r;a.snowflakes[b].y>a.h+a.snowflakes[b].r&&1!=a.summer&&(a.snowflakes[b]=g(a),a.snowflakes[b].y=0-a.snowflakes[b].r);var h=a.snowflakes[b].y-d,l=a.snowflakes[b].r,f=a.snowflakes[b].alpha;
if(0<h||1==a.summer)h=1-h/e,l=a.snowflakes[b].r*h,f=a.snowflakes[b].alpha*h;l=.1>l?.1:l;f=.1>f?.1:f;a.snowflakes[b].x=a.snowflakes[b].x>a.w+a.snowflakes[b].r?0:a.snowflakes[b].x<-l?a.w:a.snowflakes[b].x;a.ctx.beginPath();a.ctx.arc(a.snowflakes[b].x,a.snowflakes[b].y,l,2*Math.PI,!1);a.ctx.fillStyle="rgba(255,255,255,"+f+")";a.ctx.fill()}k(a)}})}function g(a){var c={};return c.delta=(a.particleSinus[0]+Math.random()*(a.particleSinus[1]-a.particleSinus[0]))*Math.round(2*Math.random()-1),c.r=a.particlaSize[0]+
Math.random()*(a.particlaSize[1]-a.particlaSize[0]),c.alpha=a.particleOpacity[0]+Math.random()*(a.particleOpacity[1]-a.particleOpacity[0]),c.speed=(a.particleSpeed[0]+Math.random()*(a.particleSpeed[1]-a.particleSpeed[0]))*c.r/3,c.x=Math.random()*a.w,c.y=Math.random()*-a.h,c}e.fn.extend({letItSnow:function(a){var g={particleMaxPer:400,particlaSize:[.2,6],particleOpacity:[.3,1],particleSpeed:[30,100],particleSinus:[1,100]};return"destroy"!=a&&"stop"!=a&&"play"!=a&&"summer"!=a&&"winter"!=a&&(a=e.extend(!0,
{},g,a)),this.each(function(){if(-1!=e.inArray(a,["destroy","stop","play","winter","summer"])){switch(a){case "destroy":a=e(this).data("snowflakes");a!=c&&f(a);break;case "stop":a=e(this).data("snowflakes");a!=c&&(a.pause=!0);break;case "play":a=e(this).data("snowflakes");a!=c&&(a.pause=!1,k(a));break;case "summer":a=e(this).data("snowflakes");a!=c&&(a.summer=!0);break;case "winter":a=e(this).data("snowflakes"),a!=c&&(a.summer=!1)}return!1}return a.c=e(this),a.sc=a.selector!=c?e(this).find(a.selector):
a.c,0==a.sc.length?!1:a.c.data("snowflakes")!=c?!1:(a.sc.find(".snowflakes_wrapper").remove(),a.sc.append('<div class="snowflakes_wrapper" style="position:relative;z-index:0"><div class="snowflakes_wrapper_inner" style="overflow:hidden;position:relative"><canvas width="2700" height="2500" style="position:relative;" class="snowflake_canvas"></canvas></div></div>'),a.sw=a.sc.find(".snowflakes_wrapper_inner"),a.sw.data("caller_container",a.c),a.canvas=a.sc.find(".snowflake_canvas"),a.dimension!=self?
a.sizer=a.c:a.sizer=a.sc,a.w=a.sizer.width(),a.h=a.sizer.height(),a.sc.find(".snowflakes_wrapper_inner").css({width:a.w,height:a.h}),a.canvas=a.canvas[0],a.snowflakes=[],a.ctx=a.canvas.getContext("2d"),d(a),k(a),a.c.data("snowflakes",a),void e(window).resize(function(){clearTimeout(a.timer);a.timer=setTimeout(function(){a.w=a.sizer.width();a.h=a.sizer.height();a.sc.find(".snowflakes_wrapper_inner").css({width:a.w,height:a.h});d(a)},50)}))})}})})(jQuery);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,551 @@
/*
* @author ThemePunch <info@themepunch.com>
* @link http://www.themepunch.com/
* @copyright 2017 ThemePunch
*/
;
(function() {
function w(a, c) {
this.slides = [];
this.slider = a;
this.options = c;
this.timer = this.onTimer.bind(this);
if (!a[0].opt.fallbacks.disableFocusListener) m(window).on("focus.rsaddonbeforeafter", this.onFocus.bind(this));
a.one("revolution.slide.onloaded", this.onLoaded.bind(this)).one("rsBeforeAfterDestroyed", this.destroy.bind(this))
}
function t(a, c, b, e, g, h, k, d, f, p, n, q, l, r) {
this.id = a;
this.bg = c;
this.index = r;
this.slide = e;
this.inner = b;
this.after = f;
this.before = p;
this.slider = n;
this.videoBg = g;
this.bgInner = k;
this.globals =
q;
this.videoSolo = h;
this.carousel = l;
this.animateOut = d.out;
this.direction = d.direction;
this.moveto = d.moveto.split("|");
this.timing = .001 * parseInt(d.time, 10);
this.delay = .001 * parseInt(d.delay, 10);
a = d.easing.split(".");
this.animation = punchgs[a[0]][a[1]];
"horizontal" === this.direction ? (this.normal = !0, this.axis = "left", this.size = "width") : (this.axis = "top", this.size = "height");
this.globals.hasOwnProperty("onClick") && (a = this.globals.onClick.easing.split("."), this.time = .001 * parseInt(this.globals.onClick.time, 10),
this.transition = punchgs[a[0]][a[1]]);
this.mouseUp = this.onMouseUp.bind(this);
this.mouseMove = this.onMouseMove.bind(this);
this.mouseClick = this.onClick.bind(this);
this.complete = this.onComplete.bind(this);
d.hasOwnProperty("bounceArrows") && (this.bounceArrows = d.bounceArrows, this.bounceDelay = parseInt(d.bounceDelay, 10), this.readyArrows = this.arrowsReady.bind(this), this.bounceDelay && (this.delayBounce = this.bounceReady.bind(this)));
d.hasOwnProperty("shiftOffset") && (this.shiftArrows = d.shiftOffset);
this.videoBg &&
!this.videoSolo && (this.videoPlay = this.playVideo.bind(this));
this.createDrag();
m.data(e[0], "rs-addon-beforeafter", this)
}
function z(a) {
this.style.zIndex = (a + 5).toString()
}
var m;
window.RevSliderBeforeAfter = function(a, c, b) {
a && c && "undefined" !== typeof punchgs && (m = a, m.event.special.rsBeforeAfterDestroyed = {
remove: function(a) {
a.handler()
}
}, new w(c, b))
};
w.prototype = {
init: function() {
var a = this.slider[0].opt,
c = a.responsiveLevels,
a = a.gridwidth;
Array.isArray(c) || (c = [c]);
Array.isArray(a) || (a = [a]);
this.levels = c;
this.widths =
a;
this.resize = this.onResize.bind(this);
this.slider.addClass("rs-before-after-addon").on("revolution.slide.onbeforeswap", this.beforeSwap.bind(this)).on("revolution.slide.onafterswap", this.afterSwap.bind(this))
},
onLoaded: function() {
var a = this,
c = this.slider[0].id,
b = this.slider.find(".tp-static-layers");
(this.carousel = this.options.carousel) && this.slider.addClass("before-after-carousel");
b.length || (b = this.slider.find(".tp-revslider-mainul"));
this.slider.data("before-after-placer", b).data("beforeafter-slides").each(function() {
var b =
m(this),
g = b.find('.tp-caption[data-beforeafter="before"]').toArray().map(function(a) {
return m(a).closest(".tp-parallax-wrap")
}),
h = b.find('.tp-caption[data-beforeafter="after"]').toArray().map(function(a) {
return m(a).closest(".tp-parallax-wrap")
}),
k = b.data("beforeafter-options");
b.addClass("rs-addon-beforeafter rs-addon-beforeafter-" + k.direction);
a.carousel || b.find("*").attr("draggable", !1);
var d = m('<div class="rs-addon-beforeafter-revealer rs-addon-beforeafter-before" />').append(g);
1 < g.length ? d.insertAfter(b.find(".tp-parallax-wrap").last()) :
d.appendTo(b);
var g = m('<div class="rs-addon-beforeafter-revealer rs-addon-beforeafter-after" />'),
h = m('<div class="rs-addon-beforeafter-inner" />').append(h)[0],
f = document.createElement("div"),
p = document.createElement("div"),
n = k.bgType;
if ("image" === n || "external" === n) f.style.backgroundImage = "url(" + k.bgImage + ")", f.style.backgroundPosition = k.bgPos, f.style.backgroundRepeat = k.bgRepeat, f.style.backgroundSize = k.bgFit;
else if ("solid" === n) f.style.background = k.bgColor;
else if ("trans" !== n && (n = b.data("beforeafter-video")) &&
(n.closest(".tp-parallax-wrap").addClass("rs-video-beforeafter"), !a.carousel)) {
var q = n;
var l = 0 === b.find(".rs-background-video-layer").length
}
b.attr("data-link") && "back" === b.attr("data-slideindex") && (d.addClass("rs-beforeafter-pointers"), g.addClass("rs-beforeafter-pointers"));
n = "rs-addon-beforeafter-bg-inner";
k.filter && (n += " " + k.filter);
p.className = "rs-addon-beforeafter-bg";
f.className = n;
p.appendChild(f);
b.find(".slotholder").append(p);
g.append(h).insertBefore(d);
a.slides[a.slides.length] = new t(c,
p, h, b, q, l, f, k, g[0], d[0], a.slider, a.options, a.carousel, b.attr("data-index"))
});
this.init()
},
beforeSwap: function(a, c) {
if (!this.checkRemoved()) {
this.slide = !1;
var b;
c.currentslide.length && (b = m.data(c.currentslide[0], "rs-addon-beforeafter")) && (b.removeEvents(), b[b.animateOut]());
(b = m.data(c.nextslide[0], "rs-addon-beforeafter")) && b.setup && b.reset()
}
},
afterSwap: function(a, c) {
!this.checkRemoved() && c.currentslide.hasClass("rs-addon-beforeafter") && (this.slide = m.data(c.currentslide[0], "rs-addon-beforeafter"),
this.slide.setup || (this.onResize(!1, !0), this.slide.onSetup(), this.slider.on("revolution.slide.afterdraw", this.resize)), this.slide.reset(!0), this.slide.reveal(), this.slide.addEvents())
},
checkRemoved: function() {
return this.slider && document.body.contains(this.slider[0]) ? !1 : (this.destroy(), !0)
},
onVideoPlay: function(a, c) {
this.slide && this.slide.videoBg && !this.slide.videoSolo && this.slide.playVideo()
},
destroy: function() {
m(window).off(".rsaddonbeforeafter");
if (this.slides)
for (; this.slides.length;) this.slides[0].destroy(),
this.slides.shift();
for (var a in this) this.hasOwnProperty(a) && delete this[a]
},
onFocus: function() {
clearTimeout(this.timer);
for (var a = this.slides.length; a--;) this.slides[a].supress = !0;
this.focusTimer = setTimeout(this.timer, 100)
},
onTimer: function() {
for (var a = this.slides.length; a--;) this.slides[a].supress = !1
},
onResize: function(a, c) {
if (a && this.carousel) clearTimeout(this.resizeTimer), this.resizeTimer = setTimeout(this.resize, 250);
else {
var b = this.slide;
if (b) {
var e, g = 0,
h = this.levels.length;
if (this.carousel) {
var k =
b.slide.width();
var d = b.slide.height()
} else k = this.slider.width(), d = this.slider.height();
for (e = 0; e < h; e++) k < this.levels[e] && (g = e);
c || (punchgs.TweenLite.killTweensOf(b.bg), punchgs.TweenLite.killTweensOf(b.after), punchgs.TweenLite.killTweensOf(b.before), punchgs.TweenLite.killTweensOf(b.revealBtn), b.revealLine && punchgs.TweenLite.killTweensOf(b.revealLine));
for (var h = k / this.widths[g], f = this.slides.length; f--;) e = this.slides[f], e.level = g, e.scale = h, e.blurred = !1, e.sliderWidth = k, e.sliderHeight = d, e.normal ? (e.bgInner.style.width =
k + "px", e.inner.style.width = k + "px") : (e.bgInner.style.height = d + "px", e.inner.style.height = d + "px");
c || (b.normal ? (k = b.moveto[b.level], -1 === k.search("%") && (k = (parseInt(k, 10) * h).toFixed(0) + "px"), d = "65%") : (k = "50%", d = b.moveto[b.level], -1 === d.search("%") && (d = (parseInt(d, 10) * h).toFixed(0) + "px")), b.resetDrag(k, d))
}
}
}
};
t.prototype = {
createDrag: function() {
var a = this.globals,
c = a.boxShadow,
b = a.arrowStyles,
e = a.arrowShadow,
g = a.arrowBorder,
h = a.dividerStyles,
k = a.dividerShadow,
d = parseInt(b.spacing, 10),
a = '<span class="rs-addon-beforeafter-btn rs-before-after-element rs-addon-beforeafter-btn-' +
this.direction + '" style="color: ' + b.color + ";font-size: " + parseInt(b.size, 10) + "px;background-color:" + b.bgColor + ";padding: " + parseInt(b.padding, 10) + "px;border-radius: " + b.borderRadius + ";cursor: " + a.cursor;
c && (a += "; box-shadow: 0px 0px " + parseInt(c.blur, 10) + "px " + parseInt(c.strength, 10) + "px " + c.color + ";");
g && (a += "; border: " + parseInt(g.size, 10) + "px solid " + g.color + ";");
e && (a += "; text-shadow: 0px 0px " + parseInt(e.blur, 10) + "px " + e.color + ";");
var f, p = "",
n = f = "",
q = "",
l = this.shiftArrows ? " rs-" + this.id + "-" +
this.index + "-rs-beforeafter-shift" : "";
this.normal ? (e = "padding-right", g = "padding-left", c = b.leftIcon, b = b.rightIcon, this.bounceArrows && (f = " rs-" + this.id + "-" + this.index + "-rs-beforeafter-bounce-", p = f + "left", f += "right"), this.shiftArrows && (n = "transform: translateX(-" + this.shiftArrows + "px);", q = "transform: translateX(" + this.shiftArrows + "px);")) : (e = "margin-bottom", g = "margin-top", c = b.topIcon, b = b.bottomIcon, this.bounceArrows && (f = " rs-" + this.id + "-" + this.index + "-rs-beforeafter-bounce-", p = f + "top", f += "bottom"), this.shiftArrows &&
(n = "transform: translateY(-" + this.shiftArrows + "px);", q = "transform: translateY(" + this.shiftArrows + "px);"));
a += '" />';
this.btn1 = m('<i class="' + c + l + p + '" style="' + n + e + ": " + d + 'px">');
this.btn2 = m('<i class="' + b + l + f + '" style="' + q + g + ": " + d + 'px">');
this.btn = m(a).on("mousedown touchstart", this.onMouseDown.bind(this));
this.btn[0].appendChild(this.btn1[0]);
this.btn[0].appendChild(this.btn2[0]);
d = parseInt(h.width, 10);
a = [];
d && (h = '<span class="rs-addon-beforeafter-line rs-before-after-element rs-beforeafter-' + this.direction +
'" style="' + this.size + ": " + d + "px; " + (this.normal ? "margin-left: " : "margin-top: ") + -Math.floor(.5 * d) + "px; background-color: " + h.color, k && (h += "; box-shadow: 0px 0px " + parseInt(k.blur, 10) + "px " + parseInt(k.strength, 10) + "px " + k.color + ";"), this.revealLine = m(h + '"></span>')[0], this.pixel = 0 === d % 2 ? 0 : 1, a[0] = this.revealLine);
this.revealBtn = this.btn[0];
a[a.length] = this.revealBtn;
this.carousel ? this.slide.append(a) : m(a).insertAfter(this.slider.data("before-after-placer"))
},
onSetup: function() {
var a = this.btn.outerWidth(!0),
c = this.btn.outerHeight(!0),
a = Math.max(a, c),
b = c = 0;
this.revealLine && (this.normal ? c += this.pixel : b += this.pixel);
var e = Math.floor(.5 * a);
this.buffer = e;
this.setup = !0;
this.btn.css({
width: a,
height: a,
marginTop: -e + b,
marginLeft: -e + c
});
delete this.btn
},
addEvents: function() {
var a = this.carousel ? this.slide : this.slider;
a.on("mouseup.rsaddonbeforeafter mouseleave.rsaddonbeforeafter touchend.rsaddonbeforeafter", this.mouseUp).on("mousemove.rsaddonbeforeafter touchmove.rsaddonbeforeafter", this.mouseMove);
if (this.transition) a.on("click.rsaddonbeforeafter",
this.mouseClick)
},
removeEvents: function() {
this.onMouseUp();
(this.carousel ? this.slide : this.slider).off(".rsaddonbeforeafter");
this.shiftArrows && this.btn1.off(".rsaddonbeforeafter");
this.bounceDelay && clearTimeout(this.bounceTimer)
},
updateDrag: function(a, c) {
if (this.before) {
if (this.normal) {
var b = a;
var e = this.sliderWidth - a;
c = Math.min(this.sliderHeight - this.buffer, Math.max(c, this.buffer))
} else b = c, e = this.sliderHeight - c, a = Math.min(this.sliderWidth - this.buffer, Math.max(a, this.buffer));
this.revealBtn.style.left =
a + "px";
this.revealBtn.style.top = c + "px";
this.before.style[this.size] = b + "px";
this.after.style[this.size] = e + "px";
this.bg.style[this.size] = e + "px";
this.revealLine && (this.revealLine.style[this.axis] = b + "px")
}
},
resetDrag: function(a, c) {
if (this.before) {
if (this.normal) {
var b = a;
var e = parseInt(a, 10);
e = -1 !== a.search("%") ? 100 - e + "%" : this.sliderWidth - e + "px"
} else b = c, e = parseInt(c, 10), e = -1 !== c.search("%") ? 100 - e + "%" : this.sliderHeight - e + "px";
this.revealBtn.style.left = a;
this.revealBtn.style.top = c;
this.before.style[this.size] =
b;
this.after.style[this.size] = e;
this.bg.style[this.size] = e;
this.revealLine && (this.revealLine.style[this.axis] = b)
}
},
onMouseDown: function(a) {
this.canDrag = this.prevent = !0;
this.slider.addClass("dragging");
this.shiftArrows && (this.btn1.off(".rsaddonbeforeafter"), this.slider.addClass("rs-beforeafter-shift-arrows"));
this.bounceArrows && (this.bounceDelay && clearTimeout(this.bounceTimer), this.slider.removeClass("rs-beforeafter-bounce-arrows"));
this.carousel && a.stopImmediatePropagation()
},
onMouseMove: function(a) {
if (!this.supress &&
this.canDrag) {
var c = a.originalEvent.touches;
c && (a = c[0]);
var b = (this.carousel ? this.slide : this.slider).offset(),
c = a.pageX - b.left;
a = a.pageY - b.top;
(this.normal ? 0 < c && c < this.sliderWidth : 0 < a && a < this.sliderHeight) && this.updateDrag(c, a)
}
},
onMouseUp: function(a) {
this.canDrag = !1;
this.slider.removeClass("dragging");
a && "infinite" === this.bounceArrows && (this.bounceDelay ? this.bounceTimer = setTimeout(this.delayBounce, this.bounceDelay) : (this.shiftArrows && this.slider.removeClass("rs-beforeafter-shift-arrows"), this.slider.addClass("rs-beforeafter-bounce-arrows")))
},
onClick: function(a) {
if (!this.supress && !this.blurred)
if (this.prevent) this.prevent = !1;
else {
var c = a.target,
b = /tparrows|tp-bullet|tp-tab|tp-thumb|tp-withaction/,
e;
if (!(e = "A" === a.target.tagName || b.test(c.className))) a: {
for (; c.parentNode;)
if (c = c.parentNode, "A" === c.tagName || b.test(c.className)) {
e = !0;
break a
}
e = !1
}
e || (c = (this.carousel ? this.slide : this.slider).offset(), b = a.pageX - c.left, e = a.pageY - c.top, this.normal ? (c = b, a = this.sliderWidth, e = Math.min(this.sliderHeight - this.buffer, Math.max(e, this.buffer))) : (c = e,
a = this.sliderHeight, b = Math.min(this.sliderWidth - this.buffer, Math.max(b, this.buffer))), punchgs.TweenLite.to(this.revealBtn, this.time, {
left: b,
top: e,
ease: this.transition
}), b = {
ease: this.transition
}, b[this.size] = a - c, punchgs.TweenLite.to(this.bg, this.time, b), b = {
ease: this.transition
}, b[this.size] = c, punchgs.TweenLite.to(this.before, this.time, b), b = {
ease: this.transition
}, b[this.size] = a - c, punchgs.TweenLite.to(this.after, this.time, b), b = {
ease: this.transition
}, b[this.axis] = c, this.revealLine && punchgs.TweenLite.to(this.revealLine,
this.time, b))
}
},
bounceReady: function() {
this.slider.removeClass("rs-beforeafter-shift-arrows").addClass("rs-beforeafter-bounce-arrows")
},
arrowsReady: function() {
this.bounceDelay ? this.bounceTimer = setTimeout(this.delayBounce, this.bounceDelay) : this.bounceReady()
},
onComplete: function() {
this.supress = !1;
if (this.shiftArrows) {
if (this.bounceArrows) this.btn1.one("webkitTransitionEnd.rsaddonbeforeafter transitionend.rsaddonbeforeafter", this.readyArrows);
this.slider.addClass("rs-beforeafter-shift-arrows")
} else this.bounceArrows &&
this.arrowsReady()
},
fade: function() {
punchgs.TweenLite.to(this.bg, .3, {
opacity: 0,
ease: punchgs.Power2.easeInOut
});
punchgs.TweenLite.to(this.revealBtn, .3, {
autoAlpha: 0,
ease: punchgs.Power2.easeInOut
});
this.revealLine && punchgs.TweenLite.to(this.revealLine, .3, {
autoAlpha: 0,
ease: punchgs.Power2.easeInOut
})
},
collapse: function() {
a = {
ease: this.animation
};
a[this.size] = 0;
punchgs.TweenLite.to(this.bg, this.timing, a);
var a = {
ease: this.animation
};
a[this.size] = "100%";
punchgs.TweenLite.to(this.before, this.timing, a);
a = {
ease: this.animation
};
a[this.size] = 0;
punchgs.TweenLite.to(this.after, this.timing, a);
a = {
autoAlpha: 0,
ease: this.animation
};
a[this.axis] = "100%";
this.revealLine && punchgs.TweenLite.to(this.revealLine, this.timing, a);
a = {
autoAlpha: 0,
ease: this.animation
};
a[this.axis] = "100%";
punchgs.TweenLite.to(this.revealBtn, this.timing, a)
},
reset: function(a) {
this.supress = !0;
this.normal ? (this.revealBtn.style.top = "65%", this.revealBtn.style.left = "100%") : (this.revealBtn.style.top = "100%", this.revealBtn.style.left = "50%");
this.before.style[this.size] =
"100%";
this.after.style[this.size] = "0";
this.bg.style[this.size] = "0";
this.revealLine && (this.revealLine.style[this.axis] = "100%");
this.shiftArrows && this.btn1.off(".rsaddonbeforeafter");
this.bounceDelay && clearTimeout(this.bounceTimer);
a && (this.shiftArrows && this.slider.removeClass("rs-beforeafter-shift-arrows"), this.bounceArrows && this.slider.removeClass("rs-beforeafter-bounce-arrows"))
},
playVideo: function() {
m.fn.revolution.playAnimationFrame({
caption: this.videoBg,
opt: this.slider[0].opt,
frame: "frame_0",
triggerdirection: "in",
triggerframein: "frame_0",
triggerframeout: "frame_999"
})
},
checkVideo: function() {
var a = this.slide.find(".rs-background-video-layer video");
if (a.length) a.off(".rsaddonbeforeafter").on("play.rsaddonbeforeafter", this.videoPlay);
else this.playVideo()
},
reveal: function() {
this.videoBg && (this.videoSolo ? this.playVideo() : this.checkVideo());
var a = this.moveto[this.level],
c = -1 !== a.search("%"),
b = parseInt(a, 10);
if (this.normal) {
if (c) {
var e = c = a;
b = 100 - b + "%"
} else a = c = e = b * this.scale, b = this.sliderWidth -
a;
var g = "65%"
} else c ? (g = c = a, b = 100 - b + "%") : (a = c = g = b * this.scale, b = this.sliderHeight - a), e = "65%";
h = {
ease: this.animation,
delay: this.delay
};
h[this.size] = b;
this.bg.style.opacity = "1";
punchgs.TweenLite.to(this.bg, this.timing, h);
var h = {
ease: this.animation,
delay: this.delay
};
h[this.size] = c;
punchgs.TweenLite.to(this.before, this.timing, h);
h = {
ease: this.animation,
delay: this.delay
};
h[this.size] = b;
this.after.style.opacity = "1";
punchgs.TweenLite.to(this.after, this.timing, h);
this.revealLine && (h = {
ease: this.animation,
delay: this.delay
},
h[this.axis] = a, punchgs.TweenLite.to(this.revealLine, .3, {
autoAlpha: 1,
ease: punchgs.Power2.easeOut
}), punchgs.TweenLite.to(this.revealLine, this.timing, h));
punchgs.TweenLite.to(this.revealBtn, .3, {
autoAlpha: 1,
ease: punchgs.Power2.easeOut
});
punchgs.TweenLite.to(this.revealBtn, this.timing, {
delay: this.delay,
left: e,
top: g,
ease: this.animation,
onComplete: this.complete
})
},
destroy: function() {
punchgs.TweenLite.killTweensOf(this.bg);
punchgs.TweenLite.killTweensOf(this.after);
punchgs.TweenLite.killTweensOf(this.before);
punchgs.TweenLite.killTweensOf(this.revealBtn);
this.revealLine && punchgs.TweenLite.killTweensOf(this.revealLine);
m.removeData(this.slide[0], "rs-addon-beforeafter", this);
for (var a in this) this.hasOwnProperty(a) && delete this[a]
}
};
"undefined" !== typeof jQuery && jQuery(".rev_slider").each(function() {
var a = "",
c = jQuery(this),
b = c[0].id,
e = c.find("li[data-beforeafter]");
if (e.length) {
e.each(function() {
var c = jQuery(this);
var e = c.attr("data-index"),
d = JSON.parse(c.attr("data-beforeafter"));
c.data("beforeafter-options",
d);
if (/html5|youtube|vimeo/.test(d.bgType)) {
var f = '<div class="tp-caption tp-resizeme fullscreenvideo disabled_lc tp-videolayer" id="slide-' + c.attr("data-index").replace("rs-", "") + "-layer-0\" data-type=\"video\" data-x=\"['0','0','0','0']\" data-y=\"['0','0','0','0']\" data-beforeafter=\"after\" data-basealign=\"slide\" data-responsive_offset=\"on\" data-exitfullscreenonpause=\"off\" data-videocontrols=\"none\" data-videowidth=\"['100%','100%','100%','100%']\" data-videoheight=\"['100%','100%','100%','100%']\" data-videopreload=\"auto\" data-paddingtop=\"[0,0,0,0]\" data-paddingright=\"[0,0,0,0]\" data-paddingbottom=\"[0,0,0,0]\" data-paddingleft=\"[0,0,0,0]\" data-autoplay=\"on\" data-frames='" +
('[{"delay":"' + (d.carousel ? "10" : "bytrigger") + '","speed":0,"frame":"0","to":"o:1;","ease":"Linear.easeNone"},{"delay":"wait","speed":0,"frame":"999","ease":"Linear.easeNone"}]') + "' data-textAlign=\"['inherit','inherit','inherit','inherit']\" data-videoloop=\"" + d.loopVideo + '" data-aspectratio="' + d.aspectRatio + '" ';
d.forceCover && (f += 'data-forceCover="1" ');
"none" !== d.dottedOverlay && (f += 'data-dottedoverlay="' + d.dottedOverlay + '" ');
d.nextSlideOnEnd && (f += 'data-nextslideatend="true" ');
d.rewindOnStart &&
(f += 'data-forcerewind="on" ');
d.videoStartAt && (f += 'data-videostartat="' + d.videoStartAt + '" ');
d.videoEndAt && (f += 'data-videoendat="' + d.videoEndAt + '" ');
switch (d.bgType) {
case "html5":
d.muteVideo && (f += 'data-volume="mute" ');
var g = d.videoOgv,
n = d.videoWebm,
m = d.videoMpeg;
if (m || g || n) {
f = f + ('data-videoogv="' + g + '" ') + ('data-videowebm="' + n + '" ') + ('data-videomp4="' + m + '" ');
var l = !0
}
break;
case "youtube":
if (g = d.videoId) f += 'data-ytid="' + g + '" ', f += 'data-videorate="' + d.videoSpeed + '" ', f += 'data-videoattributes="' + d.youtubeArgs +
'" ', f = d.muteVideo ? f + 'data-volume="mute" ' : f + ('data-volume="' + d.videoVolume + '" '), l = !0;
break;
case "vimeo":
if (g = d.videoId) f += 'data-vimeoid="' + g + '" ', f += 'data-videoattributes="' + d.vimeoArgs + '" ', f = d.muteVideo ? f + 'data-volume="mute" ' : f + ('data-volume="' + d.videoVolume + '" '), l = !0
}
l && (c.find(".tp-caption").each(z), l = jQuery(f + 'style="z-index: 5"><div class="rs-fullvideo-cover"></div></div>').insertAfter(c.find(".rev-slidebg")), c.data("beforeafter-video", l))
}
if (d.hasOwnProperty("bounceArrows")) {
c = .001 * parseInt(d.bounceSpeed,
10);
var g = "initial" !== d.bounceArrows ? "infinite" : "1",
n = parseInt(d.bounceAmount, 10),
m = "repel" === d.bounceType,
r = Math.round(.5 * n);
"horizontal" === d.direction ? (l = "X", f = ["left", "right"]) : (l = "Y", f = ["top", "bottom"]);
for (var u = 0; 2 > u; u++) {
var x = m ? 0 === u ? "-" : "" : 0 === u ? "" : "-",
w = a,
v = f[u],
t = c.toFixed(2),
y = d.bounceEasing;
a = w + ("@-webkit-keyframes " + b + "-" + e + "-rs-beforeafter-bounce-" + v + " {0%, 20%, 50%, 80%, 100% {-webkit-transform: translate" + l + "(0);transform: translate" + l + "(0)}40% {-webkit-transform: translate" + l + "(" +
n + "px);transform: translate" + l + "(" + x + n + "px)}60% {-webkit-transform: translate" + l + "(" + r + "px);transform: translate" + l + "(" + x + r + "px)}}@keyframes " + b + "-" + e + "-rs-beforeafter-bounce-" + v + " {0%, 20%, 50%, 80%, 100% {-webkit-transform: translate" + l + "(0);transform: translate" + l + "(0)}40% {-webkit-transform: translate" + l + "(" + n + "px);transform: translate" + l + "(" + x + n + "px)}60% {-webkit-transform: translate" + l + "(" + r + "px);transform: translate" + l + "(" + x + r + "px)}}.rs-beforeafter-bounce-arrows .rs-" + b + "-" + e + "-rs-beforeafter-bounce-" +
v + " {-webkit-animation: " + b + "-" + e + "-rs-beforeafter-bounce-" + v + " " + t + "s " + y + " " + g + ";animation: " + b + "-" + e + "-rs-beforeafter-bounce-" + v + " " + t + "s " + y + " " + g + "}")
}
}
if (d.hasOwnProperty("shiftOffset"))
for (c = .001 * parseInt(d.shiftTiming, 10), l = .001 * parseInt(d.shiftDelay, 10), f = 0; 2 > f; f++) g = d.shiftEasing, a += ".rs-beforeafter-shift-arrows .rs-" + b + "-" + e + "-rs-beforeafter-shift {-webkit-transition: all " + c + "s " + g + " " + l + "s;transition: all " + c + "s " + g + " " + l + "s}"
});
if (a) {
var g = document.createElement("style");
g.type = "text/css";
g.innerHTML = a;
document.head.appendChild(g)
}
c.data("beforeafter-slides", e)
}
})
})();
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
/********************************************
* REVOLUTION 5.4.8 EXTENSION - KEN BURN
* @version: 1.3.1 (15.05.2017)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
!function(a){"use strict";var b=jQuery.fn.revolution,c={alias:"KenBurns Min JS",name:"revolution.extensions.kenburn.min.js",min_core:"5.4",version:"1.3.1"};jQuery.extend(!0,b,{stopKenBurn:function(a){if("stop"===b.compare_version(c).check)return!1;void 0!=a.data("kbtl")&&a.data("kbtl").pause()},startKenBurn:function(a,d,e){if("stop"===b.compare_version(c).check)return!1;var f=a.data(),g=a.find(".defaultimg"),h=g.data("lazyload")||g.data("src"),j=(f.owidth,f.oheight,"carousel"===d.sliderType?d.carousel.slide_width:d.ul.width()),k=d.ul.height();if(a.data("kbtl")&&a.data("kbtl").kill(),e=e||0,0==a.find(".tp-kbimg").length){var m=g.data("mediafilter");m=void 0===m?"":m,a.append('<div class="tp-kbimg-wrap '+m+'" style="z-index:2;width:100%;height:100%;top:0px;left:0px;position:absolute;"><img class="tp-kbimg" src="'+h+'" style="position:absolute;" width="'+f.owidth+'" height="'+f.oheight+'"></div>'),a.data("kenburn",a.find(".tp-kbimg"))}var n=function(a,b,c,d,e,f,g){var h=a*c,i=b*c,j=Math.abs(d-h),k=Math.abs(e-i),l=new Object;return l.l=(0-f)*j,l.r=l.l+h,l.t=(0-g)*k,l.b=l.t+i,l.h=f,l.v=g,l},o=function(a,b,c,d,e){var f=a.bgposition.split(" ")||"center center",g="center"==f[0]?"50%":"left"==f[0]||"left"==f[1]?"0%":"right"==f[0]||"right"==f[1]?"100%":f[0],h="center"==f[1]?"50%":"top"==f[0]||"top"==f[1]?"0%":"bottom"==f[0]||"bottom"==f[1]?"100%":f[1];g=parseInt(g,0)/100||0,h=parseInt(h,0)/100||0;var i=new Object;return i.start=n(e.start.width,e.start.height,e.start.scale,b,c,g,h),i.end=n(e.start.width,e.start.height,e.end.scale,b,c,g,h),i},p=function(a,b,c){var d=c.scalestart/100,e=c.scaleend/100,f=void 0!=c.offsetstart?c.offsetstart.split(" ")||[0,0]:[0,0],g=void 0!=c.offsetend?c.offsetend.split(" ")||[0,0]:[0,0];c.bgposition="center center"==c.bgposition?"50% 50%":c.bgposition;var h=new Object,i=a*d,k=(c.owidth,c.oheight,a*e);c.owidth,c.oheight;if(h.start=new Object,h.starto=new Object,h.end=new Object,h.endo=new Object,h.start.width=a,h.start.height=h.start.width/c.owidth*c.oheight,h.start.height<b){var m=b/h.start.height;h.start.height=b,h.start.width=h.start.width*m}h.start.transformOrigin=c.bgposition,h.start.scale=d,h.end.scale=e,c.rotatestart=0===c.rotatestart?.01:c.rotatestart,h.start.rotation=c.rotatestart+"deg",h.end.rotation=c.rotateend+"deg";var n=o(c,a,b,f,h);f[0]=parseFloat(f[0])+n.start.l,g[0]=parseFloat(g[0])+n.end.l,f[1]=parseFloat(f[1])+n.start.t,g[1]=parseFloat(g[1])+n.end.t;var p=n.start.r-n.start.l,q=n.start.b-n.start.t,r=n.end.r-n.end.l,s=n.end.b-n.end.t;return f[0]=f[0]>0?0:p+f[0]<a?a-p:f[0],g[0]=g[0]>0?0:r+g[0]<a?a-r:g[0],f[1]=f[1]>0?0:q+f[1]<b?b-q:f[1],g[1]=g[1]>0?0:s+g[1]<b?b-s:g[1],h.starto.x=f[0]+"px",h.starto.y=f[1]+"px",h.endo.x=g[0]+"px",h.endo.y=g[1]+"px",h.end.ease=h.endo.ease=c.ease,h.end.force3D=h.endo.force3D=!0,h};void 0!=a.data("kbtl")&&(a.data("kbtl").kill(),a.removeData("kbtl"));var q=a.data("kenburn"),r=q.parent(),s=p(j,k,f),t=new punchgs.TimelineLite;if(t.pause(),s.start.transformOrigin="0% 0%",s.starto.transformOrigin="0% 0%",t.add(punchgs.TweenLite.fromTo(q,f.duration/1e3,s.start,s.end),0),t.add(punchgs.TweenLite.fromTo(r,f.duration/1e3,s.starto,s.endo),0),void 0!==f.blurstart&&void 0!==f.blurend&&(0!==f.blurstart||0!==f.blurend)){var u={a:f.blurstart},v={a:f.blurend,ease:s.endo.ease},w=new punchgs.TweenLite(u,f.duration/1e3,v);w.eventCallback("onUpdate",function(a){punchgs.TweenLite.set(a,{filter:"blur("+u.a+"px)",webkitFilter:"blur("+u.a+"px)"})},[r]),t.add(w,0)}t.progress(e),t.play(),a.data("kbtl",t)}})}(jQuery);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+375
View File
@@ -0,0 +1,375 @@
/*! flip - v1.1.2 - 2016-10-20
* https://github.com/nnattawat/flip
* Copyright (c) 2016 Nattawat Nonsung; Licensed MIT */
(function( $ ) {
/*
* Private attributes and method
*/
// Function from David Walsh: http://davidwalsh.name/css-animation-callback licensed with http://opensource.org/licenses/MIT
var whichTransitionEvent = function() {
var t, el = document.createElement("fakeelement"),
transitions = {
"transition" : "transitionend",
"OTransition" : "oTransitionEnd",
"MozTransition" : "transitionend",
"WebkitTransition": "webkitTransitionEnd"
};
for (t in transitions) {
if (el.style[t] !== undefined) {
return transitions[t];
}
}
};
/*
* Model declaration
*/
var Flip = function($el, options, callback) {
// Define default setting
this.setting = {
axis: "y",
reverse: false,
trigger: "click",
speed: 500,
forceHeight: false,
forceWidth: false,
autoSize: true,
front: '.front',
back: '.back'
};
this.setting = $.extend(this.setting, options);
if (typeof options.axis === 'string' && (options.axis.toLowerCase() === 'x' || options.axis.toLowerCase() === 'y')) {
this.setting.axis = options.axis.toLowerCase();
}
if (typeof options.reverse === "boolean") {
this.setting.reverse = options.reverse;
}
if (typeof options.trigger === 'string') {
this.setting.trigger = options.trigger.toLowerCase();
}
var speed = parseInt(options.speed);
if (!isNaN(speed)) {
this.setting.speed = speed;
}
if (typeof options.forceHeight === "boolean") {
this.setting.forceHeight = options.forceHeight;
}
if (typeof options.forceWidth === "boolean") {
this.setting.forceWidth = options.forceWidth;
}
if (typeof options.autoSize === "boolean") {
this.setting.autoSize = options.autoSize;
}
if (typeof options.front === 'string' || options.front instanceof $) {
this.setting.front = options.front;
}
if (typeof options.back === 'string' || options.back instanceof $) {
this.setting.back = options.back;
}
// Other attributes
this.element = $el;
this.frontElement = this.getFrontElement();
this.backElement = this.getBackElement();
this.isFlipped = false;
this.init(callback);
};
/*
* Public methods
*/
$.extend(Flip.prototype, {
flipDone: function(callback) {
var self = this;
// Providing a nicely wrapped up callback because transform is essentially async
self.element.one(whichTransitionEvent(), function() {
self.element.trigger('flip:done');
if (typeof callback === 'function') {
callback.call(self.element);
}
});
},
flip: function(callback) {
if (this.isFlipped) {
return;
}
this.isFlipped = true;
var rotateAxis = "rotate" + this.setting.axis;
this.frontElement.css({
transform: rotateAxis + (this.setting.reverse ? "(-180deg)" : "(180deg)"),
"z-index": "0"
});
this.backElement.css({
transform: rotateAxis + "(0deg)",
"z-index": "1"
});
this.flipDone(callback);
},
unflip: function(callback) {
if (!this.isFlipped) {
return;
}
this.isFlipped = false;
var rotateAxis = "rotate" + this.setting.axis;
this.frontElement.css({
transform: rotateAxis + "(0deg)",
"z-index": "1"
});
this.backElement.css({
transform: rotateAxis + (this.setting.reverse ? "(180deg)" : "(-180deg)"),
"z-index": "0"
});
this.flipDone(callback);
},
getFrontElement: function() {
if (this.setting.front instanceof $) {
return this.setting.front;
} else {
return this.element.find(this.setting.front);
}
},
getBackElement: function() {
if (this.setting.back instanceof $) {
return this.setting.back;
} else {
return this.element.find(this.setting.back);
}
},
init: function(callback) {
var self = this;
var faces = self.frontElement.add(self.backElement);
var rotateAxis = "rotate" + self.setting.axis;
var perspective = self.element["outer" + (rotateAxis === "rotatex" ? "Height" : "Width")]() * 2;
var elementCss = {
'perspective': perspective,
'position': 'relative'
};
var backElementCss = {
"transform": rotateAxis + "(" + (self.setting.reverse ? "180deg" : "-180deg") + ")",
"z-index": "0",
"position": "relative"
};
var faceElementCss = {
"backface-visibility": "hidden",
"transform-style": "preserve-3d",
"position": "absolute",
"z-index": "1"
};
if (self.setting.forceHeight) {
faces.outerHeight(self.element.height());
} else if (self.setting.autoSize) {
faceElementCss.height = '100%';
}
if (self.setting.forceWidth) {
faces.outerWidth(self.element.width());
} else if (self.setting.autoSize) {
faceElementCss.width = '100%';
}
// Back face always visible on Chrome #39
if ((window.chrome || (window.Intl && Intl.v8BreakIterator)) && 'CSS' in window) {
//Blink Engine, add preserve-3d to self.element
elementCss["-webkit-transform-style"] = "preserve-3d";
}
faces.css(faceElementCss).find('*').css({
"backface-visibility": "hidden"
});
self.element.css(elementCss);
self.backElement.css(backElementCss);
// #39
// not forcing width/height may cause an initial flip to show up on
// page load when we apply the style to reverse the backface...
// To prevent self we first apply the basic styles and then give the
// browser a moment to apply them. Only afterwards do we add the transition.
setTimeout(function() {
// By now the browser should have applied the styles, so the transition
// will only affect subsequent flips.
var speedInSec = self.setting.speed / 1000 || 0.5;
faces.css({
"transition": "all " + speedInSec + "s ease-out"
});
// This allows flip to be called for setup with only a callback (default settings)
if (typeof callback === 'function') {
callback.call(self.element);
}
// While this used to work with a setTimeout of zero, at some point that became
// unstable and the initial flip returned. The reason for this is unknown but we
// will temporarily use a short delay of 20 to mitigate this issue.
}, 20);
self.attachEvents();
},
clickHandler: function(event) {
if (!event) { event = window.event; }
if (this.element.find($(event.target).closest('button, a, input[type="submit"]')).length) {
return;
}
if (this.isFlipped) {
this.unflip();
} else {
this.flip();
}
},
hoverHandler: function() {
var self = this;
self.element.off('mouseleave.flip');
self.flip();
setTimeout(function() {
self.element.on('mouseleave.flip', $.proxy(self.unflip, self));
if (!self.element.is(":hover")) {
self.unflip();
}
}, (self.setting.speed + 150));
},
attachEvents: function() {
var self = this;
if (self.setting.trigger === "click") {
self.element.on($.fn.tap ? "tap.flip" : "click.flip", $.proxy(self.clickHandler, self));
} else if (self.setting.trigger === "hover") {
self.element.on('mouseenter.flip', $.proxy(self.hoverHandler, self));
self.element.on('mouseleave.flip', $.proxy(self.unflip, self));
}
},
flipChanged: function(callback) {
this.element.trigger('flip:change');
if (typeof callback === 'function') {
callback.call(this.element);
}
},
changeSettings: function(options, callback) {
var self = this;
var changeNeeded = false;
if (options.axis !== undefined && self.setting.axis !== options.axis.toLowerCase()) {
self.setting.axis = options.axis.toLowerCase();
changeNeeded = true;
}
if (options.reverse !== undefined && self.setting.reverse !== options.reverse) {
self.setting.reverse = options.reverse;
changeNeeded = true;
}
if (changeNeeded) {
var faces = self.frontElement.add(self.backElement);
var savedTrans = faces.css(["transition-property", "transition-timing-function", "transition-duration", "transition-delay"]);
faces.css({
transition: "none"
});
// This sets up the first flip in the new direction automatically
var rotateAxis = "rotate" + self.setting.axis;
if (self.isFlipped) {
self.frontElement.css({
transform: rotateAxis + (self.setting.reverse ? "(-180deg)" : "(180deg)"),
"z-index": "0"
});
} else {
self.backElement.css({
transform: rotateAxis + (self.setting.reverse ? "(180deg)" : "(-180deg)"),
"z-index": "0"
});
}
// Providing a nicely wrapped up callback because transform is essentially async
setTimeout(function() {
faces.css(savedTrans);
self.flipChanged(callback);
}, 0);
} else {
// If we didnt have to set the axis we can just call back.
self.flipChanged(callback);
}
}
});
/*
* jQuery collection methods
*/
$.fn.flip = function (options, callback) {
if (typeof options === 'function') {
callback = options;
}
if (typeof options === "string" || typeof options === "boolean") {
this.each(function() {
var flip = $(this).data('flip-model');
if (options === "toggle") {
options = !flip.isFlipped;
}
if (options) {
flip.flip(callback);
} else {
flip.unflip(callback);
}
});
} else {
this.each(function() {
if ($(this).data('flip-model')) { // The element has been initiated, all we have to do is change applicable settings
var flip = $(this).data('flip-model');
if (options && (options.axis !== undefined || options.reverse !== undefined)) {
flip.changeSettings(options, callback);
}
} else { // Init
$(this).data('flip-model', new Flip($(this), (options || {}), callback));
}
});
}
return this;
};
}( jQuery ));
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+85
View File
@@ -0,0 +1,85 @@
/*
Plugin Name: Count To
Written by: Matt Huggins - https://github.com/mhuggins/jquery-countTo
*/
(function ($) {
$.fn.countTo = function (options) {
options = options || {};
return $(this).each(function () {
// set options for current element
var settings = $.extend({}, $.fn.countTo.defaults, {
from: $(this).data('from'),
to: $(this).data('to'),
speed: $(this).data('speed'),
refreshInterval: $(this).data('refresh-interval'),
decimals: $(this).data('decimals')
}, options);
// how many times to update the value, and how much to increment the value on each update
var loops = Math.ceil(settings.speed / settings.refreshInterval),
increment = (settings.to - settings.from) / loops;
// references & variables that will change with each update
var self = this,
$self = $(this),
loopCount = 0,
value = settings.from,
data = $self.data('countTo') || {};
$self.data('countTo', data);
// if an existing interval can be found, clear it first
if (data.interval) {
clearInterval(data.interval);
}
data.interval = setInterval(updateTimer, settings.refreshInterval);
// initialize the element with the starting value
render(value);
function updateTimer() {
value += increment;
loopCount++;
render(value);
if (typeof(settings.onUpdate) == 'function') {
settings.onUpdate.call(self, value);
}
if (loopCount >= loops) {
// remove the interval
$self.removeData('countTo');
clearInterval(data.interval);
value = settings.to;
if (typeof(settings.onComplete) == 'function') {
settings.onComplete.call(self, value);
}
}
}
function render(value) {
var formattedValue = settings.formatter.call(self, value, settings);
$self.text(formattedValue);
}
});
};
$.fn.countTo.defaults = {
from: 0, // the number the element should start at
to: 0, // the number the element should end at
speed: 1000, // how long it should take to count between the target numbers
refreshInterval: 100, // how often the element should be updated
decimals: 0, // the number of decimal places to show
formatter: formatter, // handler for formatting the value before rendering
onUpdate: null, // callback method for every time the element is updated
onComplete: null // callback method for when the element finishes updating
};
function formatter(value, settings) {
return value.toFixed(settings.decimals);
}
}(jQuery));
File diff suppressed because one or more lines are too long
+150
View File
@@ -0,0 +1,150 @@
/*
* jQuery.appear
* https://github.com/bas2k/jquery.appear/
* http://code.google.com/p/jquery-appear/
*
* Copyright (c) 2009 Michael Hixson
* Copyright (c) 2012 Alexander Brovikov
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
*/
(function($) {
$.fn.appear = function(fn, options) {
var settings = $.extend({
//arbitrary data to pass to fn
data: undefined,
//call fn only on the first appear?
one: true,
// X & Y accuracy
accX: 0,
accY: 0
}, options);
return this.each(function() {
var t = $(this);
//whether the element is currently visible
t.appeared = false;
if (!fn) {
//trigger the custom event
t.trigger('appear', settings.data);
return;
}
var w = $(window);
//fires the appear event when appropriate
var check = function() {
//is the element hidden?
if (!t.is(':visible')) {
//it became hidden
t.appeared = false;
return;
}
//is the element inside the visible window?
var a = w.scrollLeft();
var b = w.scrollTop();
var o = t.offset();
var x = o.left;
var y = o.top;
var ax = settings.accX;
var ay = settings.accY;
var th = t.height();
var wh = w.height();
var tw = t.width();
var ww = w.width();
if (y + th + ay >= b &&
y <= b + wh + ay &&
x + tw + ax >= a &&
x <= a + ww + ax) {
//trigger the custom event
if (!t.appeared) t.trigger('appear', settings.data);
} else {
//it scrolled out of view
t.appeared = false;
}
};
//create a modified fn with some additional logic
var modifiedFn = function() {
//mark the element as visible
t.appeared = true;
//is this supposed to happen only once?
if (settings.one) {
//remove the check
w.unbind('scroll', check);
var i = $.inArray(check, $.fn.appear.checks);
if (i >= 0) $.fn.appear.checks.splice(i, 1);
}
//trigger the original fn
fn.apply(this, arguments);
};
//bind the modified fn to the element
if (settings.one) t.one('appear', settings.data, modifiedFn);
else t.bind('appear', settings.data, modifiedFn);
//check whenever the window scrolls
w.scroll(check);
//check whenever the dom changes
$.fn.appear.checks.push(check);
//check now
(check)();
});
};
//keep a queue of appearance checks
$.extend($.fn.appear, {
checks: [],
timeout: null,
//process the queue
checkAll: function() {
var length = $.fn.appear.checks.length;
if (length > 0) while (length--) ($.fn.appear.checks[length])();
},
//check the queue asynchronously
run: function() {
if ($.fn.appear.timeout) clearTimeout($.fn.appear.timeout);
$.fn.appear.timeout = setTimeout($.fn.appear.checkAll, 20);
}
});
//run checks when these methods are called
$.each(['append', 'prepend', 'after', 'before', 'attr',
'removeAttr', 'addClass', 'removeClass', 'toggleClass',
'remove', 'css', 'show', 'hide'], function(i, n) {
var old = $.fn[n];
if (old) {
$.fn[n] = function() {
var r = old.apply(this, arguments);
$.fn.appear.run();
return r;
}
}
});
})(jQuery);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,220 @@
/**
* jquery.hoverdir.js v1.1.0
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2012, Codrops
* http://www.codrops.com
*/
;( function( $, window, undefined ) {
'use strict';
$.HoverDir = function( options, element ) {
this.$el = $( element );
this._init( options );
};
// the options
$.HoverDir.defaults = {
speed : 300,
easing : 'ease',
hoverDelay : 0,
inverse : false
};
$.HoverDir.prototype = {
_init : function( options ) {
// options
this.options = $.extend( true, {}, $.HoverDir.defaults, options );
// transition properties
this.transitionProp = 'all ' + this.options.speed + 'ms ' + this.options.easing;
// support for CSS transitions
this.support = Modernizr.csstransitions;
// load the events
this._loadEvents();
},
_loadEvents : function() {
var self = this;
this.$el.on( 'mouseenter.hoverdir, mouseleave.hoverdir', function( event ) {
var $el = $( this ),
$hoverElem = $el.find( '.overlay' ),
direction = self._getDir( $el, { x : event.pageX, y : event.pageY } ),
styleCSS = self._getStyle( direction );
if( event.type === 'mouseenter' ) {
$hoverElem.hide().css( styleCSS.from );
clearTimeout( self.tmhover );
self.tmhover = setTimeout( function() {
$hoverElem.show( 0, function() {
var $el = $( this );
if( self.support ) {
$el.css( 'transition', self.transitionProp );
}
self._applyAnimation( $el, styleCSS.to, self.options.speed );
} );
}, self.options.hoverDelay );
}
else {
if( self.support ) {
$hoverElem.css( 'transition', self.transitionProp );
}
clearTimeout( self.tmhover );
self._applyAnimation( $hoverElem, styleCSS.from, self.options.speed );
}
} );
},
// credits : http://stackoverflow.com/a/3647634
_getDir : function( $el, coordinates ) {
// the width and height of the current div
var w = $el.width(),
h = $el.height(),
// calculate the x and y to get an angle to the center of the div from that x and y.
// gets the x value relative to the center of the DIV and "normalize" it
x = ( coordinates.x - $el.offset().left - ( w/2 )) * ( w > h ? ( h/w ) : 1 ),
y = ( coordinates.y - $el.offset().top - ( h/2 )) * ( h > w ? ( w/h ) : 1 ),
// the angle and the direction from where the mouse came in/went out clockwise (TRBL=0123);
// first calculate the angle of the point,
// add 180 deg to get rid of the negative values
// divide by 90 to get the quadrant
// add 3 and do a modulo by 4 to shift the quadrants to a proper clockwise TRBL (top/right/bottom/left) **/
direction = Math.round( ( ( ( Math.atan2(y, x) * (180 / Math.PI) ) + 180 ) / 90 ) + 3 ) % 4;
return direction;
},
_getStyle : function( direction ) {
var fromStyle, toStyle,
slideFromTop = { left : '0px', top : '-100%' },
slideFromBottom = { left : '0px', top : '100%' },
slideFromLeft = { left : '-100%', top : '0px' },
slideFromRight = { left : '100%', top : '0px' },
slideTop = { top : '0px' },
slideLeft = { left : '0px' };
switch( direction ) {
case 0:
// from top
fromStyle = !this.options.inverse ? slideFromTop : slideFromBottom;
toStyle = slideTop;
break;
case 1:
// from right
fromStyle = !this.options.inverse ? slideFromRight : slideFromLeft;
toStyle = slideLeft;
break;
case 2:
// from bottom
fromStyle = !this.options.inverse ? slideFromBottom : slideFromTop;
toStyle = slideTop;
break;
case 3:
// from left
fromStyle = !this.options.inverse ? slideFromLeft : slideFromRight;
toStyle = slideLeft;
break;
};
return { from : fromStyle, to : toStyle };
},
// apply a transition or fallback to jquery animate based on Modernizr.csstransitions support
_applyAnimation : function( el, styleCSS, speed ) {
$.fn.applyStyle = this.support ? $.fn.css : $.fn.animate;
el.stop().applyStyle( styleCSS, $.extend( true, [], { duration : speed + 'ms' } ) );
},
};
var logError = function( message ) {
if ( window.console ) {
window.console.error( message );
}
};
$.fn.hoverdir = function( options ) {
var instance = $.data( this, 'hoverdir' );
if ( typeof options === 'string' ) {
var args = Array.prototype.slice.call( arguments, 1 );
this.each(function() {
if ( !instance ) {
logError( "cannot call methods on hoverdir prior to initialization; " +
"attempted to call method '" + options + "'" );
return;
}
if ( !$.isFunction( instance[options] ) || options.charAt(0) === "_" ) {
logError( "no such method '" + options + "' for hoverdir instance" );
return;
}
instance[ options ].apply( instance, args );
});
}
else {
this.each(function() {
if ( instance ) {
instance._init();
}
else {
instance = $.data( this, 'hoverdir', new $.HoverDir( options, this ) );
}
});
}
return instance;
};
} )( jQuery, window );
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+326
View File
@@ -0,0 +1,326 @@
jQuery(window).on("load", function () {
"use strict";
(function(){
'use strict';
if($('.top-bar').length>0)
var t = $('.top-bar').height();
else t=0;
$('.megamenu .arrow').on("click", function (){
if($(this).parent().hasClass('hover')){
$(this).parent().removeClass("hover");
$('.sub-arrow').toggleClass('inner-arrow');
}else{
$(this).parent().addClass("hover");
$('.sub-arrow').toggleClass('inner-arrow');
}
});
var k=0;
$(window).on('scroll', function (){
if($(window).width()>1000){
if($(window).scrollTop()>200+t){
$('.megamenu').removeAttr('style').addClass('pin');
}else{
$('.megamenu').css({top:-$(window).scrollTop()}).removeClass('pin');
}if($(window).scrollTop()>150+t){
$('.megamenu').addClass('before');
}else{
$('.megamenu').removeClass('before');
}
}else{
//$('.megamenu').css({top:$(window).scrollTop()})
if($(window).scrollTop()<k){
$('.megamenu').addClass('off').removeClass('woff').removeAttr('style');
$('#menu').removeClass('in');
k=0;
}
}
if($(window).scrollTop()>t){
if(!$('.megamenu').hasClass('woff')){
$('.megamenu').addClass('pin-start').addClass('off');
}
}else{
$('.megamenu').removeClass('pin-start').removeClass('off');
}
});
if($(window).scrollTop()>150+t){
$('.megamenu').addClass('pin');
}else{
$('.megamenu').removeAttr('style').removeClass('pin');
}
$(window).on("resize", function () {
if($(window).width()>1000){
$('.megamenu').removeAttr('style');
}
});
if($(window).scrollTop()>t){
$('.megamenu').addClass('off').addClass('pin-start');
}else{
$('.megamenu').removeClass('off').removeClass('pin-start');
}
$('.menu-icon').on("click", function (){
if($('#menu').hasClass('in')){
$('.megamenu').addClass('off').removeClass('woff').removeAttr('style');
if($(window).scrollTop()>t){
if(!$('.megamenu').hasClass('woff')){
$('.megamenu').addClass('pin-start').addClass('off');
}
}else{
$('.megamenu').removeClass('pin-start').removeClass('off');
}
}else{
k=$(window).scrollTop();
$('.megamenu').removeClass('off').addClass('woff').css({top:$(window).scrollTop()});
}
})
})();
jQuery(function ($) {
"use strict";
/* ===================================
Multipage Side Menu
====================================== */
if ($("#sidemenu_toggle").length) {
/* Multipage SideNav */
/* Multi Items Main Menu */
$(".multi-item1, .multi-item2, .multi-item3, .multi-item4, .multi-item5, .multi-item6, .multi-item7, .multi-item8, .multi-item9, .multi-item10").on("click", function () {
$(".side-main-menu").addClass("toggle"),$(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".multi-item1").on("click", function () {$(".sub-multi-item1").addClass("toggle")}),
$(".multi-item2").on("click", function () {$(".sub-multi-item2").addClass("toggle")}),
$(".multi-item3").on("click", function () {$(".sub-multi-item3").addClass("toggle")}),
$(".multi-item4").on("click", function () {$(".sub-multi-item4").addClass("toggle")}),
$(".multi-item5").on("click", function () {$(".sub-multi-item5").addClass("toggle")}),
$(".multi-item6").on("click", function () {$(".sub-multi-item6").addClass("toggle")}),
$(".multi-item7").on("click", function () {$(".sub-multi-item7").addClass("toggle")}),
$(".multi-item8").on("click", function () {$(".sub-multi-item8").addClass("toggle")}),
$(".multi-item9").on("click", function () {$(".sub-multi-item9").addClass("toggle")}),
$(".multi-item10").on("click", function () {$(".sub-multi-item10").addClass("toggle")}),
/* Multi Items 1 */
$(".sub-multi-item1 .item1, .sub-multi-item1 .item2, .sub-multi-item1 .item3, .sub-multi-item1 .item4, .sub-multi-item1 .item5, .sub-multi-item1 .item6, .sub-multi-item1 .item7, .sub-multi-item1 .item8, .sub-multi-item1 .item9, .sub-multi-item1 .item10").on("click", function () {
$(".sub-multi-item1").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item1 .item1").on("click", function () {$(".inner-multi-item1.item1").addClass("toggle")}),
$(".sub-multi-item1 .item2").on("click", function () {$(".inner-multi-item1.item2").addClass("toggle")}),
$(".sub-multi-item1 .item3").on("click", function () {$(".inner-multi-item1.item3").addClass("toggle")}),
$(".sub-multi-item1 .item4").on("click", function () {$(".inner-multi-item1.item4").addClass("toggle")}),
$(".sub-multi-item1 .item5").on("click", function () {$(".inner-multi-item1.item5").addClass("toggle")}),
$(".sub-multi-item1 .item6").on("click", function () {$(".inner-multi-item1.item6").addClass("toggle")}),
$(".sub-multi-item1 .item7").on("click", function () {$(".inner-multi-item1.item7").addClass("toggle")}),
$(".sub-multi-item1 .item8").on("click", function () {$(".inner-multi-item1.item8").addClass("toggle")}),
$(".sub-multi-item1 .item9").on("click", function () {$(".inner-multi-item1.item9").addClass("toggle")}),
$(".sub-multi-item1 .item10").on("click", function () {$(".inner-multi-item1.item10").addClass("toggle")}),
/* Multi Items 2 */
$(".sub-multi-item2 .item1, .sub-multi-item2 .item2, .sub-multi-item2 .item3, .sub-multi-item2 .item4, .sub-multi-item2 .item5, .sub-multi-item2 .item6, .sub-multi-item2 .item7, .sub-multi-item2 .item8, .sub-multi-item2 .item9, .sub-multi-item2 .item10").on("click", function () {
$(".sub-multi-item2").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item2 .item1").on("click", function () {$(".inner-multi-item2.item1").addClass("toggle")}),
$(".sub-multi-item2 .item2").on("click", function () {$(".inner-multi-item2.item2").addClass("toggle")}),
$(".sub-multi-item2 .item3").on("click", function () {$(".inner-multi-item2.item3").addClass("toggle")}),
$(".sub-multi-item2 .item4").on("click", function () {$(".inner-multi-item2.item4").addClass("toggle")}),
$(".sub-multi-item2 .item5").on("click", function () {$(".inner-multi-item2.item5").addClass("toggle")}),
$(".sub-multi-item2 .item6").on("click", function () {$(".inner-multi-item2.item6").addClass("toggle")}),
$(".sub-multi-item2 .item7").on("click", function () {$(".inner-multi-item2.item7").addClass("toggle")}),
$(".sub-multi-item2 .item8").on("click", function () {$(".inner-multi-item2.item8").addClass("toggle")}),
$(".sub-multi-item2 .item9").on("click", function () {$(".inner-multi-item2.item9").addClass("toggle")}),
$(".sub-multi-item2 .item10").on("click", function () {$(".inner-multi-item2.item10").addClass("toggle")}),
/* Multi Items 3 */
$(".sub-multi-item3 .item1, .sub-multi-item3 .item2, .sub-multi-item3 .item3, .sub-multi-item3 .item4, .sub-multi-item3 .item5, .sub-multi-item3 .item6, .sub-multi-item3 .item7, .sub-multi-item3 .item8, .sub-multi-item3 .item9, .sub-multi-item3 .item10").on("click", function () {
$(".sub-multi-item3").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item3 .item1").on("click", function () {$(".inner-multi-item3.item1").addClass("toggle")}),
$(".sub-multi-item3 .item2").on("click", function () {$(".inner-multi-item3.item2").addClass("toggle")}),
$(".sub-multi-item3 .item3").on("click", function () {$(".inner-multi-item3.item3").addClass("toggle")}),
$(".sub-multi-item3 .item4").on("click", function () {$(".inner-multi-item3.item4").addClass("toggle")}),
$(".sub-multi-item3 .item5").on("click", function () {$(".inner-multi-item3.item5").addClass("toggle")}),
$(".sub-multi-item3 .item6").on("click", function () {$(".inner-multi-item3.item6").addClass("toggle")}),
$(".sub-multi-item3 .item7").on("click", function () {$(".inner-multi-item3.item7").addClass("toggle")}),
$(".sub-multi-item3 .item8").on("click", function () {$(".inner-multi-item3.item8").addClass("toggle")}),
$(".sub-multi-item3 .item9").on("click", function () {$(".inner-multi-item3.item9").addClass("toggle")}),
$(".sub-multi-item3 .item10").on("click", function () {$(".inner-multi-item3.item10").addClass("toggle")}),
/* Multi Items 4 */
$(".sub-multi-item4 .item1, .sub-multi-item4 .item2, .sub-multi-item4 .item3, .sub-multi-item4 .item4, .sub-multi-item4 .item5, .sub-multi-item4 .item6, .sub-multi-item4 .item7, .sub-multi-item4 .item8, .sub-multi-item4 .item9, .sub-multi-item4 .item10").on("click", function () {
$(".sub-multi-item4").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item4 .item1").on("click", function () {$(".inner-multi-item4.item1").addClass("toggle")}),
$(".sub-multi-item4 .item2").on("click", function () {$(".inner-multi-item4.item2").addClass("toggle")}),
$(".sub-multi-item4 .item3").on("click", function () {$(".inner-multi-item4.item3").addClass("toggle")}),
$(".sub-multi-item4 .item4").on("click", function () {$(".inner-multi-item4.item4").addClass("toggle")}),
$(".sub-multi-item4 .item5").on("click", function () {$(".inner-multi-item4.item5").addClass("toggle")}),
$(".sub-multi-item4 .item6").on("click", function () {$(".inner-multi-item4.item6").addClass("toggle")}),
$(".sub-multi-item4 .item7").on("click", function () {$(".inner-multi-item4.item7").addClass("toggle")}),
$(".sub-multi-item4 .item8").on("click", function () {$(".inner-multi-item4.item8").addClass("toggle")}),
$(".sub-multi-item4 .item9").on("click", function () {$(".inner-multi-item4.item9").addClass("toggle")}),
$(".sub-multi-item4 .item10").on("click", function () {$(".inner-multi-item4.item10").addClass("toggle")}),
/* Multi Items 5 */
$(".sub-multi-item5 .item1, .sub-multi-item5 .item2, .sub-multi-item5 .item3, .sub-multi-item5 .item4, .sub-multi-item5 .item5, .sub-multi-item5 .item6, .sub-multi-item5 .item7, .sub-multi-item5 .item8, .sub-multi-item5 .item9, .sub-multi-item5 .item10").on("click", function () {
$(".sub-multi-item5").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item5 .item1").on("click", function () {$(".inner-multi-item5.item1").addClass("toggle")}),
$(".sub-multi-item5 .item2").on("click", function () {$(".inner-multi-item5.item2").addClass("toggle")}),
$(".sub-multi-item5 .item3").on("click", function () {$(".inner-multi-item5.item3").addClass("toggle")}),
$(".sub-multi-item5 .item4").on("click", function () {$(".inner-multi-item5.item4").addClass("toggle")}),
$(".sub-multi-item5 .item5").on("click", function () {$(".inner-multi-item5.item5").addClass("toggle")}),
$(".sub-multi-item5 .item6").on("click", function () {$(".inner-multi-item5.item6").addClass("toggle")}),
$(".sub-multi-item5 .item7").on("click", function () {$(".inner-multi-item5.item7").addClass("toggle")}),
$(".sub-multi-item5 .item8").on("click", function () {$(".inner-multi-item5.item8").addClass("toggle")}),
$(".sub-multi-item5 .item9").on("click", function () {$(".inner-multi-item5.item9").addClass("toggle")}),
$(".sub-multi-item5 .item10").on("click", function () {$(".inner-multi-item5.item10").addClass("toggle")}),
/* Multi Items 6 */
$(".sub-multi-item6 .item1, .sub-multi-item6 .item2, .sub-multi-item6 .item3, .sub-multi-item6 .item4, .sub-multi-item6 .item5, .sub-multi-item6 .item6, .sub-multi-item6 .item7, .sub-multi-item6 .item8, .sub-multi-item6 .item9, .sub-multi-item6 .item10").on("click", function () {
$(".sub-multi-item6").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item6 .item1").on("click", function () {$(".inner-multi-item6.item1").addClass("toggle")}),
$(".sub-multi-item6 .item2").on("click", function () {$(".inner-multi-item6.item2").addClass("toggle")}),
$(".sub-multi-item6 .item3").on("click", function () {$(".inner-multi-item6.item3").addClass("toggle")}),
$(".sub-multi-item6 .item4").on("click", function () {$(".inner-multi-item6.item4").addClass("toggle")}),
$(".sub-multi-item6 .item5").on("click", function () {$(".inner-multi-item6.item5").addClass("toggle")}),
$(".sub-multi-item6 .item6").on("click", function () {$(".inner-multi-item6.item6").addClass("toggle")}),
$(".sub-multi-item6 .item7").on("click", function () {$(".inner-multi-item6.item7").addClass("toggle")}),
$(".sub-multi-item6 .item8").on("click", function () {$(".inner-multi-item6.item8").addClass("toggle")}),
$(".sub-multi-item6 .item9").on("click", function () {$(".inner-multi-item6.item9").addClass("toggle")}),
$(".sub-multi-item6 .item10").on("click", function () {$(".inner-multi-item6.item10").addClass("toggle")}),
/* Multi Items 7 */
$(".sub-multi-item7 .item1, .sub-multi-item7 .item2, .sub-multi-item7 .item3, .sub-multi-item7 .item4, .sub-multi-item7 .item5, .sub-multi-item7 .item6, .sub-multi-item7 .item7, .sub-multi-item7 .item8, .sub-multi-item7 .item9, .sub-multi-item7 .item10").on("click", function () {
$(".sub-multi-item7").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item7 .item1").on("click", function () {$(".inner-multi-item7.item1").addClass("toggle")}),
$(".sub-multi-item7 .item2").on("click", function () {$(".inner-multi-item7.item2").addClass("toggle")}),
$(".sub-multi-item7 .item3").on("click", function () {$(".inner-multi-item7.item3").addClass("toggle")}),
$(".sub-multi-item7 .item4").on("click", function () {$(".inner-multi-item7.item4").addClass("toggle")}),
$(".sub-multi-item7 .item5").on("click", function () {$(".inner-multi-item7.item5").addClass("toggle")}),
$(".sub-multi-item7 .item6").on("click", function () {$(".inner-multi-item7.item6").addClass("toggle")}),
$(".sub-multi-item7 .item7").on("click", function () {$(".inner-multi-item7.item7").addClass("toggle")}),
$(".sub-multi-item7 .item8").on("click", function () {$(".inner-multi-item7.item8").addClass("toggle")}),
$(".sub-multi-item7 .item9").on("click", function () {$(".inner-multi-item7.item9").addClass("toggle")}),
$(".sub-multi-item7 .item10").on("click", function () {$(".inner-multi-item7.item10").addClass("toggle")}),
/* Multi Items 8 */
$(".sub-multi-item8 .item1, .sub-multi-item8 .item2, .sub-multi-item8 .item3, .sub-multi-item8 .item4, .sub-multi-item8 .item5, .sub-multi-item8 .item6, .sub-multi-item8 .item7, .sub-multi-item8 .item8, .sub-multi-item8 .item9, .sub-multi-item8 .item10").on("click", function () {
$(".sub-multi-item8").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item8 .item1").on("click", function () {$(".inner-multi-item8.item1").addClass("toggle")}),
$(".sub-multi-item8 .item2").on("click", function () {$(".inner-multi-item8.item2").addClass("toggle")}),
$(".sub-multi-item8 .item3").on("click", function () {$(".inner-multi-item8.item3").addClass("toggle")}),
$(".sub-multi-item8 .item4").on("click", function () {$(".inner-multi-item8.item4").addClass("toggle")}),
$(".sub-multi-item8 .item5").on("click", function () {$(".inner-multi-item8.item5").addClass("toggle")}),
$(".sub-multi-item8 .item6").on("click", function () {$(".inner-multi-item8.item6").addClass("toggle")}),
$(".sub-multi-item8 .item7").on("click", function () {$(".inner-multi-item8.item7").addClass("toggle")}),
$(".sub-multi-item8 .item8").on("click", function () {$(".inner-multi-item8.item8").addClass("toggle")}),
$(".sub-multi-item8 .item9").on("click", function () {$(".inner-multi-item8.item9").addClass("toggle")}),
$(".sub-multi-item8 .item10").on("click", function () {$(".inner-multi-item8.item10").addClass("toggle")}),
/* Multi Items 9 */
$(".sub-multi-item9 .item1, .sub-multi-item9 .item2, .sub-multi-item9 .item3, .sub-multi-item9 .item4, .sub-multi-item9 .item5, .sub-multi-item9 .item6, .sub-multi-item9 .item7, .sub-multi-item9 .item8, .sub-multi-item9 .item9, .sub-multi-item9 .item10").on("click", function () {
$(".sub-multi-item9").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item9 .item1").on("click", function () {$(".inner-multi-item9.item1").addClass("toggle")}),
$(".sub-multi-item9 .item2").on("click", function () {$(".inner-multi-item9.item2").addClass("toggle")}),
$(".sub-multi-item9 .item3").on("click", function () {$(".inner-multi-item9.item3").addClass("toggle")}),
$(".sub-multi-item9 .item4").on("click", function () {$(".inner-multi-item9.item4").addClass("toggle")}),
$(".sub-multi-item9 .item5").on("click", function () {$(".inner-multi-item9.item5").addClass("toggle")}),
$(".sub-multi-item9 .item6").on("click", function () {$(".inner-multi-item9.item6").addClass("toggle")}),
$(".sub-multi-item9 .item7").on("click", function () {$(".inner-multi-item9.item7").addClass("toggle")}),
$(".sub-multi-item9 .item8").on("click", function () {$(".inner-multi-item9.item8").addClass("toggle")}),
$(".sub-multi-item9 .item9").on("click", function () {$(".inner-multi-item9.item9").addClass("toggle")}),
$(".sub-multi-item9 .item10").on("click", function () {$(".inner-multi-item9.item10").addClass("toggle")}),
/* Multi Items 10 */
$(".sub-multi-item10 .item1, .sub-multi-item10 .item2, .sub-multi-item10 .item3, .sub-multi-item10 .item4, .sub-multi-item10 .item5, .sub-multi-item10 .item6, .sub-multi-item10 .item7, .sub-multi-item10 .item8, .sub-multi-item10 .item9, .sub-multi-item10 .item10").on("click", function () {
$(".sub-multi-item10").addClass("toggle-inner"), $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".sub-multi-item10 .item1").on("click", function () {$(".inner-multi-item10.item1").addClass("toggle")}),
$(".sub-multi-item10 .item2").on("click", function () {$(".inner-multi-item10.item2").addClass("toggle")}),
$(".sub-multi-item10 .item3").on("click", function () {$(".inner-multi-item10.item3").addClass("toggle")}),
$(".sub-multi-item10 .item4").on("click", function () {$(".inner-multi-item10.item4").addClass("toggle")}),
$(".sub-multi-item10 .item5").on("click", function () {$(".inner-multi-item10.item5").addClass("toggle")}),
$(".sub-multi-item10 .item6").on("click", function () {$(".inner-multi-item10.item6").addClass("toggle")}),
$(".sub-multi-item10 .item7").on("click", function () {$(".inner-multi-item10.item7").addClass("toggle")}),
$(".sub-multi-item10 .item8").on("click", function () {$(".inner-multi-item10.item8").addClass("toggle")}),
$(".sub-multi-item10 .item9").on("click", function () {$(".inner-multi-item10.item9").addClass("toggle")}),
$(".sub-multi-item10 .item10").on("click", function () {$(".inner-multi-item10.item10").addClass("toggle")}),
/* Single Items */
$(".side-main-menu .single-item1, .side-main-menu .single-item2, .side-main-menu .single-item3, .side-main-menu .single-item4, .side-main-menu .single-item5, .side-main-menu .single-item6, .side-main-menu .item7, .side-main-menu .single-item8, .side-main-menu .single-item9, .side-main-menu .single-item10").on("click", function () {
$(".side-main-menu").addClass("toggle"),$(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
$(".side-main-menu .single-item1").on("click", function () {$(".side-sub-menu.single-item1").addClass("toggle")}),
$(".side-main-menu .single-item2").on("click", function () {$(".side-sub-menu.single-item2").addClass("toggle")}),
$(".side-main-menu .single-item3").on("click", function () {$(".side-sub-menu.single-item3").addClass("toggle")}),
$(".side-main-menu .single-item4").on("click", function () {$(".side-sub-menu.single-item4").addClass("toggle")}),
$(".side-main-menu .single-item5").on("click", function () {$(".side-sub-menu.single-item5").addClass("toggle")}),
$(".side-main-menu .single-item6").on("click", function () {$(".side-sub-menu.single-item6").addClass("toggle")}),
$(".side-main-menu .single-item7").on("click", function () {$(".side-sub-menu.single-item7").addClass("toggle")}),
$(".side-main-menu .single-item8").on("click", function () {$(".side-sub-menu.single-item8").addClass("toggle")}),
$(".side-main-menu .single-item9").on("click", function () {$(".side-sub-menu.single-item9").addClass("toggle")}),
$(".side-main-menu .single-item10").on("click", function () {$(".side-sub-menu.single-item10").addClass("toggle")}),
/* Back To Main Button Toggle */
$(".back-main").on("click", function () {
$(".side-main-menu, .side-sub-menu, .sub-multi-item1, .sub-multi-item2, .sub-multi-item3, .sub-multi-item4, .sub-multi-item5, .sub-multi-item6, .sub-multi-item7, .sub-multi-item8, .sub-multi-item9, .sub-multi-item10, .inner-multi-item1, .inner-multi-item2, .inner-multi-item3, .inner-multi-item4, .inner-multi-item5, .inner-multi-item6, .inner-multi-item7, .inner-multi-item8, .inner-multi-item9, .inner-multi-item10").removeClass("toggle"),
$(".sub-multi-item1, .sub-multi-item2, .sub-multi-item3, .sub-multi-item4, .sub-multi-item5, .sub-multi-item6, .sub-multi-item7, .sub-multi-item8, .sub-multi-item9, .sub-multi-item10").removeClass("toggle-inner"),
$(".side-menu").addClass("side-menu-active"),
$("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}),
/* Back Button Toggle */
$(".back").on("click", function () {
$(".inner-multi-item1, .inner-multi-item2, .inner-multi-item3, .inner-multi-item4, .inner-multi-item5, .inner-multi-item6, .inner-multi-item7, .inner-multi-item8, .inner-multi-item9, .inner-multi-item10").removeClass("toggle"),
$(".sub-multi-item1, .sub-multi-item2, .sub-multi-item3, .sub-multi-item4, .sub-multi-item5, .sub-multi-item6, .sub-multi-item7, .sub-multi-item8, .sub-multi-item9, .sub-multi-item10").removeClass("toggle-inner"),
$(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
});
}
});
});
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
/*! Morphext - v2.4.4 - 2015-05-21 */!function(a){"use strict";function b(b,c){this.element=a(b),this.settings=a.extend({},d,c),this._defaults=d,this._init()}var c="Morphext",d={animation:"bounceIn",separator:",",speed:2e3,complete:a.noop};b.prototype={_init:function(){var b=this;this.phrases=[],this.element.addClass("morphext"),a.each(this.element.text().split(this.settings.separator),function(c,d){b.phrases.push(a.trim(d))}),this.index=-1,this.animate(),this.start()},animate:function(){this.index=++this.index%this.phrases.length,this.element[0].innerHTML='<span class="animated '+this.settings.animation+'">'+this.phrases[this.index]+"</span>",a.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var a=this;this._interval=setInterval(function(){a.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},a.fn[c]=function(d){return this.each(function(){a.data(this,"plugin_"+c)||a.data(this,"plugin_"+c,new b(this,d))})}}(jQuery);
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
!function(e){e.fn.parallaxie=function(o){o=e.extend({speed:.2,repeat:"no-repeat",size:"cover",pos_x:"center",offset:0},o);return this.each(function(){var a=e(this),t=a.data("parallaxie");"object"!=typeof t&&(t={}),t=e.extend({},o,t);var s=a.data("image");if(void 0===s){if(!(s=a.css("background-image")))return;var n=t.offset+(a.offset().top-e(window).scrollTop())*(1-t.speed);a.css({"background-image":s,"background-size":t.size,"background-repeat":t.repeat,"background-attachment":"fixed","background-position":t.pos_x+" "+n+"px"}),e(window).scroll(function(){var o=t.offset+(a.offset().top-e(window).scrollTop())*(1-t.speed);a.data("pos_y",o),a.css("background-position",t.pos_x+" "+o+"px")})}}),this}}(jQuery);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+689
View File
@@ -0,0 +1,689 @@
! function(i) {
"use strict";
"function" == typeof define && define.amd ? define(["jquery"], i) : "undefined" != typeof exports ? module.exports = i(require("jquery")) : i(jQuery)
}(function(i) {
"use strict";
var e = window.Slick || {};
(e = function() {
var e = 0;
return function(t, o) {
var s, n = this;
n.defaults = {
accessibility: !0,
adaptiveHeight: !1,
appendArrows: i(t),
appendDots: i(t),
arrows: !0,
asNavFor: null,
prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
autoplay: !1,
autoplaySpeed: 3e3,
centerMode: !1,
centerPadding: "50px",
cssEase: "ease",
customPaging: function(e, t) {
return i('<button type="button" />').text(t + 1)
},
dots: !1,
dotsClass: "slick-dots",
draggable: !0,
easing: "linear",
edgeFriction: .35,
fade: !1,
focusOnSelect: !1,
focusOnChange: !1,
infinite: !0,
initialSlide: 0,
lazyLoad: "ondemand",
mobileFirst: !1,
pauseOnHover: !0,
pauseOnFocus: !0,
pauseOnDotsHover: !1,
respondTo: "window",
responsive: null,
rows: 1,
rtl: !1,
slide: "",
slidesPerRow: 1,
slidesToShow: 1,
slidesToScroll: 1,
speed: 500,
swipe: !0,
swipeToSlide: !1,
touchMove: !0,
touchThreshold: 5,
useCSS: !0,
useTransform: !0,
variableWidth: !1,
vertical: !1,
verticalSwiping: !1,
waitForAnimate: !0,
zIndex: 1e3
}, n.initials = {
animating: !1,
dragging: !1,
autoPlayTimer: null,
currentDirection: 0,
currentLeft: null,
currentSlide: 0,
direction: 1,
$dots: null,
listWidth: null,
listHeight: null,
loadIndex: 0,
$nextArrow: null,
$prevArrow: null,
scrolling: !1,
slideCount: null,
slideWidth: null,
$slideTrack: null,
$slides: null,
sliding: !1,
slideOffset: 0,
swipeLeft: null,
swiping: !1,
$list: null,
touchObject: {},
transformsEnabled: !1,
unslicked: !1
}, i.extend(n, n.initials), n.activeBreakpoint = null, n.animType = null, n.animProp = null, n.breakpoints = [], n.breakpointSettings = [], n.cssTransitions = !1, n.focussed = !1, n.interrupted = !1, n.hidden = "hidden", n.paused = !0, n.positionProp = null, n.respondTo = null, n.rowCount = 1, n.shouldClick = !0, n.$slider = i(t), n.$slidesCache = null, n.transformType = null, n.transitionType = null, n.visibilityChange = "visibilitychange", n.windowWidth = 0, n.windowTimer = null, s = i(t).data("slick") || {}, n.options = i.extend({}, n.defaults, o, s), n.currentSlide = n.options.initialSlide, n.originalSettings = n.options, void 0 !== document.mozHidden ? (n.hidden = "mozHidden", n.visibilityChange = "mozvisibilitychange") : void 0 !== document.webkitHidden && (n.hidden = "webkitHidden", n.visibilityChange = "webkitvisibilitychange"), n.autoPlay = i.proxy(n.autoPlay, n), n.autoPlayClear = i.proxy(n.autoPlayClear, n), n.autoPlayIterator = i.proxy(n.autoPlayIterator, n), n.changeSlide = i.proxy(n.changeSlide, n), n.clickHandler = i.proxy(n.clickHandler, n), n.selectHandler = i.proxy(n.selectHandler, n), n.setPosition = i.proxy(n.setPosition, n), n.swipeHandler = i.proxy(n.swipeHandler, n), n.dragHandler = i.proxy(n.dragHandler, n), n.keyHandler = i.proxy(n.keyHandler, n), n.instanceUid = e++, n.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, n.registerBreakpoints(), n.init(!0)
}
}()).prototype.activateADA = function() {
this.$slideTrack.find(".slick-active").attr({
"aria-hidden": "false"
}).find("a, input, button, select").attr({
tabindex: "0"
})
}, e.prototype.addSlide = e.prototype.slickAdd = function(e, t, o) {
var s = this;
if ("boolean" == typeof t) o = t, t = null;
else if (t < 0 || t >= s.slideCount) return !1;
s.unload(), "number" == typeof t ? 0 === t && 0 === s.$slides.length ? i(e).appendTo(s.$slideTrack) : o ? i(e).insertBefore(s.$slides.eq(t)) : i(e).insertAfter(s.$slides.eq(t)) : !0 === o ? i(e).prependTo(s.$slideTrack) : i(e).appendTo(s.$slideTrack), s.$slides = s.$slideTrack.children(this.options.slide), s.$slideTrack.children(this.options.slide).detach(), s.$slideTrack.append(s.$slides), s.$slides.each(function(e, t) {
i(t).attr("data-slick-index", e)
}), s.$slidesCache = s.$slides, s.reinit()
}, e.prototype.animateHeight = function() {
var i = this;
if (1 === i.options.slidesToShow && !0 === i.options.adaptiveHeight && !1 === i.options.vertical) {
var e = i.$slides.eq(i.currentSlide).outerHeight(!0);
i.$list.animate({
height: e
}, i.options.speed)
}
}, e.prototype.animateSlide = function(e, t) {
var o = {},
s = this;
s.animateHeight(), !0 === s.options.rtl && !1 === s.options.vertical && (e = -e), !1 === s.transformsEnabled ? !1 === s.options.vertical ? s.$slideTrack.animate({
left: e
}, s.options.speed, s.options.easing, t) : s.$slideTrack.animate({
top: e
}, s.options.speed, s.options.easing, t) : !1 === s.cssTransitions ? (!0 === s.options.rtl && (s.currentLeft = -s.currentLeft), i({
animStart: s.currentLeft
}).animate({
animStart: e
}, {
duration: s.options.speed,
easing: s.options.easing,
step: function(i) {
i = Math.ceil(i), !1 === s.options.vertical ? (o[s.animType] = "translate(" + i + "px, 0px)", s.$slideTrack.css(o)) : (o[s.animType] = "translate(0px," + i + "px)", s.$slideTrack.css(o))
},
complete: function() {
t && t.call()
}
})) : (s.applyTransition(), e = Math.ceil(e), !1 === s.options.vertical ? o[s.animType] = "translate3d(" + e + "px, 0px, 0px)" : o[s.animType] = "translate3d(0px," + e + "px, 0px)", s.$slideTrack.css(o), t && setTimeout(function() {
s.disableTransition(), t.call()
}, s.options.speed))
}, e.prototype.getNavTarget = function() {
var e = this,
t = e.options.asNavFor;
return t && null !== t && (t = i(t).not(e.$slider)), t
}, e.prototype.asNavFor = function(e) {
var t = this.getNavTarget();
null !== t && "object" == typeof t && t.each(function() {
var t = i(this).slick("getSlick");
t.unslicked || t.slideHandler(e, !0)
})
}, e.prototype.applyTransition = function(i) {
var e = this,
t = {};
!1 === e.options.fade ? t[e.transitionType] = e.transformType + " " + e.options.speed + "ms " + e.options.cssEase : t[e.transitionType] = "opacity " + e.options.speed + "ms " + e.options.cssEase, !1 === e.options.fade ? e.$slideTrack.css(t) : e.$slides.eq(i).css(t)
}, e.prototype.autoPlay = function() {
var i = this;
i.autoPlayClear(), i.slideCount > i.options.slidesToShow && (i.autoPlayTimer = setInterval(i.autoPlayIterator, i.options.autoplaySpeed))
}, e.prototype.autoPlayClear = function() {
var i = this;
i.autoPlayTimer && clearInterval(i.autoPlayTimer)
}, e.prototype.autoPlayIterator = function() {
var i = this,
e = i.currentSlide + i.options.slidesToScroll;
i.paused || i.interrupted || i.focussed || (!1 === i.options.infinite && (1 === i.direction && i.currentSlide + 1 === i.slideCount - 1 ? i.direction = 0 : 0 === i.direction && (e = i.currentSlide - i.options.slidesToScroll, i.currentSlide - 1 == 0 && (i.direction = 1))), i.slideHandler(e))
}, e.prototype.buildArrows = function() {
var e = this;
!0 === e.options.arrows && (e.$prevArrow = i(e.options.prevArrow).addClass("slick-arrow"), e.$nextArrow = i(e.options.nextArrow).addClass("slick-arrow"), e.slideCount > e.options.slidesToShow ? (e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.prependTo(e.options.appendArrows), e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.appendTo(e.options.appendArrows), !0 !== e.options.infinite && e.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({
"aria-disabled": "true",
tabindex: "-1"
}))
}, e.prototype.buildDots = function() {
var e, t, o = this;
if (!0 === o.options.dots) {
for (o.$slider.addClass("slick-dotted"), t = i("<ul />").addClass(o.options.dotsClass), e = 0; e <= o.getDotCount(); e += 1) t.append(i("<li />").append(o.options.customPaging.call(this, o, e)));
o.$dots = t.appendTo(o.options.appendDots), o.$dots.find("li").first().addClass("slick-active")
}
}, e.prototype.buildOut = function() {
var e = this;
e.$slides = e.$slider.children(e.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), e.slideCount = e.$slides.length, e.$slides.each(function(e, t) {
i(t).attr("data-slick-index", e).data("originalStyling", i(t).attr("style") || "")
}), e.$slider.addClass("slick-slider"), e.$slideTrack = 0 === e.slideCount ? i('<div class="slick-track"/>').appendTo(e.$slider) : e.$slides.wrapAll('<div class="slick-track"/>').parent(), e.$list = e.$slideTrack.wrap('<div class="slick-list"/>').parent(), e.$slideTrack.css("opacity", 0), !0 !== e.options.centerMode && !0 !== e.options.swipeToSlide || (e.options.slidesToScroll = 1), i("img[data-lazy]", e.$slider).not("[src]").addClass("slick-loading"), e.setupInfinite(), e.buildArrows(), e.buildDots(), e.updateDots(), e.setSlideClasses("number" == typeof e.currentSlide ? e.currentSlide : 0), !0 === e.options.draggable && e.$list.addClass("draggable")
}, e.prototype.buildRows = function() {
var i, e, t, o, s, n, r, l = this;
if (o = document.createDocumentFragment(), n = l.$slider.children(), l.options.rows > 1) {
for (r = l.options.slidesPerRow * l.options.rows, s = Math.ceil(n.length / r), i = 0; i < s; i++) {
var d = document.createElement("div");
for (e = 0; e < l.options.rows; e++) {
var a = document.createElement("div");
for (t = 0; t < l.options.slidesPerRow; t++) {
var c = i * r + (e * l.options.slidesPerRow + t);
n.get(c) && a.appendChild(n.get(c))
}
d.appendChild(a)
}
o.appendChild(d)
}
l.$slider.empty().append(o), l.$slider.children().children().children().css({
width: 100 / l.options.slidesPerRow + "%",
display: "inline-block"
})
}
}, e.prototype.checkResponsive = function(e, t) {
var o, s, n, r = this,
l = !1,
d = r.$slider.width(),
a = window.innerWidth || i(window).width();
if ("window" === r.respondTo ? n = a : "slider" === r.respondTo ? n = d : "min" === r.respondTo && (n = Math.min(a, d)), r.options.responsive && r.options.responsive.length && null !== r.options.responsive) {
s = null;
for (o in r.breakpoints) r.breakpoints.hasOwnProperty(o) && (!1 === r.originalSettings.mobileFirst ? n < r.breakpoints[o] && (s = r.breakpoints[o]) : n > r.breakpoints[o] && (s = r.breakpoints[o]));
null !== s ? null !== r.activeBreakpoint ? (s !== r.activeBreakpoint || t) && (r.activeBreakpoint = s, "unslick" === r.breakpointSettings[s] ? r.unslick(s) : (r.options = i.extend({}, r.originalSettings, r.breakpointSettings[s]), !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e)), l = s) : (r.activeBreakpoint = s, "unslick" === r.breakpointSettings[s] ? r.unslick(s) : (r.options = i.extend({}, r.originalSettings, r.breakpointSettings[s]), !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e)), l = s) : null !== r.activeBreakpoint && (r.activeBreakpoint = null, r.options = r.originalSettings, !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e), l = s), e || !1 === l || r.$slider.trigger("breakpoint", [r, l])
}
}, e.prototype.changeSlide = function(e, t) {
var o, s, n, r = this,
l = i(e.currentTarget);
switch (l.is("a") && e.preventDefault(), l.is("li") || (l = l.closest("li")), n = r.slideCount % r.options.slidesToScroll != 0, o = n ? 0 : (r.slideCount - r.currentSlide) % r.options.slidesToScroll, e.data.message) {
case "previous":
s = 0 === o ? r.options.slidesToScroll : r.options.slidesToShow - o, r.slideCount > r.options.slidesToShow && r.slideHandler(r.currentSlide - s, !1, t);
break;
case "next":
s = 0 === o ? r.options.slidesToScroll : o, r.slideCount > r.options.slidesToShow && r.slideHandler(r.currentSlide + s, !1, t);
break;
case "index":
var d = 0 === e.data.index ? 0 : e.data.index || l.index() * r.options.slidesToScroll;
r.slideHandler(r.checkNavigable(d), !1, t), l.children().trigger("focus");
break;
default:
return
}
}, e.prototype.checkNavigable = function(i) {
var e, t;
if (e = this.getNavigableIndexes(), t = 0, i > e[e.length - 1]) i = e[e.length - 1];
else
for (var o in e) {
if (i < e[o]) {
i = t;
break
}
t = e[o]
}
return i
}, e.prototype.cleanUpEvents = function() {
var e = this;
e.options.dots && null !== e.$dots && (i("li", e.$dots).off("click.slick", e.changeSlide).off("mouseenter.slick", i.proxy(e.interrupt, e, !0)).off("mouseleave.slick", i.proxy(e.interrupt, e, !1)), !0 === e.options.accessibility && e.$dots.off("keydown.slick", e.keyHandler)), e.$slider.off("focus.slick blur.slick"), !0 === e.options.arrows && e.slideCount > e.options.slidesToShow && (e.$prevArrow && e.$prevArrow.off("click.slick", e.changeSlide), e.$nextArrow && e.$nextArrow.off("click.slick", e.changeSlide), !0 === e.options.accessibility && (e.$prevArrow && e.$prevArrow.off("keydown.slick", e.keyHandler), e.$nextArrow && e.$nextArrow.off("keydown.slick", e.keyHandler))), e.$list.off("touchstart.slick mousedown.slick", e.swipeHandler), e.$list.off("touchmove.slick mousemove.slick", e.swipeHandler), e.$list.off("touchend.slick mouseup.slick", e.swipeHandler), e.$list.off("touchcancel.slick mouseleave.slick", e.swipeHandler), e.$list.off("click.slick", e.clickHandler), i(document).off(e.visibilityChange, e.visibility), e.cleanUpSlideEvents(), !0 === e.options.accessibility && e.$list.off("keydown.slick", e.keyHandler), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().off("click.slick", e.selectHandler), i(window).off("orientationchange.slick.slick-" + e.instanceUid, e.orientationChange), i(window).off("resize.slick.slick-" + e.instanceUid, e.resize), i("[draggable!=true]", e.$slideTrack).off("dragstart", e.preventDefault), i(window).off("load.slick.slick-" + e.instanceUid, e.setPosition)
}, e.prototype.cleanUpSlideEvents = function() {
var e = this;
e.$list.off("mouseenter.slick", i.proxy(e.interrupt, e, !0)), e.$list.off("mouseleave.slick", i.proxy(e.interrupt, e, !1))
}, e.prototype.cleanUpRows = function() {
var i, e = this;
e.options.rows > 1 && ((i = e.$slides.children().children()).removeAttr("style"), e.$slider.empty().append(i))
}, e.prototype.clickHandler = function(i) {
!1 === this.shouldClick && (i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault())
}, e.prototype.destroy = function(e) {
var t = this;
t.autoPlayClear(), t.touchObject = {}, t.cleanUpEvents(), i(".slick-cloned", t.$slider).detach(), t.$dots && t.$dots.remove(), t.$prevArrow && t.$prevArrow.length && (t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), t.htmlExpr.test(t.options.prevArrow) && t.$prevArrow.remove()), t.$nextArrow && t.$nextArrow.length && (t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), t.htmlExpr.test(t.options.nextArrow) && t.$nextArrow.remove()), t.$slides && (t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function() {
i(this).attr("style", i(this).data("originalStyling"))
}), t.$slideTrack.children(this.options.slide).detach(), t.$slideTrack.detach(), t.$list.detach(), t.$slider.append(t.$slides)), t.cleanUpRows(), t.$slider.removeClass("slick-slider"), t.$slider.removeClass("slick-initialized"), t.$slider.removeClass("slick-dotted"), t.unslicked = !0, e || t.$slider.trigger("destroy", [t])
}, e.prototype.disableTransition = function(i) {
var e = this,
t = {};
t[e.transitionType] = "", !1 === e.options.fade ? e.$slideTrack.css(t) : e.$slides.eq(i).css(t)
}, e.prototype.fadeSlide = function(i, e) {
var t = this;
!1 === t.cssTransitions ? (t.$slides.eq(i).css({
zIndex: t.options.zIndex
}), t.$slides.eq(i).animate({
opacity: 1
}, t.options.speed, t.options.easing, e)) : (t.applyTransition(i), t.$slides.eq(i).css({
opacity: 1,
zIndex: t.options.zIndex
}), e && setTimeout(function() {
t.disableTransition(i), e.call()
}, t.options.speed))
}, e.prototype.fadeSlideOut = function(i) {
var e = this;
!1 === e.cssTransitions ? e.$slides.eq(i).animate({
opacity: 0,
zIndex: e.options.zIndex - 2
}, e.options.speed, e.options.easing) : (e.applyTransition(i), e.$slides.eq(i).css({
opacity: 0,
zIndex: e.options.zIndex - 2
}))
}, e.prototype.filterSlides = e.prototype.slickFilter = function(i) {
var e = this;
null !== i && (e.$slidesCache = e.$slides, e.unload(), e.$slideTrack.children(this.options.slide).detach(), e.$slidesCache.filter(i).appendTo(e.$slideTrack), e.reinit())
}, e.prototype.focusHandler = function() {
var e = this;
e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function(t) {
t.stopImmediatePropagation();
var o = i(this);
setTimeout(function() {
e.options.pauseOnFocus && (e.focussed = o.is(":focus"), e.autoPlay())
}, 0)
})
}, e.prototype.getCurrent = e.prototype.slickCurrentSlide = function() {
return this.currentSlide
}, e.prototype.getDotCount = function() {
var i = this,
e = 0,
t = 0,
o = 0;
if (!0 === i.options.infinite)
if (i.slideCount <= i.options.slidesToShow) ++o;
else
for (; e < i.slideCount;) ++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow;
else if (!0 === i.options.centerMode) o = i.slideCount;
else if (i.options.asNavFor)
for (; e < i.slideCount;) ++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow;
else o = 1 + Math.ceil((i.slideCount - i.options.slidesToShow) / i.options.slidesToScroll);
return o - 1
}, e.prototype.getLeft = function(i) {
var e, t, o, s, n = this,
r = 0;
return n.slideOffset = 0, t = n.$slides.first().outerHeight(!0), !0 === n.options.infinite ? (n.slideCount > n.options.slidesToShow && (n.slideOffset = n.slideWidth * n.options.slidesToShow * -1, s = -1, !0 === n.options.vertical && !0 === n.options.centerMode && (2 === n.options.slidesToShow ? s = -1.5 : 1 === n.options.slidesToShow && (s = -2)), r = t * n.options.slidesToShow * s), n.slideCount % n.options.slidesToScroll != 0 && i + n.options.slidesToScroll > n.slideCount && n.slideCount > n.options.slidesToShow && (i > n.slideCount ? (n.slideOffset = (n.options.slidesToShow - (i - n.slideCount)) * n.slideWidth * -1, r = (n.options.slidesToShow - (i - n.slideCount)) * t * -1) : (n.slideOffset = n.slideCount % n.options.slidesToScroll * n.slideWidth * -1, r = n.slideCount % n.options.slidesToScroll * t * -1))) : i + n.options.slidesToShow > n.slideCount && (n.slideOffset = (i + n.options.slidesToShow - n.slideCount) * n.slideWidth, r = (i + n.options.slidesToShow - n.slideCount) * t), n.slideCount <= n.options.slidesToShow && (n.slideOffset = 0, r = 0), !0 === n.options.centerMode && n.slideCount <= n.options.slidesToShow ? n.slideOffset = n.slideWidth * Math.floor(n.options.slidesToShow) / 2 - n.slideWidth * n.slideCount / 2 : !0 === n.options.centerMode && !0 === n.options.infinite ? n.slideOffset += n.slideWidth * Math.floor(n.options.slidesToShow / 2) - n.slideWidth : !0 === n.options.centerMode && (n.slideOffset = 0, n.slideOffset += n.slideWidth * Math.floor(n.options.slidesToShow / 2)), e = !1 === n.options.vertical ? i * n.slideWidth * -1 + n.slideOffset : i * t * -1 + r, !0 === n.options.variableWidth && (o = n.slideCount <= n.options.slidesToShow || !1 === n.options.infinite ? n.$slideTrack.children(".slick-slide").eq(i) : n.$slideTrack.children(".slick-slide").eq(i + n.options.slidesToShow), e = !0 === n.options.rtl ? o[0] ? -1 * (n.$slideTrack.width() - o[0].offsetLeft - o.width()) : 0 : o[0] ? -1 * o[0].offsetLeft : 0, !0 === n.options.centerMode && (o = n.slideCount <= n.options.slidesToShow || !1 === n.options.infinite ? n.$slideTrack.children(".slick-slide").eq(i) : n.$slideTrack.children(".slick-slide").eq(i + n.options.slidesToShow + 1), e = !0 === n.options.rtl ? o[0] ? -1 * (n.$slideTrack.width() - o[0].offsetLeft - o.width()) : 0 : o[0] ? -1 * o[0].offsetLeft : 0, e += (n.$list.width() - o.outerWidth()) / 2)), e
}, e.prototype.getOption = e.prototype.slickGetOption = function(i) {
return this.options[i]
}, e.prototype.getNavigableIndexes = function() {
var i, e = this,
t = 0,
o = 0,
s = [];
for (!1 === e.options.infinite ? i = e.slideCount : (t = -1 * e.options.slidesToScroll, o = -1 * e.options.slidesToScroll, i = 2 * e.slideCount); t < i;) s.push(t), t = o + e.options.slidesToScroll, o += e.options.slidesToScroll <= e.options.slidesToShow ? e.options.slidesToScroll : e.options.slidesToShow;
return s
}, e.prototype.getSlick = function() {
return this
}, e.prototype.getSlideCount = function() {
var e, t, o = this;
return t = !0 === o.options.centerMode ? o.slideWidth * Math.floor(o.options.slidesToShow / 2) : 0, !0 === o.options.swipeToSlide ? (o.$slideTrack.find(".slick-slide").each(function(s, n) {
if (n.offsetLeft - t + i(n).outerWidth() / 2 > -1 * o.swipeLeft) return e = n, !1
}), Math.abs(i(e).attr("data-slick-index") - o.currentSlide) || 1) : o.options.slidesToScroll
}, e.prototype.goTo = e.prototype.slickGoTo = function(i, e) {
this.changeSlide({
data: {
message: "index",
index: parseInt(i)
}
}, e)
}, e.prototype.init = function(e) {
var t = this;
i(t.$slider).hasClass("slick-initialized") || (i(t.$slider).addClass("slick-initialized"), t.buildRows(), t.buildOut(), t.setProps(), t.startLoad(), t.loadSlider(), t.initializeEvents(), t.updateArrows(), t.updateDots(), t.checkResponsive(!0), t.focusHandler()), e && t.$slider.trigger("init", [t]), !0 === t.options.accessibility && t.initADA(), t.options.autoplay && (t.paused = !1, t.autoPlay())
}, e.prototype.initADA = function() {
var e = this,
t = Math.ceil(e.slideCount / e.options.slidesToShow),
o = e.getNavigableIndexes().filter(function(i) {
return i >= 0 && i < e.slideCount
});
e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({
"aria-hidden": "true",
tabindex: "-1"
}).find("a, input, button, select").attr({
tabindex: "-1"
}), null !== e.$dots && (e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t) {
var s = o.indexOf(t);
i(this).attr({
role: "tabpanel",
id: "slick-slide" + e.instanceUid + t,
tabindex: -1
}), -1 !== s && i(this).attr({
"aria-describedby": "slick-slide-control" + e.instanceUid + s
})
}), e.$dots.attr("role", "tablist").find("li").each(function(s) {
var n = o[s];
i(this).attr({
role: "presentation"
}), i(this).find("button").first().attr({
role: "tab",
id: "slick-slide-control" + e.instanceUid + s,
"aria-controls": "slick-slide" + e.instanceUid + n,
"aria-label": s + 1 + " of " + t,
"aria-selected": null,
tabindex: "-1"
})
}).eq(e.currentSlide).find("button").attr({
"aria-selected": "true",
tabindex: "0"
}).end());
for (var s = e.currentSlide, n = s + e.options.slidesToShow; s < n; s++) e.$slides.eq(s).attr("tabindex", 0);
e.activateADA()
}, e.prototype.initArrowEvents = function() {
var i = this;
!0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.off("click.slick").on("click.slick", {
message: "previous"
}, i.changeSlide), i.$nextArrow.off("click.slick").on("click.slick", {
message: "next"
}, i.changeSlide), !0 === i.options.accessibility && (i.$prevArrow.on("keydown.slick", i.keyHandler), i.$nextArrow.on("keydown.slick", i.keyHandler)))
}, e.prototype.initDotEvents = function() {
var e = this;
!0 === e.options.dots && (i("li", e.$dots).on("click.slick", {
message: "index"
}, e.changeSlide), !0 === e.options.accessibility && e.$dots.on("keydown.slick", e.keyHandler)), !0 === e.options.dots && !0 === e.options.pauseOnDotsHover && i("li", e.$dots).on("mouseenter.slick", i.proxy(e.interrupt, e, !0)).on("mouseleave.slick", i.proxy(e.interrupt, e, !1))
}, e.prototype.initSlideEvents = function() {
var e = this;
e.options.pauseOnHover && (e.$list.on("mouseenter.slick", i.proxy(e.interrupt, e, !0)), e.$list.on("mouseleave.slick", i.proxy(e.interrupt, e, !1)))
}, e.prototype.initializeEvents = function() {
var e = this;
e.initArrowEvents(), e.initDotEvents(), e.initSlideEvents(), e.$list.on("touchstart.slick mousedown.slick", {
action: "start"
}, e.swipeHandler), e.$list.on("touchmove.slick mousemove.slick", {
action: "move"
}, e.swipeHandler), e.$list.on("touchend.slick mouseup.slick", {
action: "end"
}, e.swipeHandler), e.$list.on("touchcancel.slick mouseleave.slick", {
action: "end"
}, e.swipeHandler), e.$list.on("click.slick", e.clickHandler), i(document).on(e.visibilityChange, i.proxy(e.visibility, e)), !0 === e.options.accessibility && e.$list.on("keydown.slick", e.keyHandler), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().on("click.slick", e.selectHandler), i(window).on("orientationchange.slick.slick-" + e.instanceUid, i.proxy(e.orientationChange, e)), i(window).on("resize.slick.slick-" + e.instanceUid, i.proxy(e.resize, e)), i("[draggable!=true]", e.$slideTrack).on("dragstart", e.preventDefault), i(window).on("load.slick.slick-" + e.instanceUid, e.setPosition), i(e.setPosition)
}, e.prototype.initUI = function() {
var i = this;
!0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.show(), i.$nextArrow.show()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.show()
}, e.prototype.keyHandler = function(i) {
var e = this;
i.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === i.keyCode && !0 === e.options.accessibility ? e.changeSlide({
data: {
message: !0 === e.options.rtl ? "next" : "previous"
}
}) : 39 === i.keyCode && !0 === e.options.accessibility && e.changeSlide({
data: {
message: !0 === e.options.rtl ? "previous" : "next"
}
}))
}, e.prototype.lazyLoad = function() {
function e(e) {
i("img[data-lazy]", e).each(function() {
var e = i(this),
t = i(this).attr("data-lazy"),
o = i(this).attr("data-srcset"),
s = i(this).attr("data-sizes") || n.$slider.attr("data-sizes"),
r = document.createElement("img");
r.onload = function() {
e.animate({
opacity: 0
}, 100, function() {
o && (e.attr("srcset", o), s && e.attr("sizes", s)), e.attr("src", t).animate({
opacity: 1
}, 200, function() {
e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")
}), n.$slider.trigger("lazyLoaded", [n, e, t])
})
}, r.onerror = function() {
e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), n.$slider.trigger("lazyLoadError", [n, e, t])
}, r.src = t
})
}
var t, o, s, n = this;
if (!0 === n.options.centerMode ? !0 === n.options.infinite ? s = (o = n.currentSlide + (n.options.slidesToShow / 2 + 1)) + n.options.slidesToShow + 2 : (o = Math.max(0, n.currentSlide - (n.options.slidesToShow / 2 + 1)), s = n.options.slidesToShow / 2 + 1 + 2 + n.currentSlide) : (o = n.options.infinite ? n.options.slidesToShow + n.currentSlide : n.currentSlide, s = Math.ceil(o + n.options.slidesToShow), !0 === n.options.fade && (o > 0 && o--, s <= n.slideCount && s++)), t = n.$slider.find(".slick-slide").slice(o, s), "anticipated" === n.options.lazyLoad)
for (var r = o - 1, l = s, d = n.$slider.find(".slick-slide"), a = 0; a < n.options.slidesToScroll; a++) r < 0 && (r = n.slideCount - 1), t = (t = t.add(d.eq(r))).add(d.eq(l)), r--, l++;
e(t), n.slideCount <= n.options.slidesToShow ? e(n.$slider.find(".slick-slide")) : n.currentSlide >= n.slideCount - n.options.slidesToShow ? e(n.$slider.find(".slick-cloned").slice(0, n.options.slidesToShow)) : 0 === n.currentSlide && e(n.$slider.find(".slick-cloned").slice(-1 * n.options.slidesToShow))
}, e.prototype.loadSlider = function() {
var i = this;
i.setPosition(), i.$slideTrack.css({
opacity: 1
}), i.$slider.removeClass("slick-loading"), i.initUI(), "progressive" === i.options.lazyLoad && i.progressiveLazyLoad()
}, e.prototype.next = e.prototype.slickNext = function() {
this.changeSlide({
data: {
message: "next"
}
})
}, e.prototype.orientationChange = function() {
var i = this;
i.checkResponsive(), i.setPosition()
}, e.prototype.pause = e.prototype.slickPause = function() {
var i = this;
i.autoPlayClear(), i.paused = !0
}, e.prototype.play = e.prototype.slickPlay = function() {
var i = this;
i.autoPlay(), i.options.autoplay = !0, i.paused = !1, i.focussed = !1, i.interrupted = !1
}, e.prototype.postSlide = function(e) {
var t = this;
t.unslicked || (t.$slider.trigger("afterChange", [t, e]), t.animating = !1, t.slideCount > t.options.slidesToShow && t.setPosition(), t.swipeLeft = null, t.options.autoplay && t.autoPlay(), !0 === t.options.accessibility && (t.initADA(), t.options.focusOnChange && i(t.$slides.get(t.currentSlide)).attr("tabindex", 0).focus()))
}, e.prototype.prev = e.prototype.slickPrev = function() {
this.changeSlide({
data: {
message: "previous"
}
})
}, e.prototype.preventDefault = function(i) {
i.preventDefault()
}, e.prototype.progressiveLazyLoad = function(e) {
e = e || 1;
var t, o, s, n, r, l = this,
d = i("img[data-lazy]", l.$slider);
d.length ? (t = d.first(), o = t.attr("data-lazy"), s = t.attr("data-srcset"), n = t.attr("data-sizes") || l.$slider.attr("data-sizes"), (r = document.createElement("img")).onload = function() {
s && (t.attr("srcset", s), n && t.attr("sizes", n)), t.attr("src", o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"), !0 === l.options.adaptiveHeight && l.setPosition(), l.$slider.trigger("lazyLoaded", [l, t, o]), l.progressiveLazyLoad()
}, r.onerror = function() {
e < 3 ? setTimeout(function() {
l.progressiveLazyLoad(e + 1)
}, 500) : (t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), l.$slider.trigger("lazyLoadError", [l, t, o]), l.progressiveLazyLoad())
}, r.src = o) : l.$slider.trigger("allImagesLoaded", [l])
}, e.prototype.refresh = function(e) {
var t, o, s = this;
o = s.slideCount - s.options.slidesToShow, !s.options.infinite && s.currentSlide > o && (s.currentSlide = o), s.slideCount <= s.options.slidesToShow && (s.currentSlide = 0), t = s.currentSlide, s.destroy(!0), i.extend(s, s.initials, {
currentSlide: t
}), s.init(), e || s.changeSlide({
data: {
message: "index",
index: t
}
}, !1)
}, e.prototype.registerBreakpoints = function() {
var e, t, o, s = this,
n = s.options.responsive || null;
if ("array" === i.type(n) && n.length) {
s.respondTo = s.options.respondTo || "window";
for (e in n)
if (o = s.breakpoints.length - 1, n.hasOwnProperty(e)) {
for (t = n[e].breakpoint; o >= 0;) s.breakpoints[o] && s.breakpoints[o] === t && s.breakpoints.splice(o, 1), o--;
s.breakpoints.push(t), s.breakpointSettings[t] = n[e].settings
}
s.breakpoints.sort(function(i, e) {
return s.options.mobileFirst ? i - e : e - i
})
}
}, e.prototype.reinit = function() {
var e = this;
e.$slides = e.$slideTrack.children(e.options.slide).addClass("slick-slide"), e.slideCount = e.$slides.length, e.currentSlide >= e.slideCount && 0 !== e.currentSlide && (e.currentSlide = e.currentSlide - e.options.slidesToScroll), e.slideCount <= e.options.slidesToShow && (e.currentSlide = 0), e.registerBreakpoints(), e.setProps(), e.setupInfinite(), e.buildArrows(), e.updateArrows(), e.initArrowEvents(), e.buildDots(), e.updateDots(), e.initDotEvents(), e.cleanUpSlideEvents(), e.initSlideEvents(), e.checkResponsive(!1, !0), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().on("click.slick", e.selectHandler), e.setSlideClasses("number" == typeof e.currentSlide ? e.currentSlide : 0), e.setPosition(), e.focusHandler(), e.paused = !e.options.autoplay, e.autoPlay(), e.$slider.trigger("reInit", [e])
}, e.prototype.resize = function() {
var e = this;
i(window).width() !== e.windowWidth && (clearTimeout(e.windowDelay), e.windowDelay = window.setTimeout(function() {
e.windowWidth = i(window).width(), e.checkResponsive(), e.unslicked || e.setPosition()
}, 50))
}, e.prototype.removeSlide = e.prototype.slickRemove = function(i, e, t) {
var o = this;
if (i = "boolean" == typeof i ? !0 === (e = i) ? 0 : o.slideCount - 1 : !0 === e ? --i : i, o.slideCount < 1 || i < 0 || i > o.slideCount - 1) return !1;
o.unload(), !0 === t ? o.$slideTrack.children().remove() : o.$slideTrack.children(this.options.slide).eq(i).remove(), o.$slides = o.$slideTrack.children(this.options.slide), o.$slideTrack.children(this.options.slide).detach(), o.$slideTrack.append(o.$slides), o.$slidesCache = o.$slides, o.reinit()
}, e.prototype.setCSS = function(i) {
var e, t, o = this,
s = {};
!0 === o.options.rtl && (i = -i), e = "left" == o.positionProp ? Math.ceil(i) + "px" : "0px", t = "top" == o.positionProp ? Math.ceil(i) + "px" : "0px", s[o.positionProp] = i, !1 === o.transformsEnabled ? o.$slideTrack.css(s) : (s = {}, !1 === o.cssTransitions ? (s[o.animType] = "translate(" + e + ", " + t + ")", o.$slideTrack.css(s)) : (s[o.animType] = "translate3d(" + e + ", " + t + ", 0px)", o.$slideTrack.css(s)))
}, e.prototype.setDimensions = function() {
var i = this;
!1 === i.options.vertical ? !0 === i.options.centerMode && i.$list.css({
padding: "0px " + i.options.centerPadding
}) : (i.$list.height(i.$slides.first().outerHeight(!0) * i.options.slidesToShow), !0 === i.options.centerMode && i.$list.css({
padding: i.options.centerPadding + " 0px"
})), i.listWidth = i.$list.width(), i.listHeight = i.$list.height(), !1 === i.options.vertical && !1 === i.options.variableWidth ? (i.slideWidth = Math.ceil(i.listWidth / i.options.slidesToShow), i.$slideTrack.width(Math.ceil(i.slideWidth * i.$slideTrack.children(".slick-slide").length))) : !0 === i.options.variableWidth ? i.$slideTrack.width(5e3 * i.slideCount) : (i.slideWidth = Math.ceil(i.listWidth), i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0) * i.$slideTrack.children(".slick-slide").length)));
var e = i.$slides.first().outerWidth(!0) - i.$slides.first().width();
!1 === i.options.variableWidth && i.$slideTrack.children(".slick-slide").width(i.slideWidth - e)
}, e.prototype.setFade = function() {
var e, t = this;
t.$slides.each(function(o, s) {
e = t.slideWidth * o * -1, !0 === t.options.rtl ? i(s).css({
position: "relative",
right: e,
top: 0,
zIndex: t.options.zIndex - 2,
opacity: 0
}) : i(s).css({
position: "relative",
left: e,
top: 0,
zIndex: t.options.zIndex - 2,
opacity: 0
})
}), t.$slides.eq(t.currentSlide).css({
zIndex: t.options.zIndex - 1,
opacity: 1
})
}, e.prototype.setHeight = function() {
var i = this;
if (1 === i.options.slidesToShow && !0 === i.options.adaptiveHeight && !1 === i.options.vertical) {
var e = i.$slides.eq(i.currentSlide).outerHeight(!0);
i.$list.css("height", e)
}
}, e.prototype.setOption = e.prototype.slickSetOption = function() {
var e, t, o, s, n, r = this,
l = !1;
if ("object" === i.type(arguments[0]) ? (o = arguments[0], l = arguments[1], n = "multiple") : "string" === i.type(arguments[0]) && (o = arguments[0], s = arguments[1], l = arguments[2], "responsive" === arguments[0] && "array" === i.type(arguments[1]) ? n = "responsive" : void 0 !== arguments[1] && (n = "single")), "single" === n) r.options[o] = s;
else if ("multiple" === n) i.each(o, function(i, e) {
r.options[i] = e
});
else if ("responsive" === n)
for (t in s)
if ("array" !== i.type(r.options.responsive)) r.options.responsive = [s[t]];
else {
for (e = r.options.responsive.length - 1; e >= 0;) r.options.responsive[e].breakpoint === s[t].breakpoint && r.options.responsive.splice(e, 1), e--;
r.options.responsive.push(s[t])
}
l && (r.unload(), r.reinit())
}, e.prototype.setPosition = function() {
var i = this;
i.setDimensions(), i.setHeight(), !1 === i.options.fade ? i.setCSS(i.getLeft(i.currentSlide)) : i.setFade(), i.$slider.trigger("setPosition", [i])
}, e.prototype.setProps = function() {
var i = this,
e = document.body.style;
i.positionProp = !0 === i.options.vertical ? "top" : "left", "top" === i.positionProp ? i.$slider.addClass("slick-vertical") : i.$slider.removeClass("slick-vertical"), void 0 === e.WebkitTransition && void 0 === e.MozTransition && void 0 === e.msTransition || !0 === i.options.useCSS && (i.cssTransitions = !0), i.options.fade && ("number" == typeof i.options.zIndex ? i.options.zIndex < 3 && (i.options.zIndex = 3) : i.options.zIndex = i.defaults.zIndex), void 0 !== e.OTransform && (i.animType = "OTransform", i.transformType = "-o-transform", i.transitionType = "OTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.MozTransform && (i.animType = "MozTransform", i.transformType = "-moz-transform", i.transitionType = "MozTransition", void 0 === e.perspectiveProperty && void 0 === e.MozPerspective && (i.animType = !1)), void 0 !== e.webkitTransform && (i.animType = "webkitTransform", i.transformType = "-webkit-transform", i.transitionType = "webkitTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.msTransform && (i.animType = "msTransform", i.transformType = "-ms-transform", i.transitionType = "msTransition", void 0 === e.msTransform && (i.animType = !1)), void 0 !== e.transform && !1 !== i.animType && (i.animType = "transform", i.transformType = "transform", i.transitionType = "transition"), i.transformsEnabled = i.options.useTransform && null !== i.animType && !1 !== i.animType
}, e.prototype.setSlideClasses = function(i) {
var e, t, o, s, n = this;
if (t = n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), n.$slides.eq(i).addClass("slick-current"), !0 === n.options.centerMode) {
var r = n.options.slidesToShow % 2 == 0 ? 1 : 0;
e = Math.floor(n.options.slidesToShow / 2), !0 === n.options.infinite && (i >= e && i <= n.slideCount - 1 - e ? n.$slides.slice(i - e + r, i + e + 1).addClass("slick-active").attr("aria-hidden", "false") : (o = n.options.slidesToShow + i, t.slice(o - e + 1 + r, o + e + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === i ? t.eq(t.length - 1 - n.options.slidesToShow).addClass("slick-center") : i === n.slideCount - 1 && t.eq(n.options.slidesToShow).addClass("slick-center")), n.$slides.eq(i).addClass("slick-center")
} else i >= 0 && i <= n.slideCount - n.options.slidesToShow ? n.$slides.slice(i, i + n.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : t.length <= n.options.slidesToShow ? t.addClass("slick-active").attr("aria-hidden", "false") : (s = n.slideCount % n.options.slidesToShow, o = !0 === n.options.infinite ? n.options.slidesToShow + i : i, n.options.slidesToShow == n.options.slidesToScroll && n.slideCount - i < n.options.slidesToShow ? t.slice(o - (n.options.slidesToShow - s), o + s).addClass("slick-active").attr("aria-hidden", "false") : t.slice(o, o + n.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false"));
"ondemand" !== n.options.lazyLoad && "anticipated" !== n.options.lazyLoad || n.lazyLoad()
}, e.prototype.setupInfinite = function() {
var e, t, o, s = this;
if (!0 === s.options.fade && (s.options.centerMode = !1), !0 === s.options.infinite && !1 === s.options.fade && (t = null, s.slideCount > s.options.slidesToShow)) {
for (o = !0 === s.options.centerMode ? s.options.slidesToShow + 1 : s.options.slidesToShow, e = s.slideCount; e > s.slideCount - o; e -= 1) t = e - 1, i(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t - s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");
for (e = 0; e < o + s.slideCount; e += 1) t = e, i(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t + s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");
s.$slideTrack.find(".slick-cloned").find("[id]").each(function() {
i(this).attr("id", "")
})
}
}, e.prototype.interrupt = function(i) {
var e = this;
i || e.autoPlay(), e.interrupted = i
}, e.prototype.selectHandler = function(e) {
var t = this,
o = i(e.target).is(".slick-slide") ? i(e.target) : i(e.target).parents(".slick-slide"),
s = parseInt(o.attr("data-slick-index"));
s || (s = 0), t.slideCount <= t.options.slidesToShow ? t.slideHandler(s, !1, !0) : t.slideHandler(s)
}, e.prototype.slideHandler = function(i, e, t) {
var o, s, n, r, l, d = null,
a = this;
if (e = e || !1, !(!0 === a.animating && !0 === a.options.waitForAnimate || !0 === a.options.fade && a.currentSlide === i))
if (!1 === e && a.asNavFor(i), o = i, d = a.getLeft(o), r = a.getLeft(a.currentSlide), a.currentLeft = null === a.swipeLeft ? r : a.swipeLeft, !1 === a.options.infinite && !1 === a.options.centerMode && (i < 0 || i > a.getDotCount() * a.options.slidesToScroll)) !1 === a.options.fade && (o = a.currentSlide, !0 !== t ? a.animateSlide(r, function() {
a.postSlide(o)
}) : a.postSlide(o));
else if (!1 === a.options.infinite && !0 === a.options.centerMode && (i < 0 || i > a.slideCount - a.options.slidesToScroll)) !1 === a.options.fade && (o = a.currentSlide, !0 !== t ? a.animateSlide(r, function() {
a.postSlide(o)
}) : a.postSlide(o));
else {
if (a.options.autoplay && clearInterval(a.autoPlayTimer), s = o < 0 ? a.slideCount % a.options.slidesToScroll != 0 ? a.slideCount - a.slideCount % a.options.slidesToScroll : a.slideCount + o : o >= a.slideCount ? a.slideCount % a.options.slidesToScroll != 0 ? 0 : o - a.slideCount : o, a.animating = !0, a.$slider.trigger("beforeChange", [a, a.currentSlide, s]), n = a.currentSlide, a.currentSlide = s, a.setSlideClasses(a.currentSlide), a.options.asNavFor && (l = (l = a.getNavTarget()).slick("getSlick")).slideCount <= l.options.slidesToShow && l.setSlideClasses(a.currentSlide), a.updateDots(), a.updateArrows(), !0 === a.options.fade) return !0 !== t ? (a.fadeSlideOut(n), a.fadeSlide(s, function() {
a.postSlide(s)
})) : a.postSlide(s), void a.animateHeight();
!0 !== t ? a.animateSlide(d, function() {
a.postSlide(s)
}) : a.postSlide(s)
}
}, e.prototype.startLoad = function() {
var i = this;
!0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.hide(), i.$nextArrow.hide()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.hide(), i.$slider.addClass("slick-loading")
}, e.prototype.swipeDirection = function() {
var i, e, t, o, s = this;
return i = s.touchObject.startX - s.touchObject.curX, e = s.touchObject.startY - s.touchObject.curY, t = Math.atan2(e, i), (o = Math.round(180 * t / Math.PI)) < 0 && (o = 360 - Math.abs(o)), o <= 45 && o >= 0 ? !1 === s.options.rtl ? "left" : "right" : o <= 360 && o >= 315 ? !1 === s.options.rtl ? "left" : "right" : o >= 135 && o <= 225 ? !1 === s.options.rtl ? "right" : "left" : !0 === s.options.verticalSwiping ? o >= 35 && o <= 135 ? "down" : "up" : "vertical"
}, e.prototype.swipeEnd = function(i) {
var e, t, o = this;
if (o.dragging = !1, o.swiping = !1, o.scrolling) return o.scrolling = !1, !1;
if (o.interrupted = !1, o.shouldClick = !(o.touchObject.swipeLength > 10), void 0 === o.touchObject.curX) return !1;
if (!0 === o.touchObject.edgeHit && o.$slider.trigger("edge", [o, o.swipeDirection()]), o.touchObject.swipeLength >= o.touchObject.minSwipe) {
switch (t = o.swipeDirection()) {
case "left":
case "down":
e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide + o.getSlideCount()) : o.currentSlide + o.getSlideCount(), o.currentDirection = 0;
break;
case "right":
case "up":
e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide - o.getSlideCount()) : o.currentSlide - o.getSlideCount(), o.currentDirection = 1
}
"vertical" != t && (o.slideHandler(e), o.touchObject = {}, o.$slider.trigger("swipe", [o, t]))
} else o.touchObject.startX !== o.touchObject.curX && (o.slideHandler(o.currentSlide), o.touchObject = {})
}, e.prototype.swipeHandler = function(i) {
var e = this;
if (!(!1 === e.options.swipe || "ontouchend" in document && !1 === e.options.swipe || !1 === e.options.draggable && -1 !== i.type.indexOf("mouse"))) switch (e.touchObject.fingerCount = i.originalEvent && void 0 !== i.originalEvent.touches ? i.originalEvent.touches.length : 1, e.touchObject.minSwipe = e.listWidth / e.options.touchThreshold, !0 === e.options.verticalSwiping && (e.touchObject.minSwipe = e.listHeight / e.options.touchThreshold), i.data.action) {
case "start":
e.swipeStart(i);
break;
case "move":
e.swipeMove(i);
break;
case "end":
e.swipeEnd(i)
}
}, e.prototype.swipeMove = function(i) {
var e, t, o, s, n, r, l = this;
return n = void 0 !== i.originalEvent ? i.originalEvent.touches : null, !(!l.dragging || l.scrolling || n && 1 !== n.length) && (e = l.getLeft(l.currentSlide), l.touchObject.curX = void 0 !== n ? n[0].pageX : i.clientX, l.touchObject.curY = void 0 !== n ? n[0].pageY : i.clientY, l.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(l.touchObject.curX - l.touchObject.startX, 2))), r = Math.round(Math.sqrt(Math.pow(l.touchObject.curY - l.touchObject.startY, 2))), !l.options.verticalSwiping && !l.swiping && r > 4 ? (l.scrolling = !0, !1) : (!0 === l.options.verticalSwiping && (l.touchObject.swipeLength = r), t = l.swipeDirection(), void 0 !== i.originalEvent && l.touchObject.swipeLength > 4 && (l.swiping = !0, i.preventDefault()), s = (!1 === l.options.rtl ? 1 : -1) * (l.touchObject.curX > l.touchObject.startX ? 1 : -1), !0 === l.options.verticalSwiping && (s = l.touchObject.curY > l.touchObject.startY ? 1 : -1), o = l.touchObject.swipeLength, l.touchObject.edgeHit = !1, !1 === l.options.infinite && (0 === l.currentSlide && "right" === t || l.currentSlide >= l.getDotCount() && "left" === t) && (o = l.touchObject.swipeLength * l.options.edgeFriction, l.touchObject.edgeHit = !0), !1 === l.options.vertical ? l.swipeLeft = e + o * s : l.swipeLeft = e + o * (l.$list.height() / l.listWidth) * s, !0 === l.options.verticalSwiping && (l.swipeLeft = e + o * s), !0 !== l.options.fade && !1 !== l.options.touchMove && (!0 === l.animating ? (l.swipeLeft = null, !1) : void l.setCSS(l.swipeLeft))))
}, e.prototype.swipeStart = function(i) {
var e, t = this;
if (t.interrupted = !0, 1 !== t.touchObject.fingerCount || t.slideCount <= t.options.slidesToShow) return t.touchObject = {}, !1;
void 0 !== i.originalEvent && void 0 !== i.originalEvent.touches && (e = i.originalEvent.touches[0]), t.touchObject.startX = t.touchObject.curX = void 0 !== e ? e.pageX : i.clientX, t.touchObject.startY = t.touchObject.curY = void 0 !== e ? e.pageY : i.clientY, t.dragging = !0
}, e.prototype.unfilterSlides = e.prototype.slickUnfilter = function() {
var i = this;
null !== i.$slidesCache && (i.unload(), i.$slideTrack.children(this.options.slide).detach(), i.$slidesCache.appendTo(i.$slideTrack), i.reinit())
}, e.prototype.unload = function() {
var e = this;
i(".slick-cloned", e.$slider).remove(), e.$dots && e.$dots.remove(), e.$prevArrow && e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.remove(), e.$nextArrow && e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.remove(), e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "")
}, e.prototype.unslick = function(i) {
var e = this;
e.$slider.trigger("unslick", [e, i]), e.destroy()
}, e.prototype.updateArrows = function() {
var i = this;
Math.floor(i.options.slidesToShow / 2), !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && !i.options.infinite && (i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === i.currentSlide ? (i.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : i.currentSlide >= i.slideCount - i.options.slidesToShow && !1 === i.options.centerMode ? (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : i.currentSlide >= i.slideCount - 1 && !0 === i.options.centerMode && (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")))
}, e.prototype.updateDots = function() {
var i = this;
null !== i.$dots && (i.$dots.find("li").removeClass("slick-active").end(), i.$dots.find("li").eq(Math.floor(i.currentSlide / i.options.slidesToScroll)).addClass("slick-active"))
}, e.prototype.visibility = function() {
var i = this;
i.options.autoplay && (document[i.hidden] ? i.interrupted = !0 : i.interrupted = !1)
}, i.fn.slick = function() {
var i, t, o = this,
s = arguments[0],
n = Array.prototype.slice.call(arguments, 1),
r = o.length;
for (i = 0; i < r; i++)
if ("object" == typeof s || void 0 === s ? o[i].slick = new e(o[i], s) : t = o[i].slick[s].apply(o[i].slick, n), void 0 !== t) return t;
return o
}
});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long