tricks Articles

This are all our articles tagged with:
tricks

by admin

Apache Redirect Range of IP Addresses (IPv4 and IPv6)

There are numerous ways to redirect requests using Apache’s mod_rewrite and mod_alias. This concise, friendly … Read more Apache Redirect Range of IP Addresses (IPv4 and IPv6)

by admin

Vanilla JavaScript Toggle Divs Based on Radio Select Inputs

Working on the redesign of Plugin Planet, I needed a way to toggle between two … Read more Vanilla JavaScript Toggle Divs Based on Radio Select Inputs

by admin

Disable Apache mod_rewrite Rules in any Subdirectory

Let’s say you have some .htaccess rewrite rules in place using Apache’s mod_rewrite. By default … Read more Disable Apache mod_rewrite Rules in any Subdirectory

by admin

What are numeric separators?

When working with large numbers it can be hard to read them out, try to … Read more What are numeric separators?

by admin

JavaScript array methods and how to use them

Arrays are as central to JavaScript as in many other languages, in this article we … Read more JavaScript array methods and how to use them

by admin

How to format numbers

The native Intl.NumberFormat API lets you format numbers for specific languages without any external dependencies. … Read more How to format numbers

by admin

Format "5 days ago" localized relative date strings in a few lines with native JavaScript

The native Intl.RelativeTimeFormat API can generate nicely formatted relative date/time strings without any external dependencies. … Read more Format "5 days ago" localized relative date strings in a few lines with native JavaScript

by admin

Fix Weird Hover Border in WordPress 5.7 Admin Menu

I’ve been testing the beta for WordPress 5.7. So far no complaints but there is … Read more Fix Weird Hover Border in WordPress 5.7 Admin Menu

by admin

Use more ergonomic custom events

While we have CustomEvent for all of our events that need to carry data the … Read more Use more ergonomic custom events

by admin

10 great JavaScript tricks that will improve your productivity

These top tips and tricks will help you dramatically increase your productivity while coding in … Read more 10 great JavaScript tricks that will improve your productivity