A collection of programming & webdesign
JavaScript
jQuery toggle with Flexbox

If you want to toggle a container which is a flexbox, one  of the easiest ways, in fact, is to surround your flex container with a standard block container and then use the toggle function on the block container, like so:

... read more
JavaScript
JS time format HH:mm

Just because I couldn't believe it… obviously there's no easier way in JavaScript to show the time in HH:mm (e.g. 11:05) then to build the string yourself, using if-conditions and adding the zero manually where needed:

... read more