VIEW POST

View more

Thủ Thuật

Filter Post by Price & Variations

on
June 2, 2023

Function Code

add_action(‘pre_get_posts’, function ($query) {
if(is_tax(‘product_cat’)) {
// Price Filter
$p1 =…


VIEW POST

View more

Thủ Thuật

Convert GMT to other TimeZone in Javascript

on
March 20, 2023

const options = { timeZone: ‘Asia/Tokyo’ };
const date = new Date(); //Khai báo Date sẽ được Convert
const japanTime = date.toLocaleString(
    ‘ja-JP’,
    options
);


VIEW POST

View more

Thủ Thuật

Tips&Tricks

on
January 31, 2023

Tips & Tricks

1. Hack IE với CSS

– Hack IE9 Only
:root .class/#id { property:value \0/IE9; }

– Hack IE10 & 11
@media screen and…


VIEW POST

View more

Thủ Thuật

Infinite Scroll Slider

on
January 31, 2023

Infinite Scroll SliderVersion 2.0

Slider chạy tự động liên tục từ phải qua trái. Hỗ trợ responsive.

History

v2.0
Chuyển handle start/stop ra ngoài.Cho phép itemWidth có thể get theo function thay vì…


VIEW POST

View more

Thủ Thuật

Search and filter

on
January 31, 2023

Search and filter

Dùng để tạo tính năng tìm kiếm và lọc 1 danh sách thích hợp từ 1 mảng JSON

Luồng đi chính

Logic luồng đi chính

 

Để hàm searchAndFilter hoạt…

VIEW MORE