update 25-03-2023

This commit is contained in:
2023-03-25 09:41:13 +07:00
parent 98414d3a05
commit 4719163917
169 changed files with 13841 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

View File

@@ -0,0 +1,190 @@
function run_carousel(holder, item, margins, navs, dot) {
$(holder).owlCarousel({
margin: margins,
lazyLoad: true,
loop: false,
autoplay: false,
autoplayTimeout: 4000,
autoplaySpeed: 1500,
autoplayHoverPause: true,
dots: dot,
nav: navs,
navText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'],
items: item,
});
}
$(document).ready(function () {
// slide trang chu
$("#js-slider-home").owlCarousel({
items: 1,
loop: true,
autoplay: true,
dotsSpeed: 1000,
navSpeed: 1000,
dots: false,
nav: true,
navText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'],
margin: 10,
lazyLoad: true
});
run_carousel($('#js-slider-deal'), 4, 10, true, false)
run_carousel($('#js-slider-feeback'), 3, 10, true, false)
run_carousel($('#js-slider-brand'), 8, 10, false, false)
})
function GetCount(ddate, iid) {
amount = ddate //calc milliseconds between dates
hours = 0;
mins = 0;
secs = 0;
out = "";
secs = Math.floor(amount % 60);
mins = Math.floor((amount % (60 * 60) / 60));
hours = Math.floor((amount / (60 * 60 * 24) / (60 * 60)));
out += "<div class='item-time'><b> " + (hours <= 9 ? '0' : '') + hours + " </b></div>";
out += "<div class='item-time'><b> " + (mins <= 9 ? '0' : '') + mins + " </b></div>";
out += "<div class='item-time'><b> " + (secs <= 9 ? '0' : '') + secs + " </b></div>";
//out = out.substr(0, out.length - 2);
$(iid).html(out)
setTimeout(function () {
GetCount(ddate - 1, iid)
}, 1000);
}
function countDown(iid) {
var now = new Date();
var end = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1);
// Tính khoảng cách thời gian giữa hai thời điểm
var distance = end - now;
// Cập nhật thời gian đếm ngược mỗi giây
var timer = setInterval(function () {
distance -= 1000;
var hours = Math.floor((distance / (1000 * 60 * 60)) % 24);
var minutes = Math.floor((distance / 1000 / 60) % 60);
var seconds = Math.floor((distance / 1000) % 60);
// Hiển thị thời gian đếm ngược trên trang web của bạn
$(iid).html("<div class='item-time'><b> " + (hours <= 9 ? '0' : '') + hours + " </b></div><div class='item-time'><b> " + (minutes <= 9 ? '0' : '') + minutes + " </b></div><div class='item-time'><b> " + (seconds <= 9 ? '0' : '') + seconds + " </b></div>");
}, 1000);
}
countDown($('.js-item-deal-time'))
const MIN_PAGE_PRICE = parseInt('0');
const MAX_PAGE_PRICE = parseInt('229999000');
var current_min = parseInt('0');
var current_max = parseInt('229999000');
$(document).ready(function () {
$('.min-price-filter').html(formatCurrency(current_min) + ' đ');
$('.max-price-filter').html(formatCurrency(current_max) + ' đ');
$('#input-min-price-filter').val(formatCurrency(current_min))
$('#input-max-price-filter').val(formatCurrency(current_max));
var options = {
range: true,
min: MIN_PAGE_PRICE,
max: MAX_PAGE_PRICE,
values: [current_min, current_max],
step: 5,
slide: function (event, ui) {
var min = Math.floor(ui.values[0]);
$('.min-price-filter').html(formatCurrency(min) + ' đ');
$('#input-min-price-filter').html(formatCurrency(min));
var max = Math.floor(ui.values[1]);
$('.max-price-filter').html(formatCurrency(max) + ' đ');
$('#input-max-price-filter').html(formatCurrency(max));
},
};
$("#slider-range").slider(options);
})
function formatCurrency(a) {
var b = parseFloat(a).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1.").toString();
var len = b.length;
b = b.substring(0, len - 3);
return b;
}
function finterPriceSli() {
var getMinPriceString = $('#input-min-price-filter').val();
var getMaxPriceString = $('#input-max-price-filter').val();
var getMinPrice = parseInt(getMinPriceString.replace(/\./g, ''));
var getMaxPrice = parseInt(getMaxPriceString.replace(/\./g, ''));
var textMinPrice = 'trieu';
var textMaxPrice = 'trieu';
if (getMinPrice < 1000000) {
var minPrice = Math.floor(getMinPrice / 1000);
textMinPrice = 'ngan';
} else {
var minPrice = Math.floor(getMinPrice / 1000000);
}
if (getMaxPrice < 1000000) {
var maxPrice = Math.round(getMaxPrice / 1000);
textMaxPrice = 'ngan';
} else {
var maxPrice = Math.round(getMaxPrice / 1000000);
}
window.location.href = '?p=' + minPrice + textMinPrice + '-' + maxPrice + textMaxPrice;
}
$(".js-title-filter").click(function () {
$(this).parents(".item-filter").toggleClass("active");
});
$('[data-fancybox="gallery"]').fancybox({
thumbs: {
autoStart: true
},
loop: true
});
$("#sync2 .item-thumbnail").click(function () {
event.preventDefault();
$(".item-thumbnail").removeClass("active");
$(this).addClass("active");
var src = $(this).find("a").attr("href");
$("#sync1 a").attr("href", src);
$("#sync1 img").attr("src", src);
return false;
});
$("#sync2").owlCarousel({
items: 4,
margin: 10,
dots: false,
nav: true,
autoHeight: true,
navText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'],
});
$("#title_tab_scroll_pro a").click(function () {
$("#title_tab_scroll_pro a").removeClass("active");
$(this).addClass("active");
var idTab = $(this).attr('href');
$('.content-tab').removeClass('active');
$(idTab).addClass('active')
return false;
});