Format Time Functions xx:xx in PHP and Javascript

Today I am going to show you format time from this format x ( seconds ) to xx:xx . And the reverse. Javascript function from 90 to 1:30 function formatTime(arg) { //formats the time var s = Math.round(arg); var m … Continue reading

Custom Google Analytics Events in WordPress

Today we are going to learn how to integrate custom Google Analytics events in WordPress. For example I will setup a component I have here. Mick Jagger – RevengeBuy now! All we need is to setup the _gaq.push method in … Continue reading

DZS Parallaxer Lite

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit … Continue reading

Parallaxer – Parallax Effects on Content

preview-parallaxer get it from – here DZS Parallaxer is a script that turns any content into a cool parallax effect. It works smooth with any content you throw at it, images and even sliders, video players, basically any html content. It’s … Continue reading

Freebie – Font Awesome Icon Selector

Screen Shot 2014-10-12 at 5.14.54 PM Today, a very special freebie – a nice font awesome icon selector – directly in a input field Demo: here Download: here Licence: Attribution

WordPress Theme Customizer – How to add a WordPress Editor Field

wordpress-visual-editor I am writing this article because I have not found any relevant information on how to add a WP Editor field in the Theme Customizer. I DID find relevant information on the matter on and of course in the … Continue reading

Zoom Video Player – With Builder

preview-video-player-with-builder Video Player Intro Zoom Video Player is the only video player you will ever need because it’s completely functional and customizable. Why is it called Zoom Video Player ? Because the graphics are rendered crisp even at 3200% zoom thanks … Continue reading

How to Parse Nested Shortcode with the Same Name

Parsing shortcodes such as this one [row] [col size="6"]...[/col] [col size="6"] // second col [row] [col size="6"]...[/col] // second col end, wrong [col size="6"]...[/col] [/row] [/col] [/row] can be tricky because the second [col] is ended by the one nested … Continue reading

WordPress Tabs and Accordions DZS

preview-zoomtabs-and-accordions-wp Get it from – here WordPress ZoomTabs Intro – top WordPress ZoomTabs and Accordions is the perfect tool for creating Tabs or Accordions. The tabs automatically minimize to accordions when the responsive switch is achieved in order to be displayed … Continue reading

RegEx match .srt format

If you have a project and have to read .srt format in javascript – this is the post for you. This is the regular expression that matches the format in .srt files. ([0-9]+(?:\.[0-9]*)?)[\s\S]*?(.*-->.*)[\s\S]*?(\w+.*)[\n|\r] test here –