';
if (e.attr("type") == "checkbox") {
e.addClass(c.hideCls).wrap(d).change(function () {
if (a(this).is(":checked")) {
a(this).parent().addClass(c.checkedCls)
} else {
a(this).parent().removeClass(c.checkedCls)
}
});
if (e.is(":checked")) {
e.parent().addClass(c.checkedCls)
}
} else {
if (e.attr("type") == "radio") {
e.addClass(c.hideCls).wrap(d).change(function () {
a('input[name="' + a(this).attr("name") + '"]').each(function () {
if (a(this).is(":checked")) {
a(this).parent().addClass(c.selectedCls)
} else {
a(this).parent().removeClass(c.selectedCls)
}
})
});
if (e.is(":checked")) {
e.parent().addClass(c.selectedCls)
}
}
}
})
}
}(jQuery));
(function (a) {
"use strict";
a.fn.responsiveTable = function (b) {
var c = a.extend({}, {
prefix: "tg",
target: ""
}, b);
return this.each(function () {
var f = "";
var e = "";
var h = "";
var d = "";
c.prefix = c.prefix + "_";
columns = [];
table_target = a(this);
var g = 0;
var i = 0;
a(table_target).find("tr").each(function () {
if (a(this).parent().attr("class") == "table-foot") {
var j = 0;
d += '
\n';
a(this).find("th,td").each(function () {
var k = a(this).html();
if (j % 2 == 0) {
d += "\n"
} else {
d += "" + k.replace(/^\s\s*/, "").replace(/\s\s*$/, "") + "\n"
}
j++
});
d += "
\n"
} else {
var j = 0;
a(this).find("th,td").each(function () {
var k = a(this).html();
if (g == 0) {
columns.push(a(this).html())
} else {
h += '
\n';
h += "\n";
h += "" + k.replace(/^\s\s*/, "").replace(/\s\s*$/, "") + "\n";
h += "
\n"
}
j++
});
if (g != 0) {
f += '
\n';
f += h;
f += "
\n";
h = ""
}
}
g++
});
f = '
\n' + f + "
\n";
if (g != 0) {
e += '
\n';
e += d;
e += "
\n";
d = ""
}
if (i != 0) {
f += '\n"
}
if (c.target.length > 0) {
a(c.target).html(f)
} else {
a(table_target).before(f)
}
})
}
})(jQuery);
// source --> https://www.colchaoklight.com.br/ldcms-conteudo/themes/starbella/js/megnor/custom.js
// Megnor Start
"use strict";
function isotopAutoSet() {
var e = jQuery.noConflict();
e(function () {
"use strict";
var t = e("#container .masonry");
e("#container .masonry").css("display", "block");
e("#container .loading").css("display", "none");
t.isotope({})
});
var t = jQuery.noConflict();
t(function () {
"use strict";
var e = t("#box_filter");
t("#container #box_filter").css("display", "block");
t("#container .loading").css("display", "none");
e.isotope({});
var n = t("#blog_filter_options .option-set"),
r = n.find("a");
r.on("click", function () {
var n = t(this);
if (n.hasClass("selected")) {
return false
}
var r = n.parents(".option-set");
r.find(".selected").removeClass("selected");
n.addClass("selected");
var i = {},
s = r.attr("data-option-key"),
o = n.attr("data-option-value");
o = o === "false" ? false : o;
i[s] = o;
if (s === "layoutMode" && typeof changeLayoutMode === "function") {
changeLayoutMode(n, i)
} else {
e.isotope(i)
}
return false
})
});
var n = jQuery.noConflict();
n(function () {
"use strict";
var e = n("#portfolio_filter");
t("#portfolio_filter").css("display", "block");
t(".loading").css("display", "none");
e.isotope({});
var r = n("#portfolio_filter_options .option-set"),
i = r.find("a");
i.on("click", function () {
var t = n(this);
if (t.hasClass("selected")) {
return false
}
var r = t.parents(".option-set");
r.find(".selected").removeClass("selected");
t.addClass("selected");
var i = {},
s = r.attr("data-option-key"),
o = t.attr("data-option-value");
o = o === "false" ? false : o;
i[s] = o;
if (s === "layoutMode" && typeof changeLayoutMode === "function") {
changeLayoutMode(t, i)
} else {
e.isotope(i)
}
return false
})
})
}
// JS for calling Mega Menu
function callMegaMenu() {
"use strict";
var e, menucolumn;
if (jQuery(window).width() >= 767 && jQuery(window).width() <= 980) {
menucolumn = 2;
} else {
menucolumn = 4;
}
if (jQuery(window).width() >= 767) {
e = "hover";
jQuery(".mega-menu .mega, .contactmega").dcMegaMenu({
rowItems: menucolumn,
speed: "fast",
effect: "fade",
event: e,
fullWidth: false,
mbarIcon: true
})
}
}
jQuery(window).load(function () {
"use strict";
callMegaMenu()
});
jQuery(window).resize(function () {
"use strict";
callMegaMenu()
});
jQuery(document).ready(function () {
"use strict";
jQuery(".primary-sidebar .tagcloud,.widget_text .textwidget,.primary-sidebar .widget_shopping_cart_content,.primary-sidebar .textwidget,.site-footer .tnp,.site-footer .widget_nav_menu .menu").addClass("toggle-block");
jQuery(".primary-sidebar .calendar_wrap,.site-footer .calendar_wrap").addClass("toggle-block");
jQuery(".primary-sidebar .widget select").addClass("toggle-block");
jQuery(".postform").addClass("toggle-block");
jQuery(".primary-sidebar .price_slider_wrapper").addClass("toggle-block");
jQuery(".tagcloud").addClass("toggle-block");
jQuery(".primary-sidebar .widget ul,.primary-sidebar .menu-menu-container").addClass("toggle-block");
jQuery(".product-categories,ul.sidebar-category-inner").addClass("toggle-block");
jQuery(".primary-sidebar .woocommerce-product-search").addClass("toggle-block");
jQuery(".primary-sidebar .woocommerce-widget-layered-nav-dropdown").addClass("toggle-block");
(function ($, window, document, undefined) {
$.fn.doubleTapToGo = function (params) {
if (!('ontouchstart' in window) &&
!navigator.msMaxTouchPoints &&
!navigator.userAgent.toLowerCase().match(/windows phone os 7/i)) return false;
this.each(function () {
var curItem = false;
$(this).on('click', function (e) {
var item = $(this);
if (item[0] != curItem[0]) {
e.preventDefault();
curItem = item;
}
});
$(document).on('click touchstart MSPointerDown', function (e) {
var resetItem = true,
parents = $(e.target).parents();
for (var i = 0; i < parents.length; i++)
if (parents[i] == curItem[0])
resetItem = false;
if (resetItem)
curItem = false;
});
});
return this;
};
})(jQuery, window, document);
jQuery('.category,.product,.gallery-item,.single-portfolio,.portfolios li, .portfolios li:hover .other-box ,.cms-banner-inner,.brand-carousel .product-block ,.counter,.service-content').doubleTapToGo();
jQuery('.mega_menu .block-title').on("click", function () {
jQuery('.product-categories').slideToggle("slow");
});
Shadowbox.init({
overlayOpacity: .8
}, setupDemos);
jQuery("br", ".liststyle_content").remove();
jQuery("select.orderby").customSelect();
jQuery("ul li:empty").remove();
jQuery("br", ".brand_block").remove();
jQuery("br", ".pricing-content-inner").remove();
jQuery("br", "#vertical_tab .tabs").remove();
jQuery("p").each(function () {
var e = jQuery(this);
if (e.html().replace(/\s| /g, "").length == 0) e.remove()
});
var e = jQuery.noConflict();
e(".nav-button").on("click", function () {
e(".nav-button, .primary-nav").toggleClass("open")
});
jQuery(".woocommerce-breadcrumb").appendTo(jQuery(".main_inner .page-title-inner"));
jQuery(".gridlist-toggle").prependTo(jQuery("#primary #content"));
jQuery(".woocommerce-result-count").wrap("
");
jQuery(".woocommerce-ordering").appendTo(".category-toolbar");
jQuery(".gridlist-toggle").prependTo(".category-toolbar");
jQuery(".products .product-category").wrapInner("
");
jQuery(".accordion.style5 .single_accordion").each(function (e) {
jQuery(this).addClass("accord-" + (e + 1))
});
jQuery(".quantity.buttons_added").find("input.input-text").attr({type: "text"});
jQuery(".nav-menu:first > li").each(function (e) {
jQuery(this).addClass("main-li")
});
jQuery("#woo-small-products p img").each(function (e) {
jQuery(this).wrap("
")
});
jQuery(".primary-sidebar .widget .widget-title,.content-sidebar .widget .widget-title,.site-footer .widget-title").each(function (e) {
jQuery(this).wrap("
")
});
jQuery(".sub-container .inner-image").each(function (e) {
jQuery(this).addClass("image-" + (e + 1))
});
jQuery(" .product-categories").addClass('sidebar-category-inner');
jQuery('.singleproduct-sidebar').insertBefore(".woocommerce-tabs");
jQuery(".woocommerce-product-gallery").wrap("
");
jQuery(".single-product-full #content .product div.entry-summary").insertAfter(".woocommerce-product-gallery");
jQuery(".upsells, .related, .cross-sells").wrap("
");
jQuery('.widget_nav_menu ul li').filter(function () {
return jQuery(this).text() == '';
}).remove();
//JS for calling horizontalTab
jQuery(document).ready(function () {
"use strict";
jQuery("#horizontalTab").easyResponsiveTabs({
type: "default",
width: "auto",
fit: true,
closed: "accordion",
activate: function (e) {
var t = jQuery(this);
var n = jQuery("#tabInfo");
var r = jQuery("span", n);
r.text(t.text());
n.show()
}
})
});
// Categorytab
jQuery(document).ready(function () {
"use strict";
jQuery("#categorytab").easyResponsiveTabs({
type: "default",
width: "auto",
fit: true,
closed: "accordion",
activate: function (e) {
var t = jQuery(this);
var n = jQuery("#tabInfo");
var r = jQuery("span", n);
r.text(t.text());
n.show()
}
})
});
(function (e) {
"use strict";
var t;
var n = false;
var r = e("#to_top");
var i = e(window);
var s = e(document.body).children(0).position().top;
e("#to_top").on("click", function (t) {
t.preventDefault();
e("html, body").animate({
scrollTop: 0
}, "slow")
});
i.scroll(function () {
window.clearTimeout(t);
t = window.setTimeout(function () {
if (i.scrollTop() <= s) {
n = false;
r.fadeOut(500)
} else if (n == false) {
n = true;
r.stop(true, true).show().on("click", function () {
r.fadeOut(500)
})
}
}, 100)
})
})(jQuery);
(function (e) {
"use strict";
e(".toogle_div a.tog").on("click", function (t) {
var n = e(this).parent().find(".tab_content");
e(this).parent().find(".tab_content").not(n).slideUp();
if (e(this).hasClass("current")) {
e(this).removeClass("current")
} else {
e(this).addClass("current")
}
n.stop(false, true).slideToggle().css({
display: "block"
});
t.preventDefault()
})
})(jQuery);
(function (e) {
"use strict";
var t = e(".accordion .tab_content").hide();
e(".accordion a").on("click", function () {
t.slideUp();
e(this).parent().next().slideDown();
return false
})
})(jQuery);
(function (e) {
"use strict";
e(".togg div.tog").on("click", function (t) {
var n = e(this).parent().find(".tab_content");
e(this).parent().find(".tab_content").not(n).slideUp();
if (e(this).hasClass("current")) {
e(this).removeClass("current")
} else {
e(this).addClass("current")
}
n.stop(false, true).slideToggle().css({
display: "block"
});
t.preventDefault()
})
})(jQuery);
(function (e) {
"use strict";
e(".accordion a.tog").on("click", function (t) {
var n = e(this).parent().find(".tab_content");
e(this).parent().parent().find(".tab_content").not(n).slideUp();
if (e(this).hasClass("current")) {
e(this).removeClass("current")
} else {
e(this).parent().parent().find(".tog").removeClass("current");
e(this).addClass("current");
n.stop(false, true).slideToggle().css({
display: "block"
})
}
t.preventDefault()
})
})(jQuery);
(function (e) {
"use strict";
e(".accordion.style5 .accord-1 a.tog").addClass("current");
e(".accordion.style5 .accord-1 a.tog").parent().find(".tab_content").stop(false, true).slideToggle().css({
display: "block"
});
e(".accordion.style5 .accord-1 a.tog").on("click", function (t) {
var n = e(this).parent().find(".tab_content");
e(this).parent().parent().find(".tab_content").not(n).slideUp();
if (e(this).hasClass("current")) {
e(this).removeClass("current");
e(".accordion.style5 .accord-1 a.tog").removeClass("current")
} else {
e(this).parent().parent().find(".tog").removeClass("current");
e(this).addClass("current");
n.stop(false, true).slideToggle().css({
display: "block"
})
}
t.preventDefault()
})
})(jQuery);
(function (e) {
"use strict";
e(".tab ul.tabs li:first-child a").addClass("current");
e(".tab .tab_groupcontent div.tabs_tab").hide();
e(".tab .tab_groupcontent div.tabs_tab:first-child").css("display", "block");
e(".tab ul.tabs li a").on("click", function (t) {
var n = e(this).parent().parent().parent(),
r = e(this).parent().index();
n.find("ul.tabs").find("a").removeClass("current");
e(this).addClass("current");
n.find(".tab_groupcontent").find("div.tabs_tab").not("div.tabs_tab:eq(" + r + ")").slideUp();
n.find(".tab_groupcontent").find("div.tabs_tab:eq(" + r + ")").slideDown();
t.preventDefault()
})
})(jQuery);
(function (e) {
"use strict";
e(".animated").each(function () {
e(this).one("inview", function (t, n) {
var r = "";
var i = e(this),
s = i.data("animated") !== undefined ? i.data("animated") : "slideUp";
r = i.data("delay") !== undefined ? i.data("delay") : 300;
if (n === true) {
setTimeout(function () {
i.addClass(s);
i.css("opacity", 1)
}, r)
} else {
setTimeout(function () {
i.removeClass(s);
i.css("opacity", 0)
}, r)
}
})
})
})(jQuery);
(function (e) {
"use strict";
e(".active_progresbar > span").each(function () {
e(this).data("origWidth", e(this).width()).width(0).animate({
width: e(this).data("origWidth")
}, 1200)
})
})(jQuery);
jQuery("#commentform textarea").addClass("required");
jQuery("#commentform").validate();
jQuery("#shortcode_contactform").validate();
var n = jQuery.noConflict();
var $owl_carousel = jQuery.noConflict();
jQuery(".portfolio-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_portfolio_carousel", "");
n(".portfolio-carousel").addClass("owl-carousel");
n(".portfolio-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsDesktop: [1199, e],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}
});
jQuery(".style-2.blog-carousel,.style-1.blog-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_blog_carousel", "");
n(".blog-carousel").addClass("owl-carousel");
n(".blog-carousel").owlCarousel({
navigation: true,
pagination: false,
autoPlay: false,
items: e,
itemsDesktop: [1199, 2],
itemsDesktopSmall: [979, 2],
itemsTablet: [600, 1],
itemsMobile: [479, 1]
})
}
});
jQuery(".sidebar-blog-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_sidebar_blog_carousel", "");
n(".sidebar-blog-carousel").addClass("owl-carousel");
n(".sidebar-blog-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsDesktop: [1199, e],
itemsDesktopSmall: [979, 2],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}
});
jQuery(".cat-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_cat_carousel", "");
n(".cat-carousel").addClass("owl-carousel");
n(".cat-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1400, e],
itemsDesktop: [1249, 3],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}
});
jQuery(".brand-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_brand_carousel", "");
n(".brand-carousel").addClass("owl-carousel");
n(".brand-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
autoPlay: 3000,
itemsLarge: [1400, e],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [600, 2],
itemsMobile: [479, 1]
})
}
});
jQuery(".testimonial-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_testimonial_carousel", "");
n(".testimonial-carousel").addClass("owl-carousel");
n(".testimonial-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsDesktop: [1199, e],
itemsDesktopSmall: [979, 1],
itemsTablet: [767, 1],
itemsMobile: [479, 1]
})
}
});
var r = n(".upsells ul.products li").length;
if (r > 3) {
n(".upsells ul.products").addClass("owl-carousel");
n(".upsells ul.products").owlCarousel({
navigation: true,
pagination: false,
items: 4,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 1]
})
}
var i = n(".cross-sells ul.products li").length;
if (i > 3) {
n(".cross-sells ul.products").addClass("owl-carousel");
n(".cross-sells ul.products").owlCarousel({
navigation: true,
pagination: false,
items: 4,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 1]
})
}
var k = n(".related ul.products li").length;
if (k > 3) {
n(".related ul.products").addClass("owl-carousel");
n(".related ul.products").owlCarousel({
navigation: true,
pagination: false,
items: 5,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 1]
})
}
jQuery(".team-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_team_carousel", "");
n(".team-carousel").addClass("owl-carousel");
n(".team-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
autoPlay: 3000,
itemsLarge: [1400, e],
itemsDesktop: [1199, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 2],
itemsMobile: [479, 1]
})
}
});
jQuery(".category-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_category_carousel", "");
n(".category-carousel").addClass("owl-carousel");
n(".category-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
autoPlay: false,
itemsLarge: [1400, e],
itemsDesktop: [1199, 5],
itemsDesktopSmall: [979, 4],
itemsTablet: [767, 3],
itemsMobile: [479, 2]
})
}
});
jQuery(".woo-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_woo_carousel", "");
var t = n(this).find("ul.products .product").length;
if (t > e) {
n(this).find("ul.products").addClass("owl-carousel");
n(this).find("ul.products").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1600, e],
itemsDesktop: [1550, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 1]
})
}
}
});
jQuery(".woo-carousel").each(function () {
"use strict";
if (n(this).attr("id")) {
var e = n(this).attr("id").replace("_woo_carousel", "");
var t = n(this).find("div.products .product").length;
if (t > e) {
n(this).find("div.products").addClass("owl-carousel");
n(this).find("div.products").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1400, e],
itemsDesktop: [1199, 3],
itemsDesktopSmall: [979, 3],
itemsTablet: [640, 2],
itemsMobile: [479, 1]
})
}
}
});
jQuery(".related_posts.blog-list").each(function () {
"use strict";
n(".related_posts.blog-list").addClass("owl-carousel");
n(".related_posts.blog-list").owlCarousel({
navigation: true,
pagination: false,
items: 2,
itemsLarge: [1400, 2],
itemsDesktop: [1199, 2],
itemsDesktopSmall: [979, 2],
itemsTablet: [767, 2],
itemsMobile: [479, 1],
afterAction: function (el) {
this.$owlItems.removeClass('active');
this.$owlItems.eq(this.currentItem + 1).addClass('active');
}
})
});
});
document.createElement("div");
document.createElement("section");
jQuery(window).load(function () {
"use strict";
isotopAutoSet()
});
jQuery(window).resize(function () {
"use strict";
isotopAutoSet()
});
// JS toggle for sidebar and footer
function SidebarFooterToggle() {
"use strict";
jQuery('.primary-sidebar .title-outer,.site-footer .title-outer,.toggle-content .title-outer,.widget_accepted_payment_methods .title-outer, .widget_black_studio_tinymce').on("click", function () {
if (jQuery(this).parent().hasClass('toggled-on')) {
jQuery(this).parent().removeClass('toggled-on');
jQuery(this).parent().addClass('toggled-off');
} else {
jQuery(this).parent().addClass('toggled-on');
jQuery(this).parent().removeClass('toggled-off');
}
return (false);
});
}
jQuery(document).ready(function () {
"use strict";
SidebarFooterToggle()
});
// JS for adding treeview in navigationMenu sidebar product category
function menutreeview() {
"use strict";
jQuery('.primary-sidebar .product-categories,.site-footer .product-categories,.primary-sidebar .widget_nav_menu ul,.site-footer .widget_nav_menu ul,.primary-sidebar .widget_categories ul').addClass('treeview-list');
jQuery(".primary-sidebar .product-categories.treeview-list,.site-footer .product-categories.treeview-list,.primary-sidebar .widget_nav_menu ul.treeview-list,.site-footer .widget_nav_menu ul.treeview-list,.primary-sidebar .widget_categories .treeview-list").treeview({
animated: "slow",
collapsed: true,
unique: true
});
jQuery('.treeview-list a.active').parent().removeClass('expandable');
jQuery('.treeview-list a.active').parent().addClass('collapsable');
jQuery('.treeview-list .collapsable ul').css('display', 'block');
}
jQuery(document).ready(function () {
"use strict";
menutreeview()
});
// Countdown
function timecounter() {
"use strict";
jQuery('.countbox.hastime').each(function () {
var countTime = jQuery(this).attr('data-time');
jQuery(this).countdown(countTime, function (event) {
jQuery(this).html(
'
' + event.strftime('%D') + 'Days' + event.strftime('%H') + 'Hours' + event.strftime('%M') + 'Mins' + event.strftime('%S') + 'Secs'
);
});
//jQuery(this).countdown('stop');
});
}
jQuery(window).load(function () {
"use strict";
timecounter()
});
jQuery(window).resize(function () {
"use strict";
timecounter()
});
// JS for adding treeview in Mobile Menu
function mobilenavigationMenu() {
"use strict";
jQuery('.mobile-menu .mobile-menu-inner').addClass('treeview-list');
jQuery(".mobile-menu .mobile-menu-inner.treeview-list").treeview({
animated: "slow",
collapsed: true,
unique: true
});
}
jQuery(window).load(function () {
"use strict";
mobilenavigationMenu()
});
// JS for treeview for sidebar page list
function leftPageMenu() {
"use strict";
jQuery("#secondary .widget_pages ul").addClass('page-list');
jQuery("#secondary .widget_pages ul.page-list").treeview({
animated: "slow",
collapsed: true,
unique: true
});
}
jQuery(window).load(function () {
"use strict";
leftPageMenu()
});
// JS for calling Owl Carousel
jQuery(window).load(function () {
"use strict";
jQuery('.aboutus .slides').owlCarousel({
items: 1,
autoPlay: 5000,
singleItem: true,
navigation: false,
pagination: true,
transitionStyle: 'fade'
});
jQuery('.banner-slider-container .slides').owlCarousel({
items: 1,
autoPlay: 3000,
singleItem: true,
navigation: false,
pagination: true,
transitionStyle: 'fade'
});
});
// JS for move the cross sale section
function preloadFunc() {
"use strict";
jQuery(".cross-sells").appendTo(".cart-collaterals");
jQuery(".product_list_widget li:last-child").addClass("last");
}
jQuery(document).ready(function () {
"use strict";
preloadFunc();
});
// JS for adding active class in Mobile Menu
function mobileMenu() {
"use strict";
if (jQuery(window).width() < 768) {
jQuery('.mega-menu .mega').attr('id', 'menu-menu');
jQuery('#menu-all-pages').removeClass('mega');
jQuery('.mega-menu > ul').removeClass('mega');
} else {
jQuery('.mega-menu .mega > ul').addClass('mega');
jQuery('.mega-menu .mega > ul').attr('id', 'menu-menu');
}
jQuery(".mobile-navigation").addClass('toggled-on');
jQuery('.menu-toggle').on("click", function () {
if (jQuery(this).parent().hasClass('active')) {
jQuery(this).parent().removeClass('active');
} else {
jQuery('.menu-toggle').parent().removeClass('active');
jQuery(this).parent().addClass('active');
}
});
jQuery('.close-menu').on("click", function () {
if (jQuery(this).parent().parent().hasClass('active')) {
jQuery(this).parent().parent().removeClass('active');
} else {
jQuery('.close-menu').parent().parent().removeClass('active');
jQuery(this).parent().parent().addClass('active');
}
});
}
jQuery(document).ready(function () {
"use strict";
mobileMenu();
});
// JS for adding menu more link in navigation
function moreTab() {
"use strict";
var max_elem = 5;
if (jQuery(window).width() > 1200) {
var max_elem = 9;
jQuery('#site-navigation').addClass('more');
jQuery('#site-navigation.more .mega > li').first().addClass('home_first');
var items = jQuery('#site-navigation.more .mega > li');
var surplus = items.slice(max_elem, items.length);
surplus.wrapAll('