BLOG

A LITTLE STORY ABOUT MY JOURNEY

jQuery Div content change event Listener

jQuery Div content change event Listener

Enjoy 😀

Open a new tab in the background tab

  This Function only works on chrome browser if you need on firefox also then , you need to some changes on your firefox browser : In order to force all links that open in a new window to load in a background tab, type

in the URL bar and change

to […]

Image Height Width by javascript

If we need height and width from current image, we can use following javascript code :

Refrence : Stack

PHP slugify test

static public function slugify($text) { // replace non letter or digits by – $text = preg_replace(‘~[^\\pL\d]+~u’, ‘-‘, $text); // trim $text = trim($text, ‘-‘); // transliterate $text = iconv(‘utf-8’, ‘us-ascii//TRANSLIT’, $text); // lowercase $text = strtolower($text); // remove unwanted characters $text = preg_replace(‘~[^-\w]+~’, ”, $text); if (empty($text)) { return ‘n-a’; } return $text; } OR […]