diff --git a/functions.php b/functions.php index 0436a54..b5dfcdb 100644 --- a/functions.php +++ b/functions.php @@ -183,7 +183,6 @@ if ( ! function_exists( 'curver_scripts' ) ) { function curver_scripts() { wp_enqueue_script( 'curver-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false ); wp_enqueue_script( 'curver-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true ); - wp_enqueue_script( 'curver-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'curver-jq-sticky-anything', get_template_directory_uri() . '/js/jq-sticky-anything.min.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'curver-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true ); if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } diff --git a/js/owl.carousel.js b/js/owl.carousel.js deleted file mode 100644 index a5d9ac1..0000000 --- a/js/owl.carousel.js +++ /dev/null @@ -1,1512 +0,0 @@ -/* - * jQuery OwlCarousel v1.3.3 - * - * Copyright (c) 2013 Bartosz Wojciechowski - * http://www.owlgraphic.com/owlcarousel/ - * - * Licensed under MIT - * - */ - -/*JS Lint helpers: */ -/*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */ -/*jslint nomen: true, continue:true */ - -if (typeof Object.create !== "function") { - Object.create = function (obj) { - function F() {} - F.prototype = obj; - return new F(); - }; -} -(function ($, window, document) { - - var Carousel = { - init : function (options, el) { - var base = this; - - base.$elem = $(el); - base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options); - - base.userOptions = options; - base.loadContent(); - }, - - loadContent : function () { - var base = this, url; - - function getData(data) { - var i, content = ""; - if (typeof base.options.jsonSuccess === "function") { - base.options.jsonSuccess.apply(this, [data]); - } else { - for (i in data.owl) { - if (data.owl.hasOwnProperty(i)) { - content += data.owl[i].item; - } - } - base.$elem.html(content); - } - base.logIn(); - } - - if (typeof base.options.beforeInit === "function") { - base.options.beforeInit.apply(this, [base.$elem]); - } - - if (typeof base.options.jsonPath === "string") { - url = base.options.jsonPath; - $.getJSON(url, getData); - } else { - base.logIn(); - } - }, - - logIn : function () { - var base = this; - - base.$elem.data("owl-originalStyles", base.$elem.attr("style")); - base.$elem.data("owl-originalClasses", base.$elem.attr("class")); - - base.$elem.css({opacity: 0}); - base.orignalItems = base.options.items; - base.checkBrowser(); - base.wrapperWidth = 0; - base.checkVisible = null; - base.setVars(); - }, - - setVars : function () { - var base = this; - if (base.$elem.children().length === 0) {return false; } - base.baseClass(); - base.eventTypes(); - base.$userItems = base.$elem.children(); - base.itemsAmount = base.$userItems.length; - base.wrapItems(); - base.$owlItems = base.$elem.find(".owl-item"); - base.$owlWrapper = base.$elem.find(".owl-wrapper"); - base.playDirection = "next"; - base.prevItem = 0; - base.prevArr = [0]; - base.currentItem = 0; - base.customEvents(); - base.onStartup(); - }, - - onStartup : function () { - var base = this; - base.updateItems(); - base.calculateAll(); - base.buildControls(); - base.updateControls(); - base.response(); - base.moveEvents(); - base.stopOnHover(); - base.owlStatus(); - - if (base.options.transitionStyle !== false) { - base.transitionTypes(base.options.transitionStyle); - } - if (base.options.autoPlay === true) { - base.options.autoPlay = 5000; - } - base.play(); - - base.$elem.find(".owl-wrapper").css("display", "block"); - - if (!base.$elem.is(":visible")) { - base.watchVisibility(); - } else { - base.$elem.css("opacity", 1); - } - base.onstartup = false; - base.eachMoveUpdate(); - if (typeof base.options.afterInit === "function") { - base.options.afterInit.apply(this, [base.$elem]); - } - }, - - eachMoveUpdate : function () { - var base = this; - - if (base.options.lazyLoad === true) { - base.lazyLoad(); - } - if (base.options.autoHeight === true) { - base.autoHeight(); - } - base.onVisibleItems(); - - if (typeof base.options.afterAction === "function") { - base.options.afterAction.apply(this, [base.$elem]); - } - }, - - updateVars : function () { - var base = this; - if (typeof base.options.beforeUpdate === "function") { - base.options.beforeUpdate.apply(this, [base.$elem]); - } - base.watchVisibility(); - base.updateItems(); - base.calculateAll(); - base.updatePosition(); - base.updateControls(); - base.eachMoveUpdate(); - if (typeof base.options.afterUpdate === "function") { - base.options.afterUpdate.apply(this, [base.$elem]); - } - }, - - reload : function () { - var base = this; - window.setTimeout(function () { - base.updateVars(); - }, 0); - }, - - watchVisibility : function () { - var base = this; - - if (base.$elem.is(":visible") === false) { - base.$elem.css({opacity: 0}); - window.clearInterval(base.autoPlayInterval); - window.clearInterval(base.checkVisible); - } else { - return false; - } - base.checkVisible = window.setInterval(function () { - if (base.$elem.is(":visible")) { - base.reload(); - base.$elem.animate({opacity: 1}, 200); - window.clearInterval(base.checkVisible); - } - }, 500); - }, - - wrapItems : function () { - var base = this; - base.$userItems.wrapAll("
").wrap("
"); - base.$elem.find(".owl-wrapper").wrap("
"); - base.wrapperOuter = base.$elem.find(".owl-wrapper-outer"); - base.$elem.css("display", "block"); - }, - - baseClass : function () { - var base = this, - hasBaseClass = base.$elem.hasClass(base.options.baseClass), - hasThemeClass = base.$elem.hasClass(base.options.theme); - - if (!hasBaseClass) { - base.$elem.addClass(base.options.baseClass); - } - - if (!hasThemeClass) { - base.$elem.addClass(base.options.theme); - } - }, - - updateItems : function () { - var base = this, width, i; - - if (base.options.responsive === false) { - return false; - } - if (base.options.singleItem === true) { - base.options.items = base.orignalItems = 1; - base.options.itemsCustom = false; - base.options.itemsDesktop = false; - base.options.itemsDesktopSmall = false; - base.options.itemsTablet = false; - base.options.itemsTabletSmall = false; - base.options.itemsMobile = false; - return false; - } - - width = $(base.options.responsiveBaseWidth).width(); - - if (width > (base.options.itemsDesktop[0] || base.orignalItems)) { - base.options.items = base.orignalItems; - } - if (base.options.itemsCustom !== false) { - //Reorder array by screen size - base.options.itemsCustom.sort(function (a, b) {return a[0] - b[0]; }); - - for (i = 0; i < base.options.itemsCustom.length; i += 1) { - if (base.options.itemsCustom[i][0] <= width) { - base.options.items = base.options.itemsCustom[i][1]; - } - } - - } else { - - if (width <= base.options.itemsDesktop[0] && base.options.itemsDesktop !== false) { - base.options.items = base.options.itemsDesktop[1]; - } - - if (width <= base.options.itemsDesktopSmall[0] && base.options.itemsDesktopSmall !== false) { - base.options.items = base.options.itemsDesktopSmall[1]; - } - - if (width <= base.options.itemsTablet[0] && base.options.itemsTablet !== false) { - base.options.items = base.options.itemsTablet[1]; - } - - if (width <= base.options.itemsTabletSmall[0] && base.options.itemsTabletSmall !== false) { - base.options.items = base.options.itemsTabletSmall[1]; - } - - if (width <= base.options.itemsMobile[0] && base.options.itemsMobile !== false) { - base.options.items = base.options.itemsMobile[1]; - } - } - - //if number of items is less than declared - if (base.options.items > base.itemsAmount && base.options.itemsScaleUp === true) { - base.options.items = base.itemsAmount; - } - }, - - response : function () { - var base = this, - smallDelay, - lastWindowWidth; - - if (base.options.responsive !== true) { - return false; - } - lastWindowWidth = $(window).width(); - - base.resizer = function () { - if ($(window).width() !== lastWindowWidth) { - if (base.options.autoPlay !== false) { - window.clearInterval(base.autoPlayInterval); - } - window.clearTimeout(smallDelay); - smallDelay = window.setTimeout(function () { - lastWindowWidth = $(window).width(); - base.updateVars(); - }, base.options.responsiveRefreshRate); - } - }; - $(window).resize(base.resizer); - }, - - updatePosition : function () { - var base = this; - base.jumpTo(base.currentItem); - if (base.options.autoPlay !== false) { - base.checkAp(); - } - }, - - appendItemsSizes : function () { - var base = this, - roundPages = 0, - lastItem = base.itemsAmount - base.options.items; - - base.$owlItems.each(function (index) { - var $this = $(this); - $this - .css({"width": base.itemWidth}) - .data("owl-item", Number(index)); - - if (index % base.options.items === 0 || index === lastItem) { - if (!(index > lastItem)) { - roundPages += 1; - } - } - $this.data("owl-roundPages", roundPages); - }); - }, - - appendWrapperSizes : function () { - var base = this, - width = base.$owlItems.length * base.itemWidth; - - base.$owlWrapper.css({ - "width": width * 2, - "left": 0 - }); - base.appendItemsSizes(); - }, - - calculateAll : function () { - var base = this; - base.calculateWidth(); - base.appendWrapperSizes(); - base.loops(); - base.max(); - }, - - calculateWidth : function () { - var base = this; - base.itemWidth = Math.round(base.$elem.width() / base.options.items); - }, - - max : function () { - var base = this, - maximum = ((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1; - if (base.options.items > base.itemsAmount) { - base.maximumItem = 0; - maximum = 0; - base.maximumPixels = 0; - } else { - base.maximumItem = base.itemsAmount - base.options.items; - base.maximumPixels = maximum; - } - return maximum; - }, - - min : function () { - return 0; - }, - - loops : function () { - var base = this, - prev = 0, - elWidth = 0, - i, - item, - roundPageNum; - - base.positionsInArray = [0]; - base.pagesInArray = []; - - for (i = 0; i < base.itemsAmount; i += 1) { - elWidth += base.itemWidth; - base.positionsInArray.push(-elWidth); - - if (base.options.scrollPerPage === true) { - item = $(base.$owlItems[i]); - roundPageNum = item.data("owl-roundPages"); - if (roundPageNum !== prev) { - base.pagesInArray[prev] = base.positionsInArray[i]; - prev = roundPageNum; - } - } - } - }, - - buildControls : function () { - var base = this; - if (base.options.navigation === true || base.options.pagination === true) { - base.owlControls = $("
").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem); - } - if (base.options.pagination === true) { - base.buildPagination(); - } - if (base.options.navigation === true) { - base.buildButtons(); - } - }, - - buildButtons : function () { - var base = this, - buttonsWrapper = $("
"); - base.owlControls.append(buttonsWrapper); - - base.buttonPrev = $("
", { - "class" : "owl-prev", - "html" : base.options.navigationText[0] || "" - }); - - base.buttonNext = $("
", { - "class" : "owl-next", - "html" : base.options.navigationText[1] || "" - }); - - buttonsWrapper - .append(base.buttonPrev) - .append(base.buttonNext); - - buttonsWrapper.on("touchstart.owlControls mousedown.owlControls", "div[class^=\"owl\"]", function (event) { - event.preventDefault(); - }); - - buttonsWrapper.on("touchend.owlControls mouseup.owlControls", "div[class^=\"owl\"]", function (event) { - event.preventDefault(); - if ($(this).hasClass("owl-next")) { - base.next(); - } else { - base.prev(); - } - }); - }, - - buildPagination : function () { - var base = this; - - base.paginationWrapper = $("
"); - base.owlControls.append(base.paginationWrapper); - - base.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function (event) { - event.preventDefault(); - if (Number($(this).data("owl-page")) !== base.currentItem) { - base.goTo(Number($(this).data("owl-page")), true); - } - }); - }, - - updatePagination : function () { - var base = this, - counter, - lastPage, - lastItem, - i, - paginationButton, - paginationButtonInner; - - if (base.options.pagination === false) { - return false; - } - - base.paginationWrapper.html(""); - - counter = 0; - lastPage = base.itemsAmount - base.itemsAmount % base.options.items; - - for (i = 0; i < base.itemsAmount; i += 1) { - if (i % base.options.items === 0) { - counter += 1; - if (lastPage === i) { - lastItem = base.itemsAmount - base.options.items; - } - paginationButton = $("
", { - "class" : "owl-page" - }); - paginationButtonInner = $("", { - "text": base.options.paginationNumbers === true ? counter : "", - "class": base.options.paginationNumbers === true ? "owl-numbers" : "" - }); - paginationButton.append(paginationButtonInner); - - paginationButton.data("owl-page", lastPage === i ? lastItem : i); - paginationButton.data("owl-roundPages", counter); - - base.paginationWrapper.append(paginationButton); - } - } - base.checkPagination(); - }, - checkPagination : function () { - var base = this; - if (base.options.pagination === false) { - return false; - } - base.paginationWrapper.find(".owl-page").each(function () { - if ($(this).data("owl-roundPages") === $(base.$owlItems[base.currentItem]).data("owl-roundPages")) { - base.paginationWrapper - .find(".owl-page") - .removeClass("active"); - $(this).addClass("active"); - } - }); - }, - - checkNavigation : function () { - var base = this; - - if (base.options.navigation === false) { - return false; - } - if (base.options.rewindNav === false) { - if (base.currentItem === 0 && base.maximumItem === 0) { - base.buttonPrev.addClass("disabled"); - base.buttonNext.addClass("disabled"); - } else if (base.currentItem === 0 && base.maximumItem !== 0) { - base.buttonPrev.addClass("disabled"); - base.buttonNext.removeClass("disabled"); - } else if (base.currentItem === base.maximumItem) { - base.buttonPrev.removeClass("disabled"); - base.buttonNext.addClass("disabled"); - } else if (base.currentItem !== 0 && base.currentItem !== base.maximumItem) { - base.buttonPrev.removeClass("disabled"); - base.buttonNext.removeClass("disabled"); - } - } - }, - - updateControls : function () { - var base = this; - base.updatePagination(); - base.checkNavigation(); - if (base.owlControls) { - if (base.options.items >= base.itemsAmount) { - base.owlControls.hide(); - } else { - base.owlControls.show(); - } - } - }, - - destroyControls : function () { - var base = this; - if (base.owlControls) { - base.owlControls.remove(); - } - }, - - next : function (speed) { - var base = this; - - if (base.isTransition) { - return false; - } - - base.currentItem += base.options.scrollPerPage === true ? base.options.items : 1; - if (base.currentItem > base.maximumItem + (base.options.scrollPerPage === true ? (base.options.items - 1) : 0)) { - if (base.options.rewindNav === true) { - base.currentItem = 0; - speed = "rewind"; - } else { - base.currentItem = base.maximumItem; - return false; - } - } - base.goTo(base.currentItem, speed); - }, - - prev : function (speed) { - var base = this; - - if (base.isTransition) { - return false; - } - - if (base.options.scrollPerPage === true && base.currentItem > 0 && base.currentItem < base.options.items) { - base.currentItem = 0; - } else { - base.currentItem -= base.options.scrollPerPage === true ? base.options.items : 1; - } - if (base.currentItem < 0) { - if (base.options.rewindNav === true) { - base.currentItem = base.maximumItem; - speed = "rewind"; - } else { - base.currentItem = 0; - return false; - } - } - base.goTo(base.currentItem, speed); - }, - - goTo : function (position, speed, drag) { - var base = this, - goToPixel; - - if (base.isTransition) { - return false; - } - if (typeof base.options.beforeMove === "function") { - base.options.beforeMove.apply(this, [base.$elem]); - } - if (position >= base.maximumItem) { - position = base.maximumItem; - } else if (position <= 0) { - position = 0; - } - - base.currentItem = base.owl.currentItem = position; - if (base.options.transitionStyle !== false && drag !== "drag" && base.options.items === 1 && base.browser.support3d === true) { - base.swapSpeed(0); - if (base.browser.support3d === true) { - base.transition3d(base.positionsInArray[position]); - } else { - base.css2slide(base.positionsInArray[position], 1); - } - base.afterGo(); - base.singleItemTransition(); - return false; - } - goToPixel = base.positionsInArray[position]; - - if (base.browser.support3d === true) { - base.isCss3Finish = false; - - if (speed === true) { - base.swapSpeed("paginationSpeed"); - window.setTimeout(function () { - base.isCss3Finish = true; - }, base.options.paginationSpeed); - - } else if (speed === "rewind") { - base.swapSpeed(base.options.rewindSpeed); - window.setTimeout(function () { - base.isCss3Finish = true; - }, base.options.rewindSpeed); - - } else { - base.swapSpeed("slideSpeed"); - window.setTimeout(function () { - base.isCss3Finish = true; - }, base.options.slideSpeed); - } - base.transition3d(goToPixel); - } else { - if (speed === true) { - base.css2slide(goToPixel, base.options.paginationSpeed); - } else if (speed === "rewind") { - base.css2slide(goToPixel, base.options.rewindSpeed); - } else { - base.css2slide(goToPixel, base.options.slideSpeed); - } - } - base.afterGo(); - }, - - jumpTo : function (position) { - var base = this; - if (typeof base.options.beforeMove === "function") { - base.options.beforeMove.apply(this, [base.$elem]); - } - if (position >= base.maximumItem || position === -1) { - position = base.maximumItem; - } else if (position <= 0) { - position = 0; - } - base.swapSpeed(0); - if (base.browser.support3d === true) { - base.transition3d(base.positionsInArray[position]); - } else { - base.css2slide(base.positionsInArray[position], 1); - } - base.currentItem = base.owl.currentItem = position; - base.afterGo(); - }, - - afterGo : function () { - var base = this; - - base.prevArr.push(base.currentItem); - base.prevItem = base.owl.prevItem = base.prevArr[base.prevArr.length - 2]; - base.prevArr.shift(0); - - if (base.prevItem !== base.currentItem) { - base.checkPagination(); - base.checkNavigation(); - base.eachMoveUpdate(); - - if (base.options.autoPlay !== false) { - base.checkAp(); - } - } - if (typeof base.options.afterMove === "function" && base.prevItem !== base.currentItem) { - base.options.afterMove.apply(this, [base.$elem]); - } - }, - - stop : function () { - var base = this; - base.apStatus = "stop"; - window.clearInterval(base.autoPlayInterval); - }, - - checkAp : function () { - var base = this; - if (base.apStatus !== "stop") { - base.play(); - } - }, - - play : function () { - var base = this; - base.apStatus = "play"; - if (base.options.autoPlay === false) { - return false; - } - window.clearInterval(base.autoPlayInterval); - base.autoPlayInterval = window.setInterval(function () { - base.next(true); - }, base.options.autoPlay); - }, - - swapSpeed : function (action) { - var base = this; - if (action === "slideSpeed") { - base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed)); - } else if (action === "paginationSpeed") { - base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed)); - } else if (typeof action !== "string") { - base.$owlWrapper.css(base.addCssSpeed(action)); - } - }, - - addCssSpeed : function (speed) { - return { - "-webkit-transition": "all " + speed + "ms ease", - "-moz-transition": "all " + speed + "ms ease", - "-o-transition": "all " + speed + "ms ease", - "transition": "all " + speed + "ms ease" - }; - }, - - removeTransition : function () { - return { - "-webkit-transition": "", - "-moz-transition": "", - "-o-transition": "", - "transition": "" - }; - }, - - doTranslate : function (pixels) { - return { - "-webkit-transform": "translate3d(" + pixels + "px, 0px, 0px)", - "-moz-transform": "translate3d(" + pixels + "px, 0px, 0px)", - "-o-transform": "translate3d(" + pixels + "px, 0px, 0px)", - "-ms-transform": "translate3d(" + pixels + "px, 0px, 0px)", - "transform": "translate3d(" + pixels + "px, 0px,0px)" - }; - }, - - transition3d : function (value) { - var base = this; - base.$owlWrapper.css(base.doTranslate(value)); - }, - - css2move : function (value) { - var base = this; - base.$owlWrapper.css({"left" : value}); - }, - - css2slide : function (value, speed) { - var base = this; - - base.isCssFinish = false; - base.$owlWrapper.stop(true, true).animate({ - "left" : value - }, { - duration : speed || base.options.slideSpeed, - complete : function () { - base.isCssFinish = true; - } - }); - }, - - checkBrowser : function () { - var base = this, - translate3D = "translate3d(0px, 0px, 0px)", - tempElem = document.createElement("div"), - regex, - asSupport, - support3d, - isTouch; - - tempElem.style.cssText = " -moz-transform:" + translate3D + - "; -ms-transform:" + translate3D + - "; -o-transform:" + translate3D + - "; -webkit-transform:" + translate3D + - "; transform:" + translate3D; - regex = /translate3d\(0px, 0px, 0px\)/g; - asSupport = tempElem.style.cssText.match(regex); - support3d = (asSupport !== null && asSupport.length === 1); - - isTouch = "ontouchstart" in window || window.navigator.msMaxTouchPoints; - - base.browser = { - "support3d" : support3d, - "isTouch" : isTouch - }; - }, - - moveEvents : function () { - var base = this; - if (base.options.mouseDrag !== false || base.options.touchDrag !== false) { - base.gestures(); - base.disabledEvents(); - } - }, - - eventTypes : function () { - var base = this, - types = ["s", "e", "x"]; - - base.ev_types = {}; - - if (base.options.mouseDrag === true && base.options.touchDrag === true) { - types = [ - "touchstart.owl mousedown.owl", - "touchmove.owl mousemove.owl", - "touchend.owl touchcancel.owl mouseup.owl" - ]; - } else if (base.options.mouseDrag === false && base.options.touchDrag === true) { - types = [ - "touchstart.owl", - "touchmove.owl", - "touchend.owl touchcancel.owl" - ]; - } else if (base.options.mouseDrag === true && base.options.touchDrag === false) { - types = [ - "mousedown.owl", - "mousemove.owl", - "mouseup.owl" - ]; - } - - base.ev_types.start = types[0]; - base.ev_types.move = types[1]; - base.ev_types.end = types[2]; - }, - - disabledEvents : function () { - var base = this; - base.$elem.on("dragstart.owl", function (event) { event.preventDefault(); }); - base.$elem.on("mousedown.disableTextSelect", function (e) { - return $(e.target).is('input, textarea, select, option'); - }); - }, - - gestures : function () { - /*jslint unparam: true*/ - var base = this, - locals = { - offsetX : 0, - offsetY : 0, - baseElWidth : 0, - relativePos : 0, - position: null, - minSwipe : null, - maxSwipe: null, - sliding : null, - dargging: null, - targetElement : null - }; - - base.isCssFinish = true; - - function getTouches(event) { - if (event.touches !== undefined) { - return { - x : event.touches[0].pageX, - y : event.touches[0].pageY - }; - } - - if (event.touches === undefined) { - if (event.pageX !== undefined) { - return { - x : event.pageX, - y : event.pageY - }; - } - if (event.pageX === undefined) { - return { - x : event.clientX, - y : event.clientY - }; - } - } - } - - function swapEvents(type) { - if (type === "on") { - $(document).on(base.ev_types.move, dragMove); - $(document).on(base.ev_types.end, dragEnd); - } else if (type === "off") { - $(document).off(base.ev_types.move); - $(document).off(base.ev_types.end); - } - } - - function dragStart(event) { - var ev = event.originalEvent || event || window.event, - position; - - if (ev.which === 3) { - return false; - } - if (base.itemsAmount <= base.options.items) { - return; - } - if (base.isCssFinish === false && !base.options.dragBeforeAnimFinish) { - return false; - } - if (base.isCss3Finish === false && !base.options.dragBeforeAnimFinish) { - return false; - } - - if (base.options.autoPlay !== false) { - window.clearInterval(base.autoPlayInterval); - } - - if (base.browser.isTouch !== true && !base.$owlWrapper.hasClass("grabbing")) { - base.$owlWrapper.addClass("grabbing"); - } - - base.newPosX = 0; - base.newRelativeX = 0; - - $(this).css(base.removeTransition()); - - position = $(this).position(); - locals.relativePos = position.left; - - locals.offsetX = getTouches(ev).x - position.left; - locals.offsetY = getTouches(ev).y - position.top; - - swapEvents("on"); - - locals.sliding = false; - locals.targetElement = ev.target || ev.srcElement; - } - - function dragMove(event) { - var ev = event.originalEvent || event || window.event, - minSwipe, - maxSwipe; - - base.newPosX = getTouches(ev).x - locals.offsetX; - base.newPosY = getTouches(ev).y - locals.offsetY; - base.newRelativeX = base.newPosX - locals.relativePos; - - if (typeof base.options.startDragging === "function" && locals.dragging !== true && base.newRelativeX !== 0) { - locals.dragging = true; - base.options.startDragging.apply(base, [base.$elem]); - } - - if ((base.newRelativeX > 8 || base.newRelativeX < -8) && (base.browser.isTouch === true)) { - if (ev.preventDefault !== undefined) { - ev.preventDefault(); - } else { - ev.returnValue = false; - } - locals.sliding = true; - } - - if ((base.newPosY > 10 || base.newPosY < -10) && locals.sliding === false) { - $(document).off("touchmove.owl"); - } - - minSwipe = function () { - return base.newRelativeX / 5; - }; - - maxSwipe = function () { - return base.maximumPixels + base.newRelativeX / 5; - }; - - base.newPosX = Math.max(Math.min(base.newPosX, minSwipe()), maxSwipe()); - if (base.browser.support3d === true) { - base.transition3d(base.newPosX); - } else { - base.css2move(base.newPosX); - } - } - - function dragEnd(event) { - var ev = event.originalEvent || event || window.event, - newPosition, - handlers, - owlStopEvent; - - ev.target = ev.target || ev.srcElement; - - locals.dragging = false; - - if (base.browser.isTouch !== true) { - base.$owlWrapper.removeClass("grabbing"); - } - - if (base.newRelativeX < 0) { - base.dragDirection = base.owl.dragDirection = "left"; - } else { - base.dragDirection = base.owl.dragDirection = "right"; - } - - if (base.newRelativeX !== 0) { - newPosition = base.getNewPosition(); - base.goTo(newPosition, false, "drag"); - if (locals.targetElement === ev.target && base.browser.isTouch !== true) { - $(ev.target).on("click.disable", function (ev) { - ev.stopImmediatePropagation(); - ev.stopPropagation(); - ev.preventDefault(); - $(ev.target).off("click.disable"); - }); - handlers = $._data(ev.target, "events").click; - owlStopEvent = handlers.pop(); - handlers.splice(0, 0, owlStopEvent); - } - } - swapEvents("off"); - } - base.$elem.on(base.ev_types.start, ".owl-wrapper", dragStart); - }, - - getNewPosition : function () { - var base = this, - newPosition = base.closestItem(); - - if (newPosition > base.maximumItem) { - base.currentItem = base.maximumItem; - newPosition = base.maximumItem; - } else if (base.newPosX >= 0) { - newPosition = 0; - base.currentItem = 0; - } - return newPosition; - }, - closestItem : function () { - var base = this, - array = base.options.scrollPerPage === true ? base.pagesInArray : base.positionsInArray, - goal = base.newPosX, - closest = null; - - $.each(array, function (i, v) { - if (goal - (base.itemWidth / 20) > array[i + 1] && goal - (base.itemWidth / 20) < v && base.moveDirection() === "left") { - closest = v; - if (base.options.scrollPerPage === true) { - base.currentItem = $.inArray(closest, base.positionsInArray); - } else { - base.currentItem = i; - } - } else if (goal + (base.itemWidth / 20) < v && goal + (base.itemWidth / 20) > (array[i + 1] || array[i] - base.itemWidth) && base.moveDirection() === "right") { - if (base.options.scrollPerPage === true) { - closest = array[i + 1] || array[array.length - 1]; - base.currentItem = $.inArray(closest, base.positionsInArray); - } else { - closest = array[i + 1]; - base.currentItem = i + 1; - } - } - }); - return base.currentItem; - }, - - moveDirection : function () { - var base = this, - direction; - if (base.newRelativeX < 0) { - direction = "right"; - base.playDirection = "next"; - } else { - direction = "left"; - base.playDirection = "prev"; - } - return direction; - }, - - customEvents : function () { - /*jslint unparam: true*/ - var base = this; - base.$elem.on("owl.next", function () { - base.next(); - }); - base.$elem.on("owl.prev", function () { - base.prev(); - }); - base.$elem.on("owl.play", function (event, speed) { - base.options.autoPlay = speed; - base.play(); - base.hoverStatus = "play"; - }); - base.$elem.on("owl.stop", function () { - base.stop(); - base.hoverStatus = "stop"; - }); - base.$elem.on("owl.goTo", function (event, item) { - base.goTo(item); - }); - base.$elem.on("owl.jumpTo", function (event, item) { - base.jumpTo(item); - }); - }, - - stopOnHover : function () { - var base = this; - if (base.options.stopOnHover === true && base.browser.isTouch !== true && base.options.autoPlay !== false) { - base.$elem.on("mouseover", function () { - base.stop(); - }); - base.$elem.on("mouseout", function () { - if (base.hoverStatus !== "stop") { - base.play(); - } - }); - } - }, - - lazyLoad : function () { - var base = this, - i, - $item, - itemNumber, - $lazyImg, - follow; - - if (base.options.lazyLoad === false) { - return false; - } - for (i = 0; i < base.itemsAmount; i += 1) { - $item = $(base.$owlItems[i]); - - if ($item.data("owl-loaded") === "loaded") { - continue; - } - - itemNumber = $item.data("owl-item"); - $lazyImg = $item.find(".lazyOwl"); - - if (typeof $lazyImg.data("src") !== "string") { - $item.data("owl-loaded", "loaded"); - continue; - } - if ($item.data("owl-loaded") === undefined) { - $lazyImg.hide(); - $item.addClass("loading").data("owl-loaded", "checked"); - } - if (base.options.lazyFollow === true) { - follow = itemNumber >= base.currentItem; - } else { - follow = true; - } - if (follow && itemNumber < base.currentItem + base.options.items && $lazyImg.length) { - base.lazyPreload($item, $lazyImg); - } - } - }, - - lazyPreload : function ($item, $lazyImg) { - var base = this, - iterations = 0, - isBackgroundImg; - - if ($lazyImg.prop("tagName") === "DIV") { - $lazyImg.css("background-image", "url(" + $lazyImg.data("src") + ")"); - isBackgroundImg = true; - } else { - $lazyImg[0].src = $lazyImg.data("src"); - } - - function showImage() { - $item.data("owl-loaded", "loaded").removeClass("loading"); - $lazyImg.removeAttr("data-src"); - if (base.options.lazyEffect === "fade") { - $lazyImg.fadeIn(400); - } else { - $lazyImg.show(); - } - if (typeof base.options.afterLazyLoad === "function") { - base.options.afterLazyLoad.apply(this, [base.$elem]); - } - } - - function checkLazyImage() { - iterations += 1; - if (base.completeImg($lazyImg.get(0)) || isBackgroundImg === true) { - showImage(); - } else if (iterations <= 100) {//if image loads in less than 10 seconds - window.setTimeout(checkLazyImage, 100); - } else { - showImage(); - } - } - - checkLazyImage(); - }, - - autoHeight : function () { - var base = this, - $currentimg = $(base.$owlItems[base.currentItem]).find("img"), - iterations; - - function addHeight() { - var $currentItem = $(base.$owlItems[base.currentItem]).height(); - base.wrapperOuter.css("height", $currentItem + "px"); - if (!base.wrapperOuter.hasClass("autoHeight")) { - window.setTimeout(function () { - base.wrapperOuter.addClass("autoHeight"); - }, 0); - } - } - - function checkImage() { - iterations += 1; - if (base.completeImg($currentimg.get(0))) { - addHeight(); - } else if (iterations <= 100) { //if image loads in less than 10 seconds - window.setTimeout(checkImage, 100); - } else { - base.wrapperOuter.css("height", ""); //Else remove height attribute - } - } - - if ($currentimg.get(0) !== undefined) { - iterations = 0; - checkImage(); - } else { - addHeight(); - } - }, - - completeImg : function (img) { - var naturalWidthType; - - if (!img.complete) { - return false; - } - naturalWidthType = typeof img.naturalWidth; - if (naturalWidthType !== "undefined" && img.naturalWidth === 0) { - return false; - } - return true; - }, - - onVisibleItems : function () { - var base = this, - i; - - if (base.options.addClassActive === true) { - base.$owlItems.removeClass("active"); - } - base.visibleItems = []; - for (i = base.currentItem; i < base.currentItem + base.options.items; i += 1) { - base.visibleItems.push(i); - - if (base.options.addClassActive === true) { - $(base.$owlItems[i]).addClass("active"); - } - } - base.owl.visibleItems = base.visibleItems; - }, - - transitionTypes : function (className) { - var base = this; - //Currently available: "fade", "backSlide", "goDown", "fadeUp" - base.outClass = "owl-" + className + "-out"; - base.inClass = "owl-" + className + "-in"; - }, - - singleItemTransition : function () { - var base = this, - outClass = base.outClass, - inClass = base.inClass, - $currentItem = base.$owlItems.eq(base.currentItem), - $prevItem = base.$owlItems.eq(base.prevItem), - prevPos = Math.abs(base.positionsInArray[base.currentItem]) + base.positionsInArray[base.prevItem], - origin = Math.abs(base.positionsInArray[base.currentItem]) + base.itemWidth / 2, - animEnd = 'webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend'; - - base.isTransition = true; - - base.$owlWrapper - .addClass('owl-origin') - .css({ - "-webkit-transform-origin" : origin + "px", - "-moz-perspective-origin" : origin + "px", - "perspective-origin" : origin + "px" - }); - function transStyles(prevPos) { - return { - "position" : "relative", - "left" : prevPos + "px" - }; - } - - $prevItem - .css(transStyles(prevPos, 10)) - .addClass(outClass) - .on(animEnd, function () { - base.endPrev = true; - $prevItem.off(animEnd); - base.clearTransStyle($prevItem, outClass); - }); - - $currentItem - .addClass(inClass) - .on(animEnd, function () { - base.endCurrent = true; - $currentItem.off(animEnd); - base.clearTransStyle($currentItem, inClass); - }); - }, - - clearTransStyle : function (item, classToRemove) { - var base = this; - item.css({ - "position" : "", - "left" : "" - }).removeClass(classToRemove); - - if (base.endPrev && base.endCurrent) { - base.$owlWrapper.removeClass('owl-origin'); - base.endPrev = false; - base.endCurrent = false; - base.isTransition = false; - } - }, - - owlStatus : function () { - var base = this; - base.owl = { - "userOptions" : base.userOptions, - "baseElement" : base.$elem, - "userItems" : base.$userItems, - "owlItems" : base.$owlItems, - "currentItem" : base.currentItem, - "prevItem" : base.prevItem, - "visibleItems" : base.visibleItems, - "isTouch" : base.browser.isTouch, - "browser" : base.browser, - "dragDirection" : base.dragDirection - }; - }, - - clearEvents : function () { - var base = this; - base.$elem.off(".owl owl mousedown.disableTextSelect"); - $(document).off(".owl owl"); - $(window).off("resize", base.resizer); - }, - - unWrap : function () { - var base = this; - if (base.$elem.children().length !== 0) { - base.$owlWrapper.unwrap(); - base.$userItems.unwrap().unwrap(); - if (base.owlControls) { - base.owlControls.remove(); - } - } - base.clearEvents(); - base.$elem - .attr("style", base.$elem.data("owl-originalStyles") || "") - .attr("class", base.$elem.data("owl-originalClasses")); - }, - - destroy : function () { - var base = this; - base.stop(); - window.clearInterval(base.checkVisible); - base.unWrap(); - base.$elem.removeData(); - }, - - reinit : function (newOptions) { - var base = this, - options = $.extend({}, base.userOptions, newOptions); - base.unWrap(); - base.init(options, base.$elem); - }, - - addItem : function (htmlString, targetPosition) { - var base = this, - position; - - if (!htmlString) {return false; } - - if (base.$elem.children().length === 0) { - base.$elem.append(htmlString); - base.setVars(); - return false; - } - base.unWrap(); - if (targetPosition === undefined || targetPosition === -1) { - position = -1; - } else { - position = targetPosition; - } - if (position >= base.$userItems.length || position === -1) { - base.$userItems.eq(-1).after(htmlString); - } else { - base.$userItems.eq(position).before(htmlString); - } - - base.setVars(); - }, - - removeItem : function (targetPosition) { - var base = this, - position; - - if (base.$elem.children().length === 0) { - return false; - } - if (targetPosition === undefined || targetPosition === -1) { - position = -1; - } else { - position = targetPosition; - } - - base.unWrap(); - base.$userItems.eq(position).remove(); - base.setVars(); - } - - }; - - $.fn.owlCarousel = function (options) { - return this.each(function () { - if ($(this).data("owl-init") === true) { - return false; - } - $(this).data("owl-init", true); - var carousel = Object.create(Carousel); - carousel.init(options, this); - $.data(this, "owlCarousel", carousel); - }); - }; - - $.fn.owlCarousel.options = { - - items : 5, - itemsCustom : false, - itemsDesktop : [1199, 4], - itemsDesktopSmall : [979, 3], - itemsTablet : [768, 2], - itemsTabletSmall : false, - itemsMobile : [479, 1], - singleItem : false, - itemsScaleUp : false, - - slideSpeed : 200, - paginationSpeed : 800, - rewindSpeed : 1000, - - autoPlay : false, - stopOnHover : false, - - navigation : false, - navigationText : ["prev", "next"], - rewindNav : true, - scrollPerPage : false, - - pagination : true, - paginationNumbers : false, - - responsive : true, - responsiveRefreshRate : 200, - responsiveBaseWidth : window, - - baseClass : "owl-carousel", - theme : "owl-theme", - - lazyLoad : false, - lazyFollow : true, - lazyEffect : "fade", - - autoHeight : false, - - jsonPath : false, - jsonSuccess : false, - - dragBeforeAnimFinish : true, - mouseDrag : true, - touchDrag : true, - - addClassActive : false, - transitionStyle : false, - - beforeUpdate : false, - afterUpdate : false, - beforeInit : false, - afterInit : false, - beforeMove : false, - afterMove : false, - afterAction : false, - startDragging : false, - afterLazyLoad: false - }; -}(jQuery, window, document)); \ No newline at end of file diff --git a/js/owl.carousel.min.js b/js/owl.carousel.min.js deleted file mode 100644 index 394505e..0000000 --- a/js/owl.carousel.min.js +++ /dev/null @@ -1,47 +0,0 @@ -"function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g}); -(function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath? -(e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length; -this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&& -(this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this, -[this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}), -g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('
').wrap('
');this.$elem.find(".owl-wrapper").wrap('
');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")}, -baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall= -!1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;bthis.itemsAmount&& -!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a= -this,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data("owl-item",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundPages",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/ -this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('
');a.owlControls.append(b);a.buttonPrev= -f("
",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=f("
",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();f(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper= -f('
');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c",{"class":"owl-page"}),g=f("",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){f(this).data("owl-roundPages")=== -f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),f(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem=== -this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1; -this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;"function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0), -!0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed("paginationSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):"rewind"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed("slideSpeed"),g.setTimeout(function(){c.isCss3Finish=!0}, -c.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem= -this.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";g.clearInterval(this.autoPlayInterval)}, -checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))}, -addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+ -a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement("div");a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; -a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]: -!1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")})}, -gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos; -"function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)} -function c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off("click.disable")}), -a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1; -!1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b("on");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem= -a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)): -(c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,e){a.goTo(e)}); -a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a=this.currentItem:!0)&&e=f?g.setTimeout(c,100):e()}var d=this,f=0,k;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",a+"px");e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b, -100):e.wrapperOuter.css("height","")}var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");this.visibleItems=[];for(a=this.currentItem;a=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0=== -f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=Object.create(l);b.init(a,this);f.data(this,"owlCarousel",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1, -responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document); \ No newline at end of file diff --git a/languages/curver.pot b/languages/curver.pot index 52abeea..bc18a09 100644 --- a/languages/curver.pot +++ b/languages/curver.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Curver\n" -"POT-Creation-Date: 2019-02-10 16:59+0100\n" +"POT-Creation-Date: 2019-02-15 14:08+0100\n" "PO-Revision-Date: 2018-09-21 21:27+0100\n" "Last-Translator: \n" "Language-Team: \n" @@ -133,23 +133,23 @@ msgstr "" msgid "Footer 4" msgstr "" -#: functions.php:676 +#: functions.php:675 msgid "Alx Extensions" msgstr "" -#: functions.php:680 +#: functions.php:679 msgid "Meta Box" msgstr "" -#: functions.php:684 +#: functions.php:683 msgid "Regenerate Thumbnails" msgstr "" -#: functions.php:688 +#: functions.php:687 msgid "WP-PageNavi" msgstr "" -#: functions.php:692 +#: functions.php:691 msgid "Responsive Lightbox" msgstr ""