Null and undefined in javascript
Null and undefined are two data types in javascript that are a bit special and different from each other. Most programming languages only have null, but in javascript there's also undefined which is...
View ArticleHow switch works in javascript
Switch is a statement in javascript that's used to control the data flow in programs. With other words to be able to decide what should happen from different cases or actions. Basically the same way...
View ArticleLocalstorage instead of cookies in javascript
When this article is written localstorage in javascript isn't anything new. It's been available since html5 rolled out on the web, and is simply a way of storing user data between page views. Cookies...
View ArticleRequestAnimationFrame for better animations in javascript
RequestAnimationFrame is a function in javascript which is used to create animations directly in the browser. Javascript has been used for doing animations for a long time, and it's pretty awesome what...
View ArticleECMAScript 5's array metods
It was a great many years ago ECMAScript 5 came out to javascript now, and brought not only lots of exciting news, but also a great deal of new array methods. Methods that does everything from looping...
View ArticleHow to better check data types in javascript
To check what data type something has in javascript is not always the easiest. The language itself provides an operator called typeof for that which works in a straightforward way. Typeof returns a...
View ArticleConvert hex, rgb and hsl colors
Hex: Rgba: Hsla: Info This is a hex, rgb and hsl color converter which does hex to rgb and to hsl. It's mostly for web developers and designers with html5 compatible and CSS3 valid hex, rgba and hsla...
View ArticleSimple Wp Sitemap on Nginx
To get Simple Wp Sitemap working on Nginx, add the following rewrite rules for free or premium to the server { } section in your server file nginx.conf. # Simple Wp Sitemaplocation ~...
View ArticleMultilingual Satisfy
The WordPress theme Satisfy can be translated into many different languages. It also supports multilingual plugins like Polylang and Wpml. But some dynamic texts doesn't get picked up automatically by...
View ArticleWeb encryption and hashing in javascript with the crypto api
A while ago it was announced that a crypto api will be released for javascript. Meaning it will be possible to do real encrypting and decrypting, and generating hashes directly in the web browser. Now...
View Article