codetracker

codetracker

JCH Optimize Pro for WordPress v3.0.2

WP Customer Area All Add-Ons Package

Download JCH Optimize Pro for WordPress Nulled Free Premium JCH Optimize provides several front end optimizations for faster download speeds for your Joomla!, WordPress, Magento or Drupal website including minimizing http requests and reducing your web page sizes. Research has…

WP and Divi Icons Pro v2.0.0

WP and Divi Icons Pro
Available as both a free and premium plugin, the WP and Divi Icons (formerly the Divi Icon Expansion Pack) and the WP and Divi Icons PRO plugins add over 2500 icons to both WordPress and the Divi Theme Framework!

Osclass Price Alert plugin v1.0.0

Osclass Price Alert plugin
Cbk Price Subscribe is a plugin that will notify your users if the price reaches the amount set in t..."/>

Price Alert

June 3, 2019 June 3, 2019
3 8 1052
$(document).ready(function () { var sync1 = $("#sync1"); var sync2 = $("#sync2"); var windowWidth = $(window).width(); if (windowWidth > '985') { $('#sync1 .item img').hover(function () { $(this).elevateZoom({ scrollZoom: true, zoomLevel: 0.5, }); }); } sync1.owlCarousel({ singleItem: true, slideSpeed: 1000, navigation: true, navigationText: [ "", "" ], pagination: false, afterAction: syncPosition, responsiveRefreshRate: 200, afterInit: function (el) { el.find(".owl-item").eq(0).addClass("active"); } }); sync2.owlCarousel({ items: '5', itemsDesktop: [1199, 10], itemsDesktopSmall: [979, 10], itemsTablet: [768, 8], itemsMobile: [479, 4], pagination: false, responsiveRefreshRate: 100, afterInit: function (el) { el.find(".owl-item").eq(0).addClass("synced"); } }); //items number var totalItems = '5'; var currentIndex = $('.owl-item.synced').index() + 1; $('.num span').html('' + currentIndex + '/' + totalItems + ''); function syncPosition(el) { var current = this.currentItem; $("#sync1") .find(".owl-item") .removeClass("active") .eq(current) .addClass("active"); $("#sync2") .find(".owl-item") .removeClass("synced") .eq(current) .addClass("synced"); if ($("#sync2").data("owlCarousel") !== undefined) { center(current) } //items number var current_1 = current + 1; $('.num span').html('' + current_1 + '/' + totalItems + ''); } $("#sync2").on("click", ".owl-item", function (e) { e.preventDefault(); var number = $(this).data("owlItem"); sync1.trigger("owl.goTo", number); }); function center(number) { var sync2visible = sync2.data("owlCarousel").owl.visibleItems; var num = number; var found = false; for (var i in sync2visible) { if (num === sync2visible[i]) { var found = true; } } if (found === false) { if (num > sync2visible[sync2visible.length - 1]) { sync2.trigger("owl.goTo", num - sync2visible.length + 2) } else { if (num - 1 === -1) { num = 0; } sync2.trigger("owl.goTo", num); } } else if (num === sync2visible[sync2visible.length - 1]) { sync2.trigger("owl.goTo", sync2visible[1]) } else if (num === sync2visible[0]) { sync2.trigger("owl.goTo", num - 1) } } });