$(document).ready(function () {
$(".loader").fadeOut(600);
$(".init-lang").each(function () {
$(this).text($(this).attr("data-text").split(",")[0])
});
$(".blanked").on("click", function () {
showMenu('close');
})
$(".rating-list").each(function () {
$(this).empty();
var text = $(this).attr("data-text").split(",");
var count = parseInt($(this).attr("data-star"));
var max = 5;
var html_m = '';
for (var i = 0; i < max; i++) {
if (i < count) {
if (i + 1 === count) {
html_m += '';
} else {
html_m += '';
}
} else {
html_m += '';
}
}
$(this).append(html_m);
setTimeout(function () {
$(".scale-in-center.active").addClass("show");
}, 1500);
});
loaderNumber();
$("[data-toggle='tooltip']").tooltip();
var current_url = window.location.pathname.replace("/", "");
$(".main-menu li").removeClass("active");
$(".main-menu li").each(function () {
if ($(this).find("a").attr("href") === current_url) $(this).addClass("active");
})
$(".main-menu-footer li").each(function () {
if ($(this).find("a").attr("href") === current_url) $(this).addClass("active");
})
if ($(['data-core-filter'])) {
var type = $(['data-core-filter']);
$(".filter-list").find("li[data-type='" + type + "']").trigger("click");
}
$(function() {
$('.lazy').lazy({
placeholder: "data:image/gif;base64,R0lGODlhEALAPQAPzl5uLr9Nrl8e7..."
});
});
// slick slider
if($('.slick__slider')) {
$('.slick__slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
dots: true,
});
}
//foter remove clicks
$("footer div:nth-child(2) .col-12 a:nth-child(1)").removeAttr("href")
$("footer div:nth-child(2) .col-12 a:nth-child(1)").removeAttr("target")
$("footer div:nth-child(2) .col-12 a:nth-child(2)").removeAttr("href")
$("footer div:nth-child(2) .col-12 a:nth-child(3)").removeAttr("target")
});